/* Photos window: clickable cards + the enlarged viewer (js/lightbox.js) */
.photo-card { position: relative; cursor: zoom-in; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; outline-offset: 2px; }
.photo-card:focus-visible { outline: 2px solid #0a84ff; }
.photo-card img, .photo-card video { -webkit-user-drag: none; }
.photo-card .photo-play { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding-left: 2px; pointer-events: none; }
.photos-hint { background: #141414; border-top: 0.5px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); font-size: 11px; text-align: center; }
.photos-hint span { display: block; padding: 7px 10px; }
.photos-hint span:empty { display: none; }
.photos-hint .hint-touch { display: none; }
@media (hover: none) {
    .photos-hint .hint-mouse { display: none; }
    .photos-hint .hint-touch { display: block; }
}

#lightbox {
    position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: calc(56px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(64px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
    touch-action: none;
}
#lightbox[hidden] { display: none !important; }
#lightbox .lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
#lightbox .lb-stage img, #lightbox .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); background: #000; }
#lightbox .lb-close, #lightbox .lb-nav {
    position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0.5px solid rgba(255,255,255,0.2);
    background: rgba(40,40,40,0.75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
#lightbox .lb-close:hover, #lightbox .lb-nav:hover { background: rgba(80,80,80,0.9); }
#lightbox .lb-close:focus-visible, #lightbox .lb-nav:focus-visible { outline: 2px solid #0a84ff; }
#lightbox .lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); font-size: 30px; }
#lightbox .lb-nav[hidden] { display: none; }
#lightbox .lb-prev { left: calc(8px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: calc(8px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
#lightbox .lb-caption { position: absolute; left: 70px; right: 70px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
@media (max-width: 640px) {
    #lightbox .lb-nav { width: 38px; height: 38px; font-size: 22px; }
    #lightbox .lb-caption { left: 54px; right: 54px; }
}
