.furniture-gallery {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background:
        radial-gradient(circle at 8% 18%, rgba(114, 223, 66, .10), transparent 26%),
        linear-gradient(180deg, #fff 0%, #f7faf5 100%);
}

.furniture-gallery__shell {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: calc(100% - (var(--site-container-gutter, 24px) * 2)) !important;
    max-width: var(--site-container-width, 1480px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.furniture-gallery__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 34px;
}

.furniture-gallery__kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: #37a303;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.furniture-gallery__heading h2 {
    max-width: 760px;
    margin: 0;
    color: #0e1729;
    font-size: clamp(2rem, 3.1vw, 3.25rem);
    font-weight: 800;
    line-height: 1.04;
}

.furniture-gallery__heading p {
    max-width: 530px;
    margin: 0 0 4px;
    color: #6d7788;
    font-size: 1rem;
    line-height: 1.65;
}

.furniture-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 18px;
}

.furniture-gallery__card {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
    border-radius: 24px;
    background: #e7ebe3;
    box-shadow: 0 14px 34px rgba(24, 42, 18, .08);
    isolation: isolate;
}

.furniture-gallery__card:nth-child(1) {
    grid-column: span 6;
    grid-row: span 2;
}

.furniture-gallery__card:nth-child(2),
.furniture-gallery__card:nth-child(3),
.furniture-gallery__card:nth-child(4),
.furniture-gallery__card:nth-child(5) {
    grid-column: span 3;
}

.furniture-gallery__card:nth-child(6),
.furniture-gallery__card:nth-child(7),
.furniture-gallery__card:nth-child(8) {
    grid-column: span 4;
}

.furniture-gallery__card::after {
    content: "";
    position: absolute;
    inset: 32% 0 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(9, 17, 8, .72));
    pointer-events: none;
}

.furniture-gallery__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .45s ease;
}

.furniture-gallery__caption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

.furniture-gallery__caption strong {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.15;
}

.furniture-gallery__card--main .furniture-gallery__caption strong {
    font-size: clamp(1.3rem, 2vw, 2rem);
}

.furniture-gallery__caption small {
    max-width: 430px;
    font-size: .78rem;
    line-height: 1.35;
    opacity: .86;
}

.furniture-gallery__zoom {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 8px 24px rgba(15, 30, 10, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .35s ease, background-color .35s ease;
}

.furniture-gallery__zoom::before,
.furniture-gallery__zoom::after {
    content: "";
    position: absolute;
}

.furniture-gallery__zoom::before {
    top: 11px;
    left: 11px;
    width: 11px;
    height: 11px;
    border: 2px solid #37a303;
    border-radius: 50%;
}

.furniture-gallery__zoom::after {
    top: 25px;
    left: 24px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #37a303;
    transform: rotate(45deg);
    transform-origin: left center;
}

.furniture-gallery__card:hover img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.furniture-gallery__card:hover .furniture-gallery__zoom {
    transform: rotate(8deg) scale(1.08);
    background: #fff;
}

.furniture-gallery__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    color: #7a8491;
    font-size: .92rem;
}

.furniture-gallery__footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2f9202;
    font-weight: 800;
    text-decoration: none;
}

.furniture-gallery__footer a b {
    font-size: 1.25rem;
    transition: transform .3s ease;
}

.furniture-gallery__footer a:hover b {
    transform: translateX(5px);
}

@media (max-width: 1199px) {
    .furniture-gallery__grid {
        grid-auto-rows: 210px;
        gap: 14px;
    }
}

@media (max-width: 991px) {
    .furniture-gallery {
        padding: 68px 0;
    }

    .furniture-gallery__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 26px;
    }

    .furniture-gallery__heading p {
        max-width: 680px;
    }

    .furniture-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 210px;
    }

    .furniture-gallery__card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .furniture-gallery__card:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .furniture-gallery__card:nth-child(8) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .furniture-gallery {
        padding: 52px 0;
    }

    .furniture-gallery__shell {
        width: calc(100% - 30px) !important;
    }

    .furniture-gallery__heading h2 {
        font-size: 2rem;
    }

    .furniture-gallery__heading p {
        font-size: .9rem;
        line-height: 1.55;
    }

    .furniture-gallery__grid {
        grid-auto-rows: 172px;
        gap: 10px;
    }

    .furniture-gallery__card {
        border-radius: 17px;
    }

    .furniture-gallery__card:nth-child(1) {
        grid-row: span 2;
    }

    .furniture-gallery__caption {
        right: 13px;
        bottom: 12px;
        left: 13px;
    }

    .furniture-gallery__caption strong,
    .furniture-gallery__card--main .furniture-gallery__caption strong {
        font-size: .9rem;
    }

    .furniture-gallery__caption small {
        display: none;
    }

    .furniture-gallery__zoom {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .furniture-gallery__zoom::before {
        top: 8px;
        left: 8px;
    }

    .furniture-gallery__zoom::after {
        top: 22px;
        left: 21px;
    }

    .furniture-gallery__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .furniture-gallery__card img,
    .furniture-gallery__zoom,
    .furniture-gallery__footer a b {
        transition: none !important;
    }
}
