.see-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 24px;
	margin: 24px 0;
}

.see-columns-2 { grid-template-columns: repeat(1, 1fr); }
.see-columns-3 { grid-template-columns: repeat(1, 1fr); }
.see-columns-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 600px) {
	.see-columns-2 { grid-template-columns: repeat(2, 1fr); }
	.see-columns-3 { grid-template-columns: repeat(2, 1fr); }
	.see-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.see-columns-3 { grid-template-columns: repeat(3, 1fr); }
	.see-columns-4 { grid-template-columns: repeat(4, 1fr); }
}

.see-card {
	display: flex;
	flex-direction: column;
	background: var(--see-card-bg, #fff);
	border: 1px solid var(--see-border, #e2e2e2);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.see-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
}

.see-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* image_fit="full" - show the whole image at its natural aspect ratio
   instead of cropping to a fixed box. Card heights will vary. */
.see-card-image--full {
	aspect-ratio: auto;
	height: auto;
	background: none;
}

.see-card-image--full img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* image_fit="contain" - fixed-width, fixed-ratio box (uniform card
   sizing, like cover) but the whole image is letterboxed inside it
   rather than cropped. Ratio is set inline via the image_ratio
   attribute (default 3:4); this is just the fallback. */
.see-card-image--contain {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f0f0f0;
}

.see-card-image--contain img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.see-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.see-card-date {
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #888;
}

.see-card-title {
	margin: 0;
	font-size: 1.15em;
	line-height: 1.3;
}

.see-card-title a {
	text-decoration: none;
	color: inherit;
}

.see-card-title a:hover {
	text-decoration: underline;
}

.see-card-venue {
	font-size: 0.9em;
	color: var(--see-text, #555);
}

.see-card-excerpt {
	font-size: 0.9em;
	color: var(--see-text, #444);
	margin: 0;
	flex: 1;
}

.see-card-price {
	font-weight: 600;
	font-size: 0.95em;
}

.see-card-readmore {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--see-accent, #1a4fa0);
	text-decoration: none;
	align-self: flex-start;
}

.see-card-readmore:hover {
	text-decoration: underline;
}

.see-card-button {
	display: inline-block;
	margin-top: auto;
	padding: 10px 16px;
	background: var(--see-btn-bg, #222);
	color: var(--see-btn-text, #fff) !important;
	text-align: center;
	text-decoration: none !important;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.9em;
}

.see-card-button:hover {
	background: var(--see-btn-bg, #444);
	filter: brightness(1.15);
}

.see-error {
	background: #fbeaea;
	border: 1px solid #e0b4b4;
	padding: 10px 14px;
	border-radius: 4px;
	color: #8a1f1f;
}

.see-empty {
	color: #777;
	font-style: italic;
}

/* Make the popup trigger <button> look like the plain <a> button. */
button.see-card-button {
	border: none;
	cursor: pointer;
	font-family: inherit;
	width: 100%;
}

/* --- Calendar layout --- */

.see-calendar {
	margin: 24px 0;
}

.see-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.see-cal-title {
	font-size: 1.3em;
	font-weight: 700;
}

.see-cal-nav {
	text-decoration: none;
	font-weight: 600;
	padding: 6px 10px;
}

.see-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.see-cal-labels {
	margin-bottom: 4px;
}

.see-cal-daylabel {
	text-align: center;
	font-weight: 700;
	font-size: 0.8em;
	color: #777;
	padding: 4px 0;
}

.see-cal-cell {
	min-height: 90px;
	border: 1px solid var(--see-border, #e6e6e6);
	border-radius: 4px;
	padding: 6px;
	font-size: 0.8em;
	background: var(--see-card-bg, #fff);
}

.see-cal-outside {
	background: #fafafa;
	color: #bbb;
}

.see-cal-today {
	border-color: var(--see-accent, #222);
	border-width: 2px;
}

.see-cal-daynum {
	font-weight: 700;
	margin-bottom: 4px;
}

.see-cal-event {
	margin-bottom: 4px;
	line-height: 1.3;
}

.see-cal-event a,
.see-cal-event button.see-card-button {
	display: block;
	background: none !important;
	color: var(--see-accent, #1a4fa0);
	padding: 2px 4px;
	border-radius: 3px;
	text-align: left;
	font-size: 1em;
	text-decoration: none;
	width: auto;
}

.see-cal-event a:hover,
.see-cal-event button.see-card-button:hover {
	background: #eef3fb;
}

.see-cal-price {
	display: block;
	font-size: 0.85em;
	color: #666;
	padding-left: 4px;
}

.see-cal-today-link {
	margin-top: 8px;
}

@media (max-width: 700px) {
	.see-cal-cell {
		min-height: 60px;
		font-size: 0.7em;
	}
}

/* --- List layout --- */

.see-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 24px 0;
}

.see-list-row {
	display: flex;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--see-border, #e2e2e2);
}

.see-list-row:last-child {
	border-bottom: none;
}

.see-list-image {
	flex: 0 0 240px;
	max-width: 240px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: #f0f0f0;
}

.see-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* image_fit="full" - show the whole image at its natural aspect ratio. */
.see-list-image--full {
	aspect-ratio: auto;
	height: auto;
	background: none;
}

.see-list-image--full img {
	height: auto;
	object-fit: contain;
}

/* image_fit="contain" - fixed-width box, whole image letterboxed
   inside rather than cropped. Ratio set inline via image_ratio attr. */
.see-list-image--contain {
	aspect-ratio: 3 / 4;
}

.see-list-image--contain img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.see-list-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.see-list-body .see-card-title {
	font-size: 1.3em;
}

.see-list-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
}

.see-list-footer .see-card-button {
	margin-top: 0;
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	.see-list-row {
		flex-direction: column;
	}

	.see-list-image {
		flex: 0 0 auto;
		max-width: 100%;
	}
}
