/* The photo view of a site (site/features/lightbox.js): above everything
   the page puts over itself — the cart button, the cookie banner (the
   --site-z-* scale in templates/site/page.html.twig). Prefixed pgb- and
   sized in px, so a site's own CSS doesn't reach in. */

.pgb-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--site-z-lightbox, 10000);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
    background: rgba(15, 23, 42, 0.92);
    cursor: zoom-out;
}
.pgb-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
    cursor: default;
}
.pgb-lightbox-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font:
        22px / 1 system-ui,
        sans-serif;
    cursor: pointer;
}
.pgb-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}
.pgb-lightbox-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.pgb-lightbox-close {
    top: 16px;
    right: 16px;
}
.pgb-lightbox-prev,
.pgb-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}
.pgb-lightbox-prev {
    left: 16px;
}
.pgb-lightbox-next {
    right: 16px;
}
.pgb-lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font:
        13px / 1 system-ui,
        sans-serif;
}
/* The page behind it doesn't scroll */
html.pgb-lightbox-open {
    overflow: hidden;
}

/* On a phone the photo has the width, the arrows go below it */
@media (max-width: 767px) {
    .pgb-lightbox {
        padding: 64px 12px 76px;
    }
    .pgb-lightbox-prev,
    .pgb-lightbox-next {
        top: auto;
        bottom: 12px;
        transform: none;
    }
}
