/* Three-image block — i2t3 component styles
 * Faithful port of the Karma "ns-threeimgblock" overlapping mini-photo collage:
 * three small images, img1+img2 with a soft drop shadow and a -25px overlap,
 * img2 absolutely positioned and hanging out below the row, img3 pulled up.
 * No script.
 */

.i2t3-threeimg__title { margin-bottom: 1rem; }

/* Centered, narrow collage container that grows with the breakpoint. */
.i2t3-threeimg__teaser {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 20px auto 25%;
    max-width: 150px;
}

.i2t3-threeimg__img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* img1 + img2: soft drop shadow, overlap to the right, sit above img3. */
.i2t3-threeimg__img--1,
.i2t3-threeimg__img--2 {
    margin-right: -25px;
    z-index: 1;
    box-shadow: 2px 2px 16px rgba(96, 96, 96, 0.5);
}

/* img2: hangs out below the row, horizontally centered, on top. */
.i2t3-threeimg__img--2 {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 70%);
    z-index: 2;
}

/* img3: pulled up so it tucks behind the overlapping pair. */
.i2t3-threeimg__img--3 {
    margin-top: -25px;
}

@media (min-width: 768px) {
    .i2t3-threeimg__teaser {
        max-width: 200px;
        padding: 20px;
    }
}

@media (min-width: 1200px) {
    .i2t3-threeimg__teaser {
        max-width: 300px;
    }
}
