.itaqua-photo-gallery {
	margin-top: 2rem;
}

.itaqua-photo-gallery-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.itaqua-photo-gallery-item {
	margin: 0;
}

.itaqua-photo-gallery-link {
	aspect-ratio: 4 / 3;
	display: block;
	overflow: hidden;
}

.itaqua-photo-gallery-link img {
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
	width: 100%;
}

.itaqua-photo-gallery-link:hover img {
	transform: scale(1.04);
}

.itaqua-photo-gallery-item figcaption {
	color: #5b6472;
	font-size: .875rem;
	margin-top: 6px;
}

.itaqua-photo-modal {
	align-items: center;
	background: rgba(0, 0, 0, .9);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 48px;
	position: fixed;
	z-index: 99999;
}

.itaqua-photo-modal[hidden] {
	display: none;
}

.itaqua-photo-modal figure {
	margin: 0;
	max-height: 100%;
	max-width: min( 1100px, 88vw );
	text-align: center;
}

.itaqua-photo-modal img {
	max-height: 82vh;
	max-width: 100%;
}

.itaqua-photo-modal figcaption {
	color: #fff;
	margin-top: 8px;
}

.itaqua-photo-modal button {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 56px;
	padding: 12px;
}

.itaqua-photo-modal-close {
	font-size: 40px !important;
	position: absolute;
	right: 16px;
	top: 4px;
}

.itaqua-photo-modal-open {
	overflow: hidden;
}

@media ( max-width: 640px ) {
	.itaqua-photo-gallery-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.itaqua-photo-modal {
		padding: 16px;
	}

	.itaqua-photo-modal button {
		font-size: 42px;
		padding: 4px;
	}
}
