﻿.no-scroll {
	overflow: hidden;
}

.property-gallery .thumb-swiper {
	display: none !important;
}

.gallery-container {
	visibility: hidden;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: white;
	z-index: 1000;
	justify-content: center;
	align-items: center;
	overflow-y: scroll;
}

	.gallery-container.active {
		display: block;
		visibility: visible;
	}

.gallery-container__header {
	position: sticky;
	top: 0;
	background: white;
	width: 100%;
	display: grid;
	grid-template-columns: 50px 1fr 50px;
	align-items: center;
	border-bottom: 1px solid #ddd;
	z-index: 10;
	padding: 0.5rem 0;
}

.gallery-container__back-button {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 20px;
	font-size: 1.1rem;
	cursor: pointer;
	color: #333;
	border-radius: 50%;
	width: 35px;
	height: 35px;
}

	.gallery-container__back-button:hover {
		background: #f0f0f0;
	}

.gallery-categories {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1rem 0;
}

.bento-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	max-width: 900px;
	margin: 4rem auto 0;
	grid-auto-flow: dense;
	padding: 0 0.5rem;
}

.bento-grid__element {
	position: relative;
}

	.bento-grid__element:hover img {
		transition: ease-in-out 0.2s;
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
	}

	.bento-grid__element h4 {
		position: absolute;
		bottom: 10px;
		left: 10px;
		color: white;
		background: rgba(0, 0, 0, 0.5);
		padding: 5px 10px;
		border-radius: 5px;
		margin: 0;
		z-index: 2;
		font-size: 1rem;
	}

	.bento-grid__element:nth-of-type(6n + 1),
	.bento-grid__element:nth-of-type(6n + 6) {
		grid-area: span 2 / span 2;
	}

	.bento-grid__element:nth-of-type(6n + 5) {
		grid-column: 1;
	}

.cat-overview {
	grid-column: 1/-1 !important;
	position: sticky;
	top: 74px;
	z-index: 10;
	background: white;
	padding: 1rem;
}

.bento-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 15px;
	cursor: pointer;
}

.property-gallery {
	width: 100%;
	aspect-ratio: unset !important;
	max-height: 100% !important;
	top: 0 !important;
	left: 0 !important;
	transform: unset !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

	.property-gallery .swiper.rental-swiper {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		background: #000;
		padding: 25px;
		max-height: 100%;
	}

	.property-gallery .swiper h4 {
		padding: 20px !important;
		color: white !important;
	}

	.property-gallery .gallery-close {
		top: 15px !important;
		right: 15px !important;
		z-index: 10 !important;
		background: none !important;
	}

	.property-gallery .swiper .swiper-slide {
		height: 100%;
	}

		.property-gallery .swiper .swiper-slide img {
			aspect-ratio: unset !important;
			width: 100% !important;
			max-height: 88vh !important;
			object-fit: contain !important;
			height: 80%;
		}

	.property-gallery .swiper .swiper-button-next,
	.property-gallery .swiper .swiper-button-prev {
		color: white !important;
		background: none !important;
	}

	.property-gallery .swiper-pagination-fraction {
		color: #fff;
	}

	.property-gallery .swiper .swiper-button-prev,
	.property-gallery .swiper .swiper-button-next {
		right: 1rem;
		transform: rotate(90deg);
	}

	.property-gallery .swiper .swiper-button-prev {
		top: 45%;
		left: auto;
	}

@media screen and (max-width: 480px) and (orientation: portrait), screen and (max-width: 834px) and (orientation: portrait) and (pointer: coarse) and (hover: none) {
	.property-gallery .swiper.rental-swiper {
		padding: 0 !important;
	}

		.property-gallery .swiper.rental-swiper .swiper-wrapper {
			display: flex !important;
			overflow-y: unset !important;
			width: 100% !important;
			height: 100% !important;
			background: #000 !important;
		}

			.property-gallery .swiper.rental-swiper .swiper-wrapper .swiper-slide {
				width: 100% !important;
				aspect-ratio: unset !important;
				background: #000 !important;
				margin: 0 !important;
				height: 100%;
			}

	.bento-grid {
		margin: 0;
	}

	.gallery-categories {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: scroll;
	}

	.button.gallery-link {
		font-size: 0.6rem;
	}

	.cat-overview h3 {
		font-size: 1.4rem;
	}

	.cat-overview p {
		font-size: 1rem;
		margin: 0;
	}

	.bento-grid {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.bento-grid__element:nth-of-type(6n + 1),
	.bento-grid__element:nth-of-type(6n + 6),
	.bento-grid__element:nth-of-type(6n + 5) {
		grid-column: 1;
	}

	.property-gallery .swiper .swiper-slide h4 {
		bottom: 2rem;
		background: none;
	}
}
