/* Custom Image Slider Styles */
.custom-slider-container {
    position: relative;
    max-width: 100%; /* Adjust as needed, e.g., 800px */
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #f0f0f0; /* Placeholder background */
    min-height: 200px; /* Minimum height so it doesn't collapse if height is 'auto' and images load slow */
}

.custom-slider-container[style*="height"] {
    display: flex; /* For vertical centering if height is fixed */
    align-items: center; /* For vertical centering if height is fixed */
}


.custom-slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.custom-slider-slide {
    display: none;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
    position: absolute; /* For fade effect, all slides occupy same space */
    top: 0;
    left: 0;
}

.custom-slider-slide.active {
    display: block;
    opacity: 1;
    position: relative; /* For active slide to take space */
}

.custom-slider-slide img {
    display: block;
    width: 100%;
    height: 100%; /* Makes image fill the slide container height */
    object-fit: cover; /* Or 'contain' depending on desired effect */
    margin: 0 auto; /* Center image if it's not full width */
}

/* Navigation Buttons */
.custom-slider-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 12px 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.custom-slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.custom-slider-prev {
    left: 10px;
    border-radius: 0 3px 3px 0;
}

.custom-slider-next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

/* Dots Navigation */
.custom-slider-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.custom-slider-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-slider-dot.active,
.custom-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0,0,0,0.5);
}

/* Hide nav if only one image */
.custom-slider-container[data-slide-count="1"] .custom-slider-nav,
.custom-slider-container[data-slide-count="1"] .custom-slider-dots {
    display: none;
}