.photo-grid .gallery-photo-link { display: block; cursor: zoom-in; }
.photo-grid .gallery-photo-link picture { display: block; }
.photo-grid .gallery-photo-link:focus-visible { outline: 3px solid #45dfff; outline-offset: -3px; }

.gallery-photo-viewer {
    width: min(92vw, 1440px);
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto;
    padding: 0;
    border: 1px solid #39536e;
    border-radius: 16px;
    background: #07172e;
    color: #f4f8ff;
}
.gallery-photo-viewer::backdrop { background: rgba(2, 9, 22, .9); }
.gallery-photo-viewer figure { display: grid; margin: 0; }
.gallery-photo-viewer img { width: 100%; max-height: 77vh; max-height: 77dvh; object-fit: contain; }
.gallery-photo-viewer img:not([src]), .gallery-photo-viewer img[hidden] { display: none; }
.gallery-photo-viewer figcaption { padding: 14px 20px; font-size: 15px; }
.gallery-photo-viewer-close {
    position: sticky;
    top: 0;
    z-index: 1;
    display: block;
    margin: 8px 8px 8px auto;
    padding: 4px 12px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #67819c;
    color: white;
    background: #102b4a;
    font-size: 24px;
    cursor: pointer;
}
.gallery-photo-viewer a { color: #82dcff; text-decoration: underline; }

.gallery-photo-original { margin: 0; padding: 0 20px 14px; }
.video-feature .gallery-video-player, .video-card .gallery-video-player {
    position: relative;
    padding: 0;
}
.gallery-video-player video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.gallery-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid rgba(226, 247, 255, .65);
    border-radius: 999px;
    background: #07172e;
    color: #fff;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.gallery-video-play::before {
    content: "";
    border-block: 6px solid transparent;
    border-left: 10px solid #a4eaff;
}
.gallery-video-play[hidden] { display: none; }
.gallery-video-play:focus-visible { outline: 3px solid #45dfff; outline-offset: 3px; }
.gallery-video-preview { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; background: #000; }
.gallery-video-player [hidden] { display: none; }
