/* boat-gallery.css */
.boat-carousel {
    position: relative;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

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

.carousel-button {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    font-family: 'ETmodules';
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    border-radius: 50px;
    transition: background-color 0.2s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.thumbnail-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.thumbnail {
    flex: 0 0 100px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    scroll-snap-align: start;
    line-height: 0;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid #007bff;
}

.thumbnail img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

/* Customize scrollbar for thumbnail track */
.thumbnail-track::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.thumbnail-track::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.thumbnail-track::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Make thumbnails larger on wider screens */
@media (min-width: 768px) {
    .thumbnail {
        flex: 0 0 120px;
    }
    
    .thumbnail img {
        width: 120px;
        height: 90px;
    }
}