/*
 * Production gallery lightbox (public/js/gallery.js). Only .lightbox* classes are styled here,
 * so the static production page renders exactly as before.
 */
.lightbox-open,
.lightbox-open body {
    overflow: hidden;
}

.lightbox {
    align-items: center;
    background-color: rgba(0, 0, 0, .92);
    box-sizing: border-box;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 64px 72px;
    position: fixed;
    z-index: 10000;
}

.lightbox[hidden] {
    display: none;
}

/* all.css sets img { display: block; width: 100% }; the popup image keeps its own proportions. */
.lightbox .lightbox-image {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    user-select: none;
    width: auto;
}

.lightbox-counter {
    color: #fff;
    font-family: Montserrat, Arial, serif;
    font-size: 14px;
    font-weight: 500;
    left: 16px;
    line-height: 48px;
    margin: 0;
    position: absolute;
    top: 12px;
}

.lightbox-button {
    align-items: center;
    background-color: rgba(0, 0, 0, .5);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 40px;
    height: 48px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 4px;
    position: absolute;
    width: 48px;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
    background-color: rgba(200, 175, 132, .35);
}

.lightbox-button:focus-visible {
    outline: 2px solid #c8af84;
    outline-offset: 2px;
}

.lightbox-close {
    font-size: 34px;
    right: 12px;
    top: 12px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

@media screen and (max-width: 600px) {
    .lightbox {
        padding: 72px 8px;
    }

    .lightbox-prev,
    .lightbox-next {
        bottom: 12px;
        top: auto;
        transform: none;
    }
}
