/*

@media only screen and (max-width: 1200px) {

	.header {
		background-color: blue;
	}

}


@media only screen and (max-width: 767px) {

	.header {
		background-color: red;
	}

}

@media only screen and (max-width: 420px) {

	.header {
		background-color: green;
	}

}

*/

/*  Tablets in landscape mode, older desktop monitors */

@media only screen and (max-width: 1200px) {
    body {
        padding: 0;
    }

    .header .header-inner .inner {
        padding: 0;
    }

    .inner {
        width: 100%;
        padding: 0 1em;
    }

    .logo-image img {
        height: 70px;
    }

    .nav {
        width: 100%;
    }

    .home .content,
    .intro .content,
    .video-wrapper iframe {
        height: 100vh;
    }

    .nav-the-location a {
        width: 50%;
        margin: 1em 0;
    }
}

/*  Smartphones in landscape mode */

@media only screen and (max-width: 767px) {
    .header .header-inner {
        display: grid;
        align-items: center;
    }

    .header .header-inner .inner {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
    }

    .nav-toggle {
        display: block;
        top: calc(50% - 2px);
        left: 0;
        right: auto;
        z-index: 30015;
    }

    .nav-toggle.active span:before,
    .nav-toggle.active span:after {
        top: 0;
        background: #FFF;
    }

    .header-profile-btn .header-profile-btn-inner {
        padding: 0 18px;
        margin: 0;
    }

    .header-profile-btn .header-profile-btn-inner .header-profile-text.anonymous {
        display: none;
    }

    .logo-image img {
        height: 50px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        height: 100%;
        padding: 1rem 0;
        z-index: 30010;
    }
    
    .nav-inner {
        display: grid;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav li {
        width: 100%;
        margin: 0;
    }

    .nav .menu > li > a {
        width: 100%;
        margin: 0;
        padding: 0.5em 1em;
        height: auto;
        line-height: 1em;
        text-align: center;
        text-decoration: none;
    }

    .home .content,
    .intro .content,
    .video-wrapper iframe {
        height: calc(100vH - 70px);
    }

    .page .main {
        width: 100%;
        order: 1;
        margin: 0 0 1em;
    }

    .page .aside {
        width: 100%;
        order: 2;
    }

    .aside-inner {
        padding: 1em;
    }

    .accordion-group__accordion-panel {
        padding: 0.5rem 0;
    }

    .search-form-aside {
        padding: 1em;
    }

    .menu .menu-item.has-sub-menu:hover > .sub-menu {
        position: initial;
    }

    footer .footer-content {
        padding: 50px 20px;
        flex-direction: column;
    }

    footer .footer-content .footer-section {
        color: #fff;
        margin: 40px 0;
        position: relative;
    }

    footer .footer-content .footer-section:first-child {
        margin-top: 0;
    }

    footer .footer-content .footer-section:last-child {
        margin-bottom: 0;
    }

    footer .footer-content .footer-section:after {
        content: '';
        display: block;
        width: 120px;
        height: 2px;
        background-color: #85878E;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -40px;
    }

    footer .footer-content .footer-section:last-child:after {
        display: none;
    }

    footer .copyright {
        padding: 20px;
    }

    footer .copyright .mw960 {
        flex-direction: column-reverse;
        align-items: center;
    }

    footer .copyright .mw960 .links {
        margin-bottom: 10px;
    }

}

/*  Smartphones in portrait mode  */

@media only screen and (max-width: 420px) {
    .nav-the-location a img {
        height: 60px;
    }

    .nav-the-location a {
        font-size: 1em;
    }

    .accordion-group__accordion-btn,
    .title_aside {
        padding: 1rem;
    }

    body {
        font-size: 14px;
    }

    .video-intro h1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

}


@media (min-aspect-ratio: 16/9) {
    .video-foreground {
        height: 300%;
        top: -100%;
    }

    .video-foreground iframe {
        height: 100%;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground {
        width: 300%;
        left: -100%;
    }
}



