/* Image Viewer Overlay */ #image-viewer-overlay { position: fixed; top: 105px; right: 0; width: 33%; /* Occupies the right space for the viewer */ height: calc(100% - 105px); /* Adjust height */ z-index: 999; display: none; /* Initially hidden */ /* Added transition for opening animation */ /* transform: translateX(100%); transition: transform 0.3s ease-in-out; */ } /* Image Viewer Container */ #image-viewer { position: fixed; top: 105px; right: 0; width: 33%; /* Match the width of the overlay */ height: calc(100% - 105px); /* Adjust height */ background: var(--search-bg); padding: 20px; box-sizing: border-box; overflow-y: auto; text-align: center; border-left: 1px solid var(--border); scroll-behavior: smooth; } /* Viewer Image */ #viewer-image { max-width: 100%; max-height: 60vh; } /* Viewer Title */ #viewer-title { font-size: 18px; color: var(--text-color); margin-bottom: 10px; } /* Viewer Source Button */ #viewer-source-button { color: var(--link); text-decoration: none; font-size: 16px; } /* Image Viewer Close and Navigation Buttons */ .image-view-close { position: absolute; top: 5px; right: 10px; display: flex; flex-direction: row; align-items: center; gap: 5px; /* Add spacing between buttons */ } .image-view-close .btn-nostyle { background-color: inherit; border: none; padding: 0px; cursor: pointer; } #viewer-close-button, #viewer-prev-button, #viewer-next-button { color: var(--text-color); font-size: 36px; cursor: pointer; user-select: none; } /* Hide and Show Classes */ .image_hide { display: none !important; } .image_show { display: block !important; } /* Adjust the images container when the viewer is hidden */ .images_viewer_hidden { margin-right: 1.2% !important; } /* Adjust the images container when the viewer is visible */ .images { margin-right: 33%; /* Reserve space for the image viewer */ } /* Clickable Elements */ .clickable { cursor: pointer; } /* Viewer Image Link */ #viewer-image-link { text-decoration: none; color: var(--link); } /* View Image Container */ #viewer-image-container { background-color: var(--view-image-color); width: 100%; height: auto; display: flex; justify-content: center; align-items: center; margin-top: 50px; } /* Full Size and Proxy Size Links */ .full-size, .proxy-size { margin: 10px; color: var(--link); text-decoration: none; font-size: 16px; } .full-size:hover, .proxy-size:hover { text-decoration: underline; } /* Icon Visibility */ .icon_visibility { visibility: visible; } /* Button No Style */ .btn-nostyle { background-color: inherit; border: none; padding: 0px; width: fit-content; cursor: pointer; } /* Image Navigation Icons */ .image-close, .image-next, .image-before { margin-left: -1px; border-radius: 50%; padding: 5px; color: var(--search-button); font-weight: normal; } .image-close { margin-right: 10px; } .image-close:hover, .image-next:hover, .image-before:hover { background-color: var(--image-select); } /* Responsive Design */ @media only screen and (max-width: 750px) { #image-viewer { width: 100%; height: 77%; margin-top: -33px; margin-right: 0%; border-top-right-radius: 0px; border-top-left-radius: 0px; } #viewer-image { max-height: 250px; } .images { margin-right: 0; /* No reserved space on smaller screens */ } }