.block-logo-carousel .logo-carousel--intro {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.block-logo-carousel .logo-carousel--slider {
    margin-top: 3rem;
}

.block-logo-carousel .logo-carousel--slide {
    padding: 0 1.5rem;
}

.block-logo-carousel .logo-carousel--slide picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-logo-carousel .logo-carousel--slide picture img {
    max-height: 130px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.block-logo-carousel .slick-track {
    display: flex;
    align-items: center;
}

/* Dot navigation */
.block-logo-carousel .slick-dots {
    margin-top: 3rem;
    position: relative;
    bottom: auto;
}

.block-logo-carousel .slick-dots li button:before {
    color: currentColor;
    opacity: 0.35;
    font-size: 8px;
}

.block-logo-carousel .slick-dots li button .slick-dot-icon:before {
    font-size: 11px !important;
}

.block-logo-carousel .slick-dots li.slick-active button:before {
    color: currentColor;
    opacity: 1;
}

/* Dark text - dark dots */
.block-logo-carousel.text-dark .slick-dots li button .slick-dot-icon {
    color: #121213 !important;
    opacity: 0.35 !important;
}
.block-logo-carousel.text-dark .slick-dots li.slick-active button .slick-dot-icon {
    color: #121213 !important;
    opacity: 1 !important;
}

/* White text - white dots */
.block-logo-carousel.text-white .slick-dots li button .slick-dot-icon {
    color: #ffffff !important;
    opacity: 0.35 !important;
}
.block-logo-carousel.text-white .slick-dots li.slick-active button .slick-dot-icon {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Arrows */
.block-logo-carousel .slide-arrow {
    z-index: 1;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.block-logo-carousel .slide-arrow--prev {
    left: -1rem;
}

.block-logo-carousel .slide-arrow--next {
    right: -1rem;
}

.block-logo-carousel .slide-arrow svg {
    display: block;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 100%;
    box-sizing: border-box;
}

/* Arrow colours - controlled by text colour selection */
.block-logo-carousel .slide-arrow svg {
    background: none;
}

.block-logo-carousel.text-dark .slide-arrow {
    color: #0d0d0d;
}

.block-logo-carousel.text-white .slide-arrow {
    color: #ffffff;
}

/* Editor preview - display logos as a grid (Slick doesn't run in the editor) */
.wp-block[data-type="acf/logo-carousel"] .js-logo-carousel {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.wp-block[data-type="acf/logo-carousel"] .js-logo-carousel .logo-carousel--slide {
    width: 100% !important;
    float: none !important;
}
