@charset "UTF-8";

.mdr-mouse-trail {
    position: relative;
    
    font-family: "Black Mango", serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 41.8px;
    
    padding: 140px var(--mdr--padding-horizontal) 0px;
    display: grid;
    grid-template-areas: "txt"
                         "cta"
                         "img";
    grid-template-columns: auto;
    grid-template-rows: auto auto minmax(140px, auto);
    justify-items: center;
}
.mdr-mouse-trail__text {
    grid-area: txt;
    text-align: center;
    max-width: 1117px;
}
.mdr-mouse-trail__cta {
    grid-area: cta;
    margin-top: 30px;
}

.mdr-mouse-trail__img-container {
    --padding-top: 60px;
    --img--size: 130px;
    
    grid-area: img;
    height: calc(var(--padding-top) + var(--img--size));
    
    width: 100%;
    
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: flex-end;
    
    position: relative;
    overflow: hidden;
}
/* Generics + case 1 img */
.mdr-mouse-trail__img {
    position: absolute;
    border-radius: 6px;
    width: var(--img--size);
    height: var(--img--size);
    
    transform-origin: 50% 600%;
    translate: 0px 2px;
}

/* Case 2 imgs */
.mdr-mouse-trail__img:first-child:nth-last-child(2),
.mdr-mouse-trail__img:nth-child(2):nth-last-child(1) {
    --rotate-z: 3deg;
}
.mdr-mouse-trail__img:first-child:nth-last-child(2) {
    transform: rotateZ(var(--rotate-z));
}
.mdr-mouse-trail__img:nth-child(2):nth-last-child(1) {
    transform: rotateZ(calc(-1 * var(--rotate-z)));
}
/* Case 3 imgs */
.mdr-mouse-trail__img:nth-child(1):nth-last-child(3),
.mdr-mouse-trail__img:nth-child(2):nth-last-child(2) {
    --rotate-z: 4.6deg;
}
.mdr-mouse-trail__img:nth-child(1):nth-last-child(3) {
    transform: rotateZ(var(--rotate-z));
}
.mdr-mouse-trail__img:nth-child(2):nth-last-child(2) {
    transform: rotateZ(calc(-1 * var(--rotate-z)));
}

.mdr-mouse-trail__img:nth-child(3):nth-last-child(1) {
}

@media screen and (min-width: 768px) {
    .mdr-mouse-trail {
        grid-template-areas: ". txt ."
                             ". cta ."
                             ". img .";
        grid-template-columns: 1fr auto 1fr;
        font-size: 102px;
        line-height: 1em;
    }
    .mdr-mouse-trail__cta {
        margin-top: 50px;
    }

    .mdr-mouse-trail__img-container {
        /*display: none;*/
    }
}