/**
 * Image Slider Block Styles
 */

.rosemann-image-slider-block {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    max-width: none;
}

.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    max-width: 100%;
}

/* Slider Heights */
.image-slider[data-slider-height="small"] {
    height: 300px;
}

.image-slider[data-slider-height="medium"] {
    height: 500px;
}

.image-slider[data-slider-height="large"] {
    height: 700px;
}

.image-slider[data-slider-height="full"] {
    height: 100vh;
    max-height: 900px;
}
@media screen and (max-width: 768px) {
    .image-slider[data-slider-height="full"] {
        max-height: 700px;
    }
}
@media screen and (max-width: 600px) {
    .image-slider[data-slider-height="full"] {
        max-height: 540px;
    }
}

/* Container */
.image-slider__container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.image-slider__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;
}

.image-slider__slide.active {
    opacity: 1;
    z-index: 1;
}

/* Images */
.image-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Captions */
.image-slider__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
}

.image-slider__caption p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

/* Navigation Arrows */
.image-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

.image-slider__nav:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}
.image-slider__nav:focus {
    background: rgba(1, 1, 1, 1);
}
.image-slider__nav:hover svg path {
    stroke: #111;
}
.image-slider__nav:focus svg path {
    stroke: #fff;
}

.image-slider__nav--prev {
    left: 20px;
}

.image-slider__nav--next {
    right: 20px;
}

.image-slider__nav svg {
    width: 40px;
    height: 40px;
}

/* Pause Button */
button.image-slider__pause {
    position: absolute !important;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6) !important;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    padding: 5px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white !important;
}

.image-slider__pause:focus {
	background: rgba(0, 0, 0, 1) !important;
    transform: scale(1.1);
}
.image-slider__pause:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1);
}

.image-slider__pause svg {
    width: 20px;
    height: 20px;
}

.image-slider__pause.paused svg {
    /* Show play icon when paused */
    display: none;
}

.image-slider__pause.paused::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid currentColor;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-slider[data-slider-height="small"] {
        height: 200px;
    }
    
    .image-slider[data-slider-height="medium"] {
        height: 300px;
    }
    
    .image-slider[data-slider-height="large"] {
        height: 400px;
    }
    
    .image-slider__nav {
        width: 40px;
        height: 40px;
    }
    
    .image-slider__nav--prev {
        left: 10px;
    }
    
    .image-slider__nav--next {
        right: 10px;
    }
    
    .image-slider__caption {
        padding: 15px;
    }
    
    .image-slider__caption p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .image-slider[data-slider-height="small"] {
        height: 150px;
    }
    
    .image-slider[data-slider-height="medium"] {
        height: 200px;
    }
    
    .image-slider[data-slider-height="large"] {
        height: 250px;
    }
    
    .image-slider__nav {
        width: 35px;
        height: 35px;
    }
    
    .image-slider__nav svg {
        width: 32px;
        height: 32px;
    }
    
    .image-slider__pause {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .image-slider__pause svg {
        width: 18px;
        height: 18px;
    }
}

/* Loading State */
.image-slider.loading {
    opacity: 0.7;
}

/* Fade transition for slides */
.image-slider__slide {
    transition: opacity 0.5s ease-in-out;
}

/* Accessibility */
.image-slider__nav:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Hide navigation when only one slide */
.image-slider:has(.image-slider__slide:only-child) .image-slider__nav {
    display: none;
} 