.slideshow {
    display: flex;
    align-items: flex-start;
    font-family: sans-serif;
    align-items: center;
    justify-content: center;
    padding-left: calc(220px / 2);
}

.slideshow-container {
    width: 45%;
    max-width: 1200px;
    min-width: 250px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(255 255 255 / 0.03), -5px -5px 10px rgba(255 255 255 / 0.05);
    /*background: linear-gradient(145deg, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.5));*/
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    aspect-ratio: 16 / 9;
    perspective: 1500px;
    margin: 0.5rem;
}

.media-display {
    width: 100%;
    overflow: hidden;
    border-radius: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotateX(2deg);
    transition: transform 0.5s ease-out;
    background-color: #d3e9ef;
    flex-grow: 1;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.slideshow-container:hover .media-display {
    transform: rotateX(-2deg);
}

.media-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.media-content > * {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: #99f;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 2rem;
    opacity: 0;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, color 0.3s ease,  background-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    z-index: 2;
}

.slideshow-container:hover .nav-button {
    opacity: 0.7;
}

.nav-button:hover {
    color: #333;
    opacity: 1;
    box-shadow: 2px 2px 5px rgba(255, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.7);
}

.nav-button i {
    font-size: 2rem;
    color: currentColor;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.media-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    min-width: 10%;
    max-width: 200px;
    max-height: 100%;
    padding: 25px 0;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 0.1rem;
}

@media (max-width: 900px) {
    .slideshow {
        padding-left: 0px !important;
    }

    .nav-button {
        padding: 2px 5px !important;
        font-size: 1rem !important;
    }

    .nav-button i {
        font-size: 1rem !important;
    }

    .fullscreen-button,
    .bottom-play-pause-button,
    .progress-play-pause {
        padding: 5px !important;
    }

    .fullscreen-button i,
    .bottom-play-pause-button i,
    .progress-play-pause i {
        font-size: 0.8rem !important;
    }

    .thumbnail {
        width: 60px !important;
        height: 35px !important;
    }

    .current-time,.duration {
        display: none;
    }
}

.thumbnail {
    width: 100px;
    height: 55px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.thumbnail:hover,
.thumbnail.active {
    transform: scale(1.05);
    box-shadow: 2px 2px 5px rgba(255, 0, 0, 0.15);
}

.thumbnail img,
.thumbnail video,
.thumbnail svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fullscreen-button,
.bottom-play-pause-button,
.progress-play-pause {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #99f;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.slideshow-container:hover .fullscreen-button,
.slideshow-container:hover .bottom-play-pause-button,
.slideshow-container:hover .progress-play-pause {
    opacity: 0.7;
}

.fullscreen-button:hover,
.bottom-play-pause-button:hover,
.progress-play-pause:hover {
    color: #333;
    opacity: 1;
    box-shadow: 2px 2px 5px rgba(255, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.fullscreen-button i,
.bottom-play-pause-button i,
.progress-play-pause i {
    font-size: 1.5rem;
    color: currentColor;
}

.fullscreen-button {
    font-size: 0.7rem;
    justify-content: center;
    align-items: center;
    right: 10px;
}

.bottom-play-pause-button {
    left: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
}

.progress-play-pause {
    position: relative;
    bottom: auto;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.slideshow-container.fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    z-index: 1001;
    flex-direction: column;
    background-color: #fff;
}

.slideshow-container.fullscreen .media-display {
    width: 100%;
    height: 70%;
    border-radius: 0;
    aspect-ratio: auto;
    border-radius: 0;
    transform: rotateX(0deg);
}

.slideshow-container.fullscreen .media-selector-container {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 30%;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.slideshow-container.fullscreen .thumbnail {
    margin: 0 5px;
}

.controls-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.1);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-container:hover .controls-container {
    opacity: 1;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0 3px;
    position: relative;
}

.current-time,
.duration {
    font-size: 0.8em;
    color: #ddd;
    min-width: 55px;
    text-align: center;
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 5px;
    outline: none;
    margin: 0 5px;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #eee;
    cursor: pointer;
    border-radius: 50%;
}

.progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #eee;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.controls-container .fullscreen-button {
    position: relative;
    right: 0;
    bottom: auto;
    margin-left: 5px;
    max-width: fit-content;
}

.volume-control-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-container:hover .volume-control-container {
    opacity: 0.7;
}

.volume-control-container:hover {
    opacity: 1;
}

.volume-icon-button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #99f;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.volume-icon-button:hover {
    color: #333;
    opacity: 1;
    box-shadow: 2px 2px 5px rgba(255, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.volume-icon-button i {
    font-size: 1.5rem;
    color: currentColor;
}

.volume-slider-container {
    display: none;
    margin-right: 5px;
}

.volume-control-container:hover .volume-slider-container {
    display: flex;
}

.volume-slider {
    width: 80px;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 5px;
    outline: none;
    margin: 0 5px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #eee;
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #eee;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}