/* ==========================================================================
   BIAFF HOMEPAGE — FEATURED GALLERY
   ========================================================================== */

.home-gallery {
    width: 100%;
    color: #000000;

    padding: 100px 0 110px;

    overflow: hidden;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.home-gallery__header {
    width: 90%;
    max-width: 1320px;

    margin: 0 auto 45px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.home-gallery__heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-gallery__eyebrow {

    font-size: 11px;
    font-weight: 400;

    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: rgba(0, 0, 0, 0.45);
}

.home-gallery__heading h2 {
    margin: 0;


    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;

    line-height: 0.95;

    color: #000000;
}


/* ==========================================================================
   ARROWS
   ========================================================================== */

.home-gallery__controls {
    display: flex;
    gap: 10px;

    flex-shrink: 0;
}

.home-gallery__arrow {
    background: none;
    border: none;
    color: #666666;
    font-size: 2em;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.home-gallery__arrow:hover {
    color: #000000;
}

.home-gallery__arrow:disabled {
    color: rgba(0, 0, 0, 0.25);
    cursor: default;
}


/* ==========================================================================
   VIEWPORT
   ========================================================================== */

.home-gallery__viewport {
    width: 100%;

    overflow: hidden;
}


/* ==========================================================================
   IMAGE TRACK
   ========================================================================== */

.home-gallery__track {
    display: flex;

    align-items: center;

    gap: 24px;

    width: max-content;

    padding-left: 5%;
    padding-right: 5%;

    transform: translateX(0);

    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);

    will-change: transform;
}


/* ==========================================================================
   IMAGE
   ========================================================================== */

.home-gallery__item {
    position: relative;

    display: block;

    flex: 0 0 auto;

    height: 390px;

    width: auto;

    overflow: hidden;

    background: #111111;

    text-decoration: none;
}

.home-gallery__item img {
    display: block;

    height: 100%;
    width: auto;

    max-width: none;

    object-fit: contain;

    transition:
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.6s ease,
        opacity 0.6s ease;
}


/* ==========================================================================
   HOVER
   ========================================================================== */

.home-gallery__item::after {
    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            rgba(0, 0, 0, 0.35)
        );

    opacity: 0;

    transition: opacity 0.5s ease;

    pointer-events: none;
}

.home-gallery__item:hover img {
    transform: scale(1.025);

    filter: brightness(0.82);
}

.home-gallery__item:hover::after {
    opacity: 1;
}


/* ==========================================================================
   FOOTER / BUTTON
   ========================================================================== */

.home-gallery__footer {
    width: 90%;
    max-width: 1320px;

    margin: 55px auto 0;

    display: flex;

    justify-content: center;
}

.home-gallery__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 30px;

    border: 1px solid #BE1333;

    background: transparent;

    color: #BE1333;


    font-size: 11px;
    font-weight: 400;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;
}

.home-gallery__button:hover {
    background: #BE1333;

    color: #FFFFFF;

    transform: translateY(-2px);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .home-gallery {
        padding: 75px 0 85px;
    }

    .home-gallery__header {
        width: 86%;

        margin-bottom: 35px;
    }

    .home-gallery__heading h2 {
        font-size: 4rem;
    }

    .home-gallery__track {
        gap: 18px;

        padding-left: 7%;
        padding-right: 7%;
    }

    .home-gallery__item {
        height: 320px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .home-gallery {
        padding: 60px 0 70px;
    }

    .home-gallery__header {
        width: 88%;

        align-items: flex-start;

        flex-direction: column;

        gap: 25px;
    }

    .home-gallery__heading h2 {
        font-size: 3.2rem;
    }

    .home-gallery__controls {
        align-self: flex-end;
    }

    .home-gallery__arrow {
        width: 46px;
        height: 46px;
    }

    .home-gallery__track {
        gap: 14px;

        padding-left: 6%;
        padding-right: 6%;
    }

    .home-gallery__item {
        height: 260px;
    }

    .home-gallery__footer {
        width: 88%;

        margin-top: 40px;
    }

    .home-gallery__button {
        width: 100%;

        text-align: center;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 400px) {

    .home-gallery__item {
        height: 220px;
    }

    .home-gallery__heading h2 {
        font-size: 2.8rem;
    }

}
