/* Horizontal Slider Gallery Styles - Slide3 (Fixed Height) */
.c-slider3-container {
    width: 100%;
    position: relative;
}


/* Slider Container */
.c-slider3 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slides Container - All images in one row */
.c-slider3-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: max-content; /* Width based on all images */
    gap: 0.5rem; /* Gap between images - rem is relative to root font size, not viewport */
}

/* Individual Slide - Each image is a slide */
.c-slider3-slide {
    flex: 0 0 auto; /* Auto width based on image aspect ratio */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center; /* Vertical center alignment */
    justify-content: center; /* Horizontal center alignment */
}

/* Image Items in Slide - Not needed anymore, slide = item */
.c-slider3-item {
    flex: 0 0 auto; /* Auto width based on aspect ratio */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center; /* Vertical center alignment */
    justify-content: center; /* Horizontal center alignment */
}

.c-slider3-item:hover .c-slider3-image {
    transform: scale(1.05);
}

.c-slider3-image {
    width: auto; /* Auto width based on aspect ratio */
    height: 500px; /* Fixed height - will be configurable */
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
    opacity: 0;
}

.c-slider3-image.c-loaded {
    opacity: 1;
}

/* Image Placeholder */
.c-slider3-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Match fixed height */
}

.c-slider3-loader {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #666666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Container */
.c-slider3-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 20px;
}

/* Navigation Arrows */
.c-slider3-nav {
    color: black;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dots Navigation */
.c-slider3-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.c-slider3-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.c-slider3-dot.c-active {
    background: #000;
}

.c-slider3-dot:hover {
    background: #666;
}

/* Responsive Height - Under 600px viewport */
@media (max-width: 600px) {
    /* Height will be dynamically set to 60% by JavaScript */
    .c-slider3-image.c-responsive-height {
        /* Height set by JS */
    }

    .c-slider3-placeholder.c-responsive-height {
        /* Height set by JS */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .c-slider3-navigation {
        gap: 15px;
    }

    .c-slider3-nav {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

/* Mobile - Single Image View */
@media (max-width: 480px) {
    /* Remove conflicting gap and padding rules for slides */
    /* Gap is controlled by .c-slider3-slides container only */

    .c-slider3-gallery-title {
        font-size: 1.5rem;
    }
}

/* Slider gallery uses same lightbox styles from lightbox.css */
/* Additional styling for slider lightbox thumbnails to match original gallery */
#c-slider3-lightbox .c-lightbox-thumbnail {
    object-fit: cover;
    width: 60px;
    height: 60px;
}
