/* Fiesta Flickr Events — frontend styles */

/* Events grid (homepage cards & archive) */
.ffe-events-grid {
	display: grid;
	gap: 1.75rem;
}
.ffe-events-grid.ffe-cols-1 { grid-template-columns: 1fr; }
.ffe-events-grid.ffe-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ffe-events-grid.ffe-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ffe-events-grid.ffe-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ffe-events-grid.ffe-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ffe-events-grid.ffe-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) {
	.ffe-events-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.ffe-events-grid { grid-template-columns: 1fr !important; }
}

/* Event card */
.ffe-event-card {
	display: block;
	text-decoration: none !important;
	color: inherit;
}
.ffe-event-card__title {
	margin: 0 0 1.1rem;
	font-size: 2.1rem;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
@media (max-width: 600px) {
	.ffe-event-card__title { font-size: 1.6rem; }
}
.ffe-event-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #111;
}
.ffe-event-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.ffe-event-card:hover .ffe-event-card__media img {
	transform: scale(1.05);
}

/* Album gallery (single event page) */
.ffe-album-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
	.ffe-album-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.ffe-album-gallery { grid-template-columns: 1fr; }
}
.ffe-album-gallery__item {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #111;
	cursor: zoom-in;
}
.ffe-album-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.ffe-album-gallery__item:hover img {
	transform: scale(1.05);
}

/* Single event page wrapper */
.ffe-single-main,
.ffe-archive-main {
	padding: 60px 20px;
}
.ffe-single-event,
.ffe-archive {
	max-width: 1280px;
	margin: 0 auto;
}
.ffe-single-event__header,
.ffe-archive__header {
	text-align: center;
	margin-bottom: 2.5rem;
}
.ffe-single-event__title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin: 0;
}

/* Pagination */
.ffe-pagination {
	margin-top: 2.5rem;
	text-align: center;
}
.ffe-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	margin: 0 0.15rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}
.ffe-pagination .page-numbers.current {
	background: #111;
	color: #fff;
	border-color: #111;
}

/* Call-to-action button containers */
.ffe-events-cta,
.ffe-single-event__back {
	margin-top: 2.5rem;
	text-align: center;
}
.ffe-single-event__back-top {
	margin-top: 1.25rem;
	text-align: center;
}

/* Site-style button — matches Fiesta Macumba ".blog-button > .vc_btn3" look */
.ffe-btn {
	display: inline-block;
	padding: 12px 32px;
	background: #ff7c6d !important;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 6px;
	font-family: 'Marvin Visions Big' !important;
	font-size: 21px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: 0;
	cursor: pointer;
	box-shadow: 6px 5px 0px 0px rgb(0, 0, 0);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
	line-height: 1.2;
}
.ffe-btn:hover,
.ffe-btn:focus {
	background: #ff6757 !important;
	color: #fff !important;
	transform: translate(2px, 2px);
	box-shadow: 4px 3px 0px 0px rgb(0, 0, 0);
}
.ffe-btn:active {
	transform: translate(6px, 5px);
	box-shadow: 0 0 0 0 rgb(0, 0, 0);
}
@media (max-width: 600px) {
	.ffe-btn { font-size: 17px; padding: 10px 24px; box-shadow: 4px 4px 0px 0px rgb(0, 0, 0); }
	.ffe-btn:hover, .ffe-btn:focus { box-shadow: 2px 2px 0px 0px rgb(0, 0, 0); }
}

/* Error message */
.ffe-error {
	padding: 1rem;
	background: #fff3f3;
	border: 1px solid #f5c2c2;
	color: #a00;
	border-radius: 4px;
}

/* Lightbox */
.ffe-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.94);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	user-select: none;
}
.ffe-lightbox.is-open {
	display: flex;
}
.ffe-lightbox__img-wrap {
	position: relative;
	max-width: 92vw;
	max-height: 86vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ffe-lightbox__img {
	max-width: 100%;
	max-height: 86vh;
	display: block;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ffe-lightbox__btn {
	background: rgba(0, 0, 0, 0.55);
	border: 0;
	color: #fff;
	width: 48px;
	height: 48px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
	position: absolute;
	padding: 0;
}
.ffe-lightbox__btn:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: scale(1.05);
}
.ffe-lightbox__btn:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.ffe-lightbox__close {
	top: 1rem;
	right: 1rem;
	font-size: 32px;
}
.ffe-lightbox__prev,
.ffe-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	font-size: 36px;
}
.ffe-lightbox__prev:hover,
.ffe-lightbox__next:hover {
	transform: translateY(-50%) scale(1.05);
}
.ffe-lightbox__prev { left: 1rem; }
.ffe-lightbox__next { right: 1rem; }
.ffe-lightbox__counter {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.9rem;
	background: rgba(0, 0, 0, 0.55);
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
}
.ffe-lightbox__loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ffe-spin 0.8s linear infinite;
	display: none;
}
.ffe-lightbox.is-loading .ffe-lightbox__loader {
	display: block;
}
@keyframes ffe-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (max-width: 600px) {
	.ffe-lightbox__close { top: 0.5rem; right: 0.5rem; }
	.ffe-lightbox__prev,
	.ffe-lightbox__next {
		width: 44px;
		height: 44px;
		font-size: 28px;
	}
	.ffe-lightbox__prev { left: 0.5rem; }
	.ffe-lightbox__next { right: 0.5rem; }
}

/* On FFE pages the header sits above a white background while the homepage
   has it on top of an image. Force menu text + icons to dark so they stay
   readable; theme handles sticky/scrolled state itself. */
body.single-flickr_event #Header .menu > li > a,
body.single-flickr_event #Header .menu > li > a span,
body.single-flickr_event #Top_bar .menu > li > a,
body.single-flickr_event #Top_bar .menu > li > a span,
body.single-flickr_event header nav .menu-item > a,
body.single-flickr_event header nav .menu-item > a span,
body.single-flickr_event header .wpml-ls a,
body.post-type-archive-flickr_event #Header .menu > li > a,
body.post-type-archive-flickr_event #Header .menu > li > a span,
body.post-type-archive-flickr_event #Top_bar .menu > li > a,
body.post-type-archive-flickr_event #Top_bar .menu > li > a span,
body.post-type-archive-flickr_event header nav .menu-item > a,
body.post-type-archive-flickr_event header nav .menu-item > a span,
body.post-type-archive-flickr_event header .wpml-ls a {
	color: #111 !important;
}

/* Hover state for the dark menu items */
body.single-flickr_event #Header .menu > li > a:hover,
body.single-flickr_event #Header .menu > li > a:hover span,
body.single-flickr_event #Top_bar .menu > li > a:hover,
body.single-flickr_event #Top_bar .menu > li > a:hover span,
body.post-type-archive-flickr_event #Header .menu > li > a:hover,
body.post-type-archive-flickr_event #Header .menu > li > a:hover span,
body.post-type-archive-flickr_event #Top_bar .menu > li > a:hover,
body.post-type-archive-flickr_event #Top_bar .menu > li > a:hover span {
	color: #ff7c6d !important;
}
