.slogan-area.slogan-area--collage {
    background-image: none;
    background-color: rgba(var(--thm-black-rgb), 1);
    overflow: hidden;
    padding: 60px 0;
    margin-bottom: 60px;
}

.slogan-collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 300px));
    justify-content: center;
    gap: 6px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 0;
}

.slogan-collage__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background-image: var(--img);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.slogan-collage__item:nth-child(n+5) {
    display: none;
}

.slogan-collage__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--img-next, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slogan-collage__item.is-swapping::after {
    opacity: 1;
}

.slogan-area--collage::before {
    z-index: 1;
}

.slogan-area--collage .container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
}

@media only screen and (min-width: 1600px) {
    .slogan-collage {
        grid-template-columns: repeat(5, minmax(0, 300px));
        max-width: 1560px;
    }

    .slogan-collage__item:nth-child(5) {
        display: block;
    }
}

@media only screen and (min-width: 1900px) {
    .slogan-collage {
        grid-template-columns: repeat(6, minmax(0, 300px));
        max-width: 1860px;
    }

    .slogan-collage__item:nth-child(6) {
        display: block;
    }
}

@media only screen and (max-width: 991px) {
    .slogan-collage {
        grid-template-columns: repeat(2, minmax(0, 300px));
    }
}
