body {
    font-family: 'Aldus Roman';
    background-color: white;
    color: black;
    margin: 0;
    overflow: hidden;
    display: flex; 
    justify-content: center; /* Center the gallery container */ 
}

.content {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: space-around; /* Distribute space around items */

}

.watermark2 {
    width: 64px;
    height: 77px;
    position: absolute;
    bottom: -17px;
    margin-right: -12px;
    background-size: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("../images/HMsign2.png");
    display: block;
}


.controller-container {
    position: fixed; /* Position it fixed so it stays in place */
    right: 5px; /* Distance from the right edge */
    top: 50%; /* Vertically center it */
    transform: translateY(-50%); /* Center it vertically */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: right;
    max-height: 250px;
    max-width: 125px;
}

#speed-value {
    font-family: 'Aldus Roman';
    font-size: 0.75rem;
    position: center;
    right: 15%;
    transform: translateX(42.5%) translateY(-150%) rotate(90deg); /* Keep the speed label horizontal */
}

#speed-control {
    width: 200px;
    -webkit-appearance: none;
    appearance: none;
    height: 1.5px; /* horizontal bar thickness */
    background: #000000;
    color: black;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 5px;
    border-color: black;
    margin-bottom: 20px; /* Add some space for the label */
    transform: rotate(270deg); /* Rotate the slider to be vertical */
}

#speed-control:hover {
    opacity: 1;
}

#speed-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px; /* Make the thumb smaller */
    height: 6px; /* Make the thumb smaller */
    border-radius: 50%;
    border-color: black;
    color: black;
    background: #000000;
    cursor: pointer;
}

#speed-control::-moz-range-thumb {
    width: 6px; /* Make the thumb smaller */
    height: 6px; /* Make the thumb smaller */
    border-radius: 50%;
    border-color: black;
    color: black;
    background: #000000;
    cursor: pointer;
}

.max-speed {
    position: absolute;
    bottom: -50px; /* Move it further down */
    left: 50%;
    transform: translateX(-50%); /* Keep the max-speed label horizontal */
}

.adjust-speed {
    position: absolute;
    top: 0; /* Position it above the slider */
    right:50%;
    transform: translateX(50%) translateY(-50%) rotate(+180deg); /* Rotate and position the adjust-speed label */
    font-family: 'Aldus Roman';
    font-size: 8px;
}




#gallery-container {
    width: 90vw;
    height: calc(100vh - 100px); /* Adjust height to leave space for the footer */
    position: center;
}

.embla {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.embla__container {
    display: flex;
    height: 100%;
}

.embla__slide {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.embla__slide img {
    max-width: 100%;
    max-height: 97%;
    object-fit: contain;
}

.caption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1em;
    text-align: center;
}

.watermark {
    position: absolute;
    bottom: -8px;
    left: center;
    width: 70px;
    opacity: 1;
    z-index: 1;
}


.footer {
    font-family: 'Aldus Roman';
    width: 100vw;
    text-align: center;
    padding: 8px;
    background-color: white;
    font-family: 'Aldus Roman', Arial, sans-serif;
    position: absolute;
    bottom: 10px;
    left: 0;
}

.footer a {
    font-family: 'Aldus Roman';
    margin: 0 15px;
    color: black;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
}

.designer {
    margin-top: 10px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    #gallery-container {
        display: none;
    }

    #mobile-warning {
        display: block;
    }
}

#mobile-warning {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 1.5em;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}