/* Slideshow Container */
.wp-block-elt--slideshow {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    max-width: none !important;
}

/* Editor-specific: use 100% to avoid breaking Gutenberg */
.editor-styles-wrapper .wp-block-elt--slideshow,
.block-editor-block-list__layout .wp-block-elt--slideshow {
    width: 100%;
    left: 0;
    transform: none;
}

.elt--slideshow {
    position: relative;
    width: 100vw;
    overflow: hidden;
}

.editor-styles-wrapper .elt--slideshow,
.block-editor-block-list__layout .elt--slideshow {
    width: 100%;
}

.elt--slideshow-slides {
    position: relative;
    width: 100vw;
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.editor-styles-wrapper .elt--slideshow-slides,
.block-editor-block-list__layout .elt--slideshow-slides {
    width: 100%;
}

/* Individual Slide */
.elt--slideshow-slide {
    position: relative;
    width: 100vw;
    min-height: 720px;
    flex: 0 0 100vw;
    overflow: hidden;
}

.editor-styles-wrapper .elt--slideshow-slide,
.block-editor-block-list__layout .elt--slideshow-slide {
    width: 100%;
    flex: 0 0 100%;
}

/* Background (Image or Video) */
.elt--slideshow-background {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    transform: translateX(-50%);
    z-index: 1;
}

.editor-styles-wrapper .elt--slideshow-background,
.block-editor-block-list__layout .elt--slideshow-background {
    width: 100%;
    left: 0;
    transform: none;
}

.elt--slideshow-background::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.elt--slideshow-background--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.elt--slideshow-background--video {
    overflow: hidden;
}

.elt--slideshow-background--video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.elt--slideshow-background--video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    pointer-events: none;
    min-width: 100%;
    min-height: 100%;
}

/* Content Wrapper */

.elt--slideshow-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 720px;
    padding: 60px 0;
    padding-left: 32px;
    padding-right: 32px;
    height: 100%;
}

.elt--slideshow-content {
    text-align: left;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.elt--container-slideshow-item {
    width: 100%;
}

.elt--slideshow-cta {
    text-shadow:none !important;
    margin-top: 32px;
    font-family: 'Roboto';
    font-size: 14px;
    display: inline-block;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #fff;
    background-color: transparent;
}

.elt--slideshow-cta__text {
    text-shadow:none !important;
    display: inline-block;
    color: inherit;
    text-transform: uppercase;
}

.elt--slideshow-cta__text:after {
    content: '';
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 8px;
    background-image: url('data:image/svg+xml,%3Csvg width="15" height="8" viewBox="0 0 15 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_3_99)"%3E%3Cpath d="M0.5 3.49997C0.223858 3.49997 0 3.72383 0 3.99997C0 4.27611 0.223858 4.49997 0.5 4.49997V3.49997ZM14.8536 4.35352C15.0488 4.15826 15.0488 3.84168 14.8536 3.64642L11.6716 0.46444C11.4763 0.269178 11.1597 0.269178 10.9645 0.46444C10.7692 0.659702 10.7692 0.976285 10.9645 1.17154L13.7929 3.99997L10.9645 6.8284C10.7692 7.02366 10.7692 7.34024 10.9645 7.5355C11.1597 7.73077 11.4763 7.73077 11.6716 7.5355L14.8536 4.35352ZM0.5 4.49997H14.5V3.49997H0.5V4.49997Z" fill="%23FAFAFA"/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id="clip0_3_99"%3E%3Crect width="15" height="8" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*transition: width 0.3s ease, background-image 0.3s ease;*/
}

.elt--slideshow-cta:hover {
    text-shadow:none !important;
    border-color: #fff;
    background-color: #fff;
    text-decoration: none;
}

.elt--slideshow-cta:hover .elt--slideshow-cta__text {
    text-shadow:none !important;
    color: transparent;
    background-image: linear-gradient(279deg, #0E7AB2 44%, #07034F 91.72%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elt--slideshow-cta:hover .elt--slideshow-cta__text:after {
    width: 27px;
    background-image: url('data:image/svg+xml,%3Csvg width="27" height="8" viewBox="0 0 27 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_3_112)"%3E%3Cpath d="M1 3.49997C0.723858 3.49997 0.5 3.72383 0.5 3.99997C0.5 4.27611 0.723858 4.49997 1 4.49997V3.49997ZM26.3536 4.35352C26.5488 4.15826 26.5488 3.84168 26.3536 3.64642L23.1716 0.46444C22.9763 0.269178 22.6597 0.269178 22.4645 0.46444C22.2692 0.659702 22.2692 0.976285 22.4645 1.17154L25.2929 3.99997L22.4645 6.8284C22.2692 7.02366 22.2692 7.34024 22.4645 7.5355C22.6597 7.73077 22.9763 7.73077 23.1716 7.5355L26.3536 4.35352ZM1 4.49997H26V3.49997H1V4.49997Z" fill="%2300C4E8"/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id="clip0_3_112"%3E%3Crect width="27" height="8" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E');
}


/* Navigation Dots */
.elt--slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.elt--slideshow-dot {
    width: 50px;
    height: 8px;
    border-radius: 16px;
    background: linear-gradient(90deg, #FFFF 0%, #FFFF 100%);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.elt--slideshow-dot:hover {
    transition: background 0.3s ease;
    background: linear-gradient(90deg, #e6e6e6 0%, #e6e6e6 100%);
}

.elt--slideshow-dot.active {
    transition: background 0.3s ease;
    background: linear-gradient(90deg, #27D6BA 0%, #00C4E8 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .elt--slideshow-slide {
        min-height: 400px;
    }

    .elt--slideshow-content-wrapper {
        min-height: 400px;
        padding: 40px 0;
    }

}

@media (max-width: 576px) {
    .elt--slideshow-slide {
        min-height: 300px;
    }

    .elt--slideshow-content-wrapper {
        min-height: 300px;
        padding: 30px 0;
        padding-bottom: 50px;
        padding-top: 10px;
    }


    .elt--slideshow-cta {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 600px) {
    .wp-block-elt--slideshow .h1-elt {
        font-size: 40px;
    }
    .wp-block-elt--slideshow .subtitle-elt {
        font-size: 18px;
    }    
}

@media only screen and (max-width: 992px) {
    .wp-block-elt--slideshow .elt--slideshow-content-wrapper {
        padding-left: 32px;
        padding-right: 32px;
    }
}