/*
 * Janda Events — Gallery.
 *
 * Figma "Gallery" (desktop 51284:5869 1440×3368, mobile 51288:2443 428×5117).
 *
 * The hero is the shared we-hero and the video wall is the shared res-videos
 * band on its tinted ground; the photo grid is this page's own.
 */

/* ==========================================================================
   Real Weddings & Good Times — Figma "Frame 81" 51284:5877 (1440×1032)

   Four 318×320 photos across the 1344 container, 24 apart. Two columns at 428.
   ========================================================================== */

.gal-grid {
	padding-block: var(--space-48);
	background-color: var(--c-white);
}

.gal-grid__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-32);
	width: 100%;
	max-width: calc(var(--container) + (var(--gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.gal-grid__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-8);
	text-align: center;
}

.gal-grid__title {
	margin: 0;
	color: var(--c-primary-500);
}

.gal-grid__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-16);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gal-grid__item img {
	width: 100%;
	height: 100%;
	/* The frame's tile is 318×320 — square within a pixel, and it holds that
	   ratio at every column width rather than going ragged row to row. */
	aspect-ratio: 318 / 320;
	object-fit: cover;
	/* 25% down, as the artist card frames its portraits — keeps faces in. */
	object-position: 50% 25%;
}

/*
 * The frame's button is a hairline outline on white, not the theme's teal
 * outline pill; the label stays body colour.
 */
.gal-grid__more.btn--outline {
	border-color: #cfe4e6;
	color: var(--c-body);
}

.gal-grid__more.btn--outline:hover,
.gal-grid__more.btn--outline:focus-visible {
	background-color: var(--c-primary-500);
	border-color: var(--c-primary-500);
	color: var(--c-white);
}

@media (min-width: 48em) {
	.gal-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.gal-grid {
		padding-block: var(--space-64);
	}

	.gal-grid__inner {
		gap: var(--space-40);
	}

	.gal-grid__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-24);
	}
}

/*
 * The grid sits on white, so the hero's angled divider is cut out of white too
 * — everywhere else it carries into the dark band below it.
 */
.page-template-template-gallery .we-hero__angle {
	color: var(--c-white);
}
