/* Fullwidth Image Carousel Styles */

.fullwidth-image-carousel {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
    padding-bottom: 112px;
    max-width: 100vw;
    overflow: hidden;
}

.fullwidth-image-carousel .carousel-container {
    width: 100%;
    margin: 0 auto;
}

/* Cursor styles for disabled drag on desktop */
@media (min-width: 769px) {
    .fullwidth-image-carousel .carousel-container[data-disable-desktop-drag="true"] .slick-list {
        cursor: default !important;
    }
    
    .fullwidth-image-carousel .carousel-container[data-disable-desktop-drag="true"] .slick-track {
        cursor: default !important;
    }
    
    .fullwidth-image-carousel .carousel-container[data-disable-desktop-drag="true"] .carousel-slide {
        cursor: default !important;
    }
}

/* Slide base styles */
.fullwidth-image-carousel .carousel-slide {
    position: relative;
    overflow: hidden;
    padding: 0 0.25rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Text slide styles */
.fullwidth-image-carousel .carousel-text {
    width: 100%;
    padding: 30px 2rem;
    box-sizing: border-box;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fullwidth-image-carousel .carousel-text.content-align-top {
    justify-content: flex-start;
}

.fullwidth-image-carousel .carousel-text.content-align-middle {
    justify-content: center;
}

.fullwidth-image-carousel .carousel-text.content-align-bottom {
    justify-content: flex-end;
}

.fullwidth-image-carousel .carousel-text .text-content {
    width: 100%;
    max-width: 30ch;
    margin: 0 auto;
}

.fullwidth-image-carousel .carousel-text h1,
.fullwidth-image-carousel .carousel-text h2,
.fullwidth-image-carousel .carousel-text h3,
.fullwidth-image-carousel .carousel-text h4 {
    margin-top: 0;
}

.fullwidth-image-carousel .carousel-text p:last-child {
    margin-bottom: 0;
}

/* Handle different image alignments */
.fullwidth-image-carousel .carousel-slide .image-align-top {
    align-self: flex-start;
    object-position: center top;
}

.fullwidth-image-carousel .carousel-slide .image-align-middle, .fullwidth-image-carousel .carousel-slide .image-align-midden{
    align-self: center;
    object-position: center center;
}

.fullwidth-image-carousel .carousel-slide .image-align-bottom {
    align-self: flex-end;
    object-position: center bottom;
}

/* Basic image styling */
.fullwidth-image-carousel .carousel-image {
    display: block;
    margin: 0 auto;
}

/* Auto sizing (default) */
.fullwidth-image-carousel .image-sizing-auto {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Fixed width sizing */
.fullwidth-image-carousel .image-sizing-fixed-width {
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

/* Fixed height sizing */
.fullwidth-image-carousel .image-sizing-fixed-height, .fullwidth-image-carousel .image-sizing-vaste {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Container classes for different sizing modes */
.fullwidth-image-carousel .carousel-container.image-align-top {
    align-items: flex-start;
}

.fullwidth-image-carousel .carousel-container.image-align-bottom {
    align-items: flex-end;
}

.fullwidth-image-carousel .carousel-container.image-sizing-fixed-height .carousel-slide, .fullwidth-image-carousel .image-sizing-vaste .carousel-slide {
    height: auto;
}

.fullwidth-image-carousel .carousel-container.image-sizing-fixed-width .carousel-slide {
    width: auto;
}

/* Override Slick defaults for a more modern look */
.fullwidth-image-carousel .slick-prev,
.fullwidth-image-carousel .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
    background-color: var(--wp--preset--color--light-neutral);
    border: 0px solid var(--wp--preset--color--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    /* Position arrows at the bottom with top margin */
    top: auto;
    bottom: 15px;
    transform: none;
    box-shadow: none;
}

.fullwidth-image-carousel .slick-prev:hover,
.fullwidth-image-carousel .slick-next:hover {
    background-color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--dark-neutral);
}

.fullwidth-image-carousel .slick-prev {
    left: calc(75% - 60px);
}

.fullwidth-image-carousel .slick-next {
    right: calc(25% - 60px);
}

.fullwidth-image-carousel .slick-prev:before,
.fullwidth-image-carousel .slick-next:before {
    content: '' !important;
    font-family: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    color: transparent !important;
    opacity: 1 !important;
}

/* Custom thin arrow styling */
.fullwidth-image-carousel .slick-prev:after,
.fullwidth-image-carousel .slick-next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--wp--preset--color--dark-neutral);
    border-right: 1px solid var(--wp--preset--color--dark-neutral);
    opacity: 1;
}

.fullwidth-image-carousel .slick-prev:after {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.fullwidth-image-carousel .slick-next:after {
    transform: translate(-70%, -50%) rotate(45deg);
}

/* Dots styling */
.fullwidth-image-carousel .slick-dots {
    bottom: -62px;
    z-index: 5;
}

.fullwidth-image-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--wp--preset--color--dark-neutral);
    opacity: 1;
}

.fullwidth-image-carousel .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--wp--preset--color--primary);
}

/* Ensure slides have proper spacing */
.fullwidth-image-carousel .slick-slide {
    margin: 0 0.25rem;
}

.fullwidth-image-carousel .slick-list {
    margin: 0 0.25rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .fullwidth-image-carousel .slick-prev,
    .fullwidth-image-carousel .slick-next {
        width: 40px;
        height: 40px;
        bottom: -82px;
        background-color: transparent;
        border: 1px solid var(--wp--preset--color--dark-neutral);
    }
    
    .fullwidth-image-carousel .slick-prev:before,
    .fullwidth-image-carousel .slick-next:before {
        font-size: 0 !important;
    }
    
    /* Mobile thin arrow adjustments */
    .fullwidth-image-carousel .slick-prev:after,
    .fullwidth-image-carousel .slick-next:after {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .fullwidth-image-carousel .slick-dots {
        bottom: 5px;
    }
    
    .fullwidth-image-carousel .carousel-text {
        padding: 20px;
    }
    
    .fullwidth-image-carousel {
        padding-bottom: 102px;
    }
}

/* Make sure no-images message is visible */
.fullwidth-image-carousel.no-images {
    padding: 20px;
    background-color: var(--wp--preset--color--light-neutral);
    border: 1px dashed var(--wp--preset--color--dark-neutral);
    text-align: center;
} 