/* PortalFilm Theme: estilos del componente production-single/production-gallery */

.pf_pfilm_template_production_single_gallery {
	margin-bottom: var(--spacing-xl);
}

.pf_pfilm_template_production_single_gallery_heading {
	font-size: var(--font-size-lg);
	font-weight: 600;
	margin: 0 0 var(--spacing-md);
	color: var(--color-text);
}

.pf_pfilm_template_production_single_gallery_list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--spacing-sm);
}

.pf_pfilm_template_production_single_gallery_item {
	margin: 0;
}

.pf_pfilm_template_production_single_gallery_thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: var(--border-radius);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background-color: var(--color-bg-surface-secondary);
}

.pf_pfilm_template_production_single_gallery_thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pf_pfilm_template_production_single_gallery_thumb:hover img,
.pf_pfilm_template_production_single_gallery_thumb:focus img {
	opacity: 0.9;
}

/* Lightbox */
.pf_pfilm_template_production_single_gallery_lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-lg);
}

.pf_pfilm_template_production_single_gallery_lightbox[hidden] {
	display: none;
}

.pf_pfilm_template_production_single_gallery_lightbox_close {
	position: absolute;
	top: var(--spacing-md);
	right: var(--spacing-md);
	width: 44px;
	height: 44px;
	font-size: 2rem;
	line-height: 1;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	border-radius: var(--border-radius);
}

.pf_pfilm_template_production_single_gallery_lightbox_prev,
.pf_pfilm_template_production_single_gallery_lightbox_next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	font-size: 1.5rem;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	border-radius: var(--border-radius);
}

.pf_pfilm_template_production_single_gallery_lightbox_prev {
	left: var(--spacing-md);
}

.pf_pfilm_template_production_single_gallery_lightbox_next {
	right: var(--spacing-md);
}

.pf_pfilm_template_production_single_gallery_lightbox_content {
	max-width: 90vw;
	max-height: 90vh;
}

.pf_pfilm_template_production_single_gallery_lightbox_content img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
}
