/* LGF Gallery module styles */

.lgf-gallery-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 28px;
}
.lgf-chip {
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	background: #fff;
	border: 2px solid var(--wp--preset--color--pale-sky);
	color: var(--wp--preset--color--navy);
	border-radius: 999px;
	padding: 0.5rem 1.1rem;
	cursor: pointer;
}
.lgf-chip.is-active,
.lgf-chip:hover {
	background: var(--wp--preset--color--navy-2);
	border-color: var(--wp--preset--color--navy-2);
	color: #fff;
}

.lgf-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}
.lgf-gallery-item {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--pale-sky);
	box-shadow: 0 2px 10px rgba(14, 58, 102, 0.08);
}
.lgf-gallery-item.lgf-is-hidden,
.lgf-gallery-item.lgf-filtered-out {
	display: none;
}
.lgf-gallery-link {
	display: block;
	aspect-ratio: 4 / 3;
}
.lgf-gallery-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}
.lgf-gallery-link:hover img {
	transform: scale(1.04);
}
.lgf-gallery-item figcaption {
	padding: 10px 14px;
	font-size: 0.85rem;
	color: var(--wp--preset--color--slate);
}

/* Lightbox */
.lgf-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(14, 58, 102, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 1000;
	padding: 24px;
}
.lgf-lightbox.is-open {
	display: flex;
}
.lgf-lightbox-img {
	max-width: min(90vw, 1000px);
	max-height: 75vh;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lgf-lightbox-caption {
	color: #fff;
	margin-top: 12px;
	text-align: center;
	max-width: 700px;
}
.lgf-lightbox-close,
.lgf-lightbox-prev,
.lgf-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.6rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lgf-lightbox-close:hover,
.lgf-lightbox-prev:hover,
.lgf-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}
.lgf-lightbox-close {
	top: 20px;
	right: 20px;
}
.lgf-lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.lgf-lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}
@media (max-width: 600px) {
	.lgf-lightbox-prev,
	.lgf-lightbox-next {
		width: 40px;
		height: 40px;
	}
}

/* Videos grid */
.lgf-videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.lgf-video-item {
	border-radius: 14px;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	box-shadow: 0 2px 10px rgba(14, 58, 102, 0.08);
}
.lgf-video-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
	padding: 0;
	cursor: pointer;
	background: var(--wp--preset--color--ink);
}
.lgf-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lgf-video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.4rem;
	background: rgba(14, 58, 102, 0.35);
}
.lgf-video-item iframe,
.lgf-video-item video {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	border: none;
}
.lgf-video-caption {
	color: #cdd6e0;
	font-size: 0.85rem;
	padding: 10px 14px;
	margin: 0;
}
