/* Custom gallery styles */

/* Layout adjustments */
.gallery-spotlight {
	align-items: stretch;
	gap: 3rem;
	flex-wrap: wrap;
}

.gallery-spotlight .media-gallery {
	flex: 1 1 52%;
	min-width: 280px;
}

.gallery-spotlight .content {
	flex: 1 1 40%;
	min-width: 260px;
}

/* Hero swiper */
.gallery-hero {
	width: 100%;
}

.gallery-hero-swiper {
	border-radius: 0.75em;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.25);
	min-height: 220px;
	width: 100%;
}

.gallery-hero-swiper .swiper-wrapper {
	align-items: stretch;
}

.gallery-hero-swiper .swiper-slide {
	display: none;
	aspect-ratio: 4 / 3;
}

.gallery-hero-swiper .swiper-slide:first-child {
	display: block;
}

.gallery-hero-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.gallery-hero-swiper.swiper-initialized .swiper-slide {
	display: block;
}

/* Thumbnails */
.gallery-thumbs {
	margin-top: 1rem;
}

.gallery-thumbs-swiper .swiper-slide {
	width: auto;
	border-radius: 0.5em;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.65;
	cursor: pointer;
}

.gallery-thumbs-swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-thumbs-swiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: rgba(255, 255, 255, 0.85);
}

/* Pagination shown on narrow screens */
.gallery-hero-pagination {
	display: none;
}

/* Responsive adjustments */
@media screen and (max-width: 980px) {
	.gallery-spotlight {
		flex-direction: column;
		gap: 2rem;
	}

	.gallery-spotlight .content {
		order: 2;
		flex: none;
		width: 100%;
	}

	.gallery-spotlight .media-gallery {
		order: 1;
		flex: none;
		width: 100%;
	}
}

@media screen and (max-width: 736px) {
	.gallery-thumbs {
		display: none;
	}

	.gallery-hero-pagination {
		display: block;
		margin-top: 1rem;
		text-align: center;
	}

	.gallery-hero-pagination .swiper-pagination-bullet {
		background: rgba(255, 255, 255, 0.5);
		opacity: 1;
	}

	.gallery-hero-pagination .swiper-pagination-bullet-active {
		background: #ffffff;
	}
}

/* Media spotlight */
.media-spotlight {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	flex-wrap: wrap;
}

.spotlight.media-spotlight .media-asset {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 1em;
	overflow: hidden;
	flex: 0 0 320px;
	max-width: 420px;
}

.spotlight.media-spotlight .media-asset img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.media-content {
	flex: 1 1 320px;
	min-width: 260px;
	text-align: left;
}

.media-content header {
	text-align: left;
}

@media screen and (max-width: 980px) {
	.media-spotlight {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.spotlight.media-spotlight .media-asset {
		flex: none;
		width: 80%;
		max-width: 360px;
	}

	.media-content {
		flex: none;
		width: 100%;
		text-align: center;
	}

	.media-content header {
		text-align: center;
	}

	.spotlight.media-spotlight .media-content ul {
		text-align: left;
	}
}

	/* Social embed */
	.social-embed {
		max-width: 540px;
		margin: 0 auto;
		width: 100%;
	}

	.social-embed iframe {
		display: block;
		width: 100%;
		height: clamp(420px, 80vw, 633px);
		border: 0;
		border-radius: 0.75em;
	}

	@media screen and (max-width: 736px) {
		.social-embed {
			max-width: none;
		}

		.social-embed iframe {
			height: clamp(360px, 100vw, 560px);
		}
	}

	/* Highlight link */
	.highlight-link {
		color: #e37682;
		font-weight: 600;
	}

	#main .highlight-link {
		color: #e37682;
	}

	.highlight-link:hover,
	#main .highlight-link:hover {
		color: #f5aeb4;
	}
