/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    /* 10px to create consistent spacing with photo-credits across all sections */
}

.carousel-slides-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Height will be set by JS based on active slide, or we can use aspect-ratio if consistent */
    background-color: #0d0d0d;
    /* Match site bg */
}

/* Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
    display: none;
    /* Hide non-active slides completely to prevent layout issues if not absolute */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    position: relative;
    /* Active slide dictates height */
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* or contain, depending on preference. Live site uses fill/cover behavior */
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to image if needed, but buttons need pointer-events: auto */
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.carousel-btn {
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.12);
    /* Matches live site */
    border: none;
    cursor: pointer;
    padding: 15px 10px;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Thumbnails Strip */
.carousel-thumbnails {
    margin-top: 10px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    /* For scrollbar spacing if visible */
    /* Hide scrollbar for cleaner look */
    scrollbar-width: thin;
    scrollbar-color: #333 #0d0d0d;
}

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

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background-color: #333;
}

.carousel-thumbnail {
    display: inline-block;
    height: 80px;
    /* Matches live site */
    width: auto;
    cursor: pointer;
    margin-right: 1px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    object-fit: cover;
}

.carousel-thumbnail:hover {
    opacity: 0.8;
}

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