/* Events page: Ticket Tailor event listing, styled after the visit page's location cards */

.events-page {
	text-align: center;
}

.events-intro {
	font-weight: bold;
}

#page .event-cards,
#page .event-dates {
	list-style: none;
	margin: 0;
	padding: 0;
}

.event-cards {
	margin: 2rem 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 3rem;
}

/* Added by js/card-masonry.js: small fixed rows that tall cards span several of. */
.event-cards.is-masonry {
	grid-auto-rows: 8px;
	row-gap: 0;
}

.event-cards.is-masonry > .event-card {
	align-self: start;
	margin-bottom: 3rem;
}

.event-card {
	background: #f1d696;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	color: #555;
}

.event-card img {
	width: 100%;
	max-width: 250px;
	height: auto;
	border-radius: 4px;
	display: block;
	margin: 0 auto 1rem;
}

.event-card h2.title {
	text-align: center;
	margin: 1rem 0;
}

.event-card h3 {
	color: #555;
	margin: 1rem 0 0.5rem;
}

.event-info {
	flex: 1;
	text-align: left;
}

.event-date {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid #c9ab62;
}

.more-dates summary {
	cursor: pointer;
	padding: 10px 0;
	border-top: 1px solid #c9ab62;
	color: #741220;
	font-weight: bold;
	text-shadow: none;
}

.more-dates summary:hover {
	text-decoration: underline;
}

.more-dates summary:focus-visible {
	outline: 3px solid #741220;
	outline-offset: 2px;
}

.event-date__venue {
	display: block;
	font-size: 0.9em;
}

.sold-out-notice {
	display: inline-block;
	margin: 0;
	padding: 10px 20px;
	border-radius: 4px;
	font-family: 'Arvo', serif;
	font-size: 16px;
	text-transform: uppercase;
	text-align: center;
}

.sold-out-notice {
	background-color: #E0E0E0;
	color: #333;
	border: 1px solid #767676;
}

.events-contact {
	margin: 20px 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1024px) {
	.event-cards {
		grid-template-columns: 1fr;
	}
}
