/* ==========================================================================
   Galería con filtros (CPT galeria_foto) — María Revive
   Este archivo es independiente del CSS compilado principal para que no se
   pierda si el diseño general del tema se vuelve a sincronizar/regenerar.
   ========================================================================== */

.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin-bottom: 2.5rem;
}
.gallery-filter-btn {
	padding: 0.55rem 1.25rem;
	border-radius: 999px;
	border: 2px solid #e5e7eb;
	background: #fff;
	color: #4b5563;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.25s ease;
}
.gallery-filter-btn:hover { border-color: #00A896; color: #00A896; }
.gallery-filter-btn.is-active { background: #00A896; border-color: #00A896; color: #fff; }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }

.gallery-item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 1rem;
	overflow: hidden;
	border: none;
	padding: 0;
	cursor: pointer;
	background: #f0f0f0;
}
.gallery-item.is-hidden { display: none; }
.gallery-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-item__img { transform: scale(1.08); }
.gallery-item__placeholder { width: 100%; height: 100%; background: #e5e7eb; }
.gallery-item__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.65), transparent 55%);
	display: flex;
	align-items: flex-end;
	padding: 0.85rem;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__title { color: #fff; font-weight: 700; font-size: 0.85rem; text-align: left; }

.gallery-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 10, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 1000;
	padding: 2rem;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__img {
	max-width: 90vw;
	max-height: 80vh;
	border-radius: 0.75rem;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.gallery-lightbox__caption { color: #fff; margin-top: 1rem; font-weight: 600; }
.gallery-lightbox__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   Paginación del Blog
   ========================================================================== */
.mariarevive-pagination {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.mariarevive-pagination .page-numbers {
	padding: 0.5rem 0.9rem;
	border-radius: 0.5rem;
	background: #fff;
	color: #4b5563;
	font-weight: 600;
	border: 1px solid #e5e7eb;
	text-decoration: none;
	transition: all 0.2s ease;
}
.mariarevive-pagination .page-numbers:hover { border-color: #00A896; color: #00A896; }
.mariarevive-pagination .page-numbers.current { background: #00A896; color: #fff; border-color: #00A896; }
