.events-section {
	padding: 100px 30px;
	background: var(--secondary-dark);
}

.events-section .events-grid {
	margin-top: 40px;
}

.events-page {
	min-height: 100vh;
	padding: 120px 30px 80px;
	background: var(--primary-dark);
}

.events-container {
	max-width: 1200px;
	margin: 0 auto;
}

.events-back-link {
	display: inline-block;
	color: var(--accent-color);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 30px;
	transition: opacity 0.3s ease;
}

.events-back-link:hover {
	opacity: 0.8;
}

.event-detail-description {
	color: var(--text-gray);
	max-width: 700px;
	margin: 20px auto 0;
	line-height: 1.6;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.event-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, rgba(21, 21, 21, 0.9), rgba(15, 15, 15, 1));
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.4s ease;
}

.event-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
	border-color: rgba(243, 156, 18, 0.3);
}

.event-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #000;
}

.event-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.event-card:hover .event-card-image img {
	transform: scale(1.05);
}

.event-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.03);
}

.event-card-placeholder svg {
	width: 48px;
	height: 48px;
	fill: var(--accent-color);
	opacity: 0.6;
}

.event-card-body {
	padding: 24px;
}

.event-card-date {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--accent-color);
	margin-bottom: 8px;
	font-weight: 600;
}

.event-card-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 10px;
}

.events-section .event-card-title {
	font-size: 20px;
}

.event-card-description {
	font-size: 14px;
	color: var(--text-gray);
	line-height: 1.5;
	margin-bottom: 12px;
}

.event-card-count {
	font-size: 13px;
	color: var(--text-gray);
}

.events-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-gray);
	font-size: 16px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 40px;
}

.gallery-card {
	position: relative;
	padding: 0;
	border: none;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 1;
	background: #000;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.gallery-card img,
.gallery-card video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.7);
	color: var(--accent-color);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 1;
}

.gallery-card-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-card-overlay span {
	color: var(--text-light);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.gallery-card:hover .gallery-card-overlay {
	opacity: 1;
}

.image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.image-lightbox[hidden] {
	display: none;
}

.image-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

.image-lightbox-dialog {
	position: relative;
	z-index: 1;
	width: min(95vw, 1100px);
	max-height: 95vh;
	display: flex;
	flex-direction: column;
	background: var(--secondary-dark);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: var(--text-light);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.3s ease;
}

.image-lightbox-close:hover {
	background: var(--accent-color);
	color: var(--primary-dark);
}

.image-lightbox-media {
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.image-lightbox-image,
.image-lightbox-video {
	width: 100%;
	max-height: calc(95vh - 100px);
	object-fit: contain;
	background: #000;
}

.image-lightbox-video[hidden],
.image-lightbox-image[hidden] {
	display: none;
}

.image-lightbox-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-lightbox-title {
	color: var(--text-light);
	font-size: 14px;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.image-lightbox-download {
	display: inline-block;
	padding: 10px 20px;
	background: var(--accent-color);
	color: var(--primary-dark);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	border-radius: 6px;
	white-space: nowrap;
	transition: opacity 0.3s ease;
}

.image-lightbox-download:hover {
	opacity: 0.9;
}

@media (max-width: 768px) {
	.events-page {
		padding-top: 100px;
	}

	.events-grid {
		grid-template-columns: 1fr;
	}

	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.image-lightbox-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.image-lightbox-title {
		white-space: normal;
		text-align: center;
	}

	.image-lightbox-download {
		text-align: center;
	}
}
