/* Single-event editorial layout. Archive/calendar grids keep their own measure.
 * Finished flyers are documents, not full-bleed hero images: retain every edge,
 * avoid upscaling small originals, and cap their desktop presentation separately
 * from the title and event information. Supports both block and classic views.
 */
.single-tribe_events #tribe-events-pg-template {
	width: min(calc(100% - 2 * clamp(1rem, 3vw, 2rem)), 64rem);
	max-width: 64rem;
	margin-inline: auto;
	padding: clamp(1.5rem, 3vw, 2.5rem) 0 2.5rem;
}

.single-tribe_events #tribe-events-content {
	min-width: 0;
	overflow-wrap: anywhere;
}

.single-tribe_events #tribe-events-content .tribe-events-single-event-title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.16;
	text-wrap: pretty;
}

.single-tribe_events #tribe-events-content .tribe-events-schedule {
	margin-block: 1rem 1.5rem;
}

.single-tribe_events #tribe-events-content .tribe-events-schedule__datetime {
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.5;
}

.single-tribe_events #tribe-events-content .tribe-events-single-event-description,
.single-tribe_events #tribe-events-content > .tribe_events {
	min-width: 0;
	max-width: 100%;
}

/* Body sections stay subordinate to the event title; native schedule/navigation
 * headings sit outside these selectors and retain their own component rules.
 */
.single-tribe_events #tribe-events-content .tribe-events-single-event-description h2,
.single-tribe_events #tribe-events-content > .tribe_events > h2 {
	font-size: clamp(1.3rem, 2vw, 1.625rem);
	line-height: 1.3;
	margin-block: 1.5rem .625rem;
}

.single-tribe_events #tribe-events-content .tribe-events-single-event-description h3,
.single-tribe_events #tribe-events-content > .tribe_events > h3 {
	font-size: clamp(1.125rem, 1.5vw, 1.25rem);
	line-height: 1.35;
	margin-block: 1.25rem .5rem;
}

.single-tribe_events #tribe-events-content .tribe-events-single-event-description > :is(p, ul, ol, blockquote),
.single-tribe_events #tribe-events-content > .tribe_events > :is(p, ul, ol, blockquote) {
	max-width: 68ch;
	margin-inline: 0;
}

.single-tribe_events #tribe-events-content .tribe-events-event-image,
.single-tribe_events #tribe-events-content .tribe-events-single-event-description :is(figure, p:has(img)),
.single-tribe_events #tribe-events-content > .tribe_events > :is(figure, p:has(img)) {
	width: 100%;
	max-width: 46rem;
	margin-inline: 0;
	margin-block: 1.25rem;
}

.single-tribe_events #tribe-events-content :is(.tribe-events-event-image, .tribe-events-single-event-description, .tribe_events) img {
	display: block;
	width: auto !important;
	max-width: min(100%, 46rem) !important;
	height: auto !important;
	max-height: none;
}

/* Imported wide/full blocks must not escape the single-event reading column. */
.single-tribe_events #tribe-events-content .tribe-events-single-event-description :is(.alignwide, .alignfull),
.single-tribe_events #tribe-events-content > .tribe_events > :is(.alignwide, .alignfull) {
	width: 100% !important;
	max-width: 46rem;
	margin-inline: 0;
}

.single-tribe_events #tribe-events-content figcaption {
	max-width: 68ch;
	text-align: start;
}
