.carousel-container {
    max-width: 600px;
    background-color: transparent;
    overflow: hidden;
}

.main-carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.thumbnails-container {
    display: flex;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 6px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    opacity: 0.6;
}

.thumbnail:last-child {
    margin-right: 0;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border-color: #3498db;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-carousel {
        height: 300px;
    }

    .thumbnails-container {
        padding: 10px 0;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }
}
