@media (max-height: 799px) {
	.sidebar .logo{
		top: 25px;
	}
	.sidebar .search{
		display: none;
	}
	.sidebar .links{
		display: none;
	}
	.main-menu {
		top: 57%;
	}
	.grid-item-modal .navigate .prev,
	.grid-item-modal .navigate .next{
		margin: 0
	}
	.grid-item-modal .navigate a{
		background: rgba(0,0,0,0.5);
	}
	.modal .fancybox-close-small {
		color: #ffffff;
		right: 0;
		top: 0;
		background: rgba(0,0,0,0.5);
	}
	.registration-modal .fancybox-close-small,
	.login-modal .fancybox-close-small{
		color: #111111;
		right: -5px;
		top: -5px;
		background: transparent;
	}
}

@media (max-width: 1599px) {
	.content {
		margin-left: 50px;
	}
	.sidebar{
		margin-left: -300px;
	}
	.sidebar .logo,
	.sidebar .media,
	.sidebar .main-menu{
		opacity: 0;
	}
	.sidebar.active{
		margin-left: 0;
	}
	.sidebar.active .logo,
	.sidebar.active .media,
	.sidebar.active .main-menu{
		opacity: 1;
	}
	.sidebar .open-button{
		display: block;
	}
	.sidebar.active .open-button .line-1{
		top: 10px;
		transform: rotate(45deg);
	}
	.sidebar.active .open-button .line-2{
		opacity: 0;
	}
	.sidebar.active .open-button .line-3{
		top: 10px;
		transform: rotate(-45deg);
	}
}

@media (max-width: 1199px) {
	.container {
		margin-right: auto;
		margin-left: auto;
		width: auto;
	}

	.grid-item-modal .navigate .prev,
	.grid-item-modal .navigate .next{
		margin: 0
	}
	.grid-item-modal .navigate a{
		background: rgba(0,0,0,0.5);
	}
	.modal .fancybox-close-small {
		color: #ffffff;
		right: 0;
		top: 0;
		background: rgba(0,0,0,0.5);
	}
	.registration-modal .fancybox-close-small,
	.login-modal .fancybox-close-small{
		color: #111111;
		right: -5px;
		top: -5px;
		background: transparent;
	}

	.filter .block .box,
	.filter .block .box.button{
		width: 25%;
	}

	.search-page .filter .block .box:not(.button),
	.search-filter .block .box {
		width: 75%;
	}
}

@media (max-width: 1023px) {
	.grid-item,
	.grid-col-sizer {
		width: 49%;
	}
	.grid-item.grid-item-double{
		width: 100%;
	}
	.grid-item.grid-item-3x,
	.grid-col-sizer.grid-item-3x{
		width: 32%;
	}
	.grid-gutter-sizer {
		width: 2%;
	}

	.modal{
		width: 100%;
		margin: 0;
		overflow: hidden;
	}

	.page-title h2{
		max-width: 100%;
	}

	.tab-navigate li a{
		height: 82px;
	}
	.tab-navigate li a b {
		font-size: 36px;
	}
	.tab-content {
		padding: 30px 20px;
	}
	.tab-content .block .box{
		width: 100%;
	}
	.tab-content .block .box:first-child{
		margin-bottom: 50px;
	}

	.chronology .block .gallery .item{
		width: 50%;
	}

	.work .block{
		width: 100%;
	}
	.work .block .info .title{
		margin-top: 50px;
	}
	.work .block .info .buttons{
		margin-top: 40px;
	}

	.favorites .gallery-buttons button,
	.favorites .gallery-buttons .btn{
		font-size: 13px;
	}

	.welcome{
		position: relative;
		top: 0;
		padding: 50px 21px;
	}
	.welcome .block {
		position: relative;
		min-width: 100%;
		top: 0;
		left: 0;
		transform: translate(0, 0);
	}

}

@media (max-width: 767px) {
	.content {
		margin-left: 0;
		margin-top: 95px;
	}
	.footer{
		position: relative;
		display: block;
	}
	.sidebar {
		position: fixed;
		width: 100%;
		height: auto;
		min-height: 90px;
		margin: 0 !important;
		background: rgba(255,255,255, 0.95);
		overflow: visible;
		-webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.1);
		-moz-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.1);
		box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.1);
	}
	.sidebar .media{
		display: none;
	}
	.sidebar .logo {
		position: absolute;
		top: 50%;
		left: 20px;
		width: auto;
		transform: translate(0, -50%);
		opacity: 1;
		margin-top: 0;
	}
	.sidebar .logo a {
		width: 75px;
		margin: 0;
	}
	.sidebar .open-button {
		position: absolute;
		top: 50%;
		right: 20px;
		transform: translate(0, -50%);
	}
	.sidebar .main-menu {
		position: absolute;
		top: 160px;
		left: 0;
		width: 100%;
		height: 1px;
		padding: 20px 0;
		transform: translate(0, 0);
		opacity: 0;
		overflow: hidden;
		background: rgba(255,255,255, 0.95);
		-o-transition: all 0.3s;
		-webkit-transition: all 0.3s;
		transition: all 0.3s;
	}
	.sidebar .main-menu.active {
		top: 100%;
		height: auto;
		opacity: 1;
		-o-transition: all 0.6s;
		-webkit-transition: all 0.6s;
		transition: all 0.6s;
	}

	.grid-item,
	.grid-col-sizer,
	.grid-item.grid-item-3x,
	.grid-col-sizer.grid-item-3x{
		width: 100%;
	}

	.grid-item-modal .info .title{
		width: 100%;
	}
	.grid-item-modal .info .category{
		width: 100%;
	}
	.grid-item-modal .button{
		position: relative;
		display: block;
		margin-top: 20px;
		top: 0;
		left: 0;
		transform: translate(0, 0);
	}
	.grid-item-modal .navigate a{
		width: 30px;
		height: 30px;
	}
	.grid-item-modal .navigate a i{
		font-size: 20px;
	}
	.modal .fancybox-close-small {
		width: 30px;
		z-index: 10;
	}
	.registration-modal .fancybox-close-small,
	.login-modal .fancybox-close-small{
		width: 50px;
		right: -10px;
		top: -10px;
		color: #ffffff;
	}

	.inner-page{
		padding: 50px 0;
	}
	.header .banner{
		padding: 105px 0 45px 0;
	}
	.filter .block .box,
	.filter .block .box.button,
	.search-page .filter .block .box:not(.button){
		width: 100%;
		margin: 0 0 20px 0;
	}
	.filter .block .box.button{
		margin-bottom: 0;
	}

	.page-title{
		margin-bottom: 50px;
	}
	h1{
		font-size: 50px;
		line-height: 60px;
	}
	h2{
		font-size: 36px;
		line-height: 46px;
	}

	.about .block{
		width: 100%;
	}

	.styled-quote{
		padding: 50px 30px;
	}

	.login-modal .info,
	.registration-modal .info{
		display: block;
	}
	.login-modal .title,
	.registration-modal .title{
		position: relative;
		display: block;
		width: 100%;
		height: 60px;
	}
	.login-modal .title .text,
	.registration-modal .title .text{
		width: 100%;
	}
	.login-modal .title i,
	.registration-modal .title i{
		font-size: 30px;
		margin-top: 3px;
		line-height: 60px;
	}
	.login-modal .title b,
	.registration-modal .title b{
		display: inline-block;
		vertical-align: top;
		margin: 0 0 0 15px;
		font-size: 25px;
		line-height: 60px;
	}
	.login-modal .form,
	.registration-modal .form{
		display: block;
		width: 100%;
		padding: 20px;
	}
	.login-modal .form .block .box,
	.registration-modal .form .block .box{
		width: 100%;
		margin: 0 0 20px 0;
	}
	.registration-modal .form-line button{
		width: 100%;
	}

	.tab-navigate li{
		width: 100%;
		margin-bottom: 20px;
	}
	.tab-navigate li a:after{
		display: none;
	}

	.chronology .block{
		display: block;
		margin-top: 40px;
	}
	.chronology .block .box{
		display: block;
		width: 100%;
	}
	.chronology .block .box:first-child{
		padding:30px 25px;
	}

	.gallery-comments .messages ul li{
		padding: 20px;
	}
	.gallery-comments-form{
		padding: 20px;
	}
	.gallery-comments-form button{
		margin-top: 20px;
		width: 100%;
	}
	.gallery-buttons button,
	.gallery-buttons .btn{
		width: 100%;
	}

	.work .block .info .buttons{
		display: block;
		text-align: center;
		margin-top: 20px;
	}
	.work .block .info .buttons .box{
		display: block;
		width: 100%;
		margin-top: 20px;
	}
	.work .block .info .buttons .favorite,
	.work .block .info .buttons .pdf{
		width: 100%;
	}
	.work .block .info .buttons .pdf{
		text-align: center;
		padding-right: 30px;
	}

	.favorites .gallery-buttons button,
	.favorites .gallery-buttons .btn{
		font-size: 15px;
	}
	.page-404{
		position: relative;
		height: auto;
		min-height: 100vh;
	}
	.page-404 .error{
		width: 90%;
	}

	.password-reset-form {
		max-width: 100%;
	}

	.welcome .block .title h1{
		font-size: 30px;
	}
	.welcome .block .title h2{
		font-size: 20px;
	}

	.my-vdnh .overlay{
		display: none !important;
	}

	.main-menu .my-vdnh {
		margin-top: 10px;
	}

	.header.header-filter .banner {
		padding-bottom: 0;
	}

	.filter-period-head {
		font-size: 27px;
	}

	.filter-period-list li a {
		font-size: 12px;
		height: 44px;
	}

	.sidebar .send-postcard {
		margin-top: 30px;
	}

	.sidebar .send-postcard img {
		width: 30px;
	}

	.search-filter .block {
		flex-wrap: wrap;
	}

}

@media (max-width: 1023px) {
	.postcard-form-column {
		width: 60%;
		padding: 0 30px;
	}
}

@media (max-width: 768px) {
	.postcard-form-column {
		width: 100%;
		padding: 0 30px;
	}

	.postcard-form-column:before {
		display: none;
	}

	.work-details {
		padding-top: 40px;
	}
}

@media(max-width: 640px) {
	.filter-period-list {
		flex-wrap: wrap;
		justify-content: left;
		margin: -10px 0 0 -10px;
	}

	.filter-period-list li {
		width: 33.333%;
		font-size: 14px;
		padding-left: 10px;
		padding-top: 10px;
	}
}

@media (max-width: 480px) {

	.header .banner .title {
		min-height: 300px;
	}

	.header .banner .title h1 {
		font-size: 27px;
		margin-bottom: 30px;
	}

	.work-details .title {
		font-size: 33px;
	}
}

@media (max-width: 430px) {
	h1{
		font-size: 36px;
		line-height: 50px;
	}
}