/* ==========================================================================
   Zampette – site layout (header, footer, PHP templates)
   ========================================================================== */

/* Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--zp-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--zp-white);
	color: var(--zp-text);
	font-family: var(--zp-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--zp-green-dark); text-decoration: none; transition: color .2s var(--zp-ease); }
a:hover { color: var(--zp-green-ink); }

h1, h2, h3, h4 {
	margin: 0;
	color: var(--zp-ink);
	font-family: var(--zp-font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	font-optical-sizing: auto;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--zp-green);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--zp-green); color: var(--zp-white); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon--flip { transform: scaleX(-1); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 1000;
	width: auto; height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--zp-ink);
	color: var(--zp-white);
	border-radius: var(--zp-radius);
}

/* Layout
   ========================================================================== */
.container {
	width: min(100% - 2 * var(--zp-gutter), var(--zp-container));
	margin-inline: auto;
}
.container--narrow { max-width: 760px; }
.container--text { max-width: 760px; }

.section { padding-block: var(--zp-section-y); }
.section--cream { background: var(--zp-cream); }
.section--sage { background: var(--zp-sage); }
.section--white { background: var(--zp-white); }
.section--tight { padding-block: 48px; }
.section--tight-top { padding-top: 48px; }



.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.section-title { font-size: clamp(28px, 3.2vw, 36px); }
.section-title--sm { font-size: clamp(26px, 2.6vw, 30px); margin-bottom: 28px; }
.section-lead { margin-top: 12px; font-size: 16px; }





/* Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--zp-white);
	transition: box-shadow .3s var(--zp-ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--zp-line), 0 8px 24px -16px rgba(0, 0, 0, .18); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--zp-header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--zp-ink); }
.brand:hover { color: var(--zp-ink); }
.brand__icon { width: 28px; height: 28px; color: var(--zp-green); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--zp-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand__tagline { margin-top: 4px; color: var(--zp-green-dark); font-size: 10.5px; letter-spacing: .14em; }
.custom-logo { max-height: 52px; width: auto; }

.primary-nav__list { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--zp-text); font-size: 15px; }
.nav-link:hover,
.current-menu-item > .nav-link,
.current_page_item > .nav-link,
.current-menu-ancestor > .nav-link { color: var(--zp-green-dark); }
.primary-nav__donate { display: none; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--zp-line);
	border-radius: var(--zp-radius);
	background: var(--zp-white);
	color: var(--zp-ink);
	cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Page heroes
   ========================================================================== */
.page-hero { padding-block: clamp(56px, 6vw, 72px) clamp(56px, 6vw, 68px); text-align: center; }
.page-hero--sage { background: var(--zp-sage); }
.page-hero--green { background: var(--zp-green); padding-block: clamp(64px, 7vw, 84px); }
.page-hero--green .page-hero__title,
.page-hero--green .page-hero__text { color: var(--zp-white); }
.page-hero__title { font-size: clamp(34px, 4.2vw, 46px); }
.page-hero__text { margin-top: 18px; font-size: 17px; line-height: 1.6; }
.page-hero__meta { margin-bottom: 12px; font-size: 14px; color: var(--zp-muted); }

/* Entrance animation: hidden until GSAP runs; CSS fallback reveals after 2.5s */
.js [data-zp-anim="hero"] { opacity: 0; animation: zp-reveal-fallback 0s 2.5s forwards; }
.js.motion-ready [data-zp-anim="hero"] { animation: none; }
.js.no-motion [data-zp-anim="hero"] { opacity: 1; animation: none; }
@keyframes zp-reveal-fallback { to { opacity: 1; } }

/* Filter bar and pagination
   ========================================================================== */
.filter-bar { padding-block: 20px; background: var(--zp-white); }
.filter-bar__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.filter-bar__groups { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.filter-group__label { color: var(--zp-muted); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.filter-group__list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-group + .filter-group { position: relative; }
@media (min-width: 900px) {
	.filter-group + .filter-group::before {
		content: "";
		position: absolute;
		left: -16px;
		top: 4px;
		bottom: 4px;
		width: 1px;
		background: var(--zp-line);
	}
}
.filter-pill {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 24px;
	border-radius: 999px;
	background: var(--zp-sage);
	color: var(--zp-green-dark);
	font-size: 14.5px;
}
.filter-pill:hover { background: #e1e8dd; color: var(--zp-green-ink); }
.filter-pill.is-active { background: var(--zp-green); color: var(--zp-white); }

.pagination { margin-top: 40px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: var(--zp-radius-sm);
	background: var(--zp-white);
	color: var(--zp-ink);
	font-size: 15px;
}
.pagination a.page-numbers:hover { background: var(--zp-sage); }
.pagination .page-numbers.current { background: var(--zp-green); color: var(--zp-white); }
.pagination .page-numbers.dots { background: transparent; }
.pagination .icon { width: 16px; height: 16px; }

.empty-state { max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state .icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--zp-green); }
.empty-state h1,
.empty-state h2 { margin-bottom: 12px; font-size: 28px; }
.empty-state p { margin-bottom: 28px; }
.error-404 { padding-block: clamp(80px, 12vw, 140px); }

/* Breadcrumb
   ========================================================================== */
.breadcrumb { padding-block: 11px; background: var(--zp-sage); font-size: 13.5px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.breadcrumb__list li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb__list a { color: var(--zp-text); }
.breadcrumb__list a:hover { color: var(--zp-green-dark); }
.breadcrumb__list [aria-current] { color: var(--zp-ink); font-weight: 500; }
.breadcrumb__list .icon { width: 14px; height: 14px; color: var(--zp-muted); }

/* Animal detail
   ========================================================================== */
.animal-detail { padding-block: 40px; background: var(--zp-cream); }
.animal-detail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }

.animal-gallery__main {
	aspect-ratio: 620 / 420;
	overflow: hidden;
	border-radius: var(--zp-radius-md);
	background: var(--zp-sage);
}
.animal-gallery__image { width: 100%; height: 100%; object-fit: cover; }
.animal-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.animal-gallery__thumb {
	display: block;
	width: 100px; height: 80px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background: var(--zp-sage);
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s var(--zp-ease), box-shadow .2s var(--zp-ease);
}
.animal-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.animal-gallery__thumb:hover { opacity: 1; }
.animal-gallery__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--zp-cream), 0 0 0 4px var(--zp-green); }

.animal-info__name { margin: 20px 0 20px; font-size: clamp(36px, 3.6vw, 42px); font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.animal-info__excerpt { margin-top: 26px; font-size: 15px; line-height: 1.6; }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.fact {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--zp-sage);
}
.fact__icon { width: 20px; height: 20px; color: var(--zp-green-dark); }
.fact__text { display: flex; flex-direction: column; line-height: 1.3; }
.fact__label { color: var(--zp-muted); font-size: 11.5px; }
.fact__value { color: var(--zp-ink); font-size: 15px; font-weight: 500; }

.animal-info__actions { display: grid; gap: 20px; margin-top: 20px; }

/* Tabs
   ========================================================================== */
.tabs__list {
	position: relative;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	border-bottom: 2px solid var(--zp-line);
}
.tabs__tab {
	padding: 14px 16px 16px;
	border: 0;
	background: none;
	color: var(--zp-muted);
	font-size: 16px;
	cursor: pointer;
	transition: color .2s var(--zp-ease);
}
.tabs__tab:hover,
.tabs__tab[aria-selected="true"] { color: var(--zp-green-dark); }
.tabs__indicator {
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--zp-green);
	transition: transform .35s var(--zp-ease), width .35s var(--zp-ease);
}
.tabs__panel { padding-top: 36px; }
.tabs__title { margin-bottom: 24px; font-size: clamp(24px, 2.4vw, 27px); font-weight: 600; }

/* CTA band
   ========================================================================== */
.cta-band { padding-block: 64px; background: var(--zp-green); text-align: center; }
.cta-band__title { color: var(--zp-white); font-size: clamp(26px, 2.8vw, 32px); font-weight: 600; }
.cta-band__text { max-width: 480px; margin: 20px auto 26px; color: rgba(255, 255, 255, .9); font-size: 15.5px; }

/* Entry content
   ========================================================================== */
.entry-content { font-size: 15.5px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { margin-top: 1.8em; font-size: 28px; }
.entry-content h3 { margin-top: 1.6em; font-size: 22px; }
.entry-content :where(ul, ol):not([class*="wp-block-zampette"]):not(.team) { padding-left: 1.25em; }
.entry-content :where(ul):not(.team) { list-style: disc; }
.entry-content :where(ol):not(.wp-block-zampette-steps) { list-style: decimal; }
.entry-content :where(li + li) { margin-top: .4em; }
.entry-content p a,
.entry-content li a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--zp-radius-md); }
.entry-content blockquote {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 3px solid var(--zp-green);
	color: var(--zp-ink);
	font-family: var(--zp-font-display);
	font-size: 20px;
}
.post-cover { margin-bottom: 40px; overflow: hidden; border-radius: var(--zp-radius-lg); }

/* Footer
   ========================================================================== */
.site-footer { padding-block: 56px 36px; background: var(--zp-footer); color: #a4a49f; font-size: 14px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 40px;
}
.site-footer__about p { max-width: 280px; margin-top: 18px; font-size: 13.5px; line-height: 1.6; }
.brand--footer { color: var(--zp-white); }
.brand--footer:hover { color: var(--zp-white); }
.brand--footer .brand__icon { width: 22px; height: 22px; }
.brand--footer .brand__name { font-size: 21px; }
.site-footer__title {
	margin-bottom: 16px;
	color: var(--zp-white);
	font-family: var(--zp-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.footer-menu li + li { margin-top: 10px; }
.footer-menu a { color: #a4a49f; }
.footer-menu a:hover { color: var(--zp-white); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #3d3d3a;
}
.site-footer__copy { color: #6f6f6a; font-size: 12.5px; }
.site-footer__social { display: flex; gap: 16px; }
.site-footer__social a { color: #c9c9c4; font-size: 13px; }
.site-footer__social a:hover { color: var(--zp-white); }

/* Block canvas (homepage, full-width pages)
   ========================================================================== */
.zp-canvas > * { margin-block: 0; }
.zp-page-content { padding-block: var(--zp-section-y); }
.zp-page-content > .alignfull:first-child { margin-top: calc(var(--zp-section-y) * -1); }

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.primary-nav__list { gap: 22px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	:root { --zp-header-h: 70px; }

	.nav-toggle { display: inline-flex; }
	.site-header__donate { display: none; }

	.primary-nav {
		position: fixed;
		inset: var(--zp-header-h) 0 0 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		gap: 24px;
		padding: 24px var(--zp-gutter) 40px;
		background: var(--zp-white);
		border-top: 1px solid var(--zp-line);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s var(--zp-ease), transform .25s var(--zp-ease), visibility 0s .25s;
	}
	.admin-bar .primary-nav { top: calc(var(--zp-header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav-open { overflow: hidden; }

	.primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav__list li { border-bottom: 1px solid var(--zp-line); }
	.nav-link { display: block; padding: 16px 0; font-size: 18px; color: var(--zp-ink); }
	.primary-nav__donate { display: flex; }

	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-hero__grid,
	.animal-detail__grid,
	.intro__grid--media-right,
	.intro__grid--media-left,
	.contact { grid-template-columns: minmax(0, 1fr); }
	.intro__grid--media-left .intro__media { order: 2; }
	.home-hero__title { max-width: 16ch; }

	.split { grid-template-columns: minmax(0, 1fr); }
	.split__inner { margin: 0; max-width: none; }
	.split__content { padding-block: 56px; }
	.split__media { min-height: 300px; }

	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }

	.tabs__list { grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
	.tabs__list::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
	.grid--3,
	.grid--4:not(.team) { grid-template-columns: minmax(0, 1fr); }
	.team { gap: 32px 16px; }
	.section-head--split { flex-direction: column; align-items: flex-start; }
	.form__row--2 { grid-template-columns: minmax(0, 1fr); }
	.fact { padding: 12px; gap: 10px; }
	.animal-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.animal-gallery__thumb { width: 100%; height: auto; aspect-ratio: 5 / 4; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.contact__card { padding: 24px 20px; }
	.home-hero { padding-top: 32px; }
	.btn-group .btn--lg { flex: 1 1 auto; }
	.media-chip { left: 14px; }
	.media-chip--bottom { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Blog: single post, search, comments
   ========================================================================== */
.post-single__header { padding-block: clamp(40px, 5vw, 56px) 28px; text-align: center; }
.post-single__categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.post-single__categories .chip { text-decoration: none; }
.post-single__title { font-size: clamp(32px, 4vw, 44px); font-weight: 600; }
.post-single__meta { margin-top: 18px; color: var(--zp-muted); font-size: 14.5px; }
.post-single__sep { margin: 0 8px; }
.post-single__cover { margin-bottom: 8px; }
.post-single__cover img { width: 100%; border-radius: var(--zp-radius-lg); }
.post-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post-single__tags .chip { text-decoration: none; }

.post-nav { padding-block: 8px 48px; }
.post-nav__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-nav__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-radius: var(--zp-radius-md);
	background: var(--zp-cream);
	color: var(--zp-ink);
}
.post-nav__link:hover { background: var(--zp-sage); color: var(--zp-ink); }
.post-nav__link--next { grid-column: 2; justify-content: flex-end; text-align: right; }
.post-nav__link .icon { width: 18px; height: 18px; color: var(--zp-green); flex-shrink: 0; }
.post-nav__label { display: block; color: var(--zp-muted); font-size: 12.5px; }
.post-nav__title { display: block; font-size: 15px; font-weight: 500; }

.search-form { display: flex; gap: 8px; max-width: 460px; margin-inline: auto; }
.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 16px;
	border: 1px solid var(--zp-line);
	border-radius: var(--zp-radius-sm);
	background: var(--zp-white);
	font-size: 15px;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--zp-green); box-shadow: 0 0 0 3px rgba(123, 143, 109, .2); }
.page-hero__search { margin-top: 24px; }

.comments { margin-top: 8px; }
.comments__title { margin-bottom: 24px; font-size: 24px; }
.comment-list { margin-bottom: 40px; }
.comment-list ol { padding-left: 24px; }
.comment-list .comment-body { padding: 20px 0; border-top: 1px solid var(--zp-line); font-size: 15px; }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-metadata { margin-bottom: 10px; font-size: 12.5px; }
.comment-list .comment-metadata a { color: var(--zp-muted); }
.comment-respond { padding: 28px; border-radius: var(--zp-radius-md); background: var(--zp-cream); }
.comment-respond .comment-reply-title { margin-bottom: 18px; font-size: 22px; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 11px 16px;
	border: 1px solid var(--zp-line);
	border-radius: var(--zp-radius-sm);
	background: var(--zp-white);
	font-size: 15px;
}
.comment-respond label { display: block; margin-bottom: 6px; color: var(--zp-ink); font-size: 14px; }
.comment-respond p { margin-bottom: 16px; }
.comment-respond .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.comment-respond .comment-form-cookies-consent input { margin-top: 3px; accent-color: var(--zp-green); }

/* Footer social icons */
.site-footer__social { gap: 10px; }
.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
	color: #c9c9c4;
	transition: background-color .2s var(--zp-ease), color .2s var(--zp-ease), transform .2s var(--zp-ease);
}
.social-link:hover { background: var(--zp-green); color: var(--zp-white); transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; }

@media (max-width: 640px) {
	.post-nav__inner { grid-template-columns: minmax(0, 1fr); }
	.post-nav__link--next { grid-column: 1; }
}

/* Lightbox (animal gallery)
   ========================================================================== */
.animal-gallery__main { position: relative; }
.animal-gallery__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--zp-radius-sm);
	background: rgba(255, 255, 255, .92);
	color: var(--zp-ink);
	cursor: pointer;
	box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .4);
	transition: background-color .2s var(--zp-ease), transform .2s var(--zp-ease);
}
.animal-gallery__zoom:hover { background: var(--zp-white); transform: translateY(-2px); }
.animal-gallery__zoom .icon { width: 20px; height: 20px; }

body.zp-lightbox-open { overflow: hidden; }

.zp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
}
.zp-lightbox.is-open { display: flex; }
.zp-lightbox__backdrop { position: absolute; inset: 0; background: rgba(23, 25, 21, .92); cursor: zoom-out; }

.zp-lightbox__figure {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0;
	max-width: min(1100px, 100%);
}
.zp-lightbox__image {
	max-width: 100%;
	user-select: none;
	-webkit-user-drag: none;
	touch-action: pan-y;
	max-height: 78vh;
	width: auto;
	border-radius: var(--zp-radius-md);
	object-fit: contain;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.zp-lightbox__caption { color: rgba(255, 255, 255, .75); font-size: 13.5px; }

.zp-lightbox__btn {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: var(--zp-white);
	cursor: pointer;
	transition: background-color .2s var(--zp-ease), transform .2s var(--zp-ease);
}
.zp-lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.zp-lightbox__btn:focus-visible { outline: 2px solid var(--zp-white); outline-offset: 3px; }
.zp-lightbox__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.zp-lightbox__nav { top: 50%; transform: translateY(-50%); }
.zp-lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.zp-lightbox__nav--prev { left: clamp(8px, 3vw, 32px); }
.zp-lightbox__nav--next { right: clamp(8px, 3vw, 32px); }

@media (max-width: 640px) {
	.zp-lightbox__nav { top: auto; bottom: 16px; transform: none; width: 44px; height: 44px; }
	.zp-lightbox__nav:hover { transform: none; }
	.zp-lightbox__nav--prev { left: 20%; }
	.zp-lightbox__nav--next { right: 20%; }
	.zp-lightbox__image { max-height: 68vh; }
	.zp-lightbox__caption { margin-bottom: 56px; }
}
