/* SUBSITE-SPECIFIC STYLES */

.skip-sidenav-link {
    left: 45%;
    padding: 2px 8px;
    position: absolute;
    transform: translateY(-100%);
    transition: transform .3s;
    background-color: hsl(0deg 0% 96% / 80%);
}

.skip-sidenav-link:focus {
    transform: translateY(0);
}
/* == BANNER == */
.wrap.wider {
    overflow: hidden;
}

#banner > div {
    position: relative;
}

#callout {
    float: left;
    margin-top: 100px;
    }

#callout a {
    font-weight: 300;
    color: white;
    padding: 8px 15px;
    background-color: rgb(25, 33, 56);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone; /*prevents uneven padding on long subsite titles*/
    }

#callout a:hover {
    color: #e1b200;
    background-color: rgb(25, 33, 56);
    background-color: rgba(25, 33, 56, .9);
    }
    
#callout .subsite-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 25px;
    line-height: 35px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    padding: 0;
    border-bottom: 0;
   }

.flexslider .slides img {
    width: 100%;
    display: block;
	min-width: 1200px;
	position: absolute;
    left: 50%;
    top: 100px;
	transform: translateY(-50%) translateX(-50%);
	-moz-transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

#banner.no-banner {
	background: #f0f0f0;
	height: auto;
	min-height: 120px;
	padding: 0px;
  }
  
.no-banner  #callout {
	margin-top: 50px;
  }
  

/* === SUBSITE CONTENT === */

main .padding {
    padding-top: 20px;
    padding-left: 20px;
    }

.main .unit {
    margin: 20px 0;
}

.sidebar .padding {
    padding-left: 10px;
    }

.unit .whole .sidebar.one-quarter.unit:first-child {
    float: right;
    padding: 0;
    background-color: #fff;
    padding: 0 0 25px 20px;
    }

main .four-fifths .news p.title + p {
    margin-top: 0;
    }

main .four-fifths .news .title, main .four-fifths .news p.title + p.title {
    margin-top: 25px; 
    margin-bottom: 0px;
    }

main .news p {
	margin-bottom: 0;
	}

aside {
    min-width: 200px;
}

/* === SUBSITE SIDENAV === */

.sidenav.unit:first-child {
    padding-left: 0px; /*override gridism*/
    padding-right: 0px;
    margin-top: 20px;
	margin-bottom: 25px;
    }

.sidenav ul {
    margin: 0px;
    }

.sidenav ul li {
    margin: 0px;
    list-style-type: none;
    background-color: #192138;
    }

.sidenav a, .sidenav .nav-button {
    display: block;
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    color: #fff;
    background-color: #192138;
    padding: 10px 15px;
    }

.sidenav ul li a:hover, .sidenav .nav-button:hover {
    color: #ffce15;
    }

.sidenav ul ul {
    padding: 0px;
    }

.sidenav ul ul li a {
    margin: 0px;
    padding: 8px 0px 8px 20px;
    font-size: 12px;
    line-height: 20px;
    background-color: #354679;
    }   

.sidenav .support a,
.sidenav .contact a,
.sidenav .social a {
    font-size: 14px;
    padding: 10px 12px 10px 4px;
}

.sidenav .support a {
    background-color: #2f3e6a;
    }

.sidenav .social a {
    background-color: #3a4255;
    }
    
.sidenav .contact a {
    background-color: #253155;
    }

.sidenav .weblink a:after {
	font-family: 'FontAwesome';
	content: '\f0a9';
	margin-left: 5px;
	display: inline-block;
	transition: .3s;
	}	

.sidenav .weblink a:hover:after {
	-ms-transform: rotate(-35deg);
    -webkit-transform: rotate(-35deg);
    transform: rotate(-35deg);
	display: inline-block;
	}

.sidenav .fa-stack {
    font-size: 100%;
    vertical-align: top;
    }
    
.contact .fa-stack-1x,
.social .fa-stack-1x {
    line-height: 22px;
    }

.contact .fa-stack-2x,
.social .fa-stack-2x {
    font-size: 22px;
    }
    
.sidenav .fa-stack .fa.fa-stack-1x {
    color: #74000e;
    font-size: 14px;
    }

.sidenav .fa-stack .fa.fa-stack-2x {
    color: #fff;
    }

.social a i,
.sidenav .contact a i {
    transition: .3s;
	}

.social:hover i,
.contact a:hover i {
    transform: scale(1.2);
	}

.sidenav .fa.fa-angle-down {
    display: inline;
    }

.support a i {
    transition: .75s;
	}

.support a:hover .fa.fa-certificate.fa-stack-2x {
    transform: rotate(90deg) scale(1.1);
	transform-origin: 44% 50%;
	}
	
/* === OPTIONAL CONTENT SIDEBAR (NOT SIDENAV) === */	
/**override gridism */
.unit .unit.main-content--sidebar {
    padding-left: 20px;
}

/* === NEWS === */

.news {
    background-color: transparent;
    border: none;
}

.news h3 {
    margin-bottom: 0;
    border: 1px solid #ebf3fd;
    border-bottom-width: 0;
}

.news__content {
    background-color: #f6faff;
    overflow: auto;
    padding: 0 20px 20px 20px;
    border: 1px solid #ebf3fd;
    border-top-width: 0;
}

.news.unit {
    padding: 0; /*subsite style only*/
    }

.news a {
	font-weight: 600;
	}

.news .fa-stack {
    margin-right: 10px;
    }

.news .title {
    margin: 10px 0 5px 0;
    font-family: 'Open Sans', 'Helvetica', sans-serif;
    line-height: 22px;
    text-transform: uppercase;
    }  

.news .title a {
    color: #74000e;
    font-size: 16px;
    font-weight: 500;
    }
    
.news .fa-stack-1x {
    color: white;
    }    

/* == highlight section == */

.highlight {
    background-color: #e7f1fe;
    padding-top: 30px;
    padding-bottom: 20px;
    }
    
.highlight ul {
    margin-left: 20px;
    }

.highlight .title {
    font-family: 'Open Sans', 'Helvetica', sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 26px;
    font-weight: 700;
    }

.highlight .fa-stack {
    line-height: 52px;
    width: 50px;
    height: 50px;
    }

.highlight i.fa.fa-stack-1x {
    color: #fff;
    }

.highlight i.fa.fa-stack-2x {
    font-size: 50px;
    color: #74000e;
    }

/* === SUBSITE SITE MAP ===*/

.sitemap {
    list-style-type: none;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    }
    

/* == ACCORDIONS == */

.accordion {
	margin-bottom: 50px;
}

.accordion .title {
    width: 100%;
	display: block;
	font-family: 'Raleway', sans-serif;
    font-size: 21px; font-size: 1.3125rem;
    line-height: 30px;
    font-weight: 500;
    text-align: left;
    background-color: transparent;
	color: #034077;
	margin: 0;
    padding: 20px 10px;
	transition: .3s;
}

.accordion .title:hover {
    background-color: #ebf3fd;
	color: #74000e;
}

.accordion-item {
	border-bottom: 1px solid #eee;
	margin: 0;
}

.accordion .intro-content:first-child {
    margin-top: 0;
}

.accordion .intro-content {
	margin-top: 50px;
}

.accordion .non-hidden {
	margin: 0 10px;
}

.accordion .toggle {
    overflow: auto;
}

.accordion .description {
	padding: 0 10px;
}
    

/* MEDIA QUERIES =================================*/

@media (max-width: 1400px) {}
/* Large devices (desktops, less than 1200px)*/
@media (max-width: 1199.98px) {}
@media (max-width: 1154.98px) {}

@media (max-width: 1059.98px) { 

    .banner-callout h2 {
        font-size: 23px;
    }
    
    .sidenav ul li a, .sidenav .nav-button {
        padding: 10px;
        letter-spacing: 1px;
    }
    
    .sidenav ul ul li a {
        padding: 8px 0px 8px 10px;
    }

    main .grid .unit {
        padding: 10px;
    }

    main .padding {
        padding-left: 15px;
        padding-right: 15px;
    }

    main .grid .unit.four-fifths {
        padding: 10px;
    }
        
    aside.one-quarter img {
        max-width: inherit;
        width: 100px;
    }

}

/* Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) { 
    
    .site-title a {
        margin-left: 10px;
    }
    
    #callout {
        margin-left: 10px;
    }
    
    .site-title a {
        margin-left: 15px;
    }
    
    .sidenav.one-fifth.unit {
        width: 30%;
        padding-left: 10px;
    }
    
    .main-content .unit.whole {
        padding: 0;
    }
    
    .main-content--sidebar.one-quarter.unit {
        width: 100%;
        float: none;
        padding: 0 0 20px 0;
    }
    
    .main-content.four-fifths.unit {
        width: 70%;
        padding-left: 0;
    }    
    
    /*override gridism*/
    .unit .whole .sidebar.one-quarter.unit:first-child {
        padding: 0 0 20px 0;
    }
    .green, .blue {
        margin: 20px 0 0 0;
    }
    
}


/* Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) { 

    #banner {
    	background-position: center !important; /*override inline style*/
	}
    
    .no-banner {
	    padding-top: 0;
	    display: table-cell;
	    vertical-align: middle;
    }
    
    .no-banner  #callout {
        margin-top: 15px;
    }
    
    .banner-callout {
        margin: 0px;
        padding: 10px;
        bottom: 0;
    }

    .banner-callout h2 {
        font-size: 20px;
    }
    
    .banner-toggle {
        padding: 7px;
        margin-top: 10px;
    }    

    .flexslider {
        position: inherit !important;
        padding-top: 0;
        vertical-align: top;
    }
        
    main {
        margin-top: 0;
    }
    
    main .padding {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .sidenav a, .sidenav .nav-button {
        font-size: 14px;
    }
    
    .sidenav.one-fifth.unit {
        width: 35%;
    }    
    
    .main-content.four-fifths.unit {
        width: 65%;
        padding-left: 20px;
        padding-top: 0px;
    }
    
    .highlight .unit .unit {
        padding: 0;
    }

}

@media (max-width: 682px) { 
    #callout {
        margin-top: 30px;
    }
}


@media (max-width: 575.98px) { 

    .wrap .grid .unit:first-child {
        padding-left: 10px;
    }
    
    .site-title a {
        margin-left: 20px;
    }
    
    .navBtn {
        padding: 0 20px;
    }
    
    #callout {
        margin-left: 20px;
    }
    
    .no-banner  #callout {
    	margin-top: 15px;
    }

    .sidenav.one-fifth.unit:first-child {
        padding: 0 20px;
        margin-bottom: 0;
    }

	main {
        padding-top: 0;
	}
    
    .wrap .grid .main-content .unit.whole {
        padding: 0;
    }
    
    .main-content--sidebar.one-quarter.unit {
        width: 100%;
        float: none;
        padding: 0 0 20px 0;
    }
    
    .unit .whole .sidebar.one-quarter.unit:first-child {
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .green, .blue {
        margin: 15px 0;
    }
    
    .main-content--sidebar + #main-content {
        margin-top: 30px;
    }
    
    .sitemap {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
	}

    .wrap .copyright .grid .unit:first-child {
        padding-left: 0;
    }

    .copyright p, .copyright p:first-child {
        width: auto;
        text-align: center;
        padding: 0 10px;
    }
    
    .copyright img {
        margin: auto;
        padding: 0;
    }

}

/*  #BROWSER: IE 10 
=================================================== */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

    /* sidebar */
    .grid .whole .one-quarter img {
        margin-left: 0px;
        }

}

/* Modal, used in Photo Gallery */

/*This class is needed to prevent the content behind the open modal from scrolling*/
.has-open-modal {
    overflow-y: hidden;
}

.modal__page-block {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.modal__dialog {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.modal__close {
    position: absolute;
    text-align: center;
    right: 20px;
    top: 20px;
}

.modal__close button {
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 0;
}

.modal__close .fa-circle {
    color: #3678c2;
}

.modal__close:hover .fa-circle {
    color: #27568b;
}

.modal__close .fa-times {
    color: #fff;
}

/* End Modal */

/* Photo Gallery */
.grid-gallery.grid-gallery {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    columns: 6 200px;
    column-gap: 1rem;
}

.grid-gallery.grid-gallery figcaption {
    font-size: 0.8125rem;
    line-height: 1.384615385;
}

.grid-gallery li {
    margin-bottom: 1rem;
}

.modal-gallery {
    display: flex;
    overflow-y: auto;
    width: 90vw;
    height: 90vh;
    margin: 40px auto;
    padding: 10px 30px 0;
    background: transparent;
}

.modal-gallery p {
    position: fixed;
    top: 20px;
    left: 25px;
    color: white;
}

.modal-gallery figure {
    display: table;
    margin: auto;
}

.modal-gallery figure img {
    max-height: 85vh;
}

.modal__prev {
    left: 15px;
}

.modal__next {
    right: 15px;
}

.modal__prev, .modal__next {
    position: fixed;
    text-align: center;
    bottom: 50%;
}

.modal__prev button, .modal__next button {
    background: transparent;
    border: none;
}

.modal__prev i, .modal__next i {
    color: white;
    font-size: 30px;
}

/* end Photo Gallery */