/* Solenit Lightbox — shared */

img.js-solenit-lightbox {
    cursor: pointer;
}

.solenit-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    animation: solenitLbFadeIn 0.22s ease-out;
}
.solenit-lightbox.is-closing {
    animation: solenitLbFadeOut 0.18s ease-in forwards;
}
.solenit-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    animation: solenitLbFadeIn 0.25s ease-out 0.12s forwards;
}
.solenit-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}
.solenit-lightbox img {
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    cursor: default;
    transform-origin: center center;
    animation: solenitLbZoomIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.solenit-lightbox.is-closing img {
    animation: solenitLbZoomOut 0.18s ease-in forwards;
}

@keyframes solenitLbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes solenitLbFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes solenitLbZoomIn {
    from {
        opacity: 0;
        transform: scale(0.72);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes solenitLbZoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.88);
    }
}
