/**
 * Featured Slider Block
 * 
 * Styles for a simple image gallery slider.
 * Uses Slick carousel for smooth image transitions.
 */

/* ==========================================================================
   Block Container
   ========================================================================== */

.featured-slider-block {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.featured-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* When inside a column - match sibling content height */
.wp-block-columns:has(.featured-slider-block) {
    align-items: stretch !important;
}

.wp-block-column:has(> .featured-slider-block) {
    position: relative;
}

.wp-block-column > .featured-slider-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Slider
   ========================================================================== */

.featured-slider {
    width: 100%;
    height: 100%;
    margin-bottom: 0!important;
}

.featured-slider .featured-slide {
    width: 100%;
    height: 100%;
}

.featured-slider .featured-slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.featured-slider .slick-slide {
    outline: none;
    height: inherit !important;
}

.featured-slider .slick-slide > div {
    height: 100% !important;
}

.featured-slider .slick-list {
    height: 100% !important;
}

.featured-slider .slick-track {
    height: 100% !important;
    display: flex !important;
}

/* ==========================================================================
   Navigation Dots
   ========================================================================== */

.featured-slider-nav {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 10;
}

.featured-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-slider-dots .slick-dots {
    position: static;
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.featured-slider-dots .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.featured-slider-dots .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 0;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.featured-slider-dots .slick-dots li button::before {
    display: none;
}

.featured-slider-dots .slick-dots li.slick-active button {
    background: #fff;
}

.featured-slider-dots .slick-dots li button:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Placeholder (Editor)
   ========================================================================== */

.featured-slider-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: var(--color-light-gray, #E5E4E9);
    border: 2px dashed var(--color-mid-gray, #78738D);
}

.featured-slider-placeholder p {
    font-size: 16px;
    color: var(--color-mid-gray, #78738D);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .featured-slider-nav {
        bottom: 20px;
    }

    .featured-slider-dots .slick-dots li button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .featured-slider-nav {
        bottom: 15px;
    }

    .featured-slider-dots .slick-dots {
        gap: 8px;
    }
}
