/* Full-screen image viewer (see assets/js/lightbox.js). */
.mt-zoom {
    position: relative;
    /* Above the card's full-area link overlay (.mt-card__link::after). */
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    color: inherit;
}
.mt-zoom img { display: block; }
.mt-zoom--round { width: auto; height: auto; flex: 0 0 auto; border-radius: 50%; }
.mt-zoom:focus-visible { outline: 3px solid #cc3b77; outline-offset: 2px; }
/* Magnifier hint on the larger detail images only. */
.mt-profile__portrait .mt-zoom::after,
figure > .mt-zoom::after,
.mp-event-opening .mt-zoom::after {
    content: "";
    position: absolute;
    right: 6%;
    bottom: 6%;
    /* Scales with the image: a fixed 34px hint covered most of the ~65px
       poster thumbnail on phones. */
    width: clamp(18px, 20%, 34px);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(24, 14, 30, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 55% no-repeat;
    opacity: .85;
    transition: opacity .2s;
    pointer-events: none;
}
.mt-zoom:hover::after { opacity: 1; }
.mp-event-opening .mt-zoom::after { bottom: 2.1rem; }

.mt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: rgba(14, 8, 18, .94);
    color: #fff;
    animation: mt-lightbox-in .18s ease-out;
}
.mt-lightbox[hidden] { display: none; }
.mt-lightbox__stage {
    /* Flex, not grid: a percentage max-height on a grid item resolves against
       its auto-sized track and let tall posters overflow the screen. */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 3.5rem 4.5rem .5rem;
}
.mt-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    user-select: none;
}
.mt-lightbox__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -21px 0 0 -21px;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    animation: mt-lightbox-spin .8s linear infinite;
    transition: opacity .2s .15s;
}
.mt-lightbox.is-loading .mt-lightbox__spinner { opacity: 1; }
.mt-lightbox__footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: baseline;
    padding: .6rem 1.25rem 1.1rem;
    text-align: center;
}
.mt-lightbox__caption { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.mt-lightbox__counter { font-size: .8rem; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.mt-lightbox__close,
.mt-lightbox__nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.mt-lightbox__close:hover,
.mt-lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.mt-lightbox__close:focus-visible,
.mt-lightbox__nav:focus-visible { outline: 3px solid #e994b3; outline-offset: 2px; }
.mt-lightbox__close { top: .75rem; right: .75rem; }
.mt-lightbox__nav { top: 50%; transform: translateY(-50%); }
.mt-lightbox__nav--prev { left: .75rem; }
.mt-lightbox__nav--next { right: .75rem; }
.mt-lightbox__nav[hidden] { display: none; }

@media (max-width: 767px) {
    .mt-lightbox__stage { padding: 3.5rem .5rem .25rem; }
    .mt-lightbox__nav { top: auto; bottom: .55rem; transform: none; width: 44px; height: 44px; }
    .mt-lightbox__footer { padding-inline: 3.75rem; }
}

@keyframes mt-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-lightbox-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .mt-lightbox { animation: none; }
    .mt-lightbox__spinner { animation-duration: 2s; }
}
