/* The standard show page (single-voorstelling.php), for a show without a
   design of its own: credits, photos that open the lightbox, and the fixed
   block falling into the foyer, as on the designed pages. The lightbox below
   is shared by every show page. */

/* A show's own design may run photos and props to the edge of the screen,
   never past it (a wider page would scroll sideways). */
.show-design {
    overflow-x: clip;
}

/* Credits, under the description: one line, the names in the house ink. */
.credits {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--line);
    font-size: var(--text-sm);
    color: var(--smoke);
}

.credits strong {
    font-weight: 600;
    color: var(--ink);
}

.show-standard-all {
    margin-top: var(--space-lg);
}

.show-standard-all:empty {
    display: none;
}

/* The mosaic photos open the lightbox. */
button.mosaic-img {
    display: block;
    padding: 0;
    cursor: zoom-in;
}

button.mosaic-img:not(.mosaic-img--2) {
    border: 0;
}

button.mosaic-img img {
    transition: transform 0.6s ease;
}

button.mosaic-img:hover img {
    transform: scale(1.03);
}

/* The fixed block ends the paper act and falls into the review. */
.show-standard .act--paper {
    padding-bottom: 0;
}

.show-standard-info {
    position: relative;
    z-index: 1;
    margin-bottom: calc(-1 * var(--space-2xl));
}

.show-standard-info .show-info {
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.18);
    border-top: 4px solid var(--gold);
}

.show-standard + .foyer {
    padding-top: calc(var(--space-2xl) + var(--space-lg));
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 0.95);
}

.lightbox-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* Previous and next, and the count: hidden for a single photo. */
.lightbox-step {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 3rem;
    height: 3rem;
    margin-top: -1.5rem;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 50%;
    background: rgb(0 0 0 / 0.4);
    color: var(--paper);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

.lightbox-step:hover {
    background: var(--paper);
    color: var(--ink);
}

.lightbox-prev {
    left: var(--gutter);
}

.lightbox-next {
    right: var(--gutter);
}

.lightbox-count {
    position: absolute;
    bottom: var(--space-sm);
    left: 0;
    right: 0;
    margin: 0;
    color: var(--muted-on-ink);
    font-size: var(--text-sm);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lightbox-modal--single .lightbox-step,
.lightbox-modal--single .lightbox-count {
    display: none;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--paper);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: bold;
    transition: opacity var(--duration-normal) ease;
    cursor: pointer;
    z-index: 10000;
}

/* White, also with the focus it gets when the lightbox opens; the keyboard
   still gets the focus ring. */
.lightbox-close:hover {
    opacity: 0.7;
}
