/**
 * Pattern: Content Image Stack
 *
 * Textbereich links, drei gleich große Bilder rechts.
 */


/* --------------------------------------------------------------
   Section
-------------------------------------------------------------- */

.ls-content-image-stack {
    background: #fff;
    color: var(--wp--preset--color--contrast);
}


/* --------------------------------------------------------------
   Innerer Bereich
-------------------------------------------------------------- */

.ls-content-image-stack-inner {
    width: calc(100% - 3rem);
    max-width: 1280px !important;

    margin-right: auto;
    margin-left: auto;

    padding-top: clamp(4rem, 7vw, 7rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
}


/* --------------------------------------------------------------
   Grid
-------------------------------------------------------------- */

.ls-content-image-stack-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.8fr)
        minmax(300px, 1fr);

    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}


/* --------------------------------------------------------------
   Inhalt
-------------------------------------------------------------- */

.ls-content-image-stack-content {
    width: 100%;
    max-width: 720px;
}

.ls-content-image-stack-content > :first-child {
    margin-top: 0;
}

.ls-content-image-stack-content > :last-child {
    margin-bottom: 0;
}

.ls-content-image-stack-content h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.ls-content-image-stack-content p:not(.ls-eyebrow) {
    max-width: 620px;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.65;
}


/* --------------------------------------------------------------
   Bildstapel
-------------------------------------------------------------- */

.ls-content-image-stack-images {
    display: grid;
    gap: 1rem;
}

.ls-content-image-stack-image {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.ls-content-image-stack-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* --------------------------------------------------------------
   Mobile Basis
-------------------------------------------------------------- */

@media (max-width: 900px) {

    .ls-content-image-stack-inner {
        width: calc(100% - 2rem);
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .ls-content-image-stack-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ls-content-image-stack-content {
        max-width: none;
    }

    .ls-content-image-stack-images {
        grid-template-columns: 1fr;
    }

}