/**************************************/
/********** TEMPLATE MODULES **********/
/**************************************/

.template-module {
    margin: 40px 0;
	position: relative;
}
.template-module.red .container,
.template-module.yellow .container,
.template-module.green .container,
.template-module.purple .container,
.template-module.pink .container,
.template-module.darkblue .container {
    padding: 25px 50px;
}
.template-module.red .container::before,
.template-module.yellow .container::before,
.template-module.green .container::before,
.template-module.purple .container::before,
.template-module.pink .container::before,
.template-module.darkblue .container::before {
    content: "";
    position: absolute;
    top: 0;bottom: 0;
    left: 20px;right: 20px;
    opacity: .08;
}
.template-module.red .container::before {
    background-color: var(--red);
}
.template-module.yellow .container::before {
    background-color: var(--yellow);
}
.template-module.green .container::before {
    background-color: var(--green);
}
.template-module.purple .container::before {
    background-color: var(--purple);
}
.template-module.pink .container::before {
    background-color: var(--pink);
}
.template-module.darkblue .container::before {
    background-color: var(--darkblue);
}

.template-module:first-child {
	margin-top: 0;
}
.template-module:last-child {
	margin-bottom: 0;
}

.template-module .row {
    margin: 40px -5px;
}
.template-module .row > div {
    font-size: 0;
    padding: 10px 5px;
}

.template-module a {
    display: inline-block;
    overflow: hidden;
}
.template-module img {
	display: block;
	margin: 0 auto;
}
.template-module a img {
	transition: inherit;
}
.template-module a:hover img {
	transform: scale(1.05);
}

@media(min-width: 768px) {
	.template-module {
		margin: 50px 0;
    }
    .template-module.red .container,
    .template-module.yellow .container,
    .template-module.green .container,
    .template-module.purple .container,
    .template-module.pink .container,
    .template-module.darkblue .container {
        padding-top: 29px;
        padding-bottom: 29px;
    }
}

@media(min-width: 992px) {
	.template-module {
		margin: 70px 0;
    }
    
	.template-module .row {
		margin: -10px;
    }
    .template-module .row > div {
        padding: 10px;
    }
}


/**************************************/
/********** MODULE 1: SLIDER **********/
/**************************************/

.template-module .slider-wrapper {
    position: relative;
}

.template-module .slider:not(.slick-slider) {
    display: flex;
    overflow: hidden;
}
.template-module .slider:not(.slick-slider) > .slide {
    flex-basis: 100%;
    min-width: 100%;
}

.template-module .slider .slide {
	position: relative;
}

.template-module .slider .image,
.template-module .image.video {
	position: relative;
	padding-top: 56.25%;
	background-color: white;
}
.template-module .slider .image img {
	position: absolute;
	top: 0;bottom:0;
	left: 0;right: 0;
	max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.template-module .slider .legend {
    padding: 10px 40px;
	text-align: center;
	position: absolute;
    top: 0;bottom: 0;
    left: 0;right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.4) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}
.template-module .slider-wrapper .slider .video + .legend {
    background: transparent;
}

.template-module .slider .legend p {
    color: white;
    text-align: center;
    margin: .25em 0;
}


.template-module .slider-arrows {
	position: absolute;
    top: 0;bottom: 0;
    left: 0;right: 0;
    display: flex;
	align-items: center;
	pointer-events: none;
}

.template-module .slider-arrows > div {
	cursor: pointer;
    position: relative;
    width: 18px;
	height: 35px;
	font-size: 0;
	pointer-events: auto;
}
.template-module .slider-arrows > div::before,
.template-module .slider-arrows > div::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: white;
    transform-origin: center left;
}
.template-module .slider-arrows > div::before {
    top: 0;left: 0;
    transform: rotate(45deg);
}
.template-module .slider-arrows > div::after {
    bottom: 0;left: 0;
    transform-origin: center left;
    transform: rotate(-45deg);
}

.template-module .slider-arrows > div.prev {
	margin-right: auto;
	margin-left: 10px;
    transform: rotate(180deg);
}
.template-module .slider-arrows > div.next {
	margin-left: auto;
	margin-right: 10px;
}


@media(min-width: 992px) {
	.template-module .slider .legend {
		padding: 20px 80px;
	}
	
	.template-module .slider-arrows > div {
        width: 27px;
	    height: 50px;
    }
    .template-module .slider-arrows > div::before,
    .template-module .slider-arrows > div::after {
        width: 35px;
        height: 3px;
        border-radius: 3px;
    }
	.template-module .slider-arrows > div.prev {
		margin-left: 20px;
	}
	.template-module .slider-arrows > div.next {
		margin-right: 20px;
	}
}


/**************************************************/
/********** MODULE 2 & 3: TEXT AND IMAGE **********/
/**************************************************/

.template-module.module2.wrap > *:nth-child(2),
.template-module.module3.wrap > *:nth-child(2) {
	margin-top: 0;
}

.template-module.module2.wrap img,
.template-module.module3.wrap img {
    max-width: 100%;
    float: none;
    padding: 0 0 15px 0;
}

.template-module.module2 .row > div:first-child {
    padding-right: 15px;
}

.template-module.module3 .row > div:last-child {
    padding-left: 15px;
}


@media(min-width: 768px) {
    .template-module.module2.wrap img,
    .template-module.module3.wrap img {
        max-width: calc(50% + 45px);
    }
	.template-module.module2.wrap img {
        padding: 0 0 45px 55px;
        float: right;
    }
    .template-module.module3.wrap img {
        padding: 0 55px 45px 0;
        float: left;
    }

    .template-module.module2 .row > div:first-child {
        padding-right: 45px;
    }
    
    .template-module.module3 .row > div:last-child {
        padding-left: 45px;
    }
}


/**********************************************************/
/********** MODULE 4, 5, 6 & 7: IMAGE AND LEGEND **********/
/**********************************************************/

.template-module.module4 p,
.template-module.module5 p,
.template-module.module6 p,
.template-module.module7 p {
    padding: 0 20px 0;
}

@media(min-width: 768px) {
    .template-module.module4 p,
    .template-module.module5 p,
    .template-module.module6 p,
    .template-module.module7 p {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
}


/**************************************************/
/********** MODULE 10 & 11: TEXT COLUMNS **********/
/**************************************************/

.template-module.module10 .row,
.template-module.module11 .row {
	display: flex;
	margin: -10px -25px;
}

.template-module.module10 .row > div,
.template-module.module11 .row > div {
    flex: 0 0 100%;
	max-width: 100% !important;
	float: none !important;
	padding: 10px 25px;
}


@media(min-width: 768px) {
    .template-module.module10 .row > div {
        flex: 0 0 50%;
        max-width: 50% !important;
        width: auto !important;
    }
    .template-module.module11 .row > div {
        flex: 0 0 33.333%;
        max-width: 33.333% !important;
        width: auto !important;
    }
}


/******************************************************************/
/********** MODULE 12: VIDEO & MODULE 1: SLIDER w/ video **********/
/******************************************************************/

.template-module .video::before {
    content: "";
    position: absolute;
    top: 0;bottom: 0;
    left: 0;right: 0;
    background-color: rgba(1, 1, 1, .45);
    z-index: 1;
}

.template-module .image.video img {
	position: absolute;
	top: 50px;left: 50px;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
}


@supports(object-fit: cover) {
	.template-module .image.video img {
		top: 0;left: 0;
		transform: none;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}


.template-module .video iframe {
	position: absolute;
	top: 0;bottom: 0;
	left: 0;right: 0;
	width: 100%;
	height: 100%;
    border: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.template-module .video.open iframe {
	opacity: 1;
	pointer-events: auto
}

.template-module .video a {
	position: absolute;
	top: 0;bottom: 0;
	left: 0;right: 0;
    margin: auto;
    width: 50px;
    height: 50px;
	border: 2px solid white;
	border-radius: 100%;
    opacity: .75;
    z-index: 2;
}
.template-module .video a:hover {
	opacity: 1;
}
.template-module .video a:before {
	content: "";
	position: absolute;
	top: 0;bottom: 0;
	left: 0;right: 0;
	margin: auto;
	background-image: url(/assets/img/play-white.svg)
}


@media(min-width: 768px) {
	.template-module .video a {
        width: 70px;
        height: 70px;
        border-width: 4px;
	}	
}

@media(min-width: 992px) {
	.template-module .video a {
        width: 90px;
        height: 90px;
	}
}


/***********************************************/
/********** MODULE 19: CALL TO ACTION **********/
/***********************************************/

.template-module .cta {
    display: flex;
    position: relative;
    width: 100%;
    padding: 20px;
    background-color: var(--darkblue);
}
.template-module .cta.red {
    background-color: var(--red);
}
.template-module .cta.yellow {
    background-color: var(--yellow);
}
.template-module .cta.green {
    background-color: var(--green);
}
.template-module .cta.purple {
    background-color: var(--purple);
}
.template-module .cta.pink {
    background-color: var(--pink);
}
.template-module .cta::before {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 41px;
    height: 29px;
    margin: auto;
    background-image: url(/assets/img/arrow-sm-white.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transition: inherit;
}
.template-module .cta:hover::before {
    transform: translateX(5px);
}

.template-module .cta h3,
.template-module .cta .h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.4;
    padding-bottom: 45px;
}


@media(min-width: 768px) {
    .template-module .cta {
        padding: 28px 40px;
    }
    .template-module .cta::before {
        top: 0;bottom: 0;
        right: 30px;
    }

    .template-module .cta .h3 {
        padding: 0;
        padding-right: 100px;
    }
}

@media(min-width: 992px) {
    .template-module .cta {
        padding: 40px 60px;
    }
    .template-module .cta::before {
        right: 60px;
    }

    .template-module .cta .h3 {
        padding-right: 130px;
    }
}