.banner {
    position: relative;
    height: 540px;
    overflow: hidden;
}
.banner__imagewrap,
.banner__contentwrap {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

.banner__imagewrap {
    z-index: 0;
    width: 100%;
}
.banner__contentwrap {
    z-index: 1;
    padding-left: 1rem;
    padding-right: 1rem;
    width: calc(100% - 35px);
    background-image: url('../../images/banner-bg.svg');
    background-repeat: no-repeat;
    background-position: -65px 59px;
    background-size: auto 664px;
    .container {
        height: 100%;
    }
}

.banner__image {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
    & > div {
        display: none;
    }
    & > div:first-child {
        display: flex;
        flex: 1 0 100%;
        flex-direction: column;
        justify-content: center;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    background: #000;
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .6;
    }
}

.banner__contentmain {
    display: flex;
    flex-direction: column;
}

.banner__content {
    max-width: 540px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    & > div {
        display: none;
    }
    & > div:first-child {
        display: flex;
        flex: 1 0 100%;
        flex-direction: column;
        justify-content: center;
    }
    .slick-list {
        height: calc(100% - 90px);
    }
    .slick-slide {
        justify-content: flex-start !important;
        height: 100%;
    }
    .slick-dots {
        display: flex;
        flex-direction: row;
        column-gap: 20px;
        justify-content: flex-start;
    }
}

h1.banner__title,
h2.banner__title {
    font-size: clamp(2.188rem, 1.119vw + 1.47rem, 2.813rem);
    margin-top: 0;
    margin-bottom: 0;
    color:  var(--wp--preset--color--accent-2);
}

.banner__desc {
    color:  var(--wp--preset--color--accent-2);
    font-size: clamp(1.25rem, 0.112vw + 1.178rem, 1.313rem);
    line-height: 1.5;
    padding: 5px;
}

.banner__link {
    a {
        background-color: var(--wp--preset--color--accent-1);
        padding: var(--button-padding-default);
        color: var(--wp--preset--color--accent-2);
        display: inline-flex;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        border-radius: var(--button-border-radius-default);
        column-gap: 10px;
        font-size: clamp(1.063rem, 0.224vw + 0.919rem, 1.188rem);
        font-weight: 700;
        transition: background-color .25s ease-in, color .25s ease-in;
        &:hover {
            background-color: var(--wp--preset--color--contrast);
            color: var(--wp--preset--color--accent-1);
        }
        span {
            display: block;
            width: 31px;
            height: 31px;
            line-height: 35px;
            text-align: center;
            background-color: var(--wp--preset--color--accent-2);
            border-radius: 50%;
        }
    }
}

@media (max-width: 639px) {
    .banner__title,
    .banner__desc {
        text-align: center;
    }
    .banner__link {
        display: flex;
        justify-content: center;
    }
    .banner__content {
        .slick-dots {
            justify-content: center;
        }
    }
}

@media (min-width: 768px) {
    .banner__contentwrap {
        background-image: url('../../images/banner-bg.svg');
        background-repeat: no-repeat;
        background-position: right 100%;
        background-size: auto 320px;
    }
}

@media ( min-width: 1024px ) {
    .banner {
        height: 590px;
    }
    .banner__content {
        .slick-list {
            height: calc(100% - 50px);
        }
        .slick-dots {
            justify-content: flex-start;
            margin-top: 0;
        }
    }

    .banner__contentwrap {
        background-image: url('../../images/banner-bg.svg');
        background-repeat: no-repeat;
        background-position: right 100%;
        background-size: auto 380px;
    }
}

@media ( min-width: 1280px ) {
    .banner__contentwrap {
        background-size: auto 480px;
    }
}

@media ( min-width: 1536px ) {
    .banner__contentwrap {
        background-size: auto 549px;
    }
    .banner {
        height: 700px;
    }
    .banner__content {
        .slick-list {
            height: calc(100% - 90px);
        }
    }
}

@media (max-width: 767px) {
    .slick-slide .hero-image {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}