/* Media Slider - Smartstore module */
.media-slider-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Edge-to-edge: break out of .container / .container-fluid horizontal padding */
.media-slider-wrapper.media-slider-full-bleed {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

@media (min-width: 1500px) {
    .media-slider-wrapper.media-slider-full-bleed {
        width: 100%;
        max-width: 1500px;
        left: auto;
        transform: none;
        margin-left: auto;
        margin-right: auto;
    }
}

.media-slider-wrapper.media-slider-full-bleed .carousel {
    border-radius: 0;
}

.media-slider-wrapper .carousel {
    background: #000;
}

.media-slider-wrapper .carousel-inner {
    /* Responsive height: scales with viewport width, clamped between 250px and max setting */
    height: clamp(250px, 33vw, var(--slider-max-height, 500px));
}

.media-slider-wrapper .carousel-item {
    position: relative;
    height: 100%;
}

.media-slider-wrapper .carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.media-slider-wrapper .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.media-slider-wrapper .video-container iframe,
.media-slider-wrapper .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-slider-wrapper .video-container iframe {
    border: none;
}

.media-slider-wrapper .video-container video {
    object-fit: cover;
}

.media-slider-wrapper .carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 90%;
}

.media-slider-wrapper .carousel-caption h3 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.media-slider-wrapper .carousel-caption p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.media-slider-wrapper .carousel-control-prev,
.media-slider-wrapper .carousel-control-next {
    width: 5%;
    min-width: 44px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.media-slider-wrapper .carousel-control-prev:hover,
.media-slider-wrapper .carousel-control-next:hover {
    opacity: 1;
}

.media-slider-wrapper .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 6px;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .media-slider-wrapper .carousel-caption {
        padding: 0.5rem 1rem;
    }

    .media-slider-wrapper .carousel-caption h3 {
        font-size: 1.1rem;
    }

    .media-slider-wrapper .carousel-caption p {
        font-size: 0.85rem;
    }

    .media-slider-wrapper .carousel-control-prev,
    .media-slider-wrapper .carousel-control-next {
        min-width: 36px;
    }
}
