.gallery[data-image-gallery] a[data-gallery] { cursor: zoom-in; }
.gallery[data-image-gallery] a[data-gallery]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}
.image-lightbox {
    box-sizing: border-box;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 72px 88px;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
.image-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.image-lightbox::backdrop { background: rgb(8 18 13 / 90%); }
.image-lightbox [hidden] { display: none !important; }
.image-lightbox__image {
    width: auto;
    height: auto;
    max-width: min(1440px, calc(100vw - 176px));
    max-height: calc(100dvh - 144px);
    object-fit: contain;
    border-radius: var(--app-border-radius-small, 8px);
}
.image-lightbox__control {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    color: inherit;
    cursor: pointer;
}
.image-lightbox__control:hover { background: rgb(255 255 255 / 22%); }
.image-lightbox__control:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
.image-lightbox__control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.image-lightbox__close { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.image-lightbox__prev, .image-lightbox__next { top: calc(50% - 24px); }
.image-lightbox__prev { left: 20px; }
.image-lightbox__next { right: 20px; }
.image-lightbox__caption { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 80px; right: 80px; margin: 0; text-align: center; color: #fff; font-size: 16px; line-height: 1.5; }
.image-lightbox__status { margin: 0; color: #fff; font-size: 16px; text-align: center; }
@media (max-width: 576px) {
    .image-lightbox { padding: 80px 16px 100px; }
    .image-lightbox__image { max-width: calc(100vw - 32px); max-height: calc(100dvh - 180px); }
    .image-lightbox__prev, .image-lightbox__next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
    .image-lightbox__prev { left: 16px; }
    .image-lightbox__next { right: 16px; }
    .image-lightbox__caption { bottom: max(28px, env(safe-area-inset-bottom)); }
}
