@media only screen and (max-width: 1199px) {
    .hide-lg { display: none; }
}

@media only screen and (max-width: 991px) {
    .hide-md { display: none; }

	body.home header .logo {
		opacity: 1;
		width: auto;
	}

    .navbar {
        --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .navbar-toggler {
        border: none;
    }
    .navbar-toggler:focus {
        box-shadow: none;
    }
    #primary-menu.collapsing {
        transition: none;
        height: auto !important;
    }
    #primary-menu .nav {
        max-width: 720px;
        margin: 0 auto;
        flex-direction: row;
        justify-content: center;
        padding-bottom: 20px;
    }
    header .nav > li::after {
        height: calc(100% - 10px);
    }
    header .nav li.dropdown > ul.dropdown-menu.show {
        opacity: 1;
        pointer-events: all;
    }
}


@media only screen and (max-width: 767px) {
    .hide-sm { display: none; }

    footer {
        padding: 50px 0;
    }

	footer .bottom-footer-nav {
		flex-direction: column-reverse;
	}

	footer .left-side .nav {
		justify-content: center;
	}

    footer .about {
        margin-bottom: 2em;
        font-size: 1.15em;
    }

    h1 {
        font-size: 2.25em;
    }
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.75em;
    }

    .chapter-controls .col-md-4:nth-child(1),
    .chapter-controls .col-md:nth-child(1) {
        order: 1;
        max-width: 50%;
    }
    .chapter-controls .col-md-4:nth-child(2) {
        order: 3;
    }
    .chapter-controls .col-md-4:nth-child(3),
    .chapter-controls .col-md:nth-child(2) {
        order: 2;
        max-width: 50%;
    }
    .chapter-controls .prev-chapter,
    .chapter-controls .next-chapter {
        font-size: .85em !important;
    }
    .chapter-controls .prev-chapter::before,
    .chapter-controls .next-chapter::after {
        height: 32px !important;
        width: 16px !important;
    }

}

@media only screen and (max-width: 575px) {
    #primary-menu .nav {
        flex-direction: column;
    }
    #primary-menu .nav-item {
        text-align: center;
        overflow: hidden;
    }
    header .nav > li::after {
        display: none;
    }
    header .nav li.dropdown > ul {
        position: static;
        display: none;
		background-color: #fff;
    }
    header .nav li.dropdown > ul.dropdown-menu.show {
        display: flex;
    }

    .flex-content.contact .map {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .flex-content.contact .map .container {
        padding-left: 0;
        padding-right: 0;
    }

    .flex-content.about-blocks .block .img {
    	width: 100%;
		max-width: unset !important;
        display: block !important;
        float: none !important;
    }

	.flex-content.about-blocks .block .img img {
		width: 100%;
	}

}
