.image-with-link {
    position: relative;
    display: block;
    text-align: center;
    text-decoration: none !important;
    color: var(--white) !important;
}

.image-with-link .content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    padding: 12px 20px;
    pointer-events: none;
}

.image-with-link .title {
    font-family: var(--solano);
    font-weight: var(--font-weight-bold);
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
}

.image-with-link .subtitle {
    font-family: var(--pt-sans);
    font-weight: var(--font-weight-bold);
    font-size: 17px;
    color: inherit;
}

.image-with-link .bg-image,
.image-with-link .slide-img {
    position: relative;
    z-index: 1;
}

.image-with-link .bg-image {
    pointer-events: none;
}

.image-with-link .bg-image::before {
    position: absolute;
    inset: 60% 0 0 0;
    z-index: 2;
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    content: '';
}

.image-with-link .slide-img {
    width: 100%;
}

@media (min-width: 64em) {
    .image-with-link {
        background: #e1ddd8;
        overflow: hidden;
    }

    .image-with-link .content {
        gap: 9px;
        padding: 18px 20px;
    }

    .image-with-link .title {
        font-size: 37px;
    }

    .image-with-link .subtitle {
        font-size: 18px;
    }

    /*----- animated things -----*/

    .image-with-link::before {
        position: absolute;
        inset: 0;
        z-index: 4;
        transform: translateX(-101%);
        display: block;
        background: var(--gray);
        content: '';
        pointer-events: none;
    }

    .image-with-link .content,
    .image-with-link .bg-image {
        opacity: 0;
        transition: opacity var(--transition) 550ms;
    }

    /* intersected */

    .container-intro-primary.intersected .image-with-link .content,
    .container-intro-primary.intersected .image-with-link .bg-image {
        opacity: 1;
    }

    .container-intro-primary.intersected .image-with-link::before {
        animation: color-swipe 1000ms var(--ease-inout-quad) 0s 1 normal forwards;
    }
}