        body {
            margin: 0;
            overflow: hidden;
            position: relative;
        }

        #slideshow-container {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            position: relative;
            overflow: hidden;
            cursor: crosshair;
        }

        #slideshow-container.hide-cursor,
        #slideshow-container.hide-cursor img {
          cursor: none !important;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            cursor: grab;
            touch-action: none;
        }

        .navigation, #return {
            position: fixed;
            z-index: 2;
            cursor: pointer;
            padding: 15px;
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 1.2em;
            transition: background-color 0.3s ease, opacity 0.5s ease-in-out;
        }

        
        #backward {
            left: 20px;
        }

        #forward {
            right: 20px;
        }

        .controls {
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
            position: fixed;
            z-index: 2;
            /* NOTE: no padding, no background here */
        }

        /* style the buttons inside the controls the same as zoom buttons */
        .controls .button {
            cursor: pointer;
            padding: 20px 25px;            /* visual padding is here on the button, not the container */
            background-color: rgba(51, 51, 51, 0.7);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 1.2em;
            transition: background-color 0.3s ease, opacity 0.5s ease-in-out;
        }

        /* hover/active for those buttons */
        .controls .button:hover { background-color: rgba(85, 85, 85, 0.7); }
        .controls .button:active { background-color: rgba(119, 119, 119, 0.7); }

        /* small tweak if you had smaller padding for pause/restart earlier */
        #pause, #restart { padding: 13px 18px; font-size: 1.3em; }

        #return {
            top: 20px;
            left: 20px;
        }

        #counter {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.5em;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 10px 20px;
            border-radius: 10px;
            z-index: 3;
        }

        .zoom-controls {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
        }

        .button {
            padding: 10px 15px;
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1.2em;
            transition: background-color 0.3s ease;
        }

        .button:hover {
            background-color: #555;
        }

        .button:active {
            background-color: #777;
        }

        #zoom-in, #zoom-out, #reset-zoom {
            padding: 10px 15px;
        }

        #restart {
            margin-left: 10px;
        }

        @media (max-width: 768px) {
            .navigation, .controls, #return, .zoom-controls .button {
                padding: 10px;
                font-size: 1em;
            }

            .controls {
                bottom: 10px;
                gap: 10px;
            }

            .zoom-controls {
                top: 10px;
                right: 10px;
                gap: 5px;
            }

            #pause, #restart {
                padding: 5px 10px;
            }

            #zoom-in, #zoom-out, #reset-zoom {
                padding: 5px 10px;
            }

            #counter {
                top: 10px;
                font-size: 1em;
                padding: 5px 10px;
            }

            #backward {
                left: 10px;
            }

            #forward {
                right: 10px;
            }

            #return {
                top: 10px;
                left: 10px;
            }

            #slideshow-img {
              transition: opacity 0.5s ease-in-out;
              opacity: 0;
            }

            #slideshow-img.visible {
              opacity: 1;
            }

        }

.slideshow-button.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slideshow-button.visible {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}


        /* Loading Screen */

	#loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: black;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            flex-direction: column;
        }

        #loading-message {
            color: white;
            font-size: 1.25em;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        #spinner {
            width: 20px;
            height: 20px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-top: 5px solid white;
            border-radius: 50%;
            animation: spin 1.25s cubic-bezier(0, 0, 0, 0) infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            50% { transform: rotate(720deg); }
            100% { transform: rotate(1080deg); }
        }

        #progress-bar-container {
            width: 80%;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            overflow: hidden;
        }

        #progress-bar {
            width: 0;
            height: 30px;
            background-color: green;
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        #progress-text {
            margin-top: 20px;
            color: white;
            font-size: 4em;
        }

	#loading-dots span {
    	    display: inline-block;
            animation: bounce 1.4s infinite;
    	}

        #loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
    	}

    	#loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
    	}

    	@keyframes bounce {
    	    0%, 20%, 50%, 80%, 100% {
            	transform: translateY(0);
    	}
    	    40% {
        	transform: translateY(-10px);
        }
    	    60% {
        	transform: translateY(-5px);
        }
     }
