/* Event Field block */

.g-event-field > :first-child {
	margin-block-start: 0;
}

.g-event-field > :last-child {
	margin-block-end: 0;
}

figure.g-event-field {
	margin-inline: 0;
}

.g-event-field__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Editor-only message when the field has no value yet. */
.g-event-field__empty {
	margin: 0;
	padding: 0.5em 0.75em;
	border: 1px dashed currentColor;
	font-size: 0.8125rem;
	font-style: italic;
	opacity: 0.6;
}

/* Countdown inside the event hero: use the surrounding (Cover) text color
   instead of the Countdown Timer block's contrast default, and let the block
   gap handle spacing. */
.g-event-field--countdown.edaptive-countdown {
	color: inherit;
	margin-bottom: 0;
}

/* Add to Calendar Links (Google + .ics). Inherit the surrounding text color;
   underline on hover. */
.g-event-cal {
	--g-event-cal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M12 14v4M10 16h4'/%3E%3C/svg%3E");
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
}

.g-event-cal__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: inherit;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	text-underline-offset: 0.2em;
}

.g-event-cal__link::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	-webkit-mask: var(--g-event-cal-icon) center / contain no-repeat;
	mask: var(--g-event-cal-icon) center / contain no-repeat;
}

.g-event-cal__link:hover,
.g-event-cal__link:focus-visible {
	color: inherit;
	text-decoration: underline;
}

/* Keyboard focus only. */
.g-event-cal__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.g-event-cal .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
