﻿.rental-gallery-container {
	position: relative;
	width: 100%;
	padding-bottom: 35%;
}

.rental-gallery {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: grid;
	grid-gap: 5px;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 2fr 1fr 1fr;
}

.rental-gallery-item {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: rgba(0,0,0,0.1);
	position: relative;
}

.rental-gallery-item:first-child {
	grid-row-start: 1;
	grid-row-end: 3;
	grid-column-start: 1;
	grid-column-end: 2;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

.rental-gallery-item:nth-child(2) {
	grid-row-start: 1;
	grid-row-end: 2;
	grid-column-start: 2;
	grid-column-end: 3;
}

.rental-gallery-item:nth-child(3) {
	grid-row-start: 1;
	grid-row-end: 2;
	grid-column-start: 3;
	grid-column-end: 4;
	border-top-right-radius: 10px;
}

.rental-gallery-item:nth-child(4) {
	grid-row-start: 2;
	grid-row-end: 3;
	grid-column-start: 2;
	grid-column-end: 3;
}

.rental-gallery-item:nth-child(5) {
	grid-row-start: 2;
	grid-row-end: 3;
	grid-column-start: 3;
	grid-column-end: 4;
	border-bottom-right-radius: 10px;
}

.rental-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
	object-fit: cover;
}

.rental-gallery .view-more {
	grid-row-start: 2;
	grid-row-end: 3;
	grid-column-start: 3;
	grid-column-end: 4;
	font-size: .9rem;
	height: 100%;
	width: 100%;
	position: absolute;
	bottom: 0;
	background: rgba(0, 0, 0, .5);
	color: white;
	font-size: 1rem;
	text-align: center;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom-right-radius: 10px;
}

.rental-gallery .view-more::after {
	font-family: var(--font-icon);
	content: "\f054";
	margin: 2px 0 0 5px;
}

.white-out {
	z-index: 9 !important;
	background: var(--background-color);
	display: block;
	visibility: hidden;
	opacity: 0;
	transition: all .8s ease-out;
}

.white-out.active {
	visibility: visible;
	opacity: .8;
}

.property-gallery {
	width: 90vw;
	height: 90vh;
	background: var(--background-color);
	position: fixed;
	top: 60%;
	left: 50%;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	padding: 25px;
	border-radius: 20px;
	box-shadow: var(--shadow-very-far);
	transition: all .2s ease-out;
	transform: translate(-50%, -50%);
}

.property-gallery.active {
	top: 50%;
	visibility: visible;
	opacity: 1;
}

.property-slides-track {
	display: grid;
	grid-template-rows: 1fr 100px;
	height: 100%;
	overflow: hidden;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	grid-gap: 20px;
}

.property-gallery .property-slides {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	align-items: center;
	justify-content: center;
	height: 100%;
	overflow: hidden;
}

.property-gallery .property-slides.transition {
	transition: all 0.35s;
}

.property-gallery .property-slides .item {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	height: 100%;
}

.property-gallery .property-slides .item img {
	display: block;
	position: absolute;
	height: 100%;
}

.property-gallery .property-slides h4 {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 20px;
	background: rgba(0, 0, 0, 0.75);
	color: white;
	text-align: center;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	display: none;
}

.property-gallery .thumbs {
	position: relative;
	width: 1000%;
	height: 100%;
	display: flex;
	justify-content: flex-start;
	align-content: center;
	align-items: center;
	flex-wrap: nowrap;
	overflow-x: hidden;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

.property-gallery .thumbs img {
	margin: 0 20px 0 0;
	cursor: pointer;
	width: auto;
	height: 100%;
	opacity: 0.5;
	object-fit: cover;
}

.property-gallery .thumbs img.highlighted {
	opacity: 1;
}

.property-gallery .arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font: 300 1.5rem/1.5rem var(--font-icon);
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: var(--button-cta-color);
	z-index: 2;
	cursor: pointer;
	background-color: var(--button-cta-background-color);
	border-radius: 50%;
	box-shadow: var(--shadow-far);
}

.property-gallery .arrow.left {
	left: 4rem;
}

.property-gallery .arrow.left::before {
	content: "\f053";
}

.property-gallery .arrow.right {
	right: 4rem;
	left: auto;
}

.property-gallery .arrow.right::before {
	content: "\f054";
}

.property-gallery .close {
	position: absolute;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	top: -15px;
	right: -15px;
	font: 300 1.5rem/1.5rem var(--font-icon);
	text-align: center;
	color: var(--button-cta-color);
	background: var(--button-cta-background-color);
	z-index: 2;
	cursor: pointer;
	border-radius: 50%;
}

.gallery-grid {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	justify-content: center;
	align-items: center;
	z-index: 9999999999; /* default value:100 for chat button */
}

	.gallery-grid .col img {
		width: 100%;
		height: 100%;
	}

	.gallery-grid.active {
		display: flex;
	}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	color: var(--button-cta-color);
	background: var(--button-cta-background-color);
	border: none;
	padding: 10px 15px;
	cursor: pointer;
	font-size: 16px;
	z-index: 1001;
}

@media screen and (max-width: 768px) {

	.rental-gallery-container {
		padding-bottom: 0;
		height: 45vh;
	}

	.rental-gallery {
		display: block;
	}

	.rental-gallery-item {
		display: none;
		border-radius: 0 !important;
	}

	.rental-gallery-item:first-child {
		display: block;
	}

	.rental-gallery .view-more {
		height: 20%;
		bottom: 0;
		border-radius: 0;
	}
}

@media only screen and (min-width : 250px) and (max-width : 926px) {

	.white-out {
		display: none;
	}

	.property-gallery {
		width: 100%;
		height: 100%;
		border-radius: 0;
		z-index: 999;
		padding: 0;
	}

	.property-slides-track {
		grid-template-rows: 1fr;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}

	.property-gallery .property-slides .item img {
		object-fit: contain;
	}

	.property-gallery .thumbs {
		display: none;
	}

	.property-gallery .arrow {
		display: none;
	}

	.property-gallery .close {
		width: auto;
		height: auto;
		top: 20px;
		right: 20px;
		border-radius: 5px !important;
		padding: 6px 10px;
		font-size: 1rem;
		gap: 0.5rem;
	}

	.property-gallery .close::after {
		content: "Close";
		font-family: var(--font-family);
	}
}

@media only screen and (max-width: 926px) {
	.property-gallery .property-slides {
			background-color: #000;
	}
}