* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.carousel-container {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
}

.my-carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.my-carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

.my-carousel-item img,
.youtube-preview {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

@media (min-width: 992px) {
    .my-carousel-item img,
    .youtube-preview {
        max-width: 600px;
        margin: 0 auto;
    }
}

.youtube-preview {
    cursor: pointer;
    background-size: cover;
    background-position: center;
    position: relative;
}

.youtube-preview::after {
    font-family: 'Font Awesome 6 Free';
    content: '\f144';
    font-size: 60px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15%;
    padding: 10px 10px 10px 10px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    justify-content: center;
}

.thumbnail {
    cursor: pointer;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid transparent;
    padding-bottom: 25px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.thumbnail.active img {
    border-color: #00447c;
}

.my-zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10550;
    overflow: auto;
}

.zoom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    margin-top: 5%;
}

.zoom-image,
.zoom-video {
    width: 800px !important;
    height: auto;
    max-width: 100% !important;
    max-height: calc(100vh - 150px) !important; /* Leaves space for thumbnails */
    transition: opacity 0.5s ease;
    opacity: 0;
}
.zoom-video {
    width: 80vw; /* Matches the width constraints of zoomed images */
    height: 80vh; /* Matches height constraints */
    max-width: 100%;
    max-height: calc(100vh - 150px); /* Leaves space for thumbnails below */
    object-fit: contain; /* Ensures the video is fully visible within bounds */
    border: none; /* Removes iframe border for a clean look */
    transition: opacity 0.5s ease;
    opacity: 0;
}
.zoom-image.show,
.zoom-video.show {
    opacity: 1;
}

.zoom-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 0;
    width: 100%;
    overflow-x: auto; /* Allows horizontal scrolling if there are many thumbnails */
}

.zoom-thumbnails .thumbnail {
    width: 60px;
    height: 60px;
    overflow: hidden;
    cursor: pointer;
}

.zoom-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.my-close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    cursor: pointer;
    background-color: #013e79;
}

.my-close-zoom i {
    color: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    background-color: #013e79;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 35px;
    height: 35px;
}

.carousel-arrow i {
    color: #fff;
}

.carousel-arrow.left,.zoom-arrow.left {
    left: 10px;
}

.carousel-arrow.right, .zoom-arrow.right {
    right: 10px;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.zoom-arrow {
    padding: 15px;
    cursor: pointer;
    border: none;
    background-color: #013e79;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.zoom-arrow i {
    color: #fff;
}

.zoom-arrow.left {
    left: 40px;
}

.zoom-arrow.right {
    right: 40px;
}
