/* Gallery Box — estilos base del plugin */

.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
}

.gallery-box {
	--gb-accent: #fd780f;
	margin-bottom: 24px;
}

.gallery-box__inner {
	max-width: 100%;
	padding: 0;
}

.gallery-box__stage {
	position: relative;
	width: 100%;
	background: #000;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.gallery-box__figure {
	position: relative;
	margin: 0;
	width: 100%;
	height: 100%;
}

.gallery-box__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.gallery-box__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 48px 24px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
	color: #fff;
	pointer-events: none;
}

.gallery-box__title {
	margin: 0 0 6px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.gallery-box__alt {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
}

.gallery-box__alt[hidden] {
	display: none;
}

.gallery-box__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.15s ease;
}

.gallery-box__nav .material-symbols-outlined {
	font-size: 48px;
	line-height: 1;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.gallery-box__nav:hover,
.gallery-box__nav:focus-visible {
	opacity: 0.85;
	outline: none;
}

.gallery-box__nav--prev {
	left: 12px;
}

.gallery-box__nav--next {
	right: 12px;
}

.gallery-box__thumbs {
	background: #000;
	margin-top: 0;
	padding: 10px 8px;
}

.gallery-box__thumbs .slick-list {
	margin: 0 -4px;
}

.gallery-box__thumbs .slick-slide {
	padding: 0 4px;
}

.gallery-box__thumbs .slick-slide > div {
	line-height: 0;
}

.gallery-box__thumb {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	opacity: 0.72;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.gallery-box__thumb:hover,
.gallery-box__thumb:focus-visible {
	opacity: 1;
	outline: none;
}

.gallery-box__thumb.is-active {
	border-color: var(--gb-accent);
	opacity: 1;
}

.gallery-box__thumb-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 3;
	object-fit: cover;
}

.gallery-box__empty {
	margin: 0;
	padding: 12px 0;
}

/* Editor */
.gallery-box-editor__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.gallery-box-editor__count {
	margin: 0 0 8px;
	font-size: 13px;
	color: #757575;
}

@media (max-width: 767.98px) {
	.gallery-box__caption {
		padding: 36px 16px 14px;
	}

	.gallery-box__title {
		font-size: 1rem;
	}

	.gallery-box__alt {
		font-size: 0.8125rem;
	}

	.gallery-box__nav .material-symbols-outlined {
		font-size: 40px;
	}

	.gallery-box__nav--prev {
		left: 6px;
	}

	.gallery-box__nav--next {
		right: 6px;
	}
}
