/**
 * Botones multimedia + lightbox (front-end).
 *
 * Botones sobrios alineados con la marca (dorado #ba9e60) y una ventana emergente
 * accesible para reproducir audio/vídeo o ver imágenes. Pensado para realzar
 * contenidos como la letra del himno.
 */

/* ------------------------------------------------------------------ Botones */
.lht-mediabtn-row {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 1.25rem 0;
}

.lht-mediabtn-row.is-justify-left {
	justify-content: flex-start;
}
.lht-mediabtn-row.is-justify-center {
	justify-content: center;
}
.lht-mediabtn-row.is-justify-right {
	justify-content: flex-end;
}

.lht-mediabtn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .7rem 1.25rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	background: #c3360e;
	border: 2px solid #c3360e;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.lht-mediabtn:hover,
.lht-mediabtn:focus {
	color: #fff;
	background: #6e1d08;
	border-color: #6e1d08;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.lht-mediabtn:focus-visible {
	outline: 3px solid #ba9e60;
	outline-offset: 2px;
}

.lht-mediabtn__icon {
	width: 22px;
	height: 22px;
	font-size: 22px;
	line-height: 22px;
}

.lht-mediabtn__label {
	white-space: nowrap;
}

/* Variante secundaria (dorada) para el segundo tipo de acción, opcional vía
   alineación visual: aquí mantenemos un único estilo coherente. */

/* ---------------------------------------------------------------- Lightbox */
.lht-lightbox[hidden] {
	display: none;
}

.lht-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
}

.lht-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .72);
	cursor: pointer;
}

.lht-lightbox__dialog {
	position: relative;
	width: 100%;
	max-width: 880px;
	background: #1b1b1b;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
	padding: 1rem;
}

.lht-lightbox__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 1;
	color: #1b1b1b;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	cursor: pointer;
}

.lht-lightbox__close:hover,
.lht-lightbox__close:focus {
	background: #ba9e60;
	color: #fff;
}

.lht-lightbox__close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.lht-lightbox__content {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Vídeo / incrustados: relación 16:9 responsiva. */
.lht-lightbox__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.lht-lightbox__video iframe,
.lht-lightbox__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 6px;
	background: #000;
}

.lht-lightbox__audio {
	width: 100%;
	padding: 1.5rem .5rem;
}

.lht-lightbox__audio audio {
	width: 100%;
}

.lht-lightbox__img {
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	border-radius: 6px;
	display: block;
}

.lht-lightbox__err {
	color: #fff;
	padding: 2rem;
	text-align: center;
}

/* Evita el scroll de fondo con el modal abierto. */
body.lht-lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.lht-lightbox__close {
		top: 6px;
		right: 6px;
	}
}
