/* Slideshow and Hero Section Styles */

/* Slideshow Styles - Full-width slideshow with fixed height and overflow hidden */
/* Edge-to-edge on all screen sizes using negative margins to break out of container */
.slideshow {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 750px; /* Increased height for desktop */
    overflow: hidden;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Slides Container - Relative positioning for slide images */
.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Images - Absolute positioning with full coverage, opacity transition, and object positioning */
/* Default: object-fit cover for edge-to-edge cropping on desktop */
.slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* First Slide Visibility - Sets the first slide to be visible by default */
.slides img:first-child {
    opacity: 1;
}

/* Slideshow Overlay - Adds a gradient overlay for better text readability */
.slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive adjustments for mobile devices */
/* Fixed height on mobile to ensure visibility */
@media (max-width: 768px) {
    .slideshow {
        height: 550px; /* Increased height for mobile */
    }

    .slides img {
        object-fit: cover; /* Keep cover for edge-to-edge but ensure visibility */
        object-position: center; /* Center the image */
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .slideshow {
        height: 600px; /* Increased height for tablets */
    }
}
