.product-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-image-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--cream-100);
    color: inherit;
    line-height: 0;
    text-align: left;
    cursor: zoom-in;
}

.product-image-trigger picture,
.product-image-trigger img {
    width: 100%;
}

.product-image-trigger img {
    transition: transform .28s ease;
}

.product-image-trigger:hover img {
    transform: scale(1.018);
}

.product-image-trigger:focus-visible {
    outline: 4px solid var(--orange-500);
    outline-offset: -4px;
}

.product-image-trigger__hint {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(16, 43, 25, .92);
    color: var(--white);
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .03em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 19, 10, .9);
    backdrop-filter: blur(6px);
}

.image-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1200px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-md);
    background: #0c2112;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.image-lightbox__frame {
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
}

.image-lightbox__frame picture {
    display: grid;
    width: 100%;
    min-height: 0;
    place-items: center;
}

.image-lightbox__frame img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 132px);
    object-fit: contain;
}

.image-lightbox__caption {
    min-height: 60px;
    margin: 0;
    padding: 17px 72px 17px 22px;
    background: var(--white);
    color: var(--forest-950);
    font-size: .9rem;
    font-weight: 800;
}

.image-lightbox__close {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--forest-950);
    color: var(--white);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox__close:hover {
    background: var(--orange-500);
    color: var(--forest-950);
}

body.is-image-lightbox-open {
    overflow: hidden;
}

@media (max-width: 920px) {
    .product-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .product-grid--featured {
        grid-template-columns: 1fr;
    }

    .product-image-trigger__hint {
        min-height: 34px;
        padding: 6px 10px;
    }

    .image-lightbox {
        padding: 10px;
    }

    .image-lightbox__dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: var(--radius-sm);
    }

    .image-lightbox__frame img {
        max-height: calc(100dvh - 104px);
    }

    .image-lightbox__caption {
        min-height: 58px;
        padding: 16px 66px 16px 16px;
        font-size: .84rem;
    }

    .image-lightbox__close {
        right: 8px;
        bottom: 7px;
    }
}
