.fest-topshots-grid {
	position: relative;
	margin: 0 -12px;
}

.fest-topshots-grid-sizer,
.fest-topshots-item {
	width: 33.3333%;
}

.fest-topshots-item {
	padding: 0 12px 24px;
	box-sizing: border-box;
}

.fest-topshots-card {
	position: relative;
	overflow: hidden;
	background: #111;
}

.fest-topshots-trigger {
	display: block;
	position: relative;
	color: inherit;
	text-decoration: none;
}

.fest-topshots-media {
	position: relative;
	line-height: 0;
}

.fest-topshots-image {
	display: block;
	width: 100%;
	height: auto;
}

.fest-topshots-title-wrap {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	width: 100%;
	padding: 22px 22px 60px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
	box-sizing: border-box;
}

.fest-topshots-title {
	margin: 0;
	color: #fff;
	font-size: 1.7rem;
	line-height: 1.05;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	word-break: break-word;
}

.fest-lightbox[hidden] {
	display: none !important;
}

.fest-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

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

.fest-lightbox-dialog {
	position: relative;
	z-index: 2;
	width: min(1280px, calc(100% - 40px));
	max-height: calc(100vh - 40px);
	margin: 20px auto;
	padding: 24px;
	background: #111;
	color: #fff;
	overflow: auto;
	box-sizing: border-box;
	border-radius: 8px;
}

.fest-lightbox-close {
	position: absolute;
	top: 10px;
	right: 16px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.fest-lightbox-title {
	margin: 0 40px 8px 0;
	font-size: 1.4rem;
	font-weight: 800;
	text-transform: uppercase;
}

.fest-lightbox-counter {
	margin-bottom: 16px;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
}

.fest-lightbox-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	background: #000;
	padding: 16px;
	margin-bottom: 20px;
}

.fest-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: 70vh;
	width: auto;
	height: auto;
}

.fest-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.fest-lightbox-prev {
	left: 12px;
}

.fest-lightbox-next {
	right: 12px;
}

.fest-lightbox-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
}

.fest-lightbox-gallery-item {
	display: block;
	padding: 0;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.fest-lightbox-gallery-item:hover {
	transform: translateY(-2px);
}

.fest-lightbox-gallery-item.is-active {
	border-color: #fff;
}

.fest-lightbox-gallery-thumb {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
}

body.fest-lightbox-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.fest-topshots-grid-sizer,
	.fest-topshots-item {
		width: 50%;
	}

	.fest-topshots-title {
		font-size: 1.35rem;
	}
}

@media (max-width: 640px) {
	.fest-topshots-grid {
		margin: 0;
	}

	.fest-topshots-grid-sizer,
	.fest-topshots-item {
		width: 100%;
	}

	.fest-topshots-item {
		padding: 0 0 18px;
	}

	.fest-topshots-title-wrap {
		padding: 16px 16px 46px;
	}

	.fest-topshots-title {
		font-size: 1.15rem;
	}

	.fest-lightbox-dialog {
		width: calc(100% - 16px);
		max-height: calc(100vh - 16px);
		margin: 8px auto;
		padding: 16px;
	}

	.fest-lightbox-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.fest-lightbox-gallery-thumb {
		height: 110px;
	}
}