/*
	(c)2018 - visuallizard.com

	General Layout Styles.
	Sets major blocking to elements that appear across the site in different templates.
	All can be removed and started from scratch or elements can be adjusted individually.
*/
.container {
/*
	Set site maximum width only here and use this class to centre the content in browser window.
	Use "max-width" instead of "width" for auto-responsivness.
*/
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
}

.full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
.full-bleed {
/* 	alternative to .full-width - https://andy-bell.design/wrote/creating-a-full-bleed-css-utility/ */
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.site-top {
	background-color: #111e40;

	position: relative;
	z-index: 3;
}
	.site-top-container {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.statusbar-nav {
		font-size: 75%;
		display: flex;
		flex-direction: row;
		justify-content: center;
		margin-left: 2rem;
		color: #c49104;
/* 		color: #ee2e24; */
	}
		.statusbar-nav .nav-link {
			padding: .5em 1.25em .5em .5em;
			line-height: 1.1;
		}
		.statusbar-nav .nav-link:hover {
			color: #fff;
		}
/* hide Check-in on large viewports to be enabled on mobile */
		.statusbar-nav .nav-item:first-child {
			display: none;
		}

	.top-nav .nav-1 {
		font-size: 75%;
		display: flex;
		flex-direction: row;
		justify-content: center;
	}
	.top-nav .nav-link {
		padding: .5em 1.25em .5em .5em;
		line-height: 1.1;
		color: rgba(255,255,255,.75);
	}
	.top-nav .nav-link:hover {
		color: #fff;
	}

	[lang*="fr"] .statusbar-nav { font-size: 70%; }
	[lang*="iu"] .statusbar-nav { font-size: 60%; }
	[lang*="fr"] .statusbar-nav .nav-link,
	[lang*="iu"] .statusbar-nav .nav-link { padding-right: .75rem; }
	[lang*="fr"] .top-nav .nav-1 { font-size: 70%; }
	[lang*="iu"] .top-nav .nav-1 { font-size: 60%; }
	[lang*="fr"] .top-nav .nav-link,
	[lang*="iu"] .top-nav .nav-link { padding-right: 1rem; }


/* Languages toggle */
.languages {
	padding: 0;
	margin: 0 .5rem;
	list-style: none;
	display: inline-flex;
	font-size: 75%;
}
	.languages a {
		text-transform: uppercase;
		display: block;
		padding: 0 .5em;
	}
	.languages a:hover {
		color: #fff;
	}


/* Site Header */
.site-header {
	position: absolute;
	top: 0;
	width: 100%;
	padding: 0;
	margin: 33px 0 0;

	background-color: #fff;
	border-bottom: 1px solid #eee;

	transform: translateY(0);
	transition: all .2s ease;

	z-index: 2;
}
	.cake-error ~ .site-header {
		position: static; /* for easier debugging prevent Sticky .site-header */
	}
	.site-header:before {
		/* to prevent gap between header and top of viewport on fast scrolling: */
		content: '';
		display: block;
		position: absolute;
		left: 0;
		top: -50px;
		height: 50px;
		width: 100%;
		background-color: inherit;
	}
	.site-header-container {
		display: flex;
	}

	.site-header + * {
		/*	comepnsate the following element's position for the hight of header since it's absolutely positioned (.banners or main) */
		/* 	margin-top: 70px; */
	}
	.header-away {
		opacity: 0;
		transform: translateY(-100%);
	}
	.header-fixed {
		position: fixed;
		margin-top: 0;
		box-shadow: 0 4px 10px -8px rgba(0,0,0,0.45);
		opacity: 1;
		transform: translateY(0);
	}
		.header-fixed .site-title {
			max-width: 80px;
		}
		.header-fixed .main-nav .nav-1 > li > a {
			padding-top: .5em;
			padding-bottom: .5em;
		}
		.no-js .site-header {
			position: relative;
			top: auto;
			margin-top: 0;
		}


.site-title {
	margin: .5em  0;
	max-width: 145px;
	width: 25%;
	transition: max-width .2s;

	display: flex;
	flex-direction: column;
	justify-content: center;
}
	.site-title > a {
		display: block;
		text-decoration: none;
		color: inherit;
		font-size: 1rem;
		line-height: 1;
		transition: all .2s;
	}
	.site-title:hover > a {
		opacity: .8;
	}
	.site-title-img {
		width: 100%;
		transition: width .2s;
	}


/* Search Form */
.search-form {
	display: inline-flex;
	margin: .25rem .5rem .25rem auto;
	border: 1px solid rgba(255,255,255,.5);
	max-width: 15%;
}
	.search-input {
		background-color: transparent;
		padding: 4px 5px;
		border: none;
		color: #fff;
		font-size: 12px;
		min-width: 0;
		letter-spacing: .05em;
	}
	.search-input:focus {
		border-color: rgba(255,255,255,1);
	}
	.search-button {
		border-radius: 0;
		font-size: 0;
		min-width: 20px;
		width: 1.5rem;
		padding: .25rem;
		background: url(/img/icon-search.svg) center center no-repeat transparent;
		background-size: 50%;
		opacity: .8;
	}
	.search-button:hover {
/* 		background-color: #c49104; */
		opacity: 1;
	}



/* 	! SECTIONS	*/
main {

}
	.main-container {
		display: flex;
		flex-direction: column;
		flex-grow: 1;
/* 		background: pink; */
		min-height: 100%;
	}
	.main-content {
		display: flex;
		flex-direction: row;
		flex-grow: 1;
	}

	.sidebar {
		width: 30%;
		padding: 3rem 1rem 3rem 0;
		border-right: 1px solid #eee;
		flex-grow: 1;
	}
	.primary {
		width: 70%;
		padding: 2rem 0 2rem 5%;
		flex-grow: 1;
	}

	.home .main-content {
		display: none;
	}

	.primary:only-child,
	.single .primary {
		width: 100%;
		padding-left: 0;
	}

	/* 	Contact Page */
	.contact .sidebar,
	.contact .primary {
		width: 40%;
	}


/* ! NAVIGATIONS:  */

/* General for all levels and navs: */
.nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-item {
	position: relative;
	display: block;
	vertical-align: top;
}
.nav-link {
	display: block;
	padding: .75em 0;
	color: inherit;
	text-decoration: none;
	transition: all .3s;

	line-height: 1.25;
}

	.nav-item[data-nav-status="has-active"] > a,
	.nav-item[data-nav-status="active"] > a {
		font-weight: bold;
	}



	/* 	Main nav specific */
	.main-nav {
		padding: 0 0;
		margin-left: 3%;

		display: flex;
		flex-grow: 1;
		flex-direction: column;
		justify-content: center;

		font-size: 14px;
	}
	[lang*="fr"] .main-nav,
	[lang*="iu"] .main-nav {
		font-size: 13px;
	}

	/* Level 1 (horizontal) */
	.main-nav .nav-1 {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}
	.main-nav .nav-link {
		padding: .65em 1em;
	}
	.main-nav .nav-1 > li {
		display: flex;
	}
	.main-nav .nav-1 > li > a {
		padding: 1.75em 1em;
		color: inherit; /* prevent colour change on hover because action is disabled with JS */
		transition: padding .2s;
		min-width: 70px; /* Avoid very narrow items if words are too short */
	}

	[lang*="fr"] .main-nav .nav-1 > li > a,
	[lang*="iu"] .main-nav .nav-1 > li > a { padding-top: 1em; padding-bottom: 1em; }

	.main-nav .nav-1 li:hover > a {
		background-color: #111e40;
		color: #fff;
	}

	/* all sub-lists (drop-downs & drop-sides) */
	.main-nav .sub-list {
		display: block;
		position: absolute;
		top: 0;
		left: auto;
		width: 200px;
		margin: 0;
		padding: 0;

		background-color: #fff;
/* 		border: 1px solid rgba(0, 0, 0, 0.2); */
		border-top: 0;
		border-radius: 2px;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);

		transition: all .3s;
		z-index: 1000;
	}
	.main-nav li              > .sub-list { visibility: hidden;  opacity: 0; transform: scale(.95); }
	.main-nav li:hover        > .sub-list { visibility: visible; opacity: 1; transform: scale(1); }
	.main-nav li:focus-within > .sub-list { visibility: visible; opacity: 1; transform: scale(1); }

	.main-nav .sub-list .sub-list { left: 100%; }

	.main-nav :nth-last-child(1) > .nav-2,
	.main-nav :nth-last-child(2) > .nav-2 { right: 0; left: auto; }

	.main-nav :nth-last-child(1) > .nav-2 .nav-list,
	.main-nav :nth-last-child(2) > .nav-2 .nav-list { right: 100%; left: auto; }

	.main-nav :nth-last-child(1) > .nav-2 .has-sub > .nav-link::after,
	.main-nav :nth-last-child(2) > .nav-2 .has-sub > .nav-link::after { transform: scaleX(-1); }



	/* Level 2 (the only drop-down ) */
	.main-nav .nav-2 {
		top: 100%;
	}


	.main-nav .nav-2 > li {

	}
	.main-nav .nav-2 > li > a {

	}

	/* Level 3, etc. */
	.main-nav .nav-3 {

	}
	.main-nav .nav-3 > li {

	}
	.main-nav .nav-3 > li > a {

	}


	/* Has-subs Chevron indicators */
	.main-nav .has-sub > .nav-link {
		padding-right: 1.5em;
	}
	.main-nav .has-sub > .nav-link::after {
		position: absolute;
		top: 0;
		top: calc(50% - .5em);
		/* bottom: 0; */
		margin: auto;
		right: .25em;
		content: " ";
		background: no-repeat right center url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path fill='%23setColorCodeHere' d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /></svg>");
		display: block;
		width: 1em;
		height: 1em;
		background-size: 100%;
		transform-origin: center center;
	}
	.header-fixed .main-nav .has-sub > .nav-link::after {
		/* top: .75em; */
	}
	[lang*="fr"] .main-nav .nav-1 > .nav-item.has-sub > .nav-link::after,
	[lang*="iu"] .main-nav .nav-1 > .nav-item.has-sub > .nav-link::after { top: 1.25em; }


	.main-nav .has-sub:hover > .nav-link:after,
	.main-nav .has-sub[data-nav-status="has-active"]:hover > .nav-link:after {
		filter: invert(100%);
	}
	.main-nav .nav-1 > .has-sub > .nav-link:after {
		transform: rotate(90deg);
	}


	/* 	Side Navigation */
	.side-nav .nav-link {
        display: inline-block;
		padding: .35rem .5rem;

	}
	.side-nav .nav-link:hover {
		background-color: #111e40;
		color: #fff;
	}
	.side-nav > .nav-item {
		display: none; /* hide all  */
	}
	.side-nav > .nav-item[data-nav-status="has-active"] {
		display: block; /* show this but keep siblings hidden  */
	}
	.side-nav > .nav-item[data-nav-status="has-active"] > .nav-link {
		margin: 0 0 .75em 0;
		font: 400 24px/1.1 'Montserrat', sans-serif;
		letter-spacing: 0.02em;
/* 		color: #111e40; */
	}

	.side-nav .nav-list .nav-list {
		padding-left: 1em;
		font-size: 13px;
	}

	.side-nav .nav-3 .nav-link {
		padding: .25em .5em;
	}



	/* 	Sitemap Navigation */
	.sitemap-nav.sitemap-nav .nav-link {
		box-shadow: none;
		display: inline-block;
	}
	.sitemap-nav.sitemap-nav .nav-link:hover {
		padding: .25rem 1rem;
	}


/* ! Banners: defaults */
.banners {
	margin-bottom: 2em;
}
	.banner {
		position: relative;
		display: block !important; /* remove space below coused by inline-block*/
	}
		.banner-link {
			display: block;
		}
		.banner-img {
			display: block;
			width: 100%;
			height: auto;
		}
		.banner-text {
			position: absolute;
			top: 50%;
			left: 0;
			right: 0;
			margin: 0 auto;
			padding: 1em;
			max-width: 800px;
			text-align: center;
			text-transform: none;
			text-shadow: 0 0 3px rgba(0,0,0,.5);
			color: #fff;
			transform: translateY(-50%);
			transition: all .2s;
			pointer-events: none;
		}
		.banner-link:hover .banner-text {
			opacity: .5;
		}
			.banner-title {
				color: inherit;
				font-size: 50px;
				font-size: calc(1.5em + 2vw);
				font-weight: normal;
				margin-top: 0;
				margin-bottom: 0;
			}
			.banner-subtitle {
				font-weight: normal;
				margin: .5rem auto;
			}

		.banner-text.upperleft    { margin: 0; top: 20%; left: 0%; }
		.banner-text.uppercentre  { margin: 0; top: 20%; left: 40%; }
		.banner-text.upperright   { margin: 0; top: 20%; left: 60%; }
		.banner-text.middleleft   { margin: 0; top: 40%; left: 0%; }
		.banner-text.middlecentre { margin: 0; top: 40%; left: 40%; }
		.banner-text.middleright  { margin: 0; top: 40%; left: 60%; }
		.banner-text.lowerleft    { margin: 0; top: 80%; left: 0%; }
		.banner-text.lowercentre  { margin: 0; top: 80%; left: 40%; }
		.banner-text.lowerright   { margin: 0; top: 80%; left: 60%; }

	/* ! Banners: Featured - slider */
	.featured.banners {
		margin-bottom: 0;
	}
		.featured.banners .banner-img {
			object-fit: cover;
			max-height: 420px;
		}
		.featured.banners .banner-text {
			padding-top: 70px;
			padding-bottom: 0;
		}
		.home .featured.banners .banner-text {
			padding-top: 0;
			margin-top: 0;
			background-color: rgba(17, 30, 63, 0.4);
		}
		.home .featured.banners a:hover + .banner-text {
			background-color: rgba(17, 30, 63, 0.8);
		}
		.home .featured.banners .banner-img {
/* 			max-height: 500px; */
		}

		.banner-desc > :last-child {
			margin-bottom: 0;
		}
		.banner-desc img {
			display: block;
			margin: 2rem auto;
			max-width: 40vw;
			max-height: 300px;
			width: auto;
			height: auto;
		}

	/* ! Banners: Grid Fixed item width */
	.grid-fixed.banners {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 102%;
		margin: 0 -1% 0;
		padding: 0;
	}
		.grid-fixed .banner {
			display: inline-block;
			width: 25%;
			padding: 1em 1%;
		}
		.grid-fixed .banner-link {
			display: flex;
			align-items: center;
			height: 100%;
		}
		.grid-fixed .banner-img {
			transition: transform .3s;
		}
		.grid-fixed .banner-link:hover .banner-img {
			transform: scale(1.1);
		}
		.grid-fixed .banner-title {
			font-size: 20px;
		}

	/* ! Banners: Grid Flex item width
	(usually for sponsor logos where width is unknown. Set module settigns to something like Width:0 and Height:100px ) */
	.grid-flex.banners {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 102%;
		margin: 0 -1% 1em;
		padding: 0;
	}
		.grid-flex .banner {
			width: auto;
			margin: 1em 1%;
			padding: 0;
		}
		.grid-flex .banner-link {

		}
		.grid-flex .banner-img {
			display: block;
			width: auto;
			height: 100%;
			max-height: 100px;
			margin: 0;
			transition: all .3s;
		}
		.grid-flex .banner:hover .banner-img {
			transform: scale(1.1);
		}
		.grid-flex .banner-title {
			font-size: 20px;
		}

/* ! gallerys */
.gallery-set {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 0;
    padding: 0;
    list-style-type: none;
    overflow: hidden;
}
.gallery-set > li {
    width: 20%;
    margin: 0;
    padding: 0;
    max-width: 480px;

}

.gallery-box {
    position: relative;
    display: block;
    margin: 0;
    height: 0;
    padding-top: 100%;
    background-size: cover;

}
.gallery-box a {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    justify-content: flex-end;
    color: #fff;

    transform: scale(1);
    cursor: pointer;
}
.gallery-box[style*="placeholder"] {
    background-size: cover;
}
.gallery-text {
    width: 100%;
    min-height: 0;
    max-height: 70%;
    margin: 0;
    padding: 1.5em 1.5em 1em;
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(0,0,0, 0), rgba(0,0,0, .5), rgba(0,0,0, .85));
    color: #fff;
    opacity: 1;
    transition: all .3s ease-in-out;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.gallery-title {
    margin-bottom: 0;
}
.gallery-box .gallery-brief {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: all .3s ease-in-out;
}
.gallery-box .gallery-brief:empty {
    margin: 0;
}
.gallery-box a:hover .gallery-brief {
    max-height: 200px;
    opacity: 1;
    margin-top: 1em;
}


/* ! Social Media */
.social-media {
	list-style: none;
	margin: 0;
	padding: 0;
}
	.social-media > li {
		display: inline-block;
		vertical-align: middle;
		margin-left: .25em;
	}
	.social-media > li > a {
		display: block;
	}
	.social-media > li > a:hover {

	}
	.social-media svg {
		display: block;
		width: 1.25em;
		height: 1.25em;
	}

	.header-social-media {
		display: flex;
		align-items: center;
	}
	.header-social-media > li {
		margin-left: .25em;
	}
	.header-social-media > li > a {
		color: #fff;
		color: rgba(255,255,255,.75);
	}
	.header-social-media > li > a:hover {
		color: rgba(255,255,255,1);
	}

	.footer-social-media {
		margin: .5em 0;
	}
	.footer-social-media > li {
		display: inline-block;
		margin: 0;
	}
	.footer-social-media > li > a {
		color: #fff;
		color: rgba(255,255,255,.75);
	}
	.footer-social-media > li > a:hover {
		color: rgba(255,255,255,1);
	}
	.footer-social-media svg {
		width: 2em;
		height: 2em;
	}


/* ! Site Footer  */
.site-footer {
	position: relative;
	clear: both;
	padding: 2em 0 1em;
	margin: 0;
	background-color: #111e40;
	color: rgba(255,255,255,.75);
	font-size: 12px;
}
	.site-footer-container {
		text-align: center;
		max-width: 1000px;
	}
	.site-footer-container + .site-footer-container {
		margin-top: 1em;
/* 		border-top: 1px solid rgba(255,255,255,.75); */
		padding-top: 1em;
	}
	.site-footer hr {
		opacity: .5;
		border-color: transparent;
		background-color: #c49104;
	}

	.footer-nav .nav-1 {
		columns: 250px 3;
		display: inline-block;
	}
		.footer-nav .nav-link {
			padding: .5em;
		}

	.bottom-nav {
		text-align: center;
		display: flex;
		justify-content: space-around;
	}
	.bottom-nav .nav-1 {
		display: inline-flex;
		flex-direction: row;
		justify-content: center;
	}
	.bottom-nav .nav-link {
		padding: .25em 1em;

	}

	.bottom-nav .copyright {
		margin-bottom: 0;
		color: rgba(255,255,255,1);
	}

	.site-footer a:hover {
		color: #c49104;
	}
/*
	.footer-meta {
		margin: 1rem auto;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		justify-content: center;
		align-items: center;
	}
*/

/* ! Intelisys Login Nav and Forms */
#intelisys-login-forms{
	margin:0;
	padding:1em;
	position:absolute;
	top:100%;
	left: 0;
	z-index:2000;
	background:white;
	width: 250px;
	border: 1px solid black;
}
ul#intelisys-login-forms-nav {
	list-style: none;
}


/* ! Error Pages */
.code-404.error-header {

}
.code-404.error-code {
	font-size: 12px;
}
