/* =========================================
   HOME — GALLERY
========================================= */

.home-gallery {
    width: 100%;
    background: #f3f0e9;
    color: #1f2925;

    padding: 0 0 clamp(70px, 6vw, 110px);

    scroll-margin-top: var(--header-height);
}

.home-gallery__container {
    width: 100%;
    max-width: 1920px;

    margin: 0 auto;
    padding-inline: clamp(24px, 5.5vw, 100px);
}

/* =========================================
   HEADING
========================================= */

.home-gallery__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;

    padding-top: clamp(40px, 4vw, 75px);
    margin-bottom: 42px;

    border-top: 1px solid rgba(31, 41, 37, 0.14);
}

.home-gallery__heading-content {
    min-width: 0;
}

.home-gallery__eyebrow {
    display: block;

    color: #a97b42;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-gallery__title {
    margin: 22px 0 0;

    color: #1f2925;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
}

/* =========================================
   GALLERY LINK
========================================= */

.home-gallery__link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;

    margin-bottom: 5px;
    padding-bottom: 13px;

    border-bottom: 1px solid currentColor;

    color: #1f2925;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;

    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.home-gallery__link svg {
    width: 24px;
    height: 18px;

    transition: transform 0.25s ease;
}

.home-gallery__link:hover {
    color: #a97b42;
    border-color: #a97b42;
}

.home-gallery__link:hover svg {
    transform: translateX(5px);
}

/* =========================================
   IMAGE GRID — 2 / 1 / 1
========================================= */

.home-gallery__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: clamp(14px, 1.5vw, 28px);

    width: 100%;
}

.home-gallery__item {
    min-width: 0;
    margin: 0;
}

.home-gallery__image-wrapper {
    position: relative;

    width: 100%;
    height: clamp(210px, 20vw, 380px);

    overflow: hidden;
    background: #e1ded7;
}

.home-gallery__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-gallery__item:hover .home-gallery__image {
    transform: scale(1.045);
}

/* =========================================
   CAPTIONS
========================================= */

.home-gallery__caption {
    margin-top: 18px;

    color: #56615a;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

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

@media (max-width: 1024px) {

    .home-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .home-gallery__item:first-child {
        grid-column: 1 / -1;
    }

    .home-gallery__item:first-child
    .home-gallery__image-wrapper {
        height: 380px;
    }

    .home-gallery__image-wrapper {
        height: 270px;
    }

    .home-gallery__title {
        font-size: clamp(46px, 6vw, 65px);
    }
}

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

@media (max-width: 740px) {

    .home-gallery {
        padding-bottom: 64px;
    }

    .home-gallery__container {
        padding-inline: 20px;
    }

    .home-gallery__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;

        padding-top: 45px;
        margin-bottom: 32px;
    }

    .home-gallery__eyebrow {
        font-size: 11px;
    }

    .home-gallery__title {
        margin-top: 20px;
        font-size: clamp(44px, 10vw, 62px);
    }

    .home-gallery__link {
        margin: 0;
        font-size: 15px;
    }

    .home-gallery__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-gallery__item:first-child {
        grid-column: auto;
    }

    .home-gallery__image-wrapper,
    .home-gallery__item:first-child
    .home-gallery__image-wrapper {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .home-gallery__caption {
        margin-top: 12px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .home-gallery__image,
    .home-gallery__link,
    .home-gallery__link svg {
        transition: none;
    }
}