#acc {
    min-height: 100vh;
}

section {
    min-height: 50vh;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
}

.acc_wrapper {
    width: 50%;
    height: 50%;
}

.acc_img_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.acc_img {
    position: relative;
    width: clamp(200px, 40%, 600px);
    aspect-ratio: 1/1;
    object-fit: cover;
    border: solid 8px var(--dark);
    border-radius: 25px;
}

.acc_img:nth-child(1) {
    top: 2vw;
    z-index: 1;
}

.acc_img:nth-child(2) {
    left: 4vw;
}

.acc_img:nth-child(3) {
    bottom: 4vw;
    left: 2vw;
}

.acc_title_wrapper {
    width: 40%;
    padding: 15px;
    margin: 0px auto;
    text-align: center;
}

.acc_title_wrapper h1 {
    font-size: 4rem;
}

.swipper {
    height: 100%;
    padding: 10px;
}

.swipper * {
    color: var(--dark);
}

.swiper,
.swiper-wrapper,
.swiper-slide {
    max-width: 1200px;
}

.swiper-slide {
    margin: auto;
}

.box {
    background: var(--dark);
    border-radius: 25px;
    width: calc(100% - 100px);
    max-width: 1200px;
    margin: 0px auto;
}

.box_preview {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr min-content;
    grid-template-areas:
        'title title'
        'img description'
        'img cta';
    place-items: center;
}

.box_preview .swiper-static {
    display: grid;
    place-items: center;
    grid-area: img;
}

.box_preview h2 {
    grid-area: title;
}

.box_preview p {
    grid-area: description;
}

.box_preview .cta {
    grid-area: cta;
    cursor: pointer;
    right: 10px;
    justify-self: end;
    z-index: 1;
}

.swiper-static {
    justify-self: center;
    overflow: hidden;
    width: 25vmin;
    border-radius: 15px;
}

.img_swipped {
    object-fit: cover;
    border-radius: 10px;
}

@media screen and (max-width: 900px) {
    #acc {
        min-height: 75vh;
        flex-direction: column-reverse;
    }

    #acc .acc_title_wrapper {
        width: 80%;
    }

    #acc .acc_img_wrapper {
        position: relative;
        width: clamp(200px, 40%, 600px);
        aspect-ratio: 1/1;
    }

    #acc .acc_img {
        position: absolute;
        width: 100%;
        height: 100%;
        top: unset;
        left: unset;
        bottom: unset;
        right: unset;
        animation: fadeIn 30s ease-in-out infinite forwards;
    }

    #acc .acc_img:nth-child(2) {
        animation-delay: 10s;
    }

    #acc .acc_img:nth-child(3) {
        animation-delay: 20s;
    }

    .box_preview {
        display: flex;
        flex-direction: column;
    }
    .box_preview h2 {
        text-align: center;
    }
    .box_preview .cta {
        right: unset;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    16.66% {
        opacity: 1;
    }
    33.33% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    66.66% {
        opacity: 1;
    }
    83.33% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
