/* ---------- Events-Übersicht ---------- */

.evgal-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	margin: 20px 0;
}

.evgal-event-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evgal-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.evgal-event-thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e0e0e0;
}

.evgal-event-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.evgal-event-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ddd, #eee);
}

.evgal-folder-icon {
	position: relative;
}

.evgal-folder-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40%;
	height: 32%;
	transform: translate(-50%, -60%);
	background: #c9ccd1;
	border-radius: 4px;
}

.evgal-folder-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 55%;
	height: 40%;
	transform: translate(-50%, -35%);
	background: #b7bbc2;
	border-radius: 4px;
}

.evgal-year-heading {
	margin: 10px 0 20px;
}

h3.evgal-event-title {
	margin: 0;
	padding: 12px 14px;
	font-weight: 600;
	font-size: 1.05em;
	line-height: 1.3;
}

.evgal-empty {
	opacity: 0.7;
}

/* ---------- Einzel-Event-Seite ---------- */

.evgal-single-event {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

.evgal-single-title {
	margin-bottom: 24px;
}

.evgal-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

.evgal-gallery-item {
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.evgal-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

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

.evgal-back-link {
	margin-top: 30px;
}

body.evgal-no-scroll {
	overflow: hidden;
}

/* ---------- Lightbox ---------- */

.evgal-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	touch-action: pan-y;
}

.evgal-lightbox.is-open {
	display: flex;
}

.evgal-lightbox-stage {
	max-width: 90vw;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.evgal-lightbox-stage img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.evgal-lightbox-close,
.evgal-lightbox-prev,
.evgal-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 1.8em;
	cursor: pointer;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	line-height: 48px;
	text-align: center;
}

.evgal-lightbox-close:hover,
.evgal-lightbox-prev:hover,
.evgal-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.evgal-lightbox-close {
	top: 20px;
	right: 20px;
}

.evgal-lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.evgal-lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.evgal-lightbox-download {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #111;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 0.95em;
}

.evgal-lightbox-download:hover {
	background: #eee;
}

.evgal-lightbox-counter {
	position: absolute;
	top: 24px;
	left: 24px;
	color: #fff;
	font-size: 0.9em;
	opacity: 0.8;
}

@media (max-width: 600px) {
	.evgal-lightbox-prev,
	.evgal-lightbox-next {
		width: 40px;
		height: 40px;
		line-height: 40px;
		font-size: 1.4em;
	}
	.evgal-lightbox-download {
		bottom: 16px;
		padding: 8px 16px;
	}
}
