[data-edl-photo-gallery] a:has(img), .systab-elika-photos a:has(img) { cursor: zoom-in; }
.edl-photo-zoom {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border: 0;
    background: #101b28;
    color: #fff;
    overflow: hidden;
    font-family: system-ui, sans-serif;
}
.edl-photo-zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.edl-photo-zoom::backdrop { background: rgba(10, 15, 22, .94); }
.edl-photo-zoom *, .edl-photo-zoom *::before, .edl-photo-zoom *::after { box-sizing: border-box; }
.edl-photo-zoom__toolbar { display: flex; gap: 12px; align-items: center; }
.edl-photo-zoom__counter { margin-right: auto; white-space: nowrap; font-size: 16px; }
.edl-photo-zoom button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #7d8b9b;
    border-radius: 8px;
    background: #233449;
    color: #fff;
    font: 600 16px/1.3 system-ui, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}
.edl-photo-zoom button:hover { background: #3a506c; }
.edl-photo-zoom button:focus-visible { outline: 3px solid #9bd5ff; outline-offset: 3px; }
.edl-photo-zoom button:disabled { opacity: .5; cursor: default; }
.edl-photo-zoom__stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.edl-photo-zoom .edl-photo-zoom__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    cursor: zoom-in;
}
.edl-photo-zoom__stage.is-zoomed { display: block; }
.edl-photo-zoom .is-zoomed .edl-photo-zoom__image { max-width: none; max-height: none; cursor: zoom-out; }
.edl-photo-zoom__footer { display: flex; align-items: center; gap: 14px; }
.edl-photo-zoom__caption { flex: 1; margin: 0; color: #eef4fb; text-align: center; font-size: 15px; line-height: 1.45; }
@media (max-width: 480px) {
    .edl-photo-zoom[open] { gap: 8px; }
    .edl-photo-zoom__footer { gap: 8px; }
    .edl-photo-zoom__caption { font-size: 14px; }
}
