.fotov-lightbox[hidden] { display: none !important; }
.fotov-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; color: #fff; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fotov-lightbox-backdrop { position: absolute; inset: 0; background: rgba(12,13,17,.88); }
.fotov-lightbox-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(1100px, 92vw); max-height: calc(100vh - 48px); }
.fotov-lightbox-media { display: block; max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 20px 70px rgba(0,0,0,.45); animation: fotov-lightbox-in .25s ease-out both; }
.fotov-lightbox-control { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: 28px/1 system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(12px); }
.fotov-lightbox-control:hover { background: rgba(255,255,255,.22); }
.fotov-lightbox-close { top: 20px; right: 20px; }
.fotov-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.fotov-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.fotov-lightbox-counter { position: absolute; z-index: 2; top: 24px; left: 24px; color: rgba(255,255,255,.7); font-size: 13px; font-variant-numeric: tabular-nums; }
.fotov-lightbox-open { overflow: hidden; }
@keyframes fotov-lightbox-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fotov-lightbox-media { animation: none; } }
