@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://use.typekit.net/fka2xxx.css');

.layout-left-navigation {
	display: none;
}

.entry-title {
	opacity: 0;
    font-size: 1px !important;
	margin-bottom: 0px!important;
}

.app-title {
	color: #000!important;
	font-size: 2.525rem;
	font-family: "Montserrat";
	text-transform: uppercase;
}

.app-video-container {
	background-color: #ebebeb;
	padding-top: 2rem !important;
    padding-bottom: 0rem !important;
}

.app-videos {
	padding-right: 0!important;
    padding-left: 0!important;
    max-width: 78rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-flow: row wrap;
}

.app-centre-video {
	flex: 0 0 auto;
    min-height: 0px;
    min-width: 0px;
    width: calc(100% - 2rem)!important;
    margin-left: 1rem;
    margin-right: 1rem;
}

.app-videos-right {
    flex: 0 0 auto;
    min-height: 0px;
    min-width: 0px;
    width: calc(100% - 2rem)!important;
    margin-left: 1rem;
    margin-right: 1rem;
}

.app-videos-right-inside {
	display: flex;
    flex-flow: row wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.app-videos-right-container {
	flex: 0 0 auto;
	min-height: 0px;
	min-width: 0px;
	width: calc(50% - 2rem)!important;
	margin-left: 1rem;
	margin-right: 1rem;
	position: relative;
	margin-bottom: 1.125rem;
	text-align: center;
}

.video-title {
	margin: 0.875rem 0 0rem!important;
	color: #353638!important;
	font-family: Montserrat;
	text-transform: uppercase;
}

@media print, screen and (min-width: 64em) {
	.app-videos-right {
		flex: 0 0 auto!important;
		width: calc(45% - 2rem)!important;
		margin-left: 0rem!important;
		margin-right: 2rem!important;
	}

	.app-videos-right-inside {
		margin-left: 1rem!important;
    	margin-right: -1rem!important;
	}	

	.app-centre-video {
		flex: 0 0 auto!important;
		width: calc(55% - 2rem)!important;
		margin-left: 2rem!important;
		margin-right: 0rem!important;
	}

	.app-videos-right-container {
		flex: 0 0 auto!important;
        width: calc(50% - 2rem)!important;
        margin-left: 1rem;
        margin-right: 1rem;
	}

	.mobile-only {
		display: none;
	}
}

@media print, screen and (max-width: 63.9em) {
	.video-title {
		font-size: 1rem!important;
	}

	.desktop-only {
		display: none;
	}
}

.video-link:before {
	background-image: none!important;
}

.video-image {
	height: 75%!important;
}

.app-card {
	flex: 2;
	width: calc(100% - 2rem);
	margin-left: 1rem;
	margin-right: 1rem;
	margin-bottom: 1rem;
	margin-top: 2rem!important;
	overflow: hidden;
	position: relative;
}

.app-card-top {
    border: 1px solid #D9D9D6;
    height: 350px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
	background-size: cover;
}

.app-header-white {
    position: absolute;
    top: 10%!important;
    left: 0;
    right: 0;
    padding-left: 10%;
    color: #fff !important;
	text-wrap: wrap;
}

.app-card-shadow {
	background-color: rgb(25 26 25 / 75%)!important;
	width: 60%;
	height: 100%;
	text-wrap: wrap;
	position: relative;
}

.app-header-white h2 {
    color: #fff !important;
    font-size: 4.125rem;
	font-family: "arteria-std-compress", sans-serif;
}

.app-content-white {
    position: absolute;
    top: 30%!important;
    left: 0;
    right: 0;
    padding-left: 10%;
	padding-right: 10%;
    color: #fff !important;
	text-wrap: wrap;
	font-size: 1.2rem;
	font-family: Lato, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

.app-card-shadow .app-button {
	left: 10%;
	bottom: 10%;
	position: absolute;
}

.app-button {
	padding: 1%;
	font-size: 1.3rem;
	font-family: Lato, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
	font-weight: 700;
	text-wrap: nowrap;
	text-transform: uppercase;
	/* transform: skew(-20deg); */
	clip-path: polygon(0% 25%, 15% 10%, 25% 0%, 85% 0%, 100% 0, 100% 15%, 100% 75%, 85% 90%, 75% 100%, 15% 100%, 0 100%, 0% 75%);
}

.app-button-white {
	background-color: #fff;
	color: #167e97;
}

.app-button-blue {
	background-color: #167e97;
	color: #fff;
}

.app-footer .app-button {
	min-height: 46px;
	min-width: 140px;
	text-align: center;
	justify-content: center;
    display: flex;
;
}

.app-footer .app-button-text {
	position: absolute;
    bottom: 7px;
}

.app-footer {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 5px;
	overflow: auto;
}

.app-footer-title {
	color: #000!important;
	font-size: 3.525rem;
	font-family: "arteria-std-compress", sans-serif;
}

.app-footer-container {
	display: flex;
	justify-content: center;
	width: 100%;
	flex-wrap: wrap;
	overflow: auto;
	min-height: 3rem;
}

@media print, screen and (min-width: 64em) {
	.app-card-shadow {
		width: 40%;
	}
}

@media print, screen and (max-width: 1030px) {
	.app-card-shadow .app-header-white h2 {
		font-size: 3.125rem!important;
	}
}

@media print, screen and (max-width: 32em) {
	.app-card-shadow {
		width: 100%;
	}

	.app-card-shadow .app-header-white h2 {
		font-size: 3.025rem!important;
	}

	.app-card-shadow .app-content-white {
		font-size: 1rem!important;
	}
}


/* CSS for vertical cards on Success-Story subpage */
.app-vertical-cards {
	display: grid;
    grid-template-columns: 1fr 1fr 1fr;
	gap: 2rem;
	padding-left: 40px;
	padding-right: 40px;
}

.app-card-frame {
	background-color: #ebebeb;
	width: 100%;
	height: fit-content;
	/* margin-bottom: 10px; */
}

.card-image {
	width: 100%;
	height: 320px;
	background-repeat: no-repeat;
	background-position: center;
}

.card-name h2 {
	color: #fff !important;
	padding-top: 10px;
	padding-left: 20px;
	font-size: 4rem;
	font-family: "arteria-std-compress", sans-serif;
	text-shadow: 2px 2px 8px #000;
}

.card-body-text {
	padding: 20px;
	font-family: Montserrat;
}
.card-video-insert{
	align-content: center;
	padding-bottom: 20px;
}
.card-video-embed {
	padding: 20px;
	width: auto;
	height: auto;
	margin: auto;
}

@media (max-width: 1080px){
	.app-vertical-cards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 800px) {
	.app-vertical-cards {
		display: grid;
		grid-template-columns: 1fr;
		gap: 20px;
		padding-left: 10px;
		padding-right: 10px;
	}
	.card-image {
		width: 100%;
		height: 400px;
		background-repeat: no-repeat;
		background-position: center;
	}
}

@media (min-width: 1280px) {
	.header-image::before {
		font-size: 4.825rem!important;
		text-align: left!important;
	}
}

.header-image::before {
	position: absolute;
    color: white;
    content: var(--header-content, '');
    font-size: 4.725rem;
    text-wrap: nowrap;
    top: 31vh;
    left: 18vw;
    font-weight: bold;
    font-family: "arteria-std-compress", sans-serif;
    text-shadow: 2px 2px 8px #000;
}

.header-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: inherit;
	background-image: url('https://www.gov.nl.ca/atcd/wp-content/themes/gnl-web-department/template-parts/assets/MAKE-IT-EXCELLENT.svg');
	pointer-events: none; 
	background-size: auto 35%;
	background-position: 8vw 28vh;
	background-repeat: no-repeat;
	-webkit-filter: drop-shadow(2px 2px 8px #000);
  	filter: drop-shadow(2px 2px 8px #000);
  }

.header-image {
	overflow: hidden;
	height: 415px;
	position: relative;
}

.layout-header-image {
	overflow: hidden;
}

@media (min-width: 2250px) {
	.header-image::after {
		background-size: auto 69%;
    	background-position: 2vw -3vh;
	}

	.header-image::before {
		top: 31vh;
        left: 2vw;
        text-wrap: nowrap;
	}
}

@media (max-width: 2000px) and (min-height: 1050px) {
	.header-image::after {
		background-size: auto 57%;
    	background-position: 16vw -3vh;
	}

	.header-image::before {
		top: 25vh;
        left: 16vw;
        text-wrap: nowrap;
	}
}

@media (max-height: 1000px) {
	.header-image::after {
		background-size: auto 73%;
        background-position: 16vw -2vh;
	}
}

@media (max-width: 1300px) {
	.header-image::after {
		background-size: auto 25%;
		background-position: 18vw 27vh;
	}
}

@media (max-width: 1300px) and (min-height: 900px) {
	.header-image::after {
		background-size: auto 65%;
        background-position: 2vw -1vh;
	}

	.header-image::before {
		top: 21vw;
        left: 2vw;
        text-wrap: nowrap;
	}
}

@media (max-width: 1300px) and (max-height: 900px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 1vw -1vh;
	}

	.header-image::before {
		top: 17vw;
        left: 1vw;
        text-wrap: nowrap;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (max-width: 1300px) and (max-height: 790px) {
	.header-image::after {
		background-size: auto 25%;
		background-position: 8vw 24vh;
	}
}

@media (min-width: 1285px) and (max-height: 910px) {
	.header-image::before {
		font-size: 3.625rem;
	}
}

@media (min-width: 1280px) and (max-height: 910px) {
	.header-image::before {
		top: 31vh;
        left: 2vw;
        text-wrap: wrap;
        font-size: 3.625rem;
	}

	.header-image::after {
		background-size: auto 73%;
        background-position: 2vw -4vh;
	}
}

@media (min-width: 1280px) and (min-height: 990px) {
	.header-image::before {
		top: 27vh;
        left: 8vw;
        text-wrap: wrap;
        font-size: 3.625rem;
	}

	.header-image::after {
		background-size: auto 63%;
    	background-position: 8vw -2vh;
	}
}

@media (max-width: 1280px) and (min-height: 910px) {
	.header-image::before {
		top: 20vw;
        left: 2vw;
        text-wrap: wrap;
        font-size: 3.625rem;
	}

	.header-image::after {
		background-size: auto 65%;
        background-position: 2vw -1vh;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (max-width: 1280px) and (max-height: 910px) {
	.header-image::before {
		top: 23vw;
        left: 1vw;
        text-wrap: wrap;
	}

	.header-image::after {
		background-size: auto 66%;
        background-position: 1vw -1vh;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (max-width: 1280px) and (max-height: 850px) {
	.header-image::before {
		top: 19vw;
        left: 1vw;
        text-wrap: wrap;
	}

	.header-image::after {
		background-size: auto 66%;
        background-position: 1vw -1vh;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (min-width: 1280px) and (max-height: 770px) {
	.header-image::before {
		top: 34vh;
        left: 1vw;
        text-wrap: wrap;
	}

	.header-image::after {
		background-size: auto 66%;
        background-position: 1vw -1vh;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (max-width: 1160px) and (min-height: 910px) {
	.header-image::before {
		top: 22vw;
        left: 2vw;
        text-wrap: wrap;
        font-size: 3.625rem;
	}

	.header-image::after {
		background-size: auto 65%;
        background-position: 2vw -1vh;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (max-width: 1090px) and (min-height: 910px) {
	.header-image::before {
		top: 23vw;
        left: 2vw;
        text-wrap: wrap;
        font-size: 3.625rem;
	}

	.header-image::after {
		background-size: auto 65%;
        background-position: 2vw -1vh;
	}
}


@media (max-width: 1040px) {
	.header-image::after {
		background-size: auto 20%;
		background-position: 6vw 28vh;
	}

	.layout-header-image {
		max-height: 350px;
	}
}

@media (max-width: 1040px) and (min-height: 910px) {
	.header-image::before {
		top: 23vw;
        left: 2vw;
        text-wrap: wrap;
        font-size: 3.625rem;
	}

	.header-image::after {
		background-size: auto 65%;
        background-position: 2vw -1vh;
	}
}


@media (max-width: 1040px) and (min-height: 1100px) {
	.header-image::after {
		background-size: auto 55%;
        background-position: 1vw -1vh;
	}

	.header-image::before {
		top: 21vw;
        left: 1vw;
        text-wrap: nowrap;
        /* transform: translate(-50%, -50%); */
        font-size: 4.625rem;
	}
}

@media (max-width: 1040px) and (max-height: 700px) {
	.header-image::after {
		background-size: auto 60%;
        background-position: 1vw -2vh;
	}

	.header-image::before {
		top: 22vw;
        left: 1vw;
        text-wrap: nowrap;
        /* transform: translate(-50%, -50%); */
        font-size: 4.625rem;
	}
}

@media (max-width: 1010px) and (min-height: 910px) {
	.header-image::after {
		background-size: auto 54%;
        background-position: 2vw 0vh;
	}

	.header-image::before {
		top: 26vw;
        left: 2vw;
        text-wrap: nowrap;
        font-size: 3.625rem;
	}
}

@media (max-width: 1010px) {
	.header-image::after {
		background-size: auto 54%;
        background-position: 2vw 0vh;
	}

	.header-image::before {
		top: 26vw;
        left: 2vw;
        text-wrap: nowrap;
        font-size: 3.625rem;
	}
}

@media (max-width: 1010px) and (min-height: 1100px) {
	.header-image::after {
		background-size: auto 15%;
		background-position: 6vw 27vh;
	}

	.header-image::before {
		top: 48vw;
        left: 47%;
        text-wrap: nowrap;
        font-size: 2.625rem;
	}
}

@media (max-width: 990px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 1vw 0vh;
	}

	.header-image::before {
		top: 24vw;
        left: 1vw;
        text-wrap: nowrap;
        /* transform: translate(-50%, -50%); */
        font-size: 4.625rem;
	}
}

@media (max-width: 900px) {
	.header-image::before {
		top: 25vw;
        left: 1vw;
        text-wrap: nowrap;
        /* transform: translate(-50%, -50%); */
        font-size: 4.625rem;
	}
}

@media (max-width: 840px) {
	.header-image::after {
		background-size: auto 15%;
		background-position: 6vw 27vh;
	}

	.header-image {
		width: 1000px;
		height: 450px;
	}

	.header-image img {
		width: 100%;
		display: block;
	}
}

@media (max-width: 840px) and (max-height: 1200px) {
	.header-image::after {
		background-size: auto 52%;
        background-position: 1vw -1vh;
	}

	.header-image::before {
		top: 27vw;
        left: 2vw;
        text-wrap: nowrap;
        /* transform: translate(-50%, -50%); */
        font-size: 4.125rem;
	}
}

@media (max-width: 800px) and (max-height: 1060px) {
	.header-image::after {
		background-size: auto 45%;
        background-position: 2vw -1vh;
	}

	.header-image::before {
		top: 29vw;
        left: 2vw;
        text-wrap: nowrap;
        /* transform: translate(-50%, -50%); */
        font-size: 3.825rem;
	}
}

@media (max-width: 730px) and (min-height: 910px) {
	.header-image::after {
		background-size: auto 49%;
        background-position: 2vw -1vh;
	}

	.header-image img {
		margin-left: 0;
	}

	.header-image::before {
		top: 29vw;
        left: 2vw;
        text-wrap: nowrap;
        font-size: 3.825rem;
	}
}

@media (max-width: 730px) and (max-height: 910px) {
	.header-image::after {
		background-size: auto 45%;
		background-position: 6vw -3vh;
	}

	.header-image img {
		margin-left: -36%;
	}
}

@media (max-width: 640px) {
	.header-image::after {
		background-size: auto 41%;
        background-position: 1vw -2vw;
	}
}

@media (max-width: 640px) and (max-height: 730px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 1vw -4vw;
	}

	.header-image::before {
		top: 35vw;
        left: 1vw;
        width: 55%;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 3.625rem;
	}

	.header-image img {
		margin-left: -30%;
	}
}

@media (max-width: 500px) and (min-height: 950px) {
	.header-image::after {
		background-size: auto 45%;
        background-position: 2vw -2vh;
	}

	.header-image::before {
		top: 50vw;
        left: 2vw;
        width: 25%;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}

	.header-image img {
		margin-left: 0;
	}
}

@media (max-width: 500px) and (min-height: 850px) {
	.header-image::after {
		background-size: auto 45%;
        background-position: 2vw -2vh;
	}
}

@media (max-width: 500px) and (max-height: 950px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 2vw -2vw;
	}

	.header-image::before {
		top: 50vw;
        left: 2vw;
        width: 25%;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}

	.header-image img {
		margin-left: -36%;
	}
}

@media (max-width: 500px) and (max-height: 920px) {
	.header-image::before {
		top: 52vw;
        left: 2vw;
        width: 25%;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}
}

@media (max-width: 420px) and (max-height: 900px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 2vw -2vw;
	}

	.header-image::before {
		top: 51vw;
        left: 2vw;
        width: 35%;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}

	.header-image img {
		margin-left: -36%;
	}
}

@media (max-width: 400px) and (max-height: 850px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 2vw -2vw;
	}

	.header-image::before {
		top: 55vw;
        left: 2vw;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}

	.header-image img {
		margin-left: -36%;
	}
}

@media (max-width: 400px) and (max-height: 800px) {
	.header-image::after {
		background-size: auto 51%;
        background-position: 2vw -4vw;
	}

	.header-image::before {
		top: 56vw;
        left: 2vw;
        width: 33%;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}

	.header-image img {
		margin-left: -36%;
	}
}

@media (max-width: 365px) and (max-height: 800px) {
	.header-image::after {
		background-size: auto 48%;
        background-position: 2vw -2vw;
	}

	.header-image::before {
		top: 57vw;
        left: 2vw;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}
}

@media (max-width: 350px) {
	.header-image::after {
		background-size: auto 50%;
        background-position: 1vw -1.891vw;
	}

	.header-image::before {
		top: 62vw;
        left: 1vw;
        text-wrap: wrap;
        /* transform: translate(-50%, -50%); */
        font-size: 2.625rem;
	}

	.header-image img {
		margin-left: -36%;
	}
}