/**
 * Pagina e carrossel do album de fotos
 */

.hodie-page__inner--wide {
	max-width: 960px;
}

.hodie-album-page {
	padding: 1.75rem 1.5rem;
}

.hodie-album-page__head {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--hodie-border);
}

.hodie-album-page__title {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
}

.hodie-album-page__count {
	margin: 0;
	font-size: 0.9rem;
	color: var(--hodie-text-muted);
}

.hodie-album-page__back {
	margin: 1.5rem 0 0;
	text-align: center;
}

.hodie-album--page .hodie-album__grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
}

@media (min-width: 640px) {
	.hodie-album--page .hodie-album__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.hodie-album--page .hodie-album__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.625rem;
	}
}

.hodie-album__link {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
}

.hodie-album__hint {
	font-size: 0.75rem;
	color: var(--hodie-brand);
	text-decoration: none;
}

.hodie-album__hint:hover,
.hodie-album__hint:focus {
	text-decoration: underline;
}

.hodie-album__footer {
	margin: 0.875rem 0 0;
	text-align: center;
}

.hodie-album__view-all {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hodie-brand);
	text-decoration: none;
}

.hodie-album__view-all:hover,
.hodie-album__view-all:focus {
	text-decoration: underline;
}

/* Lightbox / carrossel */
.hodie-album-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hodie-album-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.hodie-album-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.hodie-album-lightbox__panel {
	position: relative;
	z-index: 1;
	width: min(96vw, 1100px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 3.25rem;
	box-sizing: border-box;
}

.hodie-album-lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: calc(92vh - 6rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.hodie-album-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(92vh - 8rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hodie-album-lightbox__counter {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

.hodie-album-lightbox__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hodie-album-lightbox__close:hover,
.hodie-album-lightbox__close:focus {
	background: rgba(255, 255, 255, 0.22);
}

.hodie-album-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hodie-album-lightbox__nav:hover,
.hodie-album-lightbox__nav:focus {
	background: rgba(255, 255, 255, 0.22);
}

.hodie-album-lightbox__nav--prev {
	left: 0.25rem;
}

.hodie-album-lightbox__nav--next {
	right: 0.25rem;
}

@media (max-width: 639px) {
	.hodie-album-lightbox__panel {
		padding: 2.75rem 0.5rem 1.5rem;
	}

	.hodie-album-lightbox__nav {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1.5rem;
	}

	.hodie-album-lightbox__nav--prev {
		left: 0.15rem;
	}

	.hodie-album-lightbox__nav--next {
		right: 0.15rem;
	}
}
