/**
 * Theme overrides — loaded after assets/css/output.css.
 * Target sections with .theme-section and .theme-section--{layout_name}.
 */

 .theme-section--split_content_card img.object-cover,
 .theme-section--split_content_card .image-column > div {
    height: 100%;
 }

/* Split content card — map column needs a definite height so inner % / iframe fill works */
.theme-section--split_content_card .split-content-card__media-map {
	height: 500px;
	max-height: 500px;
	min-height: 240px;
}

.theme-section--split_content_card .split-content-card-map {
	height: 100%;
	min-height: 240px;
	max-height: 550px;
	border-radius: 0.5rem;
}

.theme-section--split_content_card .split-content-card-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	max-height: 500px;
	border: 0;
	border-radius: 0.5rem;
}

/* ---------------------------------------------------------------------------
 * Gallery (flexible layout)
 *
 * Self-contained styles. 2 columns mobile, 4 columns desktop (>=768px).
 * Lightbox/popup behaviour is provided by VenoBox (vendor CSS + JS) — the
 * only contract here is that each tile keeps the `venobox-active` class.
 * --------------------------------------------------------------------------- */

.gallery {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
	.gallery {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}

.gallery__inner {
	width: 100%;
	max-width: 73.75rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	box-sizing: border-box;
}

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.gallery__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1rem;
	}
}

.gallery__cell {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 0.5rem;
	background-color: #f4efe2;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}

.gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery__item:hover .gallery__image,
.gallery__item:focus-visible .gallery__image {
	transform: scale(1.05);
}

.gallery__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
