/* =============================================================================
   About Page
   Title banner (featured image background + dark overlay + white title),
   a 50/50 image/body-copy section, and the reviews section (styled in
   main.css, shared with the homepage).
   ========================================================================== */

.about-page-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(320px, 40vw, 480px);
	background-color: var(--color-dark);
	background-image: var(--about-hero-bg-url, none);
	background-size: cover;
	background-position: center;
	text-align: center;
}

.about-page-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.55);
}

.about-page-hero__title {
	position: relative;
	z-index: 1;
	color: var(--color-white);
	margin: 0;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.about-page-section {
	background-color: var(--color-white);
	padding-block: clamp(3rem, 8vw, 6rem);
}

.about-page-section__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.about-page-section__media {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.about-page-section__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-lg);
}

.about-page-section__content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--color-dark-soft);
}

.about-page-section__content > * + * {
	margin-top: 1.25em;
}

.about-page-section__content h2,
.about-page-section__content h3,
.about-page-section__content h4 {
	color: var(--color-dark);
}

.about-page-section__content img {
	max-width: 100%;
	height: auto;
}

/* Defensive: same reasoning as .single-post__content in blog.css — a
   wide table/code block pasted into this WYSIWYG field shouldn't be
   able to force the whole page to scroll horizontally. */
.about-page-section__content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.about-page-section__content pre {
	max-width: 100%;
	overflow-x: auto;
}

/* -----------------------------------------------------------------------
   YouTube videos — stacked in the media column, above the section image
   -------------------------------------------------------------------- */
.about-page-section__videos {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.about-page-section__video {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background-color: var(--color-dark);
}

.about-page-section__video::before {
	content: '';
	display: block;
	padding-top: 56.25%; /* 16:9 */
}

.about-page-section__video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -----------------------------------------------------------------------
   Photo gallery
   -------------------------------------------------------------------- */
.about-page-gallery {
	background-color: var(--color-white);
	padding-block: clamp(3rem, 8vw, 6rem);
}

/* Mosaic/masonry layout via CSS multi-column, rather than a fixed grid —
   each photo keeps its own natural aspect ratio (no cropping) and simply
   flows into whichever column has room next, the same way Pinterest-
   style galleries work, with no JS needed. */
.about-page-gallery__grid {
	columns: 3;
	column-gap: 1.5rem;
}

.about-page-gallery__item {
	display: inline-block; /* avoids a Safari rendering quirk where block-level column children can split across columns */
	width: 100%;
	margin: 0 0 1.5rem;
	break-inside: avoid;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.about-page-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	transition: transform var(--transition-slow);
}

.about-page-gallery__image:hover {
	transform: scale(1.04);
}

/* -----------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
	.about-page-section__grid {
		grid-template-columns: 1fr;
	}

	.about-page-gallery__grid {
		columns: 2;
	}
}

@media (max-width: 600px) {
	.about-page-gallery__grid {
		columns: 1;
	}
}
