#gallery-modal, .gallery-nav, .gallery-nav:focus, .gallery-nav:active, #gallery-modal-content, #gallery-close { -webkit-tap-highlight-color: transparent; /* Disable blue highlight on Android/iOS/Chrome/Safari */ outline: none; /* Disable outline on click/focus */ } @property --play-progress { syntax: ''; inherits: false; initial-value: 0deg; } /* Gallery Modal Styles */ #gallery-modal { display: none; /* Hidden by default */ position: fixed; z-index: 3000; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0,0,0,1); justify-content: center; align-items: center; cursor: pointer; } #gallery-modal-content{ max-width: 95%; max-height: 95vh; object-fit: contain; margin: auto; display: block; cursor: pointer; } /* Close Button positioning */ #gallery-close { position: fixed; top: 20px; right: 20px; font-size: 24px; color: #fff; cursor: pointer; z-index: 100; background: transparent; border: none; padding: 0; margin: 0; } /* Loader for gallery */ #loader-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 9999; /* Ensure it's on top */ pointer-events: none; /* Allow interacting with close button while loader shows */ } #gallery-loader { border: 8px solid #f3f3f3; border-top: 8px solid #525252; border-radius: 50%; width: 30px; height: 30px; animation: spin 3s linear infinite; } /* Keyframes for spinner animation */ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .gallery-nav { position: fixed; top: 50%; transform: translateY(-50%); font-size: 3rem; color: white; background: rgba(0,0,0,0.1); border: none; padding: 1rem; cursor: pointer; z-index: 10; } .gallery-prev { left: 20px; } .gallery-next { right: 20px; } #gallery-info { position: fixed; top: 20px; left: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 120; font-size: 1rem; } #gallery-info.loading { opacity: 0.65; } #gallery-exif { position: fixed; top: 60px; left: 20px; background: rgba(0, 0, 0, 0.82); color: #fff; padding: 0.75rem 0.85rem; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); max-width: 320px; max-height: 50vh; overflow: auto; display: none; z-index: 120; } #gallery-exif.open { display: block; } .exif-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; margin-bottom: 6px; line-height: 1.3; } .exif-row:last-child { margin-bottom: 0; } .exif-key { font-weight: 600; color: #e5e5e5; } .exif-value { text-align: right; color: #fff; } .exif-placeholder { font-style: italic; color: #d0d0d0; } #gallery-filename { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(0, 0, 0, 0.55); padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.95rem; max-width: 90%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 20; pointer-events: none; } #gallery-play { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 120; font-size: 1.2rem; --autoplay-duration: 5s; --play-progress: 0deg; overflow: visible; } #gallery-play.playing::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient( rgba(255, 255, 255, 0.9) 0deg, rgba(255, 255, 255, 0.9) var(--play-progress, 0deg), rgba(255, 255, 255, 0.2) var(--play-progress, 0deg), rgba(255, 255, 255, 0.2) 360deg ); mask: radial-gradient(circle at center, transparent 60%, #000 70%); animation: none; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); } #gallery-play.playing.playing-anim::after { animation: gallery-play-fill var(--autoplay-duration) linear forwards; } @keyframes gallery-play-fill { from { --play-progress: 0deg; } to { --play-progress: 360deg; } }