/* ==========================================================================
   Clinic page (templates/page-iatreio.php). The hero is .be_pagehero (main.css).
   1. Image/text rows  2. Gallery  3. Offices  4. FAQ spacing
   ========================================================================== */


/* 1. Rows ----------------------------------------------------------------- */
.be_iatreio-row {
	display: flex;
	margin-top: 80px;
	padding-block: 10px;
}

.be_iatreio-row--reverse {
	flex-direction: row-reverse;
}

.be_iatreio-row-media {
	flex: 0 0 40%;
	max-width: 40%;
}

.be_iatreio-row-media img {
	display: block;
	width: 100%;
	height: auto;
}

.be_iatreio-row-text {
	display: flex;
	flex: 0 0 60%;
	flex-direction: column;
	gap: 20px;
	max-width: 60%;
}

.be_iatreio-row-title {
	margin: 0;
	color: #000000;
	font: 300 30px/1 var(--be-font);
}

.be_iatreio-row-text .be_prose b,
.be_iatreio-row-text .be_prose strong {
	font-weight: 400;
}

@media (max-width: 767px) {
	.be_iatreio-row,
	.be_iatreio-row--reverse {
		display: block;
		margin-top: 40px;
	}

	.be_iatreio-row-media,
	.be_iatreio-row-text {
		max-width: none;
	}
}


/* 2. Gallery (masonry: four columns, two on phones) ----------------------- */
.be_iatreio-gallery-head .be_section-title-heading {
	color: #192431;
}

.be_iatreio-gallery {
	margin-top: 50px;
	padding-block: 10px;
}

.be_iatreio-gallery-grid {
	columns: 4;
	column-gap: 10px;
}

.be_iatreio-gallery-item {
	position: relative;
	display: block;
	margin-bottom: 10px;
	break-inside: avoid;
	overflow: hidden;
	background: var(--be-line);
}

.be_iatreio-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

.be_iatreio-gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.8s;
}

.be_iatreio-gallery-item:hover::after,
.be_iatreio-gallery-item:focus::after {
	opacity: 1;
}

@media (max-width: 1024px) {
	.be_iatreio-gallery-grid {
		columns: 3;
	}
}

@media (max-width: 767px) {
	.be_iatreio-gallery-grid {
		columns: 2;
	}
}


/* 3. Offices -------------------------------------------------------------- */
.be_office {
	display: flex;
	margin-top: 50px;
	padding-block: 10px;
}

.be_office-info {
	flex: 0 0 30%;
	max-width: 30%;
	color: #324a6d;
	font: 300 16px/24px var(--be-font);
	text-align: right;
}

.be_office-title {
	margin: 0 0 20px;
	color: #1c244b;
	font: 300 32px/1 var(--be-font);
}

.be_office-subtitle {
	margin: 8px 0 16px;
	color: #1c244b;
	font: 600 24px/1.2 var(--be-font);
}

.be_office-address {
	margin: 0 0 20px;
}

.be_office-contact {
	margin-bottom: 20px;
}

.be_office-contact p {
	margin: 0;
	line-height: 27px;
}

.be_office-contact a {
	color: #324a6d;
}

.be_office-contact a:hover {
	color: var(--be-red);
}

.be_office-map {
	flex: 1 1 0;
	min-width: 0;
	height: 416px;
}

@media (max-width: 767px) {
	.be_office {
		display: block;
	}

	.be_office-info {
		max-width: none;
		text-align: center;
	}

	.be_office-map {
		height: 320px;
	}
}


/* 4. FAQ ------------------------------------------------------------------ */
.be_iatreio-faq {
	margin-top: 20px;
}
