.epm-catalog {
	--epm-navy: #002771;
	--epm-navy-light: #041a4d;
	--epm-lime: #8EE302;
	--epm-white: #ffffff;

	font-family: 'Roboto Condensed', sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	color: var(--epm-white);
	box-sizing: border-box;
}

.epm-catalog *,
.epm-catalog *::before,
.epm-catalog *::after {
	box-sizing: border-box;
}

/* Breadcrumb: plain white text on the page background, and the active /
   hovered item switches to the site's real button style (lime background,
   navy bold text) so it matches the "Get a Quote!" button elsewhere on
   the site. All !important to avoid the theme's global link/button styles
   bleeding through. */
.epm-catalog__breadcrumb {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 4px !important;
	margin: 0 0 24px 0 !important;
	padding: 0 !important;
	background: transparent !important;
	font-family: 'Merriweather Sans', sans-serif !important;
	font-size: 13px !important;
}

.epm-catalog__breadcrumb button {
	all: unset !important;
	box-sizing: border-box !important;
	background: transparent !important;
	padding: 8px 14px !important;
	color: var(--epm-white) !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	font-family: 'Merriweather Sans', sans-serif !important;
	font-size: 13px !important;
	border-radius: 6px !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.epm-catalog__breadcrumb button:hover {
	background: var(--epm-lime) !important;
	color: var(--epm-navy) !important;
	text-decoration: none !important;
}

.epm-catalog__breadcrumb button[aria-current="true"] {
	background: var(--epm-lime) !important;
	color: var(--epm-navy) !important;
	cursor: default !important;
}

.epm-catalog__breadcrumb .epm-catalog__sep {
	color: rgba(255, 255, 255, 0.5) !important;
	padding: 0 2px !important;
	font-size: 13px !important;
}

@media (max-width: 480px) {
	.epm-catalog__breadcrumb {
		gap: 2px !important;
		margin-bottom: 16px !important;
	}
	.epm-catalog__breadcrumb button {
		padding: 6px 10px !important;
		font-size: 12px !important;
	}
}

.epm-catalog__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 992px) {
	.epm-catalog__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
	.epm-catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
	.epm-catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 340px) {
	.epm-catalog__grid { grid-template-columns: repeat(1, 1fr); }
}

.epm-catalog__loading,
.epm-catalog__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	color: var(--epm-white);
	font-family: 'Merriweather Sans', sans-serif;
}

/* Folder card — every color forced with !important, including :hover,
   so the theme's own default button/link hover color (which was showing
   through as pink) can never win. */
.epm-card-folder {
	display: block;
	width: 100%;
	background: var(--epm-navy) !important;
	border: none !important;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	padding: 0;
	color: var(--epm-white) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-shadow: none !important;
}

.epm-card-folder:hover,
.epm-card-folder:focus {
	background: var(--epm-navy-light) !important;
	color: var(--epm-white) !important;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 39, 113, 0.45) !important;
	outline: 2px solid var(--epm-lime) !important;
	outline-offset: -2px;
}

.epm-card-folder__thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	background: #dfe3ea;
}

.epm-card-folder__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: var(--epm-lime);
	background: var(--epm-navy-light);
}

.epm-card-folder__body {
	padding: 12px 14px;
}

.epm-card-folder__name {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--epm-white);
	margin: 0 0 4px 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

.epm-card-folder__count {
	font-size: 12px;
	color: var(--epm-lime);
	margin: 0;
}

/* Image card — same navy/white treatment as the folder card, for a
   consistent look across the whole catalog. */
.epm-card-image {
	display: block;
	width: 100%;
	background: var(--epm-navy) !important;
	border: none !important;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	color: var(--epm-white) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-shadow: none !important;
}

.epm-card-image:hover,
.epm-card-image:focus {
	background: var(--epm-navy-light) !important;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 39, 113, 0.45) !important;
	outline: 2px solid var(--epm-lime) !important;
	outline-offset: -2px;
}

.epm-card-image__thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	background: #dfe3ea;
}

.epm-card-image__name {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--epm-white);
	text-align: center;
	padding: 10px 8px;
	margin: 0;
	overflow-wrap: break-word;
	word-break: break-word;
}

@media (max-width: 420px) {
	.epm-card-folder__body { padding: 10px 12px; }
	.epm-card-folder__name { font-size: 13px; }
	.epm-card-folder__count { font-size: 11px; }
	.epm-card-image__name { font-size: 12px; padding: 8px 6px; }
}

/* Pagination — default state is plain white text, hover/active switches
   to the same lime + navy button contrast used across the site. */
.epm-catalog__paginacion {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
	font-family: 'Merriweather Sans', sans-serif;
}

.epm-catalog__paginacion button {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	color: var(--epm-white) !important;
	font-weight: 700;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: none !important;
}

.epm-catalog__paginacion button:hover:not(:disabled),
.epm-catalog__paginacion button:focus:not(:disabled) {
	background: var(--epm-lime) !important;
	border-color: var(--epm-lime) !important;
	color: var(--epm-navy) !important;
}

.epm-catalog__paginacion button:disabled {
	opacity: 0.35;
	cursor: default;
}

.epm-catalog__paginacion button.is-actual {
	background: var(--epm-lime) !important;
	border-color: var(--epm-lime) !important;
	color: var(--epm-navy) !important;
}

.epm-catalog__paginacion .epm-catalog__pagina-info {
	color: var(--epm-white);
	font-size: 12px;
	margin: 0 8px;
}

@media (max-width: 480px) {
	.epm-catalog__paginacion { gap: 4px; }
	.epm-catalog__paginacion button {
		padding: 7px 11px;
		font-size: 12px;
	}
	.epm-catalog__paginacion .epm-catalog__pagina-info {
		width: 100%;
		text-align: center;
		margin: 6px 0 0 0;
	}
}

/* Lightbox */
.epm-catalog-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 15, 40, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 40px;
}

.epm-catalog-lightbox.is-open {
	display: flex;
}

.epm-catalog-lightbox__img {
	max-width: 90vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.epm-catalog-lightbox__caption {
	position: absolute;
	bottom: 30px;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--epm-white);
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: 700;
	font-size: 16px;
}

.epm-catalog-lightbox__close,
.epm-catalog-lightbox__prev,
.epm-catalog-lightbox__next {
	position: absolute !important;
	background: var(--epm-lime) !important;
	color: var(--epm-navy) !important;
	border: none !important;
	border-radius: 6px !important;
	width: 44px;
	height: 44px;
	font-size: 20px;
	font-weight: 700 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	outline: none !important;
}

.epm-catalog-lightbox__close {
	top: 20px;
	right: 20px;
}

.epm-catalog-lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.epm-catalog-lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.epm-catalog-lightbox__close:hover,
.epm-catalog-lightbox__prev:hover,
.epm-catalog-lightbox__next:hover,
.epm-catalog-lightbox__close:focus,
.epm-catalog-lightbox__prev:focus,
.epm-catalog-lightbox__next:focus {
	background: var(--epm-navy) !important;
	color: var(--epm-lime) !important;
	filter: none !important;
}

/* Mobile lightbox: shrink padding/buttons so the arrows don't sit on
   top of the image, and give the caption breathing room above the
   home-indicator area on iOS. */
@media (max-width: 600px) {
	.epm-catalog-lightbox {
		padding: 16px 46px;
	}

	.epm-catalog-lightbox__img {
		max-width: calc(100vw - 92px);
		max-height: 70vh;
	}

	.epm-catalog-lightbox__close,
	.epm-catalog-lightbox__prev,
	.epm-catalog-lightbox__next {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.epm-catalog-lightbox__close {
		top: 10px;
		right: 10px;
	}

	.epm-catalog-lightbox__prev {
		left: 6px;
	}

	.epm-catalog-lightbox__next {
		right: 6px;
	}

	.epm-catalog-lightbox__caption {
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		font-size: 13px;
		padding: 0 50px;
	}
}
