.image-lightbox-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.image-lightbox {
    width: min(1040px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #203044;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .38);
}

.image-lightbox::backdrop {
    background: rgba(12, 23, 34, .78);
}

.image-lightbox__surface {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 2rem);
}

.image-lightbox__header,
.image-lightbox__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
}

.image-lightbox__header {
    border-bottom: 1px solid #dbe4ec;
}

.image-lightbox__footer {
    min-height: 45px;
    border-top: 1px solid #dbe4ec;
    color: #667585;
    font-size: .85rem;
}

.image-lightbox__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.image-lightbox__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #eef3f7;
    color: #203044;
    font-size: 1.6rem;
    line-height: 1;
}

.image-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(68vh, 660px);
    padding: 1rem 3.5rem;
    overflow: hidden;
    background: #f5f8fa;
}

.image-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    object-fit: contain;
}

.image-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(15, 29, 42, .78);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.image-lightbox__nav--previous { left: .75rem; }
.image-lightbox__nav--next { right: .75rem; }

.image-lightbox__nav[hidden] {
    display: none;
}

.image-lightbox button:focus-visible {
    outline: 3px solid #48a7d7;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .image-lightbox {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .image-lightbox__surface { max-height: calc(100vh - 1rem); }
    .image-lightbox__stage { min-height: 60vh; padding-inline: 2.75rem; }
    .image-lightbox__nav { width: 36px; height: 36px; }
    .image-lightbox__nav--previous { left: .35rem; }
    .image-lightbox__nav--next { right: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .image-lightbox { scroll-behavior: auto; }
}
