/* ==========================================================================
   Custom Event Gallery - Frontend
   ========================================================================== */

:root {
	--ceg-primary: #2271b1;
	--ceg-primary-hover: #135e96;
	--ceg-primary-soft: rgba(34, 113, 177, 0.15);
	--ceg-text: #1d2939;
	--ceg-text-muted: #667085;
	--ceg-border: #d0d5dd;
	--ceg-card-border: #ececec;
	--ceg-card-bg: #ffffff;
	--ceg-surface: #f9fafb;
	--ceg-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	--ceg-card-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.12);
	--ceg-card-radius: 14px;
	--ceg-radius-sm: 8px;
	--ceg-icon-size: 15px;
	--ceg-featured-bg: #f0b429;
	--ceg-featured-text: #1f2937;
}

.ceg-archive,
.ceg-single,
.ceg-shortcode {
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 16px;
}

.ceg-archive-header {
	margin-bottom: 24px;
}

.ceg-archive-title {
	margin: 0 0 16px;
}

/* Category archive page */
.ceg-tax-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 26px;
	padding: 26px 28px;
	border-radius: 14px;
	background: var(--ceg-card-bg);
	border: 1px solid var(--ceg-card-border);
	box-shadow: var(--ceg-card-shadow);
}

.ceg-tax-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: var(--ceg-primary-soft);
	color: var(--ceg-primary);
}

.ceg-tax-icon .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.ceg-tax-title {
	margin: 0 0 6px;
	font-size: 1.8em;
	line-height: 1.2;
	color: var(--ceg-text);
}

.ceg-tax-desc {
	margin: 0 0 8px;
	color: var(--ceg-text-muted);
}

.ceg-tax-count {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--ceg-primary-soft);
	color: var(--ceg-primary);
	font-size: 0.82em;
	font-weight: 600;
}

@media (max-width: 560px) {
	.ceg-tax-header {
		padding: 20px 18px;
		gap: 14px;
	}
	.ceg-tax-icon {
		width: 44px;
		height: 44px;
	}
	.ceg-tax-icon .dashicons {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}
	.ceg-tax-title {
		font-size: 1.4em;
	}
}

/* Search form */
.ceg-search-form {
	max-width: 320px;
}

.ceg-search-field {
	position: relative;
	display: block;
}

.ceg-search-icon {
	position: absolute;
	top: 50%;
	left: 13px;
	transform: translateY(-50%);
	color: var(--ceg-text-muted);
	pointer-events: none;
}

.ceg-search-input {
	width: 100%;
	padding: 10px 14px 10px 40px;
	border: 1px solid var(--ceg-border);
	border-radius: var(--ceg-radius-sm);
	background: var(--ceg-card-bg);
	font-size: 15px;
	color: var(--ceg-text);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ceg-search-input::placeholder {
	color: var(--ceg-text-muted);
	opacity: 0.8;
}

.ceg-search-input:focus-visible {
	border-color: var(--ceg-primary);
	box-shadow: 0 0 0 3px var(--ceg-primary-soft);
}

.ceg-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Event cards grid: column count driven by --ceg-cols (3 default) */
.ceg-cards {
	display: grid;
	grid-template-columns: repeat(var(--ceg-cols, 3), 1fr);
	gap: 22px;
}

/* Toolbar */
.ceg-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 24px;
	margin: 18px 0 26px;
	padding: 14px 16px;
	border: 1px solid var(--ceg-card-border);
	border-radius: var(--ceg-radius-sm);
	background: var(--ceg-surface);
}

.ceg-toolbar .ceg-search-form,
.ceg-toolbar .ceg-controls-form {
	margin: 0;
}

.ceg-controls-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 20px;
}

.ceg-control-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ceg-control-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ceg-text-muted);
}

.ceg-control-group select,
.ceg-view-btn {
	outline: none;
}

.ceg-control-group select {
	padding: 9px 12px;
	border: 1px solid var(--ceg-border);
	border-radius: var(--ceg-radius-sm);
	background: var(--ceg-card-bg);
	color: var(--ceg-text);
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ceg-control-group select:focus-visible,
.ceg-view-btn:focus-visible {
	border-color: var(--ceg-primary);
	box-shadow: 0 0 0 3px var(--ceg-primary-soft);
}

.ceg-view-toggle {
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--ceg-border);
	border-radius: var(--ceg-radius-sm);
	background: var(--ceg-card-bg);
}

.ceg-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 5px;
	background: transparent;
	color: var(--ceg-text-muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.ceg-view-btn:hover {
	background: var(--ceg-primary-soft);
	color: var(--ceg-primary);
}

.ceg-view-btn.is-active {
	background: var(--ceg-primary);
	color: #fff;
}

/* Card */
.ceg-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ceg-card-border);
	border-radius: var(--ceg-card-radius);
	overflow: hidden;
	background: var(--ceg-card-bg);
	box-shadow: var(--ceg-card-shadow);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ceg-card:hover {
	box-shadow: var(--ceg-card-shadow-hover);
	transform: translateY(-4px);
}

.ceg-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.ceg-card-link:focus-visible {
	outline: 2px solid var(--ceg-primary);
	outline-offset: -2px;
	border-radius: var(--ceg-card-radius);
}

.ceg-card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f1f1;
}

.ceg-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ceg-card:hover .ceg-card-media img {
	transform: scale(1.06);
}

.ceg-card-media-empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ceg-card-media-empty .dashicons {
	font-size: 56px;
	width: 56px;
	height: 56px;
	color: #c3c4c7;
}

.ceg-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 12px;
	pointer-events: none;
}

.ceg-card-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 7px 10px;
	background: var(--ceg-card-bg);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	text-align: center;
	line-height: 1;
}

.ceg-card-date-day {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--ceg-text);
}

.ceg-card-date-month {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ceg-text-muted);
}

.ceg-card-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
	align-items: flex-start;
}

.ceg-card-badges .ceg-featured-badge,
.ceg-card-badges .ceg-status-badge {
	margin: 0;
}

.ceg-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 18px 20px;
}

.ceg-card-title {
	margin: 0 0 10px;
	font-size: 1.35em;
	line-height: 1.3;
	font-weight: 700;
	color: var(--ceg-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.ceg-card:hover .ceg-card-title {
	color: var(--ceg-primary);
}

.ceg-card-excerpt {
	margin: 10px 0 0;
	color: var(--ceg-text-muted);
	font-size: 0.95em;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ceg-card-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	white-space: nowrap;
	margin-top: auto;
	padding: 8px 18px;
	border: 1px solid var(--ceg-primary);
	border-radius: 999px;
	color: var(--ceg-primary);
	font-weight: 600;
	font-size: 0.9em;
	line-height: 1.4;
	transition: background 0.2s ease, color 0.2s ease;
}

.ceg-card-excerpt + .ceg-card-more,
.ceg-meta-line + .ceg-card-more {
	margin-top: 16px;
}

.ceg-card:hover .ceg-card-more {
	background: var(--ceg-primary);
	color: #fff;
	text-decoration: none;
}

.ceg-card-more-arrow {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.ceg-card:hover .ceg-card-more-arrow {
	transform: translateX(3px);
}

/* Meta line */
.ceg-meta-line {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
	color: var(--ceg-text-muted);
	font-size: 0.92em;
	margin: 6px 0 0;
}

.ceg-meta-icon {
	font-size: var(--ceg-icon-size);
	width: var(--ceg-icon-size);
	height: var(--ceg-icon-size);
	margin-right: 4px;
	vertical-align: -3px;
	color: var(--ceg-primary);
}

.ceg-meta-sep {
	color: #c0c0c0;
}

/* List view */
.ceg-cards.ceg-cards-list {
	grid-template-columns: 1fr;
}

.ceg-cards-list .ceg-card-link {
	flex-direction: row;
}

.ceg-cards-list .ceg-card-media {
	flex: 0 0 38%;
	aspect-ratio: 16 / 10;
}

.ceg-cards-list .ceg-card-body {
	padding: 22px 26px;
}

.ceg-cards-list .ceg-card-excerpt {
	-webkit-line-clamp: 2;
}

/* Single event */
.ceg-event-banner {
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
	border: 1px solid var(--ceg-card-border);
}

.ceg-event-banner img {
	max-width: 100% !important;
	width: 100%;
	height: auto;
	display: block;
}

.ceg-event-header {
	margin-bottom: 22px;
}

.ceg-event-title {
	margin: 0 0 10px;
	font-size: 2em;
	line-height: 1.2;
}

/* Hero banner (first section) — full-bleed color fill */
.ceg-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-top: -24px;
	margin-bottom: 34px;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 50px 20px;
	background-color: var(--ceg-primary);
	background-image: url('/wp-content/uploads/2026/08/ChatGPT-Image-Aug-14-2026-02_35_26-PM.png');
	background-size: cover;
	background-position: center;
	color: #fff;
	isolation: isolate;
}

.ceg-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(9, 14, 20, 0.12) 0%, rgba(9, 14, 20, 0.45) 100%);
}

.ceg-hero-content {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0 auto;
}

.ceg-hero-badges {
	position: absolute;
	top: 22px;
	left: 26px;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.ceg-hero .ceg-event-title {
	margin: 0 0 12px;
	font-size: 3em;
	line-height: 1.12;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.ceg-hero-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 6px;
}

.ceg-hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 0.92em;
	font-weight: 500;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ceg-hero-chip-icon {
	font-size: 1.05em;
	width: auto;
	height: auto;
	color: #fff;
}

.ceg-event-date-location {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ceg-card-border);
	color: var(--ceg-text-muted);
	font-size: 0.95em;
}

.ceg-dl-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ceg-dl-icon {
	color: var(--ceg-primary);
	font-size: 1.1em;
	width: auto;
	height: auto;
}

.ceg-dl-label {
	font-weight: 600;
	color: var(--ceg-text);
}

@media (max-width: 560px) {
	.ceg-hero {
		min-height: 300px;
		padding: 36px 18px;
	}
	.ceg-hero .ceg-event-title {
		font-size: 1.9em;
	}
}

.ceg-event-body {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	align-items: start;
}

.ceg-event-description {
	font-size: 1.02em;
	line-height: 1.7;
}

.ceg-event-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ceg-info-block {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 16px 18px;
	background: var(--ceg-surface);
}

.ceg-info-title {
	margin: 0 0 10px;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #333;
}

.ceg-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ceg-info-list li {
	display: flex;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px dashed #e2e2e2;
	font-size: 0.95em;
}

.ceg-info-list li:last-child {
	border-bottom: none;
}

.ceg-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ceg-tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 0.88em;
	font-weight: 500;
	text-decoration: none;
	background: #fff;
	color: var(--ceg-text);
	border: 1px solid var(--ceg-border);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ceg-tag:hover {
	border-color: var(--ceg-primary);
	color: var(--ceg-primary);
	background: var(--ceg-primary-soft);
}

.ceg-info-label {
	flex: 0 0 92px;
	font-weight: 600;
	color: #555;
}

.ceg-info-value a {
	color: var(--ceg-primary);
	word-break: break-word;
}

.ceg-info-dash {
	color: #888;
	margin: 0 5px;
}

.ceg-map-link {
	color: var(--ceg-primary);
	font-weight: 600;
}

.ceg-featured-badge {
	display: inline-block;
	background: var(--ceg-featured-bg);
	color: var(--ceg-featured-text);
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}

.ceg-event-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 10px;
}

.ceg-event-badges .ceg-featured-badge {
	margin-bottom: 0;
}

.ceg-status-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ceg-status-upcoming {
	background: #e7f4ff;
	color: #1d6ab0;
	border: 1px solid #c4e1f8;
}

.ceg-status-completed {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c1e6c3;
}

.ceg-status-cancelled {
	background: #fdeaea;
	color: #b32d2e;
	border: 1px solid #f6c9c9;
}

.ceg-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.ceg-section-head .ceg-section-title {
	margin-bottom: 0;
}

.ceg-section-title {
	margin: 0 0 12px;
	font-size: 1.35em;
}

/* Gallery grid */
.ceg-gallery {
	margin-top: 34px;
}

.ceg-gallery-title {
	font-size: 1.5em;
	margin: 0 0 18px;
}

.ceg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.ceg-gallery-item {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
}

.ceg-gallery-item a {
	display: block;
	line-height: 0;
}

.ceg-gallery-item img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.ceg-gallery-item a:hover img {
	transform: scale(1.05);
}

/* Lightbox */
.ceg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(9, 14, 20, 0.86);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.ceg-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.ceg-lightbox-close,
.ceg-lightbox-prev,
.ceg-lightbox-next {
	position: fixed;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	cursor: pointer;
	border-radius: 50% !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ceg-lightbox-close svg,
.ceg-lightbox-prev svg,
.ceg-lightbox-next svg {
	display: block;
	pointer-events: none;
}

.ceg-lightbox-close:hover,
.ceg-lightbox-prev:hover,
.ceg-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.5);
}

.ceg-lightbox-close {
	top: 18px;
	right: 18px;
	width: 44px !important;
	height: 44px;
}

.ceg-lightbox-close:hover {
	background: #c62828;
	border-color: #c62828;
	transform: rotate(90deg);
}

.ceg-lightbox-prev,
.ceg-lightbox-next {
	top: 50%;
	width: 46px !important;
	height: 46px;
	transform: translateY(-50%);
}

.ceg-lightbox-prev:hover,
.ceg-lightbox-next:hover {
	transform: translateY(-50%) scale(1.12);
}

.ceg-lightbox-prev {
	left: 16px;
}

.ceg-lightbox-next {
	right: 16px;
}

.ceg-lightbox-stage {
	max-width: 90vw;
	max-height: 84vh;
	text-align: center;
}

.ceg-lightbox-stage img {
	max-width: 100%;
	max-height: 84vh;
	object-fit: contain;
	display: inline-block;
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

@keyframes ceg-lightbox-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.ceg-lightbox.is-open .ceg-lightbox-stage img {
	animation: ceg-lightbox-in 0.25s ease;
}

.ceg-lightbox-caption {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 80%;
	margin: 0;
	padding: 8px 18px;
	color: #fff;
	font-size: 15px;
	text-align: center;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ceg-lightbox-count {
	position: fixed;
	bottom: 30px;
	right: 24px;
	padding: 5px 12px;
	color: #e2e8f0;
	font-size: 13px;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
}

.ceg-no-results {
	color: #555;
}

.ceg-pagination {
	display: flex;
	justify-content: center;
	margin: 30px 0 10px;
	padding: 12px;
	border: 1px solid var(--ceg-card-border);
	border-radius: var(--ceg-radius-sm);
	background: var(--ceg-surface);
}

.ceg-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ceg-pagination li .page-numbers,
.ceg-pagination-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	text-align: center;
	border: 1px solid var(--ceg-border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--ceg-primary);
	background: var(--ceg-card-bg);
	font-weight: 600;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ceg-pagination li .page-numbers:hover {
	border-color: var(--ceg-primary);
}

.ceg-pagination li .page-numbers.current,
.ceg-pagination-current {
	background: var(--ceg-primary);
	color: #fff;
	border-color: var(--ceg-primary);
	cursor: default;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.ceg-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.ceg-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.ceg-event-body {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.ceg-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.ceg-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.ceg-gallery-item img {
		height: 180px;
	}
}

@media (max-width: 560px) {
	.ceg-cards {
		grid-template-columns: 1fr;
	}
	.ceg-cards-list .ceg-card-link {
		flex-direction: column;
	}
	.ceg-cards-list .ceg-card-media {
		flex: 1 1 auto;
		aspect-ratio: 16 / 9;
	}
	.ceg-gallery-grid {
		grid-template-columns: 1fr;
	}
	.ceg-gallery-item img {
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.ceg-event-title {
		font-size: 1.6em;
	}
	.ceg-toolbar {
		align-items: stretch;
	}
	.ceg-search-form {
		max-width: none;
	}
	.ceg-controls-form {
		width: 100%;
	}
}
