/* Horario del evento (schedule_dev.cfm): 4 imagenes de 1080x1350. Celular: una columna a todo el ancho; computador: dos columnas. */

.schedule-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.schedule-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

.schedule-item {
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	box-shadow: 0 1px 3px hsl(0 0% 0% / 0.08);
	cursor: zoom-in;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.schedule-item:hover {
	box-shadow: 0 6px 18px hsl(0 0% 0% / 0.14);
	transform: translateY(-2px);
}

.schedule-item:focus-visible {
	outline: 3px solid hsl(var(--ring, 45 90% 50%));
	outline-offset: 2px;
}

.schedule-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* recuadro mientras la imagen aun no esta copiada */
.schedule-item--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	padding: 1rem;
	text-align: center;
	color: hsl(var(--muted-foreground));
	background: hsl(var(--muted) / 0.5);
	cursor: default;
	box-shadow: none;
}

.schedule-item--empty:hover {
	box-shadow: none;
	transform: none;
}

/* visor de la imagen ampliada */
.schedule-viewer {
	max-width: 100vw;
	max-height: 100vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.schedule-viewer::backdrop {
	background: hsl(0 0% 0% / 0.82);
}

.schedule-viewer img {
	display: block;
	width: auto;
	height: auto;
	max-width: 96vw;
	max-height: 92vh;
	margin: 0 auto;
	border-radius: var(--radius);
}

.schedule-viewer__close {
	position: fixed;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	color: #fff;
	background: hsl(0 0% 0% / 0.6);
	cursor: pointer;
}

.schedule-viewer__close:hover {
	background: hsl(0 0% 0% / 0.85);
}

.schedule-viewer__close .icon {
	width: 1.25rem;
	height: 1.25rem;
}
