﻿/**
 * SimpleTix Carousel Base Styles
 */

/* === Carousel Container === */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
}

/* === Media Container === */
.media-carousel {
    display: flex;
    transition: transform 0.6s ease;
    opacity: 0;
}

.media-carousel.ready {
    opacity: 1;
}

/* === Each Slide === */
.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

/* === Controls (Prev + Dots + Next) === */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

/* Navigation buttons */
button.prev,
button.next {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

button.prev::before {
    content: "❮";
}

button.next::before {
    content: "❯";
}

button.prev span,
button.next span,
button.prev i,
button.next i {
    display: none !important;
}

/* === Dots === */
.dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dots span {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dots span:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.dots .active {
    background-color: #fff;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .carousel-controls {
        bottom: 12px;
        gap: 6px;
    }
}
