/* GLOBAL PRODUCT IMAGE LIGHTBOX */

.zoom-image {
    display: block;
    position: relative;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: zoom-in;
    width: 100%;
    font-family: inherit;
}

.zoom-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 14px 40px #0006;
}

.zoom-label {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.6px;
    text-align: center;
}

.zoom-image:hover .zoom-label {
    color: var(--accent);
}

.image-lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    color: #ddd;
    max-width: none;
    max-height: none;
    overflow: visible;
    margin: auto;
}

.image-lightbox::backdrop {
    background: rgba(3, 4, 5, .86);
    backdrop-filter: blur(7px);
}

.image-lightbox-content {
    position: relative;
    animation: image-zoom-in .25s ease-out;
}

.image-lightbox img {
    display: block;
    max-width: 85vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #494b4e;
    border-radius: 5px;
    box-shadow: 0 25px 100px #000c;
}

.lightbox-close {
    position: absolute;
    top: -13px;
    right: -13px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #646464;
    background: #25272a;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

@keyframes image-zoom-in {
    from {
        opacity: 0;
        transform: scale(.90);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox-content {
        animation: none;
    }
}
