/* Site look: Cormorant Garamond headings, Inter text, ink / ivory / castle maroon, rounded cards, soft shadows. */
:root {
  --accent: #7e0f1a;
  --ink: #1f1b18;
  --muted: #6b645c;
  --ivory: #f7f3ec;
  --line: #e7e0d5;
  --gold: #b8975a;
  --display: 'Cormorant Garamond', Georgia, serif;
  --glag: 'Noto Sans Glagolitic', serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* older names still used by the original homepage (/v1) */
  --text: #4a443e;
  --head-dark: #2a2420;
  --footer: var(--ink);
  --light: var(--ivory);
  --head: var(--display);
  --body: var(--ui);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(60 40 20 / 0.07);
  --shadow-hover: 0 18px 40px rgb(60 40 20 / 0.14);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.65 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: #9a1422; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 20px; } }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 50; }
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
.icon { flex: none; }

/* ---------- Header: thin dark top bar + main bar with emblem, letter-spaced menu, gold underline ---------- */
.masthead { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); transition: background 0.35s, box-shadow 0.35s; }
.topbar { background: var(--ink); color: rgb(255 255 255 / 0.7); font: 500 12px/1 var(--ui); letter-spacing: 0.04em; }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 0 40px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a { color: rgb(255 255 255 / 0.75); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.topbar a:hover { color: #e8d3a6; }
.topbar .icon { color: #e8d3a6; }
.topbar-info { display: flex; gap: 26px; }
.topbar-glag { font-size: 13px; letter-spacing: 0.4em; color: #e8d3a6; opacity: 0.8; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.langs { display: inline-flex; gap: 10px; padding-left: 16px; border-left: 1px solid rgb(255 255 255 / 0.18); letter-spacing: 0.12em; }
.langs b { color: #fff; font-weight: 600; }

.mast-inner { max-width: 1320px; margin: 0 auto; padding: 0 40px; min-height: 88px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4.5px rgb(232 211 166 / 0.8); transition: transform 0.4s; }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font: 600 28px/1 var(--display); letter-spacing: -0.005em; }
.brand-sub { font: 600 9.5px/1 var(--ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.brand:hover { color: var(--ink); }

.main-nav { flex: 1; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 6px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { position: relative; display: inline-flex; align-items: center; padding: 14px 14px; color: var(--ink); text-decoration: none; font: 600 12px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; transition: color 0.25s; }
.main-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.35s ease; }
.main-nav > ul > li:hover > a, .main-nav > ul > li:focus-within > a, .main-nav > ul > li > a.act { color: var(--accent); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li:focus-within > a::after, .main-nav > ul > li > a.act::after { transform: scaleX(1); }
.main-nav .sub { position: absolute; left: 50%; top: 100%; padding-top: 14px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 5; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .sub ul { list-style: none; margin: 0; padding: 10px 0; min-width: 280px; background: #fff; border-top: 2px solid var(--gold); box-shadow: 0 24px 50px rgb(40 25 15 / 0.16); }
.main-nav .sub a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 26px; color: var(--ink); text-decoration: none; font: 500 21px/1.15 var(--display); transition: background 0.2s, color 0.2s; }
.main-nav .sub a .icon { color: var(--gold); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; }
.main-nav .sub a:hover, .main-nav .sub a[aria-current='page'] { background: var(--ivory); color: var(--accent); } /* no sideways shift: the text stays in line */
.main-nav .sub a:hover .icon, .main-nav .sub a[aria-current='page'] .icon { opacity: 1; transform: none; }
.mast-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.mast-cta { display: inline-flex; align-items: center; padding: 14px 22px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font: 600 11.5px/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.mast-cta:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; }
.nav-book, .nav-lang { display: none; }

/* Homepage: header floats over the photo, white text, solid once scrolled */
.overlay-head .masthead { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
/* readable over any photo: a dark scrim behind the header that fades out below it, plus a soft shadow under the letters */
.overlay-head .masthead::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -90px; background: linear-gradient(180deg, rgb(15 10 8 / 0.82) 0%, rgb(15 10 8 / 0.62) 55%, rgb(15 10 8 / 0) 100%); pointer-events: none; transition: opacity 0.35s; }
.overlay-head .brand, .overlay-head .main-nav > ul > li > a, .overlay-head .topbar a { text-shadow: 0 1px 10px rgb(0 0 0 / 0.5); }
[data-scrolled] .overlay-head .masthead::before { opacity: 0; }
[data-scrolled] .overlay-head .brand, [data-scrolled] .overlay-head .main-nav > ul > li > a, [data-scrolled] .overlay-head .topbar a { text-shadow: none; }
.overlay-head .topbar { background: transparent; border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.overlay-head .brand, .overlay-head .main-nav > ul > li > a { color: #fff; }
.overlay-head .brand-sub { color: #e8d3a6; }
.overlay-head .mast-cta { color: #fff; border-color: rgb(255 255 255 / 0.7); }
.overlay-head .mast-cta:hover { background: #fff; color: var(--ink); }
.overlay-head .main-nav > ul > li:hover > a, .overlay-head .main-nav > ul > li:focus-within > a, .overlay-head .main-nav > ul > li > a.act { color: #e8d3a6; }
.overlay-head .main-nav > ul > li > a::after { background: #e8d3a6; }
/* scrolled: solid ink bar with a gold hairline; text stays light, the booking button turns castle red */
[data-scrolled] .overlay-head .masthead { background: rgb(31 27 24 / 0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgb(184 151 90 / 0.55), 0 10px 30px rgb(0 0 0 / 0.18); }
[data-scrolled] .overlay-head .topbar { background: #15110f; border-bottom: 0; }
[data-scrolled] .overlay-head .mast-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-scrolled] .overlay-head .mast-cta:hover { background: #9a1422; border-color: #9a1422; color: #fff; }
/* inner pages: the title photo runs under the header */
.overlay-head .page-title { min-height: 466px; padding-top: 186px; }
.overlay-head .slider.v2-hero { padding-top: 126px; }

@media (max-width: 1200px) {
  .main-nav > ul > li > a { padding: 14px 10px; letter-spacing: 0.12em; }
  .main-nav > ul > li > a::after { left: 10px; right: 10px; }
}
@media (max-width: 1100px) {
  .topbar { display: none; }
  .mast-inner { flex-wrap: wrap; min-height: 68px; padding: 0 20px; gap: 12px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 23px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.2em; }
  .mast-actions { margin-left: auto; }
  .menu-toggle { display: block; width: 26px; height: 18px; background: linear-gradient(currentColor 0 0) top / 100% 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 100% 1.5px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 1.5px no-repeat; color: var(--ink); border: 0; font-size: 0; cursor: pointer; }
  .overlay-head .menu-toggle { color: #fff; }
  .main-nav { display: none; order: 3; flex-basis: 100%; }
  .nav-open .main-nav { display: block; border-top: 1px solid var(--line); padding: 10px 0 20px; max-height: calc(100vh - 68px); overflow-y: auto; }
  /* open phone menu: ink panel, ivory links */
  .nav-open .overlay-head .masthead { background: var(--ink); }
  .nav-open .overlay-head .main-nav { border-top-color: rgb(184 151 90 / 0.4); }
  .overlay-head .main-nav .sub ul { background: transparent; }
  .overlay-head .main-nav .sub a { color: rgb(255 255 255 / 0.88); }
  .overlay-head .main-nav .sub a:hover, .overlay-head .main-nav .sub a[aria-current='page'] { background: rgb(255 255 255 / 0.06); color: #e8d3a6; }
  .overlay-head .main-nav > ul > li > a { color: #e8d3a6; }
  .overlay-head .nav-lang a { color: #fff; }
  .overlay-head .page-title { min-height: 300px; padding-top: 128px; }
  .main-nav > ul { display: block; }
  .main-nav > ul > li > a { padding: 14px 2px 8px; font-size: 12.5px; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav .sub { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; }
  .main-nav .sub ul { box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .main-nav .sub a { padding: 7px 4px; font-size: 20px; }
  .nav-book { display: block; margin-top: 16px; }
  .main-nav .nav-book a { color: #fff; padding: 14px 22px; letter-spacing: 0; text-transform: none; font: 600 15px/1 var(--ui); }
  .nav-lang { display: block; margin-top: 10px; }
  .overlay-head .slider.v2-hero { padding-top: 68px; }
}
@media (max-width: 560px) { .mast-cta { display: none; } .brand-sub { display: none; } }


/* ---------- Slider + icon strip ---------- */
.slider { position: relative; height: 600px; overflow: hidden; background: #222; }
.slider > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.slider > img.on { opacity: 1; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 0.5); color: #fff; font-size: 28px; line-height: 36px; cursor: pointer; z-index: 2; }
.slider-arrow.prev { left: 0; } .slider-arrow.next { right: 0; }
.carousel { position: relative; padding: 0 0 10px; }
.carousel-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .album { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; }
@media (max-width: 900px) { .carousel .album { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 560px) { .carousel .album { flex-basis: 100%; } }
.round-arrow { position: absolute; top: 42%; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 22px; line-height: 26px; cursor: pointer; }
.round-arrow.prev { left: -40px; } .round-arrow.next { right: -40px; }
@media (max-width: 1300px) { .round-arrow.prev { left: -12px; } .round-arrow.next { right: -12px; } }
.album { display: block; background: #f5f5f5; text-decoration: none; }
.album img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.album span { display: block; padding: 20px 22px 26px; min-height: 96px; font: 18px/1.4 var(--head); color: var(--accent); text-transform: uppercase; }
.album:hover span { color: #a8202e; }
/* ---------- Inner pages ---------- */
.page-title { position: relative; min-height: 340px; display: flex; align-items: flex-end; padding: 60px 0 48px; background: center / cover no-repeat #2a2420; }
.page-title::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 14 10 / 0.2), rgb(20 14 10 / 0.72)); }
.page-title .v2-wrap { position: relative; width: 100%; }
.page-title h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 12px 0 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px/1.4 var(--ui); color: rgb(255 255 255 / 0.7); }
.breadcrumbs a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.page-body { padding-top: 72px; padding-bottom: 96px; }
.prose { color: var(--text); }
.prose .elementor-widget-text-editor > :first-child, .prose .elementor-widget-text-editor p:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose h2, .prose h3, .prose h4, .prose h5 { max-width: 780px; }
.prose h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 56px 0 18px; }
.prose h3 { font-size: 28px; margin: 40px 0 14px; }
.prose h4 { font-size: 23px; margin: 30px 0 10px; }
.prose h5 { font-size: 19px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--accent); }
.prose img { display: block; margin: 24px 0; border-radius: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-underline-offset: 3px; }
/* runs of image-only paragraphs (old page-builder galleries) as a grid; a lone image stays full width */
.prose p:has(> img:only-child, > a:only-child > img:only-child):has(+ p > img:only-child, + p > a:only-child > img:only-child),
.prose p:has(> img:only-child, > a:only-child > img:only-child) + p:has(> img:only-child, > a:only-child > img:only-child) {
  display: inline-block; width: calc(33.333% - 12px); margin: 0 6px 12px; vertical-align: top; max-width: none;
}
.prose p + p > img:only-child, .prose p:has(+ p) > img:only-child { margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) {
  .prose p:has(> img:only-child, > a:only-child > img:only-child) + p:has(> img:only-child, > a:only-child > img:only-child),
  .prose p:has(> img:only-child, > a:only-child > img:only-child):has(+ p > img:only-child, + p > a:only-child > img:only-child) { width: calc(50% - 12px); }
}
.embed { display: block; width: 100%; border: 0; margin: 24px 0; border-radius: 16px; box-shadow: var(--shadow); background: var(--ivory); }
.prose table, .table-scroll table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.prose tbody tr:hover { background: var(--ivory); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.table-scroll td a { font-weight: 600; }
.nowrap { white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.photos a { display: block; border-radius: 12px; overflow: hidden; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s; }
.photos a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .page-title { min-height: 240px; padding: 40px 0 30px; } .page-body { padding-top: 48px; padding-bottom: 64px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.7); padding: 80px 0 0; font-size: 15px; line-height: 1.6; }
.site-footer h2 { font: 600 12px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: #e8d3a6; margin: 8px 0 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #e8d3a6; }
.site-footer p { margin: 0 0 14px; }
.site-footer .address { white-space: pre-line; }
.site-footer small { font-size: 13px; color: rgb(255 255 255 / 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.2); display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { background: #fff; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 13px; color: rgb(255 255 255 / 0.5); }
.footer-bottom img { width: 30px; border-radius: 3px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-top: 56px; } }

/* ---------- Price cards ---------- */
.pricing { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); align-items: start; gap: 20px; margin: 16px 0 56px; }
.price-card { background: #fff; text-align: center; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; line-height: 1.45; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-hover); transform: translateY(-10px); }
.price-head { position: relative; height: 170px; background: #888 center / cover no-repeat; display: flex; align-items: flex-end; }
.price-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(15 10 8 / 0.75)); }
.price-head h3 { position: relative; margin: 0; padding: 0 118px 18px 18px; width: 100%; text-align: left; color: #fff; font-size: 23px; line-height: 1.1; }
.price-badge { position: absolute; right: 16px; bottom: -48px; z-index: 1; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgb(126 15 26 / 0.35); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.price-badge b { font: 600 50px/0.9 var(--display); color: #fff; }
.price-badge sup { font-size: 20px; }
.price-badge small { font-size: 10px; line-height: 1.1; opacity: 0.85; max-width: 84px; margin-top: 2px; }
.price-card ul { list-style: none; margin: 0; padding: 58px 0 6px; text-align: left; }
.price-card li { padding: 10px 20px; border-top: 1px solid var(--line); color: var(--text); }
.price-card li:first-child { border-top: 0; }
.price-note { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: left; background: var(--ivory); }
.price-note .icon { color: var(--accent); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; } .price-card.featured { transform: none; } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- Info cards (visitor information, getting here, contact) ---------- */
/* masonry: two columns, each card at its own height, so short cards leave no holes */
.info-cards { columns: 2; column-gap: 20px; margin: 16px 0 56px; }
.info-cards > .info-card { break-inside: avoid; margin-bottom: 20px; }
.info-cards.three { columns: 3; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px 26px; display: flex; flex-direction: column; align-items: flex-start; box-shadow: var(--shadow); transition: box-shadow 0.25s, transform 0.25s; }
.info-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.info-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ivory); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.info-card h3 { margin: 0 0 8px; font-size: 26px; }
.info-card p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; white-space: pre-line; color: var(--text); }
.info-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.info-links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); text-decoration: none; font: 600 13.5px/1.2 var(--ui); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.info-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 1000px) { .info-cards.three { columns: 2; } }
@media (max-width: 800px) { .info-cards, .info-cards.three { columns: 1; } .info-cards > .info-card { margin-bottom: 14px; } .info-card { padding: 22px 22px 20px; } }

/* ---------- Programmes (attractions, tours, schools and pilgrims) ---------- */
.programs { display: grid; gap: 28px; margin: 16px 0 56px; }
.program { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.program:nth-child(even) { grid-template-columns: 7fr 5fr; }
.program:nth-child(even) .program-img { order: 2; }
.program.no-img { grid-template-columns: 1fr; }
.program-img { position: relative; min-height: 340px; }
.program-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-body { padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.program-body h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 36px); }
.program-body p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.program-meta { display: flex; gap: 24px; align-items: center; width: 100%; margin: 12px 0 24px; padding: 20px; border-radius: 14px; background: var(--ivory); }
.program-price { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); color: #fff; padding: 12px; box-shadow: 0 6px 16px rgb(126 15 26 / 0.3); }
.program-price b { font: 600 56px/0.95 var(--display); white-space: nowrap; }
.program-price small { font-size: 10.5px; line-height: 1.3; margin-top: 5px; opacity: 0.9; }
.program-meta ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.program-meta li { position: relative; padding: 3px 0 3px 20px; }
.program-meta li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 800px) {
  .program, .program:nth-child(even) { grid-template-columns: 1fr; }
  .program:nth-child(even) .program-img { order: 0; }
  .program-img { min-height: 230px; }
  .program-body { padding: 26px 22px 28px; }
  .program-meta { gap: 16px; flex-direction: column; align-items: flex-start; }
  .program-price { width: 136px; height: 136px; }
  .program-price b { font-size: 50px; }
}

/* ---------- Opening hours (hours page): heading + the shared hours table ---------- */
.hours { margin: 8px 0 56px; }
.prose .hours-heading, .hours-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: clamp(26px, 3vw, 34px); max-width: none; }
.hours-heading .icon { color: var(--accent); }

/* ---------- Gallery list ---------- */
.albums-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 16px 0 40px; }
.albums-grid .album { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #ddd; }
.albums-grid .album img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform 0.6s; }
.albums-grid .album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(15 10 8 / 0.78)); }
.albums-grid .album span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; padding: 0; min-height: 0; font: 600 22px/1.15 var(--display); color: #fff; text-transform: none; }
.albums-grid .album:hover img { transform: scale(1.05); }


/* ================= Homepage (Home2.tsx) ================= */
.v2 { color: var(--ink); }
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--display); font-weight: 600; text-transform: none; color: var(--ink); letter-spacing: -0.01em; }
.v2 h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0; }
.v2-wrap { max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.v2-kicker { margin: 0 0 10px; font: 600 12px/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.v2-kicker.center, .v2 .center { text-align: center; }
.v2-link { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--ui); color: var(--accent); text-decoration: none; white-space: nowrap; transition: gap 0.2s; }
.v2-link:hover { gap: 10px; color: var(--accent); }
.v2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font: 600 15px/1 var(--ui); text-decoration: none; transition: background 0.2s, color 0.2s, gap 0.2s; }
.v2-btn.primary { background: var(--accent); color: #fff; }
.v2-btn.primary:hover { background: #9a1422; color: #fff; gap: 12px; }
.v2-btn.ghost { color: #fff; border: 1px solid rgb(255 255 255 / 0.6); backdrop-filter: blur(4px); }
.v2-btn.ghost:hover { background: #fff; color: var(--ink); }
.v2-section { padding: 96px 0; }
.v2-tint { background: var(--ivory); }
.v2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }

/* Hero */
.slider.v2-hero { height: min(88vh, 820px); min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.v2-hero > img { transform: scale(1.06); transition: opacity 1.6s, transform 9s ease-out; }
.v2-hero > img.on { transform: scale(1); }
.v2-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 14 10 / 0.15) 0%, rgb(20 14 10 / 0.25) 45%, rgb(20 14 10 / 0.8) 100%); }
.v2-hero .slider-arrow { display: none; }
.v2-hero-inner { position: relative; z-index: 1; max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 40px 150px; color: #fff; }
.v2-eyebrow { margin: 0 0 14px; font: 600 13px/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: #e8d3a6; }
.v2-hero h1 { margin: 0; font-size: clamp(56px, 9vw, 120px); line-height: 0.92; color: #fff; }
.v2-lead { max-width: 560px; margin: 22px 0 32px; font-size: 19px; line-height: 1.55; color: rgb(255 255 255 / 0.88); }
.v2-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.v2-today { position: absolute; z-index: 2; right: max(40px, calc((100% - 1160px) / 2)); bottom: 40px; width: 360px; padding: 20px 22px; border-radius: 16px; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgb(0 0 0 / 0.25); font-size: 14px; color: var(--ink); }
.v2-today-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent); }
.v2-today-head span { color: var(--muted); }
.v2-today ul { list-style: none; margin: 0 0 12px; padding: 0; }
.v2-today li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.v2-today li b { white-space: nowrap; font-weight: 600; }
.v2-today li b span { display: block; text-align: right; }
.v2-today a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* Services strip */
.v2-services { background: #fff; border-bottom: 1px solid var(--line); }
.v2-services .v2-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.v2-services a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 26px 16px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.3; border-right: 1px solid var(--line); transition: background 0.2s, color 0.2s; }
.v2-services a:first-child { border-left: 1px solid var(--line); }
.v2-services a .icon { color: var(--accent); }
.v2-services a:hover { background: var(--ivory); color: var(--accent); }

/* Intro + attractions */
.v2-intro { max-width: 720px; margin: -16px 0 40px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.v2-intro a { color: var(--accent); }
.v2-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.v2-tile { position: relative; overflow: hidden; border-radius: 14px; background: #ddd; }
.v2-tile:first-child { grid-row: span 2; }
.v2-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.v2-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(15 10 8 / 0.75)); }
.v2-tile span { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; font: 600 26px/1.1 var(--display); color: #fff; }
.v2-tile:first-child span { font-size: 36px; }
.v2-tile:hover img { transform: scale(1.05); }

/* Opening hours grid */
.v2-hours-sec { padding-bottom: 80px; }
.v2-hours { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(60 40 20 / 0.06); }
.v2-hours table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.v2-hours th, .v2-hours td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.v2-hours thead th { border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 20px; }
.v2-hours thead td { border-top: 0; }
.v2-hours th[scope=row] { font-weight: 500; color: var(--ink); width: 34%; font-size: 15px; letter-spacing: 0; text-transform: none; }
.prose .v2-hours tbody tr:hover { background: none; }
.v2-hours { margin: 0; }
.v2-hours td span { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-hours td .closed { color: #a59d93; }
.v2-hours .today { background: #f8efe9; }
.v2-hours thead th.today { color: var(--accent); }
.v2-hours thead small { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; letter-spacing: 0.08em; vertical-align: 1px; }
.v2-hours td.today { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .v2-hours { overflow: visible; }
  .v2-hours table { min-width: 0; }
  .v2-hours thead { display: none; }
  .v2-hours tr { display: block; border-top: 1px solid var(--line); padding: 6px 0; }
  .v2-hours th, .v2-hours td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 18px; }
  .v2-hours th[scope=row] { width: auto; padding-top: 10px; font-weight: 600; }
  .v2-hours td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .v2-hours td span { text-align: right; }
  .v2-hours .v2-hours-group { padding: 0; }
  .v2-hours-group th { display: block; }
}
.v2-hours-group th { padding-top: 22px; padding-bottom: 8px; background: var(--ivory); font: 600 20px/1.2 var(--display); color: var(--accent); text-transform: none; letter-spacing: 0; }

/* News */
.v2-news .carousel-track { gap: 20px; padding: 4px 2px 24px; }
.v2-news-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(60 40 20 / 0.06); transition: transform 0.25s, box-shadow 0.25s; }
.v2-news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(60 40 20 / 0.14); color: var(--ink); }
.v2-news-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; cursor: zoom-in; }
.v2-news-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.v2-news-body { display: block; flex: 1; padding: 18px 20px 22px; color: var(--ink); text-decoration: none; }
.v2-news-body:hover h3 { color: var(--accent); }
.v2-news-body time { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.v2-news-body h3 { margin: 0 0 6px; font-size: 23px; line-height: 1.15; }
.v2-news-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.v2 .round-arrow { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgb(0 0 0 / 0.15); }

/* Plan your visit */
.v2-plan { background: var(--ink); color: #fff; padding: 96px 0; }
.v2-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.v2-plan-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; }
.v2-plan-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-plan h2 { color: #fff; }
.v2-plan-lead { margin: 14px 0 28px; color: rgb(255 255 255 / 0.7); font-size: 17px; line-height: 1.6; }
.v2-plan-list { list-style: none; margin: 0 0 32px; padding: 0; }
.v2-plan-list a { display: flex; align-items: center; gap: 16px; padding: 18px 4px; border-top: 1px solid rgb(255 255 255 / 0.14); color: #fff; text-decoration: none; transition: padding 0.2s, color 0.2s; }
.v2-plan-list li:last-child a { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.v2-plan-list a > span:nth-child(2) { flex: 1; }
.v2-plan-list b { display: block; font-size: 17px; font-weight: 600; }
.v2-plan-list small { display: block; margin-top: 2px; color: rgb(255 255 255 / 0.6); font-size: 14px; }
.v2-plan-list a:hover { padding-left: 12px; color: #e8d3a6; }
.v2-plan-icon { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(255 255 255 / 0.08); color: #e8d3a6; flex: none; }

/* Galleries */
.v2-galleries .carousel-track { gap: 16px; }
.v2-gallery { position: relative; flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #ddd; }
.v2-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.v2-gallery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(15 10 8 / 0.75)); }
.v2-gallery span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font: 600 21px/1.15 var(--display); color: #fff; }
.v2-gallery:hover img { transform: scale(1.05); }

/* Weddings */
.v2-wedding { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ivory); }
.v2-wedding-photo { min-height: 520px; position: relative; }
.v2-wedding-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-wedding-text { padding: 80px clamp(24px, 6vw, 90px); align-self: center; }
.v2-wedding-text h2 { margin-bottom: 20px; }
.v2-wedding-text p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }

/* Places nearby */
.v2-places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.v2-place { display: block; color: var(--ink); text-decoration: none; }
.v2-place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; transition: opacity 0.2s; }
.v2-place span { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 0; font-weight: 600; font-size: 15px; }
.v2-place:hover { color: var(--accent); }
.v2-place:hover img { opacity: 0.88; }

/* Partners */
.v2-partners { padding: 72px 0 80px; border-top: 1px solid var(--line); }
.v2-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin: 24px 0 40px; }
.v2-logos img { height: 56px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.v2-logos a:hover img { filter: none; opacity: 1; }
.v2-banners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.v2-banners img { width: 100%; height: 120px; object-fit: contain; background: var(--ivory); border-radius: 10px; padding: 8px; display: block; }

@media (max-width: 1000px) {
  .v2-today { position: relative; right: auto; bottom: auto; width: auto; margin: 0 20px 20px; }
  .v2-hero-inner { padding-bottom: 28px; }
  .v2-services .v2-wrap { grid-template-columns: repeat(2, 1fr); }
  .v2-services a { justify-content: flex-start; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .v2-services a:nth-child(2n) { border-right: 0; }
  .v2-services a:nth-child(n+3) { border-bottom: 0; }
  .v2-news-card { flex-basis: calc((100% - 20px) / 2); }
  .v2-gallery { flex-basis: calc((100% - 16px) / 2); }
  .v2-plan-grid, .v2-wedding { grid-template-columns: 1fr; gap: 40px; }
  .v2-plan-photo { aspect-ratio: 16 / 10; }
  .v2-wedding-photo { min-height: 320px; }
  .v2-places, .v2-banners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .v2-wrap, .v2-hero-inner { padding-left: 20px; padding-right: 20px; }
  .slider.v2-hero { height: auto; min-height: 640px; padding-top: 160px; }
  .v2-hero::after { background: linear-gradient(180deg, rgb(20 14 10 / 0.3) 0%, rgb(20 14 10 / 0.7) 40%, rgb(20 14 10 / 0.85) 100%); }
  .v2-section, .v2-plan { padding: 64px 0; }
  .v2-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .v2-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; gap: 10px; }
  .v2-tile:first-child { grid-row: auto; grid-column: span 2; }
  .v2-tile span, .v2-tile:first-child span { font-size: 21px; left: 14px; bottom: 12px; }
  .v2-news-card { flex-basis: 82%; }
  .v2-gallery { flex-basis: 70%; }
  .v2-services a { padding: 16px 12px; font-size: 13px; }
  .v2-wedding-text { padding: 48px 20px; }
}

/* Poster opened full size (news pictures on both homepages) */
.poster-dialog { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.poster-dialog::backdrop { background: rgb(10 8 6 / 0.85); }
.poster-dialog img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.poster-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #222; font-size: 26px; line-height: 38px; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 0.3); }
@media (max-width: 640px) { .poster-close { top: 8px; right: 8px; } }

/* ---------- Glagolitic ornaments (the script of the Cyril and Methodius mission); decorative, hidden from screen readers ---------- */
.glag { font-family: var(--glag); }
/* section kickers: gold azu + hairline */
.v2-kicker { display: flex; align-items: center; gap: 10px; }
.v2-kicker.center { justify-content: center; }
.v2-kicker::before { content: "Ⰰ" / ""; font: 15px/1 var(--glag); letter-spacing: 0; color: var(--gold); }
.v2-kicker::after { content: ""; width: 36px; height: 1px; background: var(--gold); opacity: 0.6; }
/* homepage hero: NITRA in Glagolitic above the eyebrow */
.v2-eyebrow::before { content: "ⰐⰋⰕⰓⰀ" / ""; display: block; margin-bottom: 18px; font: 36px/1 var(--glag); letter-spacing: 0.35em; color: #e8d3a6; text-transform: none; }
/* page title band: large faint azu, gold rule under the title */
.page-title { overflow: hidden; }
.page-title::after { content: "Ⰰ" / ""; position: absolute; right: max(40px, calc((100% - 1160px) / 2)); bottom: -70px; font: 340px/1 var(--glag); color: #fff; opacity: 0.09; pointer-events: none; }
.title-glag { margin: 16px 0 0; font-size: 20px; line-height: 1.2; letter-spacing: 0.22em; color: #e8d3a6; }
/* dark sections: faint letters in the corner */
.v2-plan { position: relative; overflow: hidden; }
.v2-plan::before { content: "Ⰳ" / ""; position: absolute; right: -30px; top: -40px; font: 420px/1 var(--glag); color: #e8d3a6; opacity: 0.05; pointer-events: none; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: "ⰐⰋⰕⰓⰀ" / ""; position: absolute; right: -20px; top: 10px; font: 150px/1 var(--glag); letter-spacing: 0.1em; color: #e8d3a6; opacity: 0.045; pointer-events: none; white-space: nowrap; }
.footer-bottom { gap: 20px; flex-wrap: wrap; }
.glag-note { display: inline-flex; align-items: center; gap: 12px; }
.glag-note .glag { font-size: 17px; letter-spacing: 0.3em; color: #e8d3a6; }
@media (max-width: 640px) { .page-title::after { font-size: 220px; bottom: -40px; } .v2-eyebrow::before { font-size: 20px; } .site-footer::before { font-size: 90px; } }

/* ---------- Decorative initials (illuminated-manuscript style) ---------- */
.program-body > p.initial::first-letter {
  float: left; margin: 0.06em 0.12em 0 0; font: 600 3.5em/0.82 var(--display); color: var(--accent);
}

/* ---------- Gentle fade-in while scrolling (browsers with scroll-driven animations; off for reduced motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .program, .info-card, .price-card:not(.featured), .hours-day, .table-scroll, .albums-grid .album, .photos a,
    .v2-tile, .v2-news-card, .v2-gallery, .v2-place, .v2-hours, .v2-plan-grid > *, .v2-wedding-text, .v2-head {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
  }
}

/* Section titles: the title itself in Glagolitic as the gold line above it */
.glag-kicker { font: 17px/1.2 var(--glag); letter-spacing: 0.2em; text-transform: none; color: var(--gold); }
.glag-kicker::before { content: none; }
.v2-plan .glag-kicker, .v2-hero .glag-kicker { color: #e8d3a6; }
@media (max-width: 640px) { .glag-kicker { font-size: 15px; letter-spacing: 0.14em; } .title-glag { font-size: 16px; } }

/* ---------- Typography polish ---------- */
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .brand-name { text-wrap: balance; }
/* a page's opening paragraph reads as a lead */
.prose p.lead { max-width: 760px; margin-bottom: 36px; font-size: 20px; line-height: 1.6; color: var(--ink); }
@media (max-width: 640px) { .prose p.lead { font-size: 18px; } }

/* ---------- WordPress / Elementor ---------- */
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 46px; } }
/* text widgets read like the prose column; layout widgets use the full width */
.prose .elementor-widget-text-editor { max-width: 780px; }
.prose .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor + .elementor-widget-text-editor { margin-top: 1em; }
.page-body .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
/* WordPress image alignment inside text */
.alignleft { float: left; margin: 6px 24px 16px 0; } .alignright { float: right; margin: 6px 0 16px 24px; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Holidays and exceptions under the hours table */
.hours-exceptions { margin: 18px 0 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); }
.hours-exceptions h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 22px; }
.hours-exceptions h3 .icon { color: var(--accent); }
.hours-exceptions ul { list-style: none; margin: 0; padding: 0; }
.hours-exceptions li { display: grid; grid-template-columns: 130px 1fr; gap: 2px 18px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.hours-exceptions li:first-child { border-top: 0; }
.ex-date { grid-row: span 2; font: 600 20px/1.2 var(--display); color: var(--accent); }
.ex-name { font-weight: 600; color: var(--ink); }
.ex-name small { margin-left: 6px; font-weight: 400; color: var(--muted); }
.ex-rows { color: var(--text); }
.ex-rows b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-exceptions li.today { margin: 0 -12px; padding: 10px 12px; border-radius: 10px; background: #f8efe9; }
.v2-today-special { margin: -2px 0 8px; font-weight: 600; color: var(--accent); }
@media (max-width: 640px) { .hours-exceptions li { grid-template-columns: 1fr; } .ex-date { grid-row: auto; } }

/* Every reservation button looks like the red "Rezervácia" in the header: square, solid castle red, letter-spaced caps */
:is(.info-links a, .v2-btn):is([href*="rezervacny-formular"], [href*="booking-form"], [href*="dieceznakniznica.sk/rezervacie"], [href*="nguide.sk"]) {
  gap: 8px; padding: 14px 22px; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: #fff;
  font: 600 11.5px/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; backdrop-filter: none;
}
:is(.info-links a, .v2-btn):is([href*="rezervacny-formular"], [href*="booking-form"], [href*="dieceznakniznica.sk/rezervacie"], [href*="nguide.sk"]):hover { background: #9a1422; border-color: #9a1422; color: #fff; }
:is(.info-links a, .v2-btn):is([href*="rezervacny-formular"], [href*="booking-form"], [href*="dieceznakniznica.sk/rezervacie"], [href*="nguide.sk"]) .icon { color: #fff; }

/* notes under prices ("dospelí", "na osobu") start with a capital letter */
.program-price small::first-letter, .price-badge small::first-letter { text-transform: uppercase; }

/* ---------- History timeline: period beside a gold line, one card per era ---------- */
.timeline { position: relative; margin: 8px 0 72px; }
.timeline::before { content: ""; position: absolute; left: 190px; top: 12px; bottom: 40px; width: 1px; background: linear-gradient(var(--gold), rgb(184 151 90 / 0.2)); }
.tl-item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 60px; padding-bottom: 56px; }
.tl-item::before { content: ""; position: absolute; left: 184px; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 0 0 5px #fff; }
.tl-when { text-align: right; }
.tl-period { position: sticky; top: 150px; display: block; font: 600 34px/1.05 var(--display); color: var(--accent); text-wrap: balance; }
.tl-card { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.tl-item:nth-child(even) .tl-card { grid-template-columns: 7fr 5fr; }
.tl-item:nth-child(even) .tl-img { order: 2; }
.tl-card.no-img { grid-template-columns: 1fr; }
.tl-img { position: relative; min-height: 320px; margin: 0; }
.prose .tl-img img, .tl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.tl-body { padding: 34px 38px; }
.prose .tl-body .tl-glag, .tl-glag { margin: 0 0 6px; font-size: 14px; line-height: 1.3; letter-spacing: 0.2em; color: var(--gold); }
.prose .tl-body h2, .tl-body h2 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 32px); max-width: none; }
.prose .tl-body p, .tl-body p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; max-width: none; }
.tl-fact { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--ivory); }
.tl-fact b { font: 600 34px/1 var(--display); color: var(--accent); white-space: nowrap; }
.tl-fact span { font-size: 14px; line-height: 1.45; color: var(--ink); }
@media (max-width: 900px) {
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 0 40px 32px; }
  .tl-item::before { left: 0; top: 8px; }
  .tl-when { text-align: left; }
  .tl-period { position: static; font-size: 28px; }
  .tl-card, .tl-item:nth-child(even) .tl-card { grid-template-columns: minmax(0, 1fr); }
  .tl-item:nth-child(even) .tl-img { order: 0; }
  .tl-img { min-height: 220px; }
  .tl-body { padding: 24px 22px; }
}
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) { .tl-card { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; } } }

/* ---------- Instagram: follow card (+ the photo feed in WordPress once the account is connected) ---------- */
.insta { margin: 8px 0 56px; }
.prose .insta-card, .insta-card { display: flex; align-items: center; gap: 18px; max-width: 640px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: box-shadow 0.25s, transform 0.25s; }
.insta-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
.insta-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.insta-name { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.insta-name b { font: 600 22px/1.1 var(--display); }
.insta-name small { font-size: 14px; color: var(--muted); }
.insta-follow { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 13.5px/1 var(--ui); }
.insta-feed { margin-top: 24px; }
@media (max-width: 560px) { .insta-card { flex-wrap: wrap; } .insta-follow { width: 100%; justify-content: center; } }

.v2-today li b .closed { color: var(--muted); font-weight: 500; }

/* ---------- Google Form in the site's design ---------- */
.gform { width: 100%; max-width: 860px; margin: 0 0 56px; }
.gform-intro { margin: 0 0 28px; padding: 22px 26px; border-radius: 16px; background: var(--ivory); }
.prose .gform-intro p, .gform-intro p { margin: 0 0 10px; max-width: none; font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.prose .gform-intro p:last-child, .gform-intro p:last-child { margin-bottom: 0; }
.gform-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; padding: 34px 36px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.gform-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gform-field.wide, .gform-note, .gform-error, .gform-actions { grid-column: 1 / -1; }
.gform-field > label, .gform-field > legend { padding: 0; margin-bottom: 8px; font: 600 11.5px/1.4 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.gform-req { color: var(--accent); }
.gform-help { font-size: 13px; color: var(--muted); }
.gform textarea, .gform input[type=text], .gform input[type=date], .gform input[type=time], .gform select {
  width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfaf7;
  font: 400 16px/1.4 var(--ui); color: var(--ink); resize: none; field-sizing: content; /* one line that grows as you type */ transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.gform textarea:focus, .gform input:focus, .gform select:focus { outline: 0; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgb(126 15 26 / 0.12); }
.gform-datetime { display: flex; gap: 10px; }
.gform-datetime input[type=time] { flex: 0 0 130px; }
.gform-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gform-pill { position: relative; cursor: pointer; }
.gform-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gform-pill span { display: inline-flex; align-items: center; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 13px/1 var(--ui); letter-spacing: 0.04em; color: var(--ink); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.gform-pill:hover span { border-color: var(--accent); color: var(--accent); }
.gform-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.gform-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgb(126 15 26 / 0.25); }
.gform-other-text { display: none; flex: 1 1 220px; }
.gform-pills:has(.gform-other input:checked) .gform-other-text { display: block; }
.prose .gform-note, .gform-note { margin: 0; max-width: none; padding: 14px 18px; border-radius: 12px; background: var(--ivory); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.prose .gform-error, .gform-error { margin: 0; max-width: none; color: var(--accent); font-weight: 600; }
.gform-actions { display: flex; }
.gform-submit { border: 0; cursor: pointer; background: var(--accent); color: #fff; border-radius: 0; padding: 16px 28px; font: 600 12px/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; }
.gform-submit:hover { background: #9a1422; color: #fff; }
.gform-submit:disabled { opacity: 0.6; cursor: wait; }
.gform-done { padding: 40px 36px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.gform-done-icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 30px; }
.prose .gform-done h3, .gform-done h3 { margin: 16px 0 6px; font-size: 30px; max-width: none; }
.prose .gform-done p, .gform-done p { margin: 0 auto; max-width: none; color: var(--muted); }
.prose .gform-failed, .gform-failed { margin: 14px 0 0; max-width: none; font-weight: 600; color: var(--accent); }
.gform [hidden] { display: none !important; }
@media (max-width: 700px) {
  .gform-form { grid-template-columns: 1fr; padding: 24px 20px; }
  .gform-datetime input[type=time] { flex-basis: 110px; }
}

/* Supporters (MIRRI, Mesto Nitra, UNSK): their own row under the partners, wider logos in full colour */
.v2-supporters { gap: 28px 64px; margin-top: 18px; }
.v2-supporters img { height: 64px; max-width: 240px; filter: none; opacity: 1; }
@media (max-width: 640px) { .v2-supporters img { height: 48px; max-width: 200px; } }

/* the PONK logo is white on transparent: give it a dark tile so it shows on the white row */
.v2-logos img[src*="pong"] { background: #3a3a3a; padding: 8px 14px; border-radius: 8px; box-sizing: content-box; height: 40px; }

/* "Ďakujeme" heading above the project banners: a little air above it */
.v2-supporters + .v2-kicker { margin-top: 36px; }

/* ---------- Homepage "parchment" look (switchable in the admin): warm sections + faint Glagolitic watermarks.
   The partners / supporters / thank-you area at the bottom stays white. ---------- */
.parchment .v2-section, .parchment .v2-services { background: #f3ece0; }
.parchment .v2-services { border-bottom-color: #e3d8c6; }
.parchment .v2-services a { border-color: #e3d8c6; }
.parchment .v2-services a:hover { background: #fbf7f0; }
.parchment [data-wm-a] { position: relative; overflow: hidden; }
.parchment [data-wm-a] > .v2-wrap { position: relative; z-index: 1; }
.parchment [data-wm-a]::before, .parchment [data-wm-a]::after { position: absolute; z-index: 0; font-family: var(--glag); line-height: 1; color: var(--gold); pointer-events: none; }
.parchment [data-wm-a]::before { content: attr(data-wm-a) / ""; font-size: 440px; opacity: 0.11; }
.parchment [data-wm-a]::after { content: attr(data-wm-b) / ""; font-size: 210px; opacity: 0.09; }
.parchment [data-wm-side="r"]::before { right: -50px; top: -80px; }
.parchment [data-wm-side="r"]::after { left: 3%; bottom: -70px; }
.parchment [data-wm-side="l"]::before { left: -70px; bottom: -170px; }
.parchment [data-wm-side="l"]::after { right: 6%; top: -40px; }
@media (max-width: 640px) {
  .parchment [data-wm-a]::before { font-size: 260px; }
  .parchment [data-wm-a]::after { font-size: 130px; }
}

/* Inner pages in the parchment look: the area under the title photo, with two letters of the page title */
.parchment .page-paper { background: #f3ece0; }
