/**
 * Content with Gallery Block Styles
 *
 * Minimal custom CSS - most styling done with Tailwind utilities
 * Only includes styles that cannot be achieved with Tailwind
 *
 * @package TrainingBytesize
 */

/* Slider wrapper - extends to right edge of screen on desktop */
@media (min-width: 992px) {
    .gallery-slider-wrapper {
        margin-right: calc(-50vw + 50%) !important;
    }
    
    /* Make scrolling gallery absolute positioned and span full height on desktop */
    .scrolling-gallery-wrapper {
        position: absolute !important;
        left: 0;
        right: 0;
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        margin-top: 0 !important;
    }
    
    /* Gallery column positioning - overlap section padding */
    .col-lg-6.lg\:absolute {
        top: -2rem !important;
        bottom: -2rem !important;
        height: calc(100% + 4rem) !important;
    }
    
    /* Adjust for different section heights */
    .py-12 .col-lg-6.lg\:absolute,
    .py-20 .col-lg-6.lg\:absolute {
        top: -3rem !important;
        bottom: -3rem !important;
        height: calc(100% + 6rem) !important;
    }
    
    .py-20 .col-lg-6.lg\:absolute,
    .py-32 .col-lg-6.lg\:absolute {
        top: -5rem !important;
        bottom: -5rem !important;
        height: calc(100% + 10rem) !important;
    }
    
    /* Full viewport height adjustments */
    .block-content-with-gallery.min-h-screen .col-lg-6.lg\:absolute {
        top: 50% !important;
        transform: translateY(-50%) !important;
        bottom: 0 !important;
        height: 100vh !important;
    }
}

/* Mobile - fixed height */
@media (max-width: 991px) {
    .scrolling-gallery-wrapper {
        height: 500px !important;
    }
}

/* Slick Slider Custom Dots - Cannot be done with Tailwind alone */
.gallery-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.gallery-slider .slick-dots li {
    margin: 0;
}

.gallery-slider .slick-dots button {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
}

.gallery-slider .slick-dots .slick-active button {
    background: currentColor;
    width: 2rem;
    border-radius: 1rem;
}
