@charset "UTF-8";

/* Grid Layout
   ========================================================================== */
.mdr-image-slider {
    
    display: grid;
    grid-template-areas: "title"
                         "txt"
                         "swiper"
                         "nav"
                         "cta";
    
    grid-row-gap: 30px;
    grid-column-gap: 0px;
    
    justify-items: flex-start;
    
    padding: var(--mdr--padding-vertical) var(--mdr--padding-horizontal);
}

.mdr-image-slider__title {
    grid-area: title;
}

.mdr-image-slider__text {
    grid-area: txt;
}

.mdr-image-slider__swiper {
    grid-area: swiper;
    width: 100%;
    
    
    width: calc(100% + 2 * var(--mdr--padding-horizontal));
    margin-left: calc(-1 * var(--mdr--padding-horizontal));
}
.mdr-image-slider__swiper-nav {
    grid-area: nav;
}


.mdr-image-slider__mepage-mobile {
    grid-area: cta;
}



@media screen and (min-width: 768px) {
    .mdr-image-slider {
        grid-template-areas: "title"
                             "txt"
                             "cta"
                             "swiper"
                             "nav";
        grid-template-rows: auto auto auto 496px auto;
        grid-row-gap: 40px;
    }
}

@media screen and (min-width: 992px) {
    .mdr-image-slider {
        grid-template-areas: ".      title  ."
                             ".      txt    ."
                             ".      cta    ."
                             "swiper swiper swiper"
                             ".      nav      nav";
        grid-template-columns: 1fr auto 1fr;
    }
    .mdr-image-slider__title,
    .mdr-image-slider__text {
        max-width: 891px;
    }
}

@media screen and (min-width: 1441px) {
.mdr-image-slider{
    grid-template-areas:
        ".      title  ."
        ".      txt    ."
        ".      cta    ."
        "swiper swiper swiper"
        ".      nav    nav";
    grid-template-columns: 1fr auto 1fr;
    grid-column-gap: 0px;
}
}

/* Other
   ========================================================================== */

.mdr-image-slider__text {
    line-height: 1.4em;
}
.mdr-image-slider__swiper .swiper-wrapper.locked {
    margin-left: var(--mdr--padding-horizontal);
    width: calc(100% - 2 * var(--mdr--padding-horizontal));
}
.mdr-image-slider__swiper-nav.locked {
    display: none;
}
.mdr-image-slider__swiper {
    max-height: 375px;
}
.mdr-image-slider__swiper-slide {
    margin-bottom: 0px;
    aspect-ratio: 290 / 403;
}
.mdr-image-slider__swiper-slide__img {
    width: 100%;
    height: 100%;
    /*aspect-ratio: 313 / 285;*/
    max-height: 100%;
    border-radius: 10px;
}
.mdr-image-slider__swiper-slide__caption {
    position: absolute;
    inset: auto 20px 20px 20px;
    color: var(--mdr--pure-white);
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
   
.mdr-image-slider__swiper-nav {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}

.mdr-image-slider__pagination {
    display: flex;
    width: 50px;
    flex-flow: row nowrap;
    justify-content: center;
}
.mdr-image-slider__cta {
    grid-area: nav;
    justify-self: flex-end;
}

@media screen and (min-width: 568px) {
    .mdr-image-slider__swiper-slide {
        aspect-ratio: auto;
    }
}
@media screen and (min-width: 768px) {   
    .mdr-image-slider {
        justify-items: center;
    }
    .mdr-image-slider__title,
    .mdr-image-slider__text {
        text-align: center;
    }
    .mdr-image-slider__cta {
        grid-area: cta;
        justify-self: center;
    }
    .mdr-image-slider__swiper {
        margin-top: 50px;
        max-height: none;
    }
    .mdr-image-slider__swiper-slide {
        height: 375px;
    }
    .mdr-image-slider__swiper-slide {
        transition: translate 600ms ease 0s;
    }
    .swiper-wrapper[data-active-index="odd"] > .mdr-image-slider__swiper-slide:nth-child(2n+2),
    .swiper-wrapper[data-active-index="even"] > .mdr-image-slider__swiper-slide:nth-child(2n+1) {
        translate: 0px 71px;
    }
    .mdr-image-slider__swiper-nav {
        margin-top: 10px;
        width:100%;
        justify-content:right;
    }
}
