
.house-page {
	margin-top: 32px;
	margin-left: auto;
	margin-right: auto;
	max-width: 970px;
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.video-header {
	margin-top: 200px;
	margin-bottom: 0;
	max-width: 970px;
	margin-left: auto;
	margin-right: auto;
}

.video-header__go-back-btn {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	align-items: center;
	grid-gap: 0 6px;
	padding: 8px 20px 8px 8px;
	border: 1px solid #E8E9EC;
	border-radius: 100px;
	color: #1B2A49;
	font-size: 16px;
}

.video-header__video-block {
	position: relative;
	margin-top: 32px;
}

.video-header__video-block:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.4) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.4) 100%);
}

.video-header__video {
	width: 100%;
	height: 350px;
	display: block;
	object-fit: cover;
	object-position: center;
}

.video-header__play-btn {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 11;
	transform: translate(-50%,-50%);
}

@media only screen and (max-width: 768.99px) {
	.video-header {
		margin-top: 150px;
		margin-bottom: 60px;
	}
}

@media only screen and (max-width: 520.99px) {
	.video-header {
		margin-bottom: 32px;
	}
	.video-header__video {
		height: 220px;
	}

	.video-header__play-btn svg {
		width: 64px;
		height: 64px;
	}
}

@media only screen and (max-width: 430.99px) {
	.video-header__video {
		height: 180px;
	}
}

/*--------------------------------------------------------------
# House content
--------------------------------------------------------------*/
.house-content .container {
	padding: 0;
}
.house-content {
	margin-top: 32px;
}

.hose-section__title-block {
	display: flex;
	flex-direction: column;
}

.hose-section__title {
	font-size: 32px;
	font-weight: 700;
}

.house-section__population-time {
	display: block;
	font-size: 18px;
	color: #767F92;
	margin-top: 12px;
}

.house-content__layout-block {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(3, max-content);
	grid-gap: 0 32px;
	align-items: center;
}

.house-content__layout-block:after {
	content: '';
	width: 1px;
	height: 100%;
	background-color: #D1D4DB;
	order: 2;
}

.house-content__weekend-block,
.house-content__weekdays-block {
	display: flex;
	flex-direction: column;
}

..house-content__weekdays-block {
	order: 1;
}

.house-content__weekend-block {
	order: 3;
}

.house-content__layout-title {
	font-size: 18px;
	color: #1B2A49;
}

.house-content__layout-days {
	font-size: 24px;
	font-weight: 500;
	color: #1B2A49;
	margin-top: 8px;
}

.house-content__layout-days strong {
	color: inherit;
	line-height: inherit;
	font-weight: 700;
	font-size: 32px;
}

.house-content__order-btn {
	margin-top: 50px;
}

.house-content__content {
	margin-top: 50px;
}

.house-content__content p {
	margin-top: 0;
	margin-bottom: 25px;
	color: #1B2A49;
	font-size: 16px;
}

.house-content__content strong {
	font-size: 18px;
}

.house-content__content ol,
.house-content__content ul {
	display: flex;
	flex-direction: column;
	padding-left: 25px;
	box-sizing: border-box;
	margin-bottom: 25px;
}

.house-content__content li {
	display: list-item;
	padding: 7px 0;
	box-sizing: border-box;
	color: #1B2A49;
	font-size: 16px;
}

.house-content__content a {
	text-decoration: unset;
	color: #1B2A49;
	display: initial;
}

@media only screen and (max-width: 1080.99px) {
	.house-content .container {
		padding: 0 30px;
	}

}
@media only screen and (max-width: 520.99px) {
	.house-content__title {
		font-size: 28px;
		font-weight: 700;
		font-family: 'Inter';
		font-style: normal;
		line-height: 1.3;
	}

	.house-section__population-time {
		margin-top: 8px;
		font-size: 16px;
		max-width: 290px;
	}

	.house-content__layout-title {
		font-size: 16px;
	}

	.house-content__layout-days {
		font-size: 24px;
	}

	button.house-content__order-btn {
		margin-top: 20px;
	}

	.house-content__content p {
		font-size: 16px;
		line-height: 1.7;
	}

	.house-content__content li {
		line-height: 1.7;
	}

	.house-content__layout-block {
		grid-gap: 0 16px;
	}

}

@media only screen and (max-width: 430.99px) {
	.house-content__title {
		font-size: 24px;
	}

	.house-content__layout-block {
		grid-template-columns: 100%;
	}

	.house-content__layout-block:after {
		content: unset;
	}

	.house-content__weekend-block {
		margin-top: 32px;
	}

	.house-content__content {
		margin-top: 32px;
	}

	.house-content .container {
		padding: 0 20px;
	}
}

/*--------------------------------------------------------------
# Gallery popup
--------------------------------------------------------------*/
.close-open-gallery-wrapper {
	position: fixed;
	z-index: 111;
	background-color: rgba(0, 0, 0, .7);
	width: 100%;
	height: 100vh;
	left: 0;
	top: 0;
	cursor: pointer;
	opacity: 1;
	transition: all .5s;
	transition-delay: .4s;
}

.gallery-popup-wrapper.loading .close-open-gallery-wrapper {
	opacity: 0;
	transition: all .5s;
	transition-delay: .4s;
}

.gallery-popup-wrapper {
	opacity: 1;
	transition: all 1s;
	transition-delay: 1s;
	position: fixed;
	z-index: 1111;
	width: calc(100% - 100px);
	height: calc(100vh - 100px);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.gallery-popup-wrapper__main-block {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

.gallery-popup-wrapper__gallery-block {
	padding: 0 60px;
	box-sizing: border-box;
}

.gallery-popup-wrapper__next-btn,
.gallery-popup-wrapper__prev-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #FFFFFF;
	top: 50%;
	transform: translateY(-50%);
	position: absolute;
}

.gallery-popup-wrapper__next-btn.disabled,
.gallery-popup-wrapper__prev-btn.disabled {
	opacity: .4;
}

.gallery-popup-wrapper__next-btn {
	right: 0;
}
.gallery-popup-wrapper__prev-btn {
	left: 0;
}

.gallery-popup-wrapper__prev-btn svg {
	transform: scale(-1,1);
}

.gallery-popup-wrapper__next-btn svg,
.gallery-popup-wrapper__prev-btn svg {
	width: 24px;
	height: 24px;
}

.gallery-popup-wrapper.loading {
	opacity: 0;
	transition: all 1s;
	transition-delay: 1s;
}

.gallery-popup-wrapper__play-btn {
	position: absolute;
	transform: translate(-50%, -50%);
	left: 50%;
	top: 50%;
	z-index: 111;
	cursor: pointer;
}

.gallery-popup-wrapper__play-btn svg {
	width: 80px;
	height: 80px;
}

.gallery-popup-wrapper__thumb-block {
	opacity: 1;
	transition: all 1s;
}

.gallery-popup-wrapper__thumb-block.loading {
	opacity: 0;
	transition: all 1s;
}
.gallery-popup-wrapper__thumb,
.gallery-popup-wrapper__video-block {
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}

.gallery-popup-wrapper__video-block.active .play-btn {
	opacity: 0;
	left: 0;
	top: 0;
	transform: unset;
	width: 100%;
	height: calc(100% - 60px);
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.gallery-popup-wrapper__video-block.active:after {
	content: unset;
}


.gallery-popup-wrapper__video-block:after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.4) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.4) 100%);
	border-radius: 4px;
	overflow: hidden;
}

.gallery-popup-wrapper__video,
.gallery-popup-wrapper__img {
	height: calc(100vh - 350px);
	width: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 4px;
	display: block;
}

.gallery-load-item-icon {
	position: absolute;
	right: 13px;
	bottom: 13px;
	display: block;
	z-index: 1;
}

.gallery-load-item-icon svg {
	width: 20px;
	height: 20px;
}

.gallery-popup-wrapper__item-btn {
	position: relative;
	border-radius: 4px;
	display: block;
	width: 100%;
	height: 100%;
}

.gallery-popup-wrapper__list.owl-carousel .owl-item.show .item-btn:after {
	opacity: 0;
	transition: all .4s;
}

.gallery-popup-wrapper__item-btn:after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.4) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.4) 100%);
	border-radius: 4px;
	z-index: 1;
	opacity: 1;
	transition: all .4s;
}

.gallery-popup-wrapper__list {
	margin-top: 10px;
}

.gallery-popup-wrapper__list.owl-carousel .owl-item {
	padding: 4px;
	box-sizing: border-box;
}

.gallery-popup-wrapper__list.owl-carousel .owl-item.show .item {
	border: 2px solid #FAB24C;
	border-radius: 4px;
}

.gallery-popup-wrapper__item-img {
	border-radius: 4px;
	height: 150px;
	width: 100%;
	border-radius: 4px;
	object-fit: cover;
}

.gallery-popup-wrapper__close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	cursor: pointer;
	position: absolute;
	right: 70px;
    top: 50px;
    z-index: 1;
}

.gallery-popup-wrapper__close-btn:after,
.gallery-popup-wrapper__close-btn:before {
	content: '';
	width: 16px;
	height: 1.4px;
	background: #FFFFFF;
	position: absolute;

}

.gallery-popup-wrapper__close-btn:after {transform: rotate(-45deg);}
.gallery-popup-wrapper__close-btn:before {transform: rotate(45deg);}


@media only screen and (max-width: 1200.99px) {
	.gallery-popup-wrapper__video, 
	.gallery-popup-wrapper__img {
		height: calc(100vh - 270px);
	}

	.gallery-popup-wrapper__item-img {
		height: 120px;
	}
}


@media only screen and (max-width: 920.99px) {
	.gallery-popup-wrapper__item-img {
		height: 100px;
	}

	.gallery-popup-wrapper {
		width: calc(100% - 60px);
		height: calc(100vh - 40px);
		top: 40px;
		transform: translate(-50%, 0);
	}

	.gallery-popup-wrapper__close-btn {
		top: 70px;
	}

}


@media only screen and (max-width: 530.99px) {
	.gallery-popup-wrapper__next-btn, 
	.gallery-popup-wrapper__prev-btn {
		display: none;
	}

	.gallery-popup-wrapper__gallery-block {
		padding: 0;
	}

	.gallery-popup-wrapper__close-btn {
		top: 15px;
		right: -15px;
	}

	.gallery-popup-wrapper__video, .gallery-popup-wrapper__img {
		height: calc(100vh - 300px);
	}
}

@media only screen and (max-width: 430.99px) {
	.gallery-popup-wrapper__video, 
	.gallery-popup-wrapper__img {
        height: auto;
        max-height: 300px;
    }

    .gallery-popup-wrapper__close-btn {
    	top: 40px;
    	right: 0;
    }
}


/*--------------------------------------------------------------
# Gallery header
--------------------------------------------------------------*/
.gallery-header {
	margin-top: 200px;
	margin-bottom: 0;
	max-width: 970px;
	margin-left: auto;
	margin-right: auto;
}

.gallery-header .container {
	padding: 0;
}

.gallery-header__title-block {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
}

.gallery-header__title {
	font-weight: 700;
	font-size: 32px;
	color: #1B2A49;
}

.house-section__population-time {
	margin-top: 12px;
	font-size: 18px;
	color: #767F92;
	display: block;
}

.gallery-header__go-back-btn {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	align-items: center;
	grid-gap: 0 6px;
	padding: 8px 20px 8px 8px;
	border: 1px solid #E8E9EC;
	border-radius: 100px;
	color: #1B2A49;
	font-size: 16px;
}

.gallery-header__list {
	margin-top: 50px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-gap: 8px;
}

.gallery-header__item {
	position: relative;
}

.gallery-header__item-bottom-block {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: absolute;
	z-index: -1111;
	transform: scale(1);
	width: 0;
	left: 0;
	top: 0;
	opacity: 0;
	height: 0;
	z-index: -11111;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 4px;
}

.gallery-header__item:hover .bottom-block {
	opacity: 1;
	width: 100%;
	height: 100%;
	transform: scale(1);
	z-index: auto;
	cursor: pointer;
	transition: opacity .7s;
	z-index: 1;
}

.gallery-header__item-show-title {
	color: #FFFFFF;
	font-weight: 500;
	text-align: center;
	font-size: 16px;
}

.gallery-header__item-about-type {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.5);
	display: block;
	text-align: center;
	align-content: center;
	font-size: 12px;
}

.gallery-header__item:nth-child(1){
	grid-row: 1/3;
	grid-column: 1/5;
}

.gallery-header__item:nth-child(2),
.gallery-header__item:nth-child(3) {
	grid-column: 5/6;
}


.gallery-header__item:nth-child(2) {
	grid-row: 1/2;
}
.gallery-header__item:nth-child(3) {
	grid-row: 2/3;
}

.gallery-header__item-thumb {
	width: 100%;
	height: 100%;
	position: relative;
	cursor: pointer;
	border-radius: 4px;
	opacity: 1;
}

.gallery-header__item:hover .thumb {
	opacity: 0;
}

.gallery-header__item-thumb:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) -65.95%, rgba(0, 0, 0, 0.8) 100%);
	border-radius: 4px;
}

.gallery-header__item-thumb i {
	position: absolute;
	z-index: 1;
	left: 20px;
	bottom: 20px;
	display: block;
}

.gallery-header__item-thumb i svg {
	opacity: .5;
	width: 20px;
	height: 20px;
	display: block;
}

.gallery-header__item-thumb i svg path {
	fill: #FFFFFF;
}

.gallery-header__item-thumb:hover i svg {
	opacity: 1;
}

.gallery-header__item-img {
	width: 100%;
	object-fit: cover;
	border-radius: 4px;
}

/*.gallery-header__item:nth-child(1) img {*/
/*	height: 400px;*/
/*}*/

.gallery-header__item:nth-child(2) img,
.gallery-header__item:nth-child(3) img {
	height: 100%;
}

@media only screen and (max-width: 1080.99px) {
	.gallery-header .container {
		padding: 0 30px;
	}
}

@media only screen and (max-width:920.99px) {
	.gallery-header__item:nth-child(1) .img {
		height: 300px;
	}

	.gallery-header__item:nth-child(2) .img,
	.gallery-header__item:nth-child(3) .img {
		height: 150px;
	}
}

@media only screen and (max-width: 768.99px) {
	.gallery-header {
		margin-top: 150px;
		margin-bottom: 60px;
	}
}
@media only screen and (max-width: 520.99px) {
	.gallery-header {
		margin-bottom: 32px;
	}
}

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

	.gallery-header__item:nth-child(1) {
		grid-column: 1/4;
	}

	.gallery-header__item:nth-child(2),
	.gallery-header__item:nth-child(3) {
		grid-column: 4/6;
	}
}

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

	.gallery-header__title-block {
		align-items: center;
	}

	.gallery-header__title-block * {
		text-align: center;
	}

	.house-section__population-time {
		max-width: 100%;
	}

	.gallery-header__list {
		margin-top: 30px;
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery-header__item:nth-child(1) {
		grid-column: 1/3;
		grid-row: auto;
	}

	.gallery-header__item:nth-child(2),
	.gallery-header__item:nth-child(3) {
		grid-column: auto;
		grid-row: auto;
	}

	.gallery-header__item:nth-child(1) .img {
		height: auto;
	}
}

@media only screen and (max-width: 430.99px) {
	.gallery-header .container {
		padding: 0 20px;
	}
}