/* Estilos de la ficha de proyecto (CPT portfolio). Hereda la tipografía del tema. */

.aimac-single {
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

.aimac-single__title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.1;
	font-weight: 700;
	text-transform: uppercase;
}

.aimac-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	font-size: 1.125rem;
	color: #666;
}

/* Galería: 3 columnas, 2 en tablet, 1 en móvil */
.aimac-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.aimac-gallery__item {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #eee;
}

.aimac-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.aimac-gallery__item:hover img,
.aimac-gallery__item:focus-visible img {
	transform: scale(1.04);
}

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

.aimac-single__cover img {
	display: block;
	width: 100%;
	height: auto;
}

.aimac-single__terms {
	margin: 24px 0 0;
	text-align: center;
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.aimac-single__terms a {
	color: inherit;
	text-decoration: none;
}

.aimac-single__content {
	max-width: 760px;
	margin: 40px auto 0;
}

/* Proyectos relacionados */
.aimac-related {
	margin-top: 72px;
}

.aimac-related__title {
	margin: 0 0 24px;
	font-size: 1.5rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 400;
}

.aimac-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.aimac-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.aimac-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.aimac-card__title {
	display: block;
	margin-top: 10px;
	font-size: 1.0625rem;
	font-weight: 600;
}

/* Visor de imágenes */
.aimac-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.92);
}

.aimac-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.aimac-lightbox img {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
}

.aimac-lightbox button {
	position: absolute;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.aimac-lightbox__close { top: 16px; right: 24px; font-size: 2.5rem; }
.aimac-lightbox__nav   { top: 50%; transform: translateY(-50%); font-size: 3.5rem; padding: 12px; }
.aimac-lightbox__prev  { left: 12px; }
.aimac-lightbox__next  { right: 12px; }

.aimac-lightbox button:focus-visible {
	outline: 2px solid #fff;
}

@media (max-width: 900px) {
	.aimac-gallery,
	.aimac-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.aimac-gallery,
	.aimac-related__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aimac-gallery__item img { transition: none; }
}




/*Emoji*/
.aimac-single__title {
	font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.aimac-single__meta {
	font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
	font-size: 1.375rem;
	color: #8a8a8a;
	align-items: center;
}

.aimac-icon {
	width: 1em;
	height: 1em;
	margin-right: 0.45em;
	vertical-align: -0.125em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}