.dw-cf-carousel {
    --dw-cf-main-gutter: clamp(16px, 7.5vw, 150px);
    --dw-cf-edge: 216px;

    position: relative;
    display: grid;
    padding-block: 125px;
    /* A forgó dekor grafika (45°-nál) oldalra ne nyújtsa meg az oldalt; függőlegesen kilóghat */
    overflow-x: clip;
    margin-inline: max(0px, calc(var(--dw-cf-edge) - var(--dw-cf-main-gutter)));
}

.dw-cf-slide {
    position: relative;
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgb(106 228 226 / 10%) -30.98%, rgba(217, 217, 217, 0.05) 88.1%);
    border-radius: 25px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 600ms ease, visibility 0s linear 600ms;
}

.dw-cf-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 600ms ease, visibility 0s linear 0s;
}

.dw-cf-slide__cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.dw-cf-slide__media,
.dw-cf-slide__text {
    flex: 1 1 0;
    min-width: 0;
}

.dw-cf-slide__media {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dekor grafika: a kép kb. 1,5-szöröse (90% vs 60%), középre igazítva, a kártyán túllóghat. */
.dw-cf-slide__decor {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 90%;
    max-width: 672px;
    aspect-ratio: 672 / 675;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) rotate(var(--dw-cf-rotation, 0deg));
    transition: transform 0.3s ease;
    pointer-events: none;
}

.dw-cf-slide__image {
    display: block;
    width: 60%;
    height: auto;
}

.dw-cf-slide__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.dw-cf-slide__title {
    margin: 0;
    font-family: var(--dw-bebas-neue) !important;
    font-size: 6rem;
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: normal;
    color: #fff;
}

.dw-cf-slide__subtitle {
    margin: 0;
    font-family: var(--dw-montserrat) !important;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.dw-cf-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.dw-cf-dot {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #858585;
    cursor: pointer;
}

.dw-cf-dot.is-active {
    background: #fff;
}

@media (max-width: 1440px) {
    .dw-cf-carousel {
        --dw-cf-edge: 116px;
    }
}

@media (max-width: 1000px) {
    .dw-cf-carousel {
        --dw-cf-edge: 66px;
        padding-block: 100px;
    }

    .dw-cf-slide__text {
        gap: 12px;
    }

    .dw-cf-slide__title {
        font-size: 3rem;
    }

    .dw-cf-slide__subtitle {
        font-size: 1.3rem;
    }
}

/* 768px alatt nincs hely egymás mellett: kép felül, szöveg alatta, középre igazítva */
@media (max-width: 767px) {
    .dw-cf-carousel {
        padding-block: 80px;
    }

    .dw-cf-slide {
        flex-direction: column;
        gap: 70px;
        padding-block: 40px;
    }

    .dw-cf-slide__media,
    .dw-cf-slide__text {
        flex: 0 0 auto;
        width: 100%;
    }

    .dw-cf-slide__text {
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dw-cf-slide,
    .dw-cf-slide.is-active,
    .dw-cf-slide__decor {
        transition: none;
    }
}