/*
==================================
MOSAIC BOX structure
==================================
*/


.mosaic-custom {
    padding-top: 96px;
    padding-bottom: 96px;
}

.mosaic__box {
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.no-heading .scroll__section {
    max-width: calc(1329px + 10%);
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.no-heading .scroll__section [data-grid^="col-8"] {
    width: 100%;
}

.scroll__section .mosaic__box {
    position: relative;
    z-index: 200;
}

.scroll__section .mosaic__box::before {
    /* filter: drop-shadow not fully supported. This is a workaround */
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 0;
    background-color: rgba(0, 0, 0, .162);
    /* Done this way because of a small gap than can exist inside an element.*/
    -webkit-filter: blur(37px);
    filter: blur(37px);
}

.scroll__section .mosaic__element {
    display: block;
    position: relative;
    overflow: hidden;
    width: 49.6%;
    /* will get a margin of .6%. The width value is needed when calculating aspect ratio later */
    border: 1px solid #9bf00b;
}


.scroll__section a.mosaic__element:focus {
    outline: 2px dashed black;
    border: 2px dashed white;
}

.scroll__section .mosaic__element .c-image {
    width: 100%;
    top: 0;
    left: 0;
}


/* .mosaic__element float, width, margin, and aspect ratio are set based upon their order in the code. */


/* Fewer class names or IDs to worry about */

.scroll__section .mosaic__element:nth-child(7n+1) {
    width: 100%;
    float: left;
    /* floated for margin-collapse consistency despite being full-width */
    margin: .4% 0;
}

.scroll__section .mosaic__element:nth-child(7n+2) {
    float: left;
    margin: .4% .4% .4% 0;
}

.scroll__section .mosaic__element:nth-child(7n+3) {
    float: right;
    margin: .4% 0 .4% .4%;
}

.scroll__section .mosaic__element:nth-child(7n+4) {
    float: right;
    margin: .4% 0 .4% .4%;
}

.scroll__section .mosaic__element:nth-child(7n+5) {
    float: left;
    margin: .4% .4% .4% 0;
}

.scroll__section .mosaic__element:nth-child(7n+6) {
    float: left;
    margin: .4% .4% .4% 0;
}

.scroll__section .mosaic__element:nth-child(7n+7) {
    float: right;
    margin: .4% 0 .4% .4%;
}

.scroll__section .mosaic__element:first-of-type {
    margin-top: 0px;
}

.scroll__section .mosaic__image {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
}

.scroll__section .mosaic__image::before {
    position: absolute;
    display: block;
    content: "";
    height: 100%;
    width: 100%;
}

.scroll__section .mosaic__image img {
    width: 100%;
}

.scroll__section .mosaic__image > .m-ambient-video {
    display: none;
    padding-top: 0;
}

@media screen and (min-width:768px) {
    .scroll__section .mosaic__image > .m-ambient-video {
        display: block;
    }
    .scroll__section .mosaic__image > .m-ambient-video+picture {
        display: none;
    }
}
/* play/pause button alignment */
.scroll__section .mosaic__image .m-ambient-video video+div {
    position: absolute;
    top: auto;
    bottom: 1.335%;
    left: .5%;
}

.scroll__section .mosaic__image .m-ambient-video .vidPlayPause {
    top: auto;
    bottom: auto;
    margin-left: 0;
    position: relative;
}

@media screen and (min-width:1400px) {
    .scroll__section .scroll__header {
        /* font-size: 408%; 
line-height: 1.15;*/
        position: sticky;
        margin-top: 68px;
    }
}

@media screen and (max-width:1083px) {
    .scroll__section {
        display: block;
    }
    .scroll__box {
        padding-top: 0;
    }
    .scroll__section .mosaic__box {
        margin-top: initial;
    }
    .scroll__section .scroll__header {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
    }
    .scroll__section .scroll__header h2 {
        text-align: center;
        white-space: normal;
    }
    .scroll__section .scroll__header h2 span {
        display: inline;
    }
}

@media screen and (max-width:767px) {
    .scroll__section .mosaic__box {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .scroll__section .mosaic__limit {
        position: relative;
        max-width: 902px;
        margin: 0 auto;
    }
    .scroll__section .mosaic__element {
        position: relative;
        overflow: hidden;
    }
    .scroll__section .mosaic__box .mosaic__element {
        float: none;
        display: block;
        width: 100%;
        margin-top: 0px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.4%;
    }
    .scroll__section .mosaic__box .mosaic__element:last-child {
        margin-bottom: 0;
    }
    .scroll__section .scroll__header {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1083px) {
    .scroll__section .mosaic__box .mosaic__element {
        float: none;
        display: block;
        width: 100%;
        margin-top: 0px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12px;
    }
    .scroll__section .mosaic__limit {
        position: relative;
        max-width: 902px;
        margin: 0 auto;
    }
}


/* 
==================================
END MOSAIC BOX structure
==================================
*/


/* 
================================
Mosaic content formatting.
================================
*/

@media screen and (min-width:1400px) {
    .scroll__section .scroll__header h2 span {
        display: block;
    }
}

.scroll__section .mosaic__content {
    position: absolute;
    left: 5%;
    bottom: 24px;
    max-width: 90%;
}

.scroll__section .mosaic__content h3 {
    line-height: 1.15em;
    font-weight: 700;
}

@media screen and (max-width:1399px) {
    /*
    .scroll__section .mosaic__content {
        left: 35px;
        bottom: 30px;
    }
        */
    .scroll__section .mosaic__content h3 {
        font-size: 24px;
    }
}


/*
@media screen and (max-width:1083px){
.scroll__section .mosaic__content {
left: 38px;
bottom: 33px;
}
.scroll__section .mosaic__content h3 {
font-size: 30px;
}
}*/

@media screen and (max-width:767px) {
    .scroll__section .mosaic__content {
        left: 30px;
        bottom: 25px;
    }
    .scroll__section .mosaic__content h3 {
        font-size: 26px;
    }
}

@media screen and (max-width:540px) {
    .scroll__section .mosaic__content {
        left: 25px;
        bottom: 20px;
    }
    .scroll__section .mosaic__content h3 {
        font-size: 20px;
    }
}

@media screen and (min-width:768px) and (max-width:1399px) {
    [data-grid~="container"].scroll__section {
        padding-left: 5%;
        padding-right: 5%;
    }
}

.scroll__section .mosaic__content h3[class^="c-heading"] {
    padding-top: 0;
}

.scroll__section .mosaic__content p {
    padding: 12px 0 12px 0;
}

.mosaic__content .c-badge.f-highlight {
    background-color: #c6c8c5;
}

.high-contrast-mode.black-on-white .mosaic__content a,
.high-contrast-mode.black-on-white .mosaic__content a:focus {
    background-color: #fff !important;
}
