.apartment-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 160px 160px;
	gap: 8px;
	margin: 1.5rem 0;
}

.apartment-gallery a {
	border-bottom: none;
	overflow: hidden;
	position: relative;
	display: block;
}

.apartment-gallery a:first-child {
	grid-row: span 2;
}

.apartment-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.apartment-gallery a:hover img {
	transform: scale(1.03);
	opacity: 0.9;
}

.apartment-gallery a:last-child::after {
	content: "Mostra tutte le foto";
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: rgba(0,0,0,0.75);
	color: #fff;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-size: 0.8rem;
	letter-spacing: 0.03rem;
}

@media screen and (max-width: 736px) {
	.apartment-gallery {
		display: flex;
		overflow-x: auto;
		gap: 10px;
	}

	.apartment-gallery a {
		min-width: 260px;
		height: 180px;
	}

	.apartment-gallery a:first-child {
		grid-row: auto;
	}
}
.lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.92);
	align-items: center;
	justify-content: center;
}

.lightbox-content {
	max-width: 90%;
	max-height: 85%;
	object-fit: contain;
	border-radius: 6px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	color: #fff;
	font-size: 2.5rem;
	font-weight: normal;
	cursor: pointer;
	user-select: none;
	z-index: 10000;
}

.lightbox-close {
	top: 20px;
	right: 30px;
}

.lightbox-prev {
	left: 30px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-next {
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
	color: #ccc;
}

@media screen and (max-width: 736px) {
	.lightbox-content {
		max-width: 95%;
		max-height: 80%;
	}

	.lightbox-prev {
		left: 12px;
	}

	.lightbox-next {
		right: 12px;
	}

	.lightbox-close {
		right: 18px;
	}
}