.mges-slider,
.mges-slider * {
    box-sizing: border-box;
}

.mges-slider {
    --mges-pink: #e91e73;
    position: relative;
    width: 100%;
    height: 620px;
    min-height: 320px;
    overflow: hidden;
    background: #fff4f7;
}

.mges-viewport,
.mges-track {
    width: 100%;
    height: 100%;
}

.mges-viewport {
    overflow: hidden;
}

.mges-track {
    display: flex;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.mges-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff4f7;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.mges-slide::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: none;
}


.mges-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.mges-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.mges-video-direct {
    object-fit: cover;
    object-position: center center;
}

.mges-video-embed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77777778vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.mges-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 70px 70px 70px 100px;
}

.mges-content-inner {
    width: 100%;
    max-width: 620px;
}

.mges-title {
    margin: 0 0 24px;
    color: #2b2b2b;
    font-size: clamp(42px, 5vw, 82px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.045em;
}

.mges-description {
    margin: 0 0 30px;
    color: #59545a;
    font-size: clamp(16px, 1.5vw, 24px);
    line-height: 1.45;
}

.mges-description > :first-child {
    margin-top: 0;
}

.mges-description > :last-child {
    margin-bottom: 0;
}

.mges-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 15px 28px;
    border: 0;
    border-radius: 4px;
    background: var(--mges-pink);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .02em;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.mges-button:hover,
.mges-button:focus {
    transform: translateY(-1px);
    background: #c81760;
    color: #fff;
}

.mges-button:focus-visible,
.mges-arrow:focus-visible,
.mges-dot:focus-visible {
    outline: 3px solid rgba(233, 30, 115, .28);
    outline-offset: 3px;
}

.mges-slider > .mges-arrow {
    position: absolute !important;
    z-index: 30 !important;
    top: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.88);
    color: #2b2b2b;
    box-shadow: 0 8px 25px rgba(60, 30, 45, .12);
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    appearance: none;
    -webkit-appearance: none;
    transform: translateY(-50%);
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}

.mges-slider > .mges-arrow:hover {
    transform: translateY(-50%) scale(1.05);
}

.mges-slider > .mges-arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mges-prev {
    left: 20px;
}

.mges-next {
    right: 20px;
}

.mges-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(-50%);
}

.mges-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.72);
    box-shadow: 0 1px 5px rgba(0,0,0,.12);
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, transform .2s ease, background-color .2s ease;
}

.mges-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--mges-pink);
}

.mges-empty {
    padding: 22px;
    border: 1px dashed #e6cbd5;
    border-radius: 10px;
    background: #fff8fb;
    color: #665c61;
    text-align: center;
}

@media (max-width: 1024px) {
    .mges-slider {
        height: 540px;
    }

    .mges-content {
        padding: 60px;
    }

    .mges-content-inner {
        max-width: 52%;
    }
}

@media (max-width: 767px) {
    .mges-slider {
        height: 620px;
    }

    .mges-slide {
        background-position: center top;
    }


    .mges-content {
        justify-content: flex-end;
        padding: 36px 26px 62px;
    }

    .mges-content-inner {
        max-width: 100%;
    }

    .mges-title {
        font-size: clamp(34px, 11vw, 54px);
    }

    .mges-description {
        font-size: 16px;
    }

    .mges-arrow {
        top: 44%;
        width: 38px;
        height: 38px;
    }

    .mges-prev {
        left: 12px;
    }

    .mges-next {
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mges-track,
    .mges-button,
    .mges-arrow,
    .mges-dot {
        transition: none !important;
    }
}
