/* ==========================================================================
   The Capital — Venue Gallery
   ========================================================================== */

.tc-venue-gallery {
	position: relative;
	width: 100%;
}

/* ── Swiper ─────────────────────────────────────────────────────────────── */
.tc-vg-swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.tc-vg-slide {
	width: 100%;
	aspect-ratio: 9 / 6;
	max-height: 75vh;
}

/* Uniform height for all slides */
.tc-vg-slide img {
	display: block;
	width: 100%;
	height: 75vh;
	max-height: 75vh;
	object-fit: cover;
}

/* YouTube thumbnail — div with background-image to crop out black bars */
.tc-vg-thumb {
	display: block;
	width: 100%;
	height: 75vh;
	max-height: 75vh;
	background-size: 125%;
	background-position: top center;
	background-repeat: no-repeat;
}

/* ── Video slide ────────────────────────────────────────────────────────── */
.tc-vg-slide--video .tc-vg-video-trigger {
	position: relative;
	display: block;
	width: 100%;
}

.tc-vg-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: opacity 0.2s;
}

.tc-vg-video-trigger:hover .tc-vg-play {
	opacity: 0.85;
}

.tc-vg-play svg {
	width: 68px;
	height: 48px;
}

/* Inline iframe — matches thumbnail height */
.tc-vg-iframe {
	display: block;
	width: 100%;
	height: 75vh;
	max-height: 75vh;
	border: none;
}

/* ── Bottom bar — pagination centred below ──────────────────────────────── */
.tc-vg-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 25px;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.tc-vg-pagination {
	display: none;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	row-gap: 15px;
	/* override Swiper's default absolute positioning */
	position: static !important;
	width: auto !important;
	bottom: auto !important;
}

.tc-vg-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.35 );
	opacity: 1;
	cursor: pointer;
	transition: background 0.2s;
	margin: 0 !important;
}

.tc-vg-pagination .swiper-pagination-bullet-active {
	background: var( --tc-gold, #EBA318 );
	width: 28px;
	border-radius: 4px;
}

/* ── Prev / Next arrows — absolute overlay on .tc-vg-swiper ────────────── */
.tc-vg-prev,
.tc-vg-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: #fff !important;
	color: #000;
	cursor: pointer;
	transition: background 0.2s;
}

.tc-vg-prev { left: 40px; }
.tc-vg-next { right: 40px; }

@media (min-width: 1600px) {
	.tc-vg-prev { left: -64px; }
	.tc-vg-next { right: -64px; }
}

.tc-vg-prev:hover,
.tc-vg-next:hover {
	background: rgba( 255, 255, 255, 0.75 ) !important;
}

.tc-vg-prev svg,
.tc-vg-next svg {
	width: 20px;
	height: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 1400px ) {
	.tc-venue-gallery {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media ( max-width: 768px ) {
	.tc-vg-slide img,
	.tc-vg-thumb,
	.tc-vg-iframe {
		height: 56vw;
		max-height: 56vw;
	}

	.tc-vg-slide a,
	.tc-vg-slide picture,
	.tc-vg-slide img {
		height: 100% !important;
		display: block;
		max-height: none !important;
	}

	.tc-vg-bottom {
		padding-top: 0;
	}
	
	.tc-vg-swiper {
		margin-bottom: 20px;
	}

	.tc-vg-prev,
	.tc-vg-next {
		width: 40px;
		height: 40px;
	}
}
