#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 */ } /* 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: 10; 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 */ } #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; }