/**
 * Single Project page (/proyectos/{slug}/).
 *
 * Enqueued by JGInmobiliaria\SingleProject, only on that page. Every value is a
 * theme token, so the page follows whatever theme is active. The fixed site
 * header is opaque outside the home, so the page reserves room for it at the top.
 */

.jgi-project__container {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--l);

	max-inline-size: var(--wp--custom--width--default);
	margin-inline: auto;
	padding-block: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--2-xl);
	padding-inline: var(--wp--custom--grid--margin);
}

/* Full width: every block already has an inner container of its own. */
.jgi-project__content > * {
	margin-block: 0;
}

.jgi-project__title.jgi-project__title {
	margin: 0;
}

.jgi-project__media {
	overflow: hidden;
	inline-size: 100%;
	border-radius: var(--wp--custom--border-radius--m);
	background-color: var(--wp--preset--color--neutral-10);
}

/* A <picture> is inline by default, so it would not fill its container. */
.jgi-project__picture {
	display: block;
	inline-size: 100%;
}

.jgi-project__image {
	display: block;

	aspect-ratio: 16 / 9;
	inline-size: 100%;
	block-size: 100%;

	object-fit: cover;
}

.jgi-project__text {
	max-inline-size: 50rem;
	margin: 0;

	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	color: var(--wp--preset--color--neutral-70);
}

.jgi-project__actions {
	margin: 0;
}

@media (width >= 1024px) {

	/* The hero already clears the fixed header, so the container below it goes
	   back to ordinary spacing. */
	.jgi-project--has-hero .jgi-project__container {
		padding-block-start: var(--wp--preset--spacing--3-xl);
	}
}
