/* MoPA theme. Tokens first; no italics anywhere (house style): <em> and <i> are set upright and semibold. */

/* ---------- Fonts (self-hosted, SIL Open Font License: OFL-*.txt) ---------- */
@font-face { font-family: "MoPA Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "MoPA Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "MoPA Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/unbounded-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MoPA Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "MoPA Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "MoPA Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (contrast on paper in brackets) ---------- */
:root {
	--mopa-green: #386923;      /* the logo's green: header, footer, buttons; white text on it 6.5:1 */
	--mopa-green-deep: #213f15; /* menu panel, hover on green */
	--mopa-leaf: #b9dc8f;       /* focus ring and accents on green */
	--mopa-ink: #151912;        /* headings (17:1) */
	--mopa-text: #2c3127;       /* text (12.6:1) */
	--mopa-muted: #596053;      /* secondary text (6.2:1) */
	--mopa-paper: #f6f5f0;      /* page */
	--mopa-stone: #e8e6dd;      /* bands behind pictures and headings */
	--mopa-line: #d5d2c6;
	--mopa-white: #fff;
	--mopa-display: "MoPA Unbounded", "Arial Black", Arial, sans-serif;
	--mopa-body: "MoPA Inter", Inter, "Segoe UI", Roboto, Arial, sans-serif;
	--mopa-wide: 1240px;
	--mopa-text-width: 720px;
	--mopa-gutter: clamp(16px, 4vw, 40px);
	--mopa-radius: 18px;
	--mopa-header: 76px;
	--mopa-shadow: 0 1px 2px rgba(21, 25, 18, .06), 0 10px 30px -12px rgba(21, 25, 18, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mopa-header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mopa-paper); color: var(--mopa-text); font: 400 17px/1.65 var(--mopa-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mopa-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mopa-green-deep); }
em, i, cite { font-style: normal; font-weight: 600; }
strong, b { font-weight: 650; }
h1, h2, h3, h4 { font-family: var(--mopa-display); color: var(--mopa-ink); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--mopa-green); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mopa-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--mopa-white); color: var(--mopa-ink); font-weight: 600; }
.mopa-skip:focus { top: 12px; }
.mopa-eyebrow { margin: 0 0 12px; font: 600 12px/1.4 var(--mopa-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mopa-green); }
.mopa-eyebrow a { color: inherit; text-decoration: none; }
.mopa-eyebrow a:hover { text-decoration: underline; }
.mopa-button { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--mopa-green); color: var(--mopa-white); font: 600 15px/1.2 var(--mopa-body); text-decoration: none; }
.mopa-button:hover { background: var(--mopa-green-deep); color: var(--mopa-white); }

/* ---------- Header ---------- */
/* Never backdrop-filter, filter or transform on the header: the menu panel must not get trapped in it. */
.mopa-header { position: sticky; top: 0; z-index: 50; background: var(--mopa-green); color: var(--mopa-white); }
.admin-bar .mopa-header { top: var(--wp-admin--admin-bar--height, 0); }
.mopa-header__inner { max-width: calc(var(--mopa-wide) + 2 * var(--mopa-gutter)); min-height: var(--mopa-header); margin: 0 auto; padding: 0 var(--mopa-gutter); display: flex; align-items: center; gap: 16px; }
.mopa-header :focus-visible, .mopa-footer :focus-visible, .mopa-menu :focus-visible { outline-color: var(--mopa-leaf); }
.mopa-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: inherit; text-decoration: none; }
.mopa-brand:hover { color: inherit; }
.mopa-brand__logo { display: block; width: auto; height: 48px; }
.mopa-brand__name { font: 600 12px/1.2 var(--mopa-display); letter-spacing: .06em; text-transform: uppercase; max-width: 8.5em; }

/* The menu in the header, from 1100 px. */
.mopa-nav { display: none; }
.mopa-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mopa-nav__list > li { position: relative; }
.mopa-nav__list > li > a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--mopa-white); font: 500 14.5px/1.2 var(--mopa-body); text-decoration: none; white-space: nowrap; transition: background-color .15s ease; }
.mopa-nav__list > li > a:hover, .mopa-nav__list > li:focus-within > a { background: rgba(255, 255, 255, .12); }
.mopa-nav__list > .current-menu-item > a, .mopa-nav__list > .current-menu-ancestor > a, .mopa-nav__list > .current_page_parent > a { background: rgba(255, 255, 255, .2); }
.mopa-nav__list > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
/* The cities: a panel under "Уметнички Дела", shown on hover and while focus is inside (so the keyboard reaches it). */
.mopa-nav .sub-menu { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; width: max-content; margin: 0; padding: 10px; list-style: none; background: var(--mopa-white); border-radius: 16px; box-shadow: var(--mopa-shadow); opacity: 0; pointer-events: none; transform: translate(-50%, -6px); transition: opacity .15s ease, transform .15s ease; }
.mopa-nav .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mopa-nav li:hover > .sub-menu, .mopa-nav li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.mopa-nav .sub-menu a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--mopa-ink); font: 500 14.5px/1.3 var(--mopa-body); text-decoration: none; }
.mopa-nav .sub-menu a:hover, .mopa-nav .sub-menu .current-menu-item > a { background: var(--mopa-stone); }
.mopa-nav .sub-menu :focus-visible { outline-color: var(--mopa-green); outline-offset: -2px; }
/* TranslatePress's language items (EN, MK): small outlined pills, flags included. */
.menu-item-object-language_switcher > a .trp-flag-image { width: 18px; height: auto; border-radius: 2px; }
.mopa-nav__list > .menu-item-object-language_switcher { margin-left: 4px; }
.mopa-nav__list > .menu-item-object-language_switcher > a { min-height: 34px; padding: 0 10px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.trp-menu-ls-label { display: inline-flex; align-items: center; gap: 6px; }

.mopa-menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--mopa-white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); font: 600 14px/1 var(--mopa-body); text-decoration: none; }
.mopa-menu-toggle:hover { color: var(--mopa-white); background: rgba(255, 255, 255, .12); }
.mopa-menu-toggle__bars { display: grid; gap: 4px; width: 18px; }
.mopa-menu-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
@media (min-width: 1100px) {
	.mopa-nav { display: block; }
	.mopa-menu-toggle { display: none; }
}
@media (max-width: 420px) { .mopa-brand__name { display: none; } }

/* ---------- Menu panel (narrow screens) ---------- */
dialog.mopa-menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--mopa-green-deep); color: var(--mopa-white); overflow-y: auto; }
dialog.mopa-menu::backdrop { background: rgba(21, 25, 18, .5); }
.mopa-menu:target { display: block; position: fixed; inset: 0; z-index: 60; }
.mopa-menu__bar { display: flex; align-items: center; gap: 16px; min-height: var(--mopa-header); padding: 0 var(--mopa-gutter); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mopa-menu__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--mopa-white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); font: 600 14px/1 var(--mopa-body); text-decoration: none; }
.mopa-menu__close span { font-size: 22px; line-height: 0; }
.mopa-menu__close:hover { color: var(--mopa-white); background: rgba(255, 255, 255, .12); }
.mopa-menu__nav { container-type: inline-size; padding: clamp(24px, 6vw, 48px) var(--mopa-gutter) 48px; }
.mopa-menu__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mopa-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.mopa-menu__list > li > a { display: block; padding: 18px 0; color: var(--mopa-white); font: 600 clamp(22px, 7.5cqi, 44px)/1.1 var(--mopa-display); letter-spacing: -.01em; text-decoration: none; }
.mopa-menu__list > li > a:hover, .mopa-menu__list > .current-menu-item > a { color: var(--mopa-leaf); }
.mopa-menu__list .sub-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 22px; padding: 0; list-style: none; }
.mopa-menu__list .sub-menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--mopa-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); font: 500 15px/1 var(--mopa-body); text-decoration: none; }
.mopa-menu__list .sub-menu a:hover { background: rgba(255, 255, 255, .12); }
.mopa-menu__list > .menu-item-object-language_switcher { display: inline-block; margin: 24px 8px 0 0; border: 0; }
.mopa-menu__list > .menu-item-object-language_switcher > a { display: inline-flex; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); font: 600 15px/1 var(--mopa-body); }
.mopa-menu__list { flex-flow: row wrap; }
.mopa-menu__list > li:not(.menu-item-object-language_switcher) { flex: 1 0 100%; }

/* ---------- Main ---------- */
.mopa-main { display: block; padding-bottom: clamp(56px, 8vw, 104px); }
.mopa-page-head, .mopa-list-head { max-width: calc(var(--mopa-wide) + 2 * var(--mopa-gutter)); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--mopa-gutter) clamp(24px, 3vw, 36px); }
.mopa-page-head__title, .mopa-list-head__title { margin: 0; font-size: clamp(30px, 5vw, 56px); font-weight: 700; }
.mopa-empty { max-width: var(--mopa-text-width); margin: 0 auto; padding: 0 var(--mopa-gutter); color: var(--mopa-muted); }

/* ---------- Blocks inside pages and artworks ---------- */
.mopa-content { padding: 0 var(--mopa-gutter); }
.mopa-content > * { max-width: var(--mopa-text-width); margin-left: auto; margin-right: auto; }
.mopa-content > .alignwide { max-width: var(--mopa-wide); }
.mopa-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--mopa-gutter)); margin-right: calc(-1 * var(--mopa-gutter)); }
.mopa-content p, .mopa-content ul, .mopa-content ol { margin-top: 0; margin-bottom: 1.1em; }
.mopa-content h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
.mopa-content h3 { font-size: clamp(19px, 2.2vw, 24px); margin-top: 1.4em; }
.mopa-content .has-extra-small-font-size, .mopa-content .has-small-font-size { font-size: inherit; }
.mopa-content .wp-block-separator { height: 0; margin: 2.2em auto; border: 0; border-top: 1px solid var(--mopa-line); opacity: 1; }
.mopa-content .wp-block-separator:not(.is-style-wide):not(.is-style-dots) { width: auto; }
.mopa-content .wp-block-quote { margin: 1.6em auto; padding: 4px 0 4px 22px; border-left: 3px solid var(--mopa-green); font-size: 1.1em; color: var(--mopa-ink); }
.mopa-content .wp-block-image { margin-top: 0; margin-bottom: 1.4em; }
.mopa-content .wp-block-image img { display: block; border-radius: 14px; }
.mopa-content .wp-block-columns { gap: clamp(24px, 5vw, 72px); margin-bottom: 1.4em; }
.mopa-lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--mopa-ink); }
.mopa-signature { margin-bottom: .2em !important; }
.mopa-signature + .mopa-signature { font-weight: 650; color: var(--mopa-ink); }

/* ---------- Front page ---------- */
.mopa-main--front { padding-bottom: 0; background: var(--mopa-stone); }
.mopa-content--front > .mopa-hero { min-height: calc(100svh - var(--mopa-header)); margin: 0 auto; padding: clamp(40px, 7vw, 96px) 0; align-items: center; }
.mopa-hero h1 { margin-bottom: .45em; font-size: clamp(34px, 5vw, 66px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
.mopa-kicker { margin-bottom: 1.4em !important; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mopa-green); }
.mopa-kicker strong { font-weight: 700; }
.mopa-hero .mopa-lead { max-width: 34ch; }
.mopa-hero .wp-block-image { position: relative; margin: 0; }
.mopa-hero .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--mopa-shadow); }
.mopa-callout { position: relative; display: inline-flex; align-items: center; gap: 12px; margin: -30px 0 0 28px !important; padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--mopa-white); box-shadow: var(--mopa-shadow); color: var(--mopa-ink); font: 700 12.5px/1.2 var(--mopa-body); letter-spacing: .12em; text-transform: uppercase; }
.mopa-callout::before { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--mopa-green) center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 3h8v8H3V3zm2 2v4h4V5H5zm8-2h8v8h-8V3zm2 2v4h4V5h-4zM3 13h8v8H3v-8zm2 2v4h4v-4H5zm8-2h2v2h-2v-2zm4 0h4v2h-2v2h-2v-4zm-4 4h2v2h2v2h-4v-4zm6 2h2v2h-2v-2zm-2-2h2v2h-2v-2z'/%3E%3C/svg%3E"); }
@media (min-width: 782px) {
	.mopa-hero > .wp-block-column:first-child { padding-right: 2vw; }
	.mopa-hero > .wp-block-column:last-child { max-width: 480px; }
}
@media (max-width: 781px) {
	.mopa-content--front > .mopa-hero { min-height: 0; }
	.mopa-hero .wp-block-image img { aspect-ratio: 4 / 4.4; }
}
@media (prefers-reduced-motion: no-preference) {
	.mopa-hero > .wp-block-column { animation: mopa-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.mopa-hero > .wp-block-column + .wp-block-column { animation-delay: .12s; }
	.mopa-callout::before { animation: mopa-scan 2.8s ease-in-out 1.2s infinite; }
}
@keyframes mopa-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes mopa-scan { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(56, 105, 35, .45); } 35% { box-shadow: 0 0 0 10px rgba(56, 105, 35, 0); } }

/* ---------- "За иницијативата" ---------- */
.mopa-about .wp-block-column:last-child { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mopa-about .wp-block-column:last-child .wp-block-image { max-width: 340px; margin: 0; }
.mopa-about .wp-block-column:last-child img { border-radius: 0; }
.mopa-support { margin-top: clamp(32px, 5vw, 64px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--mopa-white); align-items: center; }
.mopa-support .wp-block-image img { border-radius: 10px; }
.mopa-support ul { padding-left: 1.2em; }
.mopa-support li { margin-bottom: .35em; }
.mopa-support li::marker { color: var(--mopa-green); }

/* ---------- Lists of artworks ---------- */
.mopa-cities { margin-top: 24px; }
.mopa-cities ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mopa-cities a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--mopa-white); box-shadow: inset 0 0 0 1px var(--mopa-line); color: var(--mopa-ink); font: 500 14.5px/1 var(--mopa-body); text-decoration: none; }
.mopa-cities a:hover { box-shadow: inset 0 0 0 1.5px var(--mopa-green); color: var(--mopa-ink); }
.mopa-cities a[aria-current] { background: var(--mopa-green); box-shadow: none; color: var(--mopa-white); }
.mopa-cities__count { font-size: 12px; font-weight: 600; opacity: .7; }
/* On phones the cities scroll sideways in one row instead of filling the screen. */
@media (max-width: 700px) {
	.mopa-cities { margin-right: calc(-1 * var(--mopa-gutter)); }
	.mopa-cities ul { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--mopa-gutter) 8px 2px; scrollbar-width: none; }
	.mopa-cities li { flex: none; }
}
.mopa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: clamp(18px, 2.4vw, 28px); max-width: calc(var(--mopa-wide) + 2 * var(--mopa-gutter)); margin: 0 auto; padding: 0 var(--mopa-gutter); }
.mopa-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--mopa-radius); background: var(--mopa-white); box-shadow: 0 1px 2px rgba(21, 25, 18, .06); transition: transform .25s ease, box-shadow .25s ease; }
.mopa-card:hover { transform: translateY(-4px); box-shadow: var(--mopa-shadow); }
.mopa-card:focus-within { outline: 3px solid var(--mopa-green); outline-offset: 3px; }
.mopa-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--mopa-stone); }
.mopa-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mopa-card:hover .mopa-card__media img { transform: scale(1.04); }
.mopa-card__media { overflow: hidden; }
.mopa-card__city { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--mopa-ink); font: 600 12px/1 var(--mopa-body); }
.mopa-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.mopa-card__title { margin: 0 0 10px; font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.mopa-card__link { color: var(--mopa-ink); text-decoration: none; }
.mopa-card__link::after { content: ""; position: absolute; inset: 0; }
.mopa-card__link:focus-visible { outline: none; }
.mopa-card__text { display: -webkit-box; margin: 0 0 16px; overflow: hidden; color: var(--mopa-muted); font-size: 14.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mopa-card__more { margin-top: auto; color: var(--mopa-green); font: 700 12.5px/1 var(--mopa-body); letter-spacing: .08em; text-transform: uppercase; }
.pagination { max-width: calc(var(--mopa-wide) + 2 * var(--mopa-gutter)); margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--mopa-gutter); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--mopa-white); box-shadow: inset 0 0 0 1px var(--mopa-line); color: var(--mopa-ink); font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--mopa-green); box-shadow: none; color: var(--mopa-white); }
.pagination a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--mopa-green); }
.pagination .dots { background: none; box-shadow: none; }

/* ---------- One artwork ---------- */
.mopa-artwork__head { background: var(--mopa-stone); padding: clamp(16px, 3vw, 40px) var(--mopa-gutter) 0; }
.mopa-artwork__image { max-width: var(--mopa-wide); margin: 0 auto; }
.mopa-artwork__image img { display: block; width: auto; max-height: min(78vh, 920px); margin: 0 auto; border-radius: 20px; box-shadow: var(--mopa-shadow); }
.mopa-artwork__titles { max-width: var(--mopa-text-width); margin: 0 auto; padding: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 36px); }
.mopa-artwork__title { margin: 0; font-size: clamp(28px, 4.4vw, 52px); font-weight: 750; }
.mopa-content--artwork { padding-top: clamp(32px, 4vw, 48px); }
.mopa-content--artwork > .wp-block-columns.alignwide { max-width: var(--mopa-text-width); }
.mopa-content--artwork > .wp-block-columns { display: block; }
.mopa-content--artwork > .wp-block-columns > .wp-block-column { width: 100%; }
.mopa-content--artwork [style*="font-size:30px"] { font-family: var(--mopa-display); font-size: clamp(22px, 3vw, 30px) !important; line-height: 1.2 !important; margin-top: 1.4em; }
.mopa-artwork-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: calc(var(--mopa-text-width) + 2 * var(--mopa-gutter)); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--mopa-gutter); }
.mopa-artwork-nav__link { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--mopa-white); box-shadow: inset 0 0 0 1px var(--mopa-line); color: var(--mopa-ink); text-decoration: none; transition: box-shadow .15s ease; }
.mopa-artwork-nav__link:hover { box-shadow: inset 0 0 0 1.5px var(--mopa-green); color: var(--mopa-ink); }
.mopa-artwork-nav__link--next { flex-direction: row-reverse; text-align: right; }
.mopa-artwork-nav__link img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.mopa-artwork-nav__text { display: grid; gap: 4px; min-width: 0; }
.mopa-artwork-nav__label { color: var(--mopa-green); font: 700 11.5px/1.2 var(--mopa-body); letter-spacing: .1em; text-transform: uppercase; }
.mopa-artwork-nav__title { font-weight: 600; line-height: 1.3; }
@media (max-width: 600px) {
	.mopa-artwork-nav { grid-template-columns: 1fr; }
	.mopa-artwork-nav__empty { display: none; }
	.mopa-artwork__image img { border-radius: 14px; }
}

/* ---------- The card page ---------- */
.mopa-main--bare { padding-top: clamp(24px, 5vw, 56px); }
.mopa-main--bare .wp-block-image { max-width: 540px; }
.mopa-main--bare .wp-block-image img { margin: 0 auto; box-shadow: var(--mopa-shadow); }

/* ---------- Map and form (mu-plugin mopa-artworks) ---------- */
.mopa-content > .mopa-map { max-width: var(--mopa-wide); }
.mopa-map__canvas { height: min(76vh, 760px); min-height: 420px; border-radius: 22px; overflow: hidden; background: var(--mopa-stone); box-shadow: var(--mopa-shadow); }
.mopa-map__canvas .leaflet-container { font: inherit; }
.mopa-map__pin { width: 22px; height: 22px; border: 3px solid var(--mopa-white); border-radius: 50%; background: var(--mopa-green); box-shadow: 0 2px 8px rgba(21, 25, 18, .35); }
.mopa-map .leaflet-popup-content-wrapper { border-radius: 14px; }
.mopa-map .leaflet-popup-content { margin: 12px; width: 220px; }
.mopa-map__popup img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; border-radius: 8px; }
.mopa-map__popup + .mopa-map__popup { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mopa-line); }
.mopa-map__popup a { color: var(--mopa-ink); font-weight: 650; text-decoration: none; }
.mopa-map__popup a:hover { color: var(--mopa-green); }
.mopa-map__list { columns: 3 220px; margin: 28px 0 0; padding: 0; list-style: none; }
.mopa-map__list li { break-inside: avoid; margin-bottom: 8px; }
.mopa-map__note { color: var(--mopa-muted); }

.mopa-form { display: grid; gap: 20px; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--mopa-white); box-shadow: var(--mopa-shadow); }
.mopa-form__field { display: grid; gap: 8px; }
.mopa-form label { color: var(--mopa-ink); font-weight: 600; font-size: 15px; }
.mopa-form__req { color: var(--mopa-green); }
.mopa-form__hint { margin: 0; color: var(--mopa-muted); font-size: 14px; }
.mopa-form input[type="text"], .mopa-form input[type="email"], .mopa-form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--mopa-line); border-radius: 12px; background: var(--mopa-paper); color: var(--mopa-ink); font: inherit; }
.mopa-form textarea { min-height: 170px; resize: vertical; }
.mopa-form input:focus, .mopa-form textarea:focus { border-color: var(--mopa-green); outline: 3px solid rgba(56, 105, 35, .25); outline-offset: 0; }
.mopa-form input[type="file"] { padding: 10px 0; font: inherit; font-size: 14.5px; }
.mopa-form input[type="file"]::file-selector-button { margin-right: 12px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--mopa-stone); color: var(--mopa-ink); font: 600 14px/1 var(--mopa-body); cursor: pointer; }
.mopa-form__submit { justify-self: start; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--mopa-green); color: var(--mopa-white); font: 600 16px/1 var(--mopa-body); cursor: pointer; }
.mopa-form__submit:hover { background: var(--mopa-green-deep); }
.mopa-form__submit[disabled] { opacity: .6; cursor: wait; }
.mopa-form__status:empty { display: none; }
.mopa-form__status { margin: 0; padding: 14px 18px; border-radius: 12px; background: #e3efd8; color: var(--mopa-ink); font-weight: 600; }
.mopa-form__status.is-error { background: #f8e1dc; color: #6e1b0f; }
.mopa-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.mopa-footer { background: var(--mopa-green); color: rgba(255, 255, 255, .9); text-align: center; }
.mopa-footer__inner { max-width: 880px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--mopa-gutter) 32px; display: grid; justify-items: center; gap: 22px; }
.mopa-footer .mopa-brand { margin: 0; flex-direction: column; gap: 10px; }
.mopa-footer .mopa-brand__logo { height: 72px; }
.mopa-footer .mopa-brand__name { max-width: none; }
.mopa-footer__texts { font-size: 15px; line-height: 1.6; }
.mopa-footer__texts p { margin: 0 0 .8em; }
.mopa-footer__texts strong { color: var(--mopa-white); }
.mopa-footer__thanks { font-family: var(--mopa-display); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.35; }
.mopa-footer__copy { margin-top: 1.6em !important; font-size: 13px; opacity: .8; }
.mopa-footer a { color: var(--mopa-white); }
.mopa-footer__top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); font-size: 14px; font-weight: 600; text-decoration: none; }
.mopa-footer__top:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Motion: cards rise into view (mopa.js marks those still below the screen) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.mopa-reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
	.mopa-reveal.is-waiting { opacity: 0; transform: translateY(24px); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
