/* GAYA Events — match Heritage School / Community (wine, gold, cream). */

body.single-gaya_event .content-header,
body.post-type-archive-gaya_event .content-header,
body.tax-event_type .content-header {
	display: none !important;
}

body.single-gaya_event,
body.post-type-archive-gaya_event,
body.tax-event_type {
	background: #ffffff;
}

body.single-gaya_event .content-body-inner.wrap,
body.post-type-archive-gaya_event .content-body-inner.wrap,
body.tax-event_type .content-body-inner.wrap {
	max-width: none;
	padding: 0;
	width: 100%;
}

body.single-gaya_event .main-content,
body.post-type-archive-gaya_event .main-content {
	padding: 0;
}

/* Hero — same rhythm as Heritage School (tall photo, dark scrim, cream type). */
.elementor-location-single .elementor-top-section:first-child,
.elementor-location-archive .elementor-top-section:first-child {
	min-height: 420px;
}

@media (min-width: 768px) {
	.elementor-location-single .elementor-top-section:first-child,
	.elementor-location-archive .elementor-top-section:first-child {
		min-height: 520px;
	}
}

.elementor-location-single .elementor-top-section:first-child .elementor-heading-title,
.elementor-location-archive .elementor-top-section:first-child .elementor-heading-title {
	text-shadow: none;
}

.elementor-location-archive .elementor-top-section:first-child p.elementor-heading-title,
.elementor-location-single .elementor-top-section:first-child p.elementor-heading-title {
	font-size: 12px !important;
	letter-spacing: 0.16em !important;
	font-weight: 600 !important;
	color: #c9a24b !important;
}

.elementor-location-archive .elementor-top-section:first-child h1,
.elementor-location-single .elementor-top-section:first-child h1 {
	max-width: 18ch;
	line-height: 1.2 !important;
	color: #f5efe6 !important;
}

/* Drive photo + readable type: dark overlay, no theme bgDark/red. */
.gaya-event-hero {
	position: relative;
	isolation: isolate;
}

.gaya-event-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(26, 18, 20, 0.9) 0%,
		rgba(26, 18, 20, 0.55) 45%,
		rgba(26, 18, 20, 0.35) 100%
	);
}

.gaya-event-hero > .elementor-background-overlay {
	display: none !important;
}

.gaya-event-hero > .elementor-container {
	position: relative;
	z-index: 2;
}

html:not(.elementor-html) .gaya-event-hero > .elementor-background-overlay,
body .gaya-event-hero > .elementor-background-overlay {
	display: none !important;
}

.gaya-event-hero .elementor-heading-title,
.gaya-event-hero .elementor-widget-text-editor,
.gaya-event-hero .elementor-widget-text-editor p {
	position: relative;
	z-index: 1;
	color: #f5efe6;
}

.elementor-location-archive .elementor-widget-text-editor {
	font-size: 16px;
	line-height: 1.65;
	color: #3a2a2c;
}

.elementor-location-archive .gaya-event-hero .elementor-widget-text-editor,
.elementor-location-archive .gaya-event-hero .elementor-widget-text-editor p {
	color: #f5efe6;
	max-width: 40rem;
}

.elementor-location-single .elementor-widget-theme-post-content {
	max-width: 42rem;
}

/* Archive cards — info-box language from Heritage programs, not a blog. */
.elementor-widget-archive-posts .elementor-posts-container {
	gap: 24px !important;
}

.elementor-widget-archive-posts .elementor-post {
	background: #f5efe6;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 180ms ease, background-color 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-archive-posts .elementor-post {
		transition: none;
	}
}

.elementor-widget-archive-posts .elementor-post:hover {
	background: #efe6d8;
	transform: translateY(-2px);
}

.elementor-widget-archive-posts .elementor-post__thumbnail {
	margin: 0;
	aspect-ratio: 4 / 3;
	background: #e8dcc8;
	overflow: hidden;
}

.elementor-widget-archive-posts .elementor-post__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.elementor-widget-archive-posts .elementor-post__text {
	padding: 24px 24px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.elementor-widget-archive-posts .elementor-post__title {
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 22px;
	line-height: 1.3;
	margin: 0;
}

.elementor-widget-archive-posts .elementor-post__title a {
	color: #6b1f2a;
	text-decoration: none;
}

.elementor-widget-archive-posts .elementor-post__title a:hover,
.elementor-widget-archive-posts .elementor-post__title a:focus-visible {
	color: #4a151c;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.elementor-widget-archive-posts .elementor-post__meta-data {
	display: none !important;
}

.elementor-widget-archive-posts .elementor-post__excerpt,
.elementor-widget-archive-posts .elementor-post__excerpt p {
	margin: 0;
	color: #3a2a2c;
	font-size: 16px;
	line-height: 1.55;
}

.elementor-widget-archive-posts .elementor-post__read-more {
	margin-top: auto;
	align-self: flex-start;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 8px 0;
	color: #6b1f2a;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid #c9a24b;
}

.elementor-widget-archive-posts .elementor-post__read-more:hover,
.elementor-widget-archive-posts .elementor-post__read-more:focus-visible {
	color: #4a151c;
	border-bottom-color: #4a151c;
}

.elementor-widget-archive-posts .elementor-pagination {
	margin-top: 40px;
}

.elementor-widget-archive-posts .elementor-pagination .page-numbers {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6b1f2a;
	background: transparent;
	border-radius: 0;
}

.elementor-widget-archive-posts .elementor-pagination .page-numbers.current {
	background: #6b1f2a;
	color: #f5efe6;
}

.elementor-widget-archive-posts .elementor-pagination .page-numbers:focus-visible {
	outline: 2px solid #c9a24b;
	outline-offset: 2px;
}

/* Buttons in templates */
.elementor-location-single .elementor-button {
	background: #6b1f2a !important;
	color: #f5efe6 !important;
	border-radius: 0 !important;
	min-height: 44px;
	padding: 12px 24px !important;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	letter-spacing: 0.03em;
	fill: #f5efe6;
	transition: background-color 180ms ease, color 180ms ease;
}

.elementor-location-single .elementor-button:hover,
.elementor-location-single .elementor-button:focus-visible {
	background: #4a151c !important;
	color: #f5efe6 !important;
}

.elementor-location-single .elementor-image-gallery .gallery-item img,
.elementor-location-single .gallery .gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	height: auto;
	display: block;
}

.gaya-event-gallery__title {
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 28px;
	color: #6b1f2a;
	margin: 0 0 24px;
}

.gaya-event-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.gaya-event-gallery__item {
	display: block;
	overflow: hidden;
	background: #f5efe6;
}

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

.gaya-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.gaya-event-card {
	background: #f5efe6;
	overflow: hidden;
}

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

.gaya-event-card__body {
	padding: 24px;
}

.gaya-event-card__date {
	margin: 0 0 8px;
	color: #6b1f2a;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
}

.gaya-event-card__title {
	margin: 0 0 8px;
	font-family: "Libre Baskerville", Georgia, serif;
	font-size: 22px;
	line-height: 1.3;
}

.gaya-event-card__title a {
	color: #6b1f2a;
	text-decoration: none;
}

.gaya-event-card__title a:hover,
.gaya-event-card__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gaya-event-card__loc {
	margin: 0;
	color: #3a2a2c;
	font-size: 16px;
	line-height: 1.5;
}

.gaya-events-empty {
	color: #3a2a2c;
	font-size: 16px;
}

@media (max-width: 767px) {
	.elementor-location-archive .elementor-top-section:first-child h1,
	.elementor-location-single .elementor-top-section:first-child h1 {
		font-size: 28px !important;
		max-width: none;
	}

	.elementor-widget-archive-posts .elementor-post__title {
		font-size: 20px;
	}
}
