/* Preview Slider Styles */
.preview-slider {
    margin: 0 0 30px 0;
    width: 100%;
    display: none;
}

.preview-slider.has-images {
    display: block;
}

.slider-container {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    max-height: 400px;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .slider-container {
        min-height: 200px;
        max-height: 250px;
        aspect-ratio: 4/3;
    }
}

.slider-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.slider-image {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
}

.slider-image.active {
    display: flex;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

/* Hide arrows when only 1 image */
.slider-container.single-image .slider-arrow {
    display: none;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #333;
    transform: scale(1.3);
}

/* Hide dots when only 1 image */
.slider-container.single-image + .slider-dots {
    display: none;
}