/*
Theme Name: From Silence Rising
Theme URI: https://fromsilencerising.com
Author: Horizont Global Kft.
Description: Kétnyelvű (HU/EN), reszponzív egyoldalas WordPress téma a From Silence Rising arculatához. Óceán-ihletésű, letisztult design Cormorant Garamond és Montserrat tipográfiával.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: from-silence-rising
Tags: one-column, custom-logo, custom-colors, translation-ready, responsive-layout, blog
*/

:root {
  --deep: #0d3b4c;
  --ocean: #03666f;
  --lagoon: #33b5ab;
  --shallow: #96dccc;
  --mid: #2e6f75;
  --mist: #e6e9e7;
  --ivory: #f9f7f2;
  --paper: #fffefa;
  --sandless-warmth: #f3ede4;
  --ink: #15283b;
  --body: #293541;
  --line: rgba(13, 59, 76, .18);
  --shadow: 0 25px 70px rgba(13, 59, 76, .12);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

/* ==========================================================================
   1. Alapok
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  padding: .65rem 1rem;
  color: white;
  background: var(--deep);
}
.skip-link:focus { top: 1rem; }
.screen-reader-text, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
main section[id] { scroll-margin-top: 96px; }

/* ==========================================================================
   2. Fejléc, navigáció, nyelvváltó
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 4.8vw, 78px);
  overflow: visible;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.scrolled {
  height: 78px;
  background: rgba(249,247,242,.92);
  box-shadow: 0 10px 45px rgba(13,59,76,.08);
  backdrop-filter: blur(16px);
}
.site-header.solid {
  background: rgba(249,247,242,.94);
  box-shadow: 0 10px 45px rgba(13,59,76,.06);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 16px; min-width: max-content; overflow: visible; }
.brand-mark {
  width: 60px;
  height: 60px;
  padding: 4px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}
.site-header.scrolled .brand-mark { width: 55px; height: 55px; }
.brand-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .17em;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.5vw, 25px);
  min-width: 0;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(13px, 1.45vw, 25px); }
.nav-link {
  position: relative;
  border: 0;
  padding: 11px 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.desktop-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .34em;
  white-space: nowrap;
  font-size: 8.5px;
  letter-spacing: .08em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 2px;
  height: 1px;
  background: var(--ocean);
  transition: left .25s ease, right .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { left: 0; right: 0; }
.nav-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 205px;
  padding: 12px;
  background: rgba(255,254,250,.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: .25s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  color: var(--deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(150,220,204,.16); }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: rgba(13, 59, 76, .42);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
}
.language-button {
  border: 0;
  padding: 7px 2px;
  color: rgba(21, 40, 59, .48);
  background: transparent;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: color .2s ease;
}
.language-button:hover,
.language-button.active { color: var(--ocean); }
.language-button.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.mobile-language-switcher { margin: -4px 0 8px; font-size: 11px; }
.mobile-language-switcher .language-button { font-size: 11px; padding: 6px 3px; }

.mobile-menu-button { display: none; border: 0; background: transparent; padding: 4px; }
.mobile-menu-button img { width: 40px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2500;
  padding: 24px;
  background: rgba(249,247,242,.98);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: .3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-close { position: absolute; right: 25px; top: 24px; border: 0; background: transparent; }
.mobile-menu-close img { width: 42px; }
.mobile-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mobile-menu-logo {
  width: 105px;
  margin-bottom: 15px;
  padding: 5px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.mobile-menu-inner > a,
.mobile-menu-group > p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: .055em;
  text-align: center;
}
.mobile-menu-group { text-align: center; }
.mobile-submenu { display: flex; justify-content: center; gap: 20px; margin-top: 7px; }
.mobile-submenu a {
  color: var(--ocean);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ==========================================================================
   3. Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 760px;
  height: min(900px, 100vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(249,247,242,1) 0%, rgba(249,247,242,.98) 34%, rgba(249,247,242,.78) 48%, rgba(249,247,242,.25) 68%, rgba(249,247,242,.02) 100%),
    linear-gradient(180deg, rgba(249,247,242,.1) 0%, rgba(249,247,242,.04) 75%, rgba(249,247,242,.72) 100%),
    url("assets/images/hero-ocean.jpg");
  background-position: center, center, right center;
  background-size: cover, cover, min(72vw, 1060px) 100%;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(249,247,242,0), var(--ivory));
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(650px, 46vw);
  margin-left: clamp(54px, 8.5vw, 140px);
  padding-top: 60px;
}
.eyebrow {
  display: none;
  margin: 0 0 18px;
  color: var(--ocean);
  font-size: 10px;
  letter-spacing: .26em;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(58px, 6.3vw, 96px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .12em;
}
.small-rule { width: 36px; height: 2px; margin: 30px 0 27px; background: var(--ocean); }
.hero-subtitle {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.9;
}
.hero-orbit { position: absolute; left: clamp(65px, 11vw, 180px); top: 122px; width: 1px; height: 102px; background: rgba(13,59,76,.25); z-index: 2; }
.hero-orbit span { position: absolute; left: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ocean); }
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%; bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--deep);
  font-size: 8px;
  letter-spacing: .2em;
}
.scroll-cue img { width: 20px; height: 27px; object-fit: contain; }
.hero-wave-lines { position: absolute; z-index: 2; left: -4%; bottom: 70px; width: 52%; height: 120px; opacity: .24; }
.hero-wave-lines span {
  position: absolute;
  left: 0; width: 110%; height: 65px;
  border-top: 1px solid var(--mid);
  border-radius: 48% 52% 0 0;
  transform: rotate(-2deg);
}
.hero-wave-lines span:nth-child(2) { top: 16px; left: 2%; transform: rotate(2deg); }
.hero-wave-lines span:nth-child(3) { top: 34px; left: -3%; transform: rotate(-3deg); }
.hero-wave-lines span:nth-child(4) { top: 52px; left: 5%; transform: rotate(1deg); }

/* ==========================================================================
   4. Ismétlődő elemek
   ========================================================================== */

.section { position: relative; padding: 110px clamp(32px, 8.5vw, 140px); overflow: hidden; }
.section-grid { max-width: 1260px; margin: 0 auto; }
.section-label {
  margin: 0 0 16px;
  color: var(--ocean);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-label::after { content: ""; display: block; width: 25px; height: 1px; margin-top: 10px; background: var(--ocean); }
.section-heading { max-width: 760px; margin: 0 auto 52px; }
.section-heading.centered { text-align: center; }
.section-heading.centered .section-label::after { margin-left: auto; margin-right: auto; }
.section-heading.centered p:last-child { max-width: 620px; margin-left: auto; margin-right: auto; }
h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(39px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .08em;
}
.lead { color: var(--ink); font-size: 18px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid var(--deep);
  color: white;
  background: var(--deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.primary-button img, .secondary-button img { width: 29px; }
.primary-button:hover { transform: translateY(-3px); background: var(--ocean); }
.secondary-button { color: var(--deep); background: transparent; }
.secondary-button:hover { color: white; background: var(--deep); transform: translateY(-3px); }

/* Fehér ikonváltozatok (*-white.png): a rajz türkiz, ezért fehérre színezzük.
   Ahol a háttér világos, ott az eredeti, színes ikon marad. */
.icon-white { filter: brightness(0) invert(1); }
.icon-swap { position: relative; display: inline-block; width: 29px; height: 29px; flex: 0 0 auto; }
.icon-swap img { position: absolute; left: 0; top: 0; width: 29px; height: 29px; object-fit: contain; transition: opacity .25s ease; }
.icon-swap .icon-white { opacity: 0; }
.secondary-button:hover .icon-swap .icon-color { opacity: 0; }
.secondary-button:hover .icon-swap .icon-white { opacity: 1; }
.text-link, .text-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  border: 0;
  padding: 0;
  color: var(--ocean);
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.text-link img, .text-button img { width: 28px; transition: transform .25s ease; }
.text-link:hover img, .text-button:hover img { transform: translateX(5px); }
.watercolor {
  position: absolute;
  pointer-events: none;
  background: url("assets/images/watercolor-light.jpg") center / cover no-repeat;
  filter: saturate(.85);
  opacity: .45;
  mix-blend-mode: multiply;
}
.watercolor-about { right: -4%; top: 0; width: 62%; height: 100%; -webkit-mask-image: radial-gradient(ellipse at center, black 18%, transparent 72%); mask-image: radial-gradient(ellipse at center, black 18%, transparent 72%); }
.watercolor-left { left: -5%; top: 0; width: 34%; height: 100%; -webkit-mask-image: radial-gradient(ellipse at center, black 14%, transparent 72%); mask-image: radial-gradient(ellipse at center, black 14%, transparent 72%); opacity: .4; }
.watercolor-gallery {
  right: -8%; top: -8%; width: 46%; height: 90%; opacity: .28;
  -webkit-mask-image: radial-gradient(ellipse at center, black 12%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 12%, transparent 70%);
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   5. Rólam
   ========================================================================== */

.about { min-height: 680px; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(55px, 9vw, 140px); }
.about-copy { max-width: 515px; }
.about-copy p { margin: 0 0 12px; }
.about-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.portal-frame {
  position: relative;
  width: min(330px, 65%);
  aspect-ratio: .75;
  overflow: hidden;
  border-radius: 48% 48% 2px 2px / 28% 28% 2px 2px;
  box-shadow: 0 25px 65px rgba(13,59,76,.11);
}
.portal-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.9); border-radius: inherit; }
.portal-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-circle { position: absolute; width: 220px; right: 2%; bottom: 5%; opacity: .25; }
.about-line { position: absolute; bottom: -35px; left: 50%; width: 1px; height: 70px; background: rgba(13,59,76,.3); }
.about-line::before { content: ""; position: absolute; top: 0; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--mid); }

/* ==========================================================================
   6. Versek
   ========================================================================== */

.poetry { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; background: var(--paper); }
.poetry-image { position: relative; min-height: 640px; overflow: hidden; }
.poetry-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,102,111,.18), rgba(255,255,255,.1)); }
.poetry-image > img:first-child { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); }
.poetry-breath { position: absolute; z-index: 2; right: 9%; bottom: 10%; width: 160px; filter: brightness(0) invert(1); opacity: .85; }
.poetry-copy { padding: clamp(70px, 9vw, 140px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--paper), rgba(230,233,231,.55)); }
.poetry-copy blockquote { margin: 15px 0 25px; color: var(--deep); font-family: var(--serif); font-size: clamp(29px, 3vw, 42px); font-weight: 400; line-height: 1.45; }
.poetry-copy p:not(.section-label) { max-width: 590px; }

/* ==========================================================================
   7. Videók
   ========================================================================== */

.videos { background: var(--ivory); }
.video-feature { position: relative; max-width: 1180px; height: 570px; margin: 0 auto; overflow: hidden; box-shadow: var(--shadow); }
.video-feature > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78) saturate(.88); transform: scale(1.03); }
.video-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,59,76,.2), rgba(13,59,76,.72)); }
.video-feature.playing::after { display: none; }
.video-feature iframe { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; border: 0; }
.video-caption { position: absolute; z-index: 3; right: 7%; top: 50%; width: min(470px, 44%); color: white; transform: translateY(-50%); }
.video-caption .section-label { color: var(--shallow); }
.video-caption .section-label::after { background: var(--shallow); }
.video-caption h3 { margin: 0 0 18px; color: white; font-size: clamp(35px, 4vw, 54px); text-transform: uppercase; }
.video-play {
  position: absolute; z-index: 4; left: 26%; top: 50%;
  width: 105px; height: 105px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  transform: translate(-50%,-50%);
  backdrop-filter: blur(8px);
  transition: transform .3s ease, background .3s ease;
}
.video-play:hover { transform: translate(-50%,-50%) scale(1.08); background: rgba(255,255,255,.25); }
.video-play img { width: 64px; margin: auto; filter: brightness(0) invert(1); }

/* ==========================================================================
   8. Képgaléria
   ========================================================================== */

.images-gallery { background: linear-gradient(180deg, var(--paper), var(--ivory)); }

/* Lapozó: laponként 5 kép, vízszintes görgetés + scroll-snap (mobilon húzható). */
.gallery-slider { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--ocean); outline-offset: 6px; }
.gallery-slide { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; }
.gallery-dots { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--ocean);
  border-radius: 50%;
  background: transparent;
  opacity: .45;
  transition: opacity .25s ease, background .25s ease, transform .25s ease;
}
.gallery-dot:hover { opacity: .8; }
.gallery-dot.active { opacity: 1; background: var(--ocean); transform: scale(1.25); }
.gallery-more { margin-top: 40px; text-align: center; }

/* Az aloldal folyamatos mozaikja: tetszőleges számú kép, ismétlődő mintában. */
.image-gallery-grid.is-full { grid-template-rows: none; grid-auto-rows: 268px; }
/* Mozaik: 6 hasábos raszter, eltérő méretű csempékkel.
   1. nagy (3×2) · 2. széles (2×1) · 3. kicsi · 4. kicsi · 5. széles (2×1) */
.image-gallery-grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  /* Kötött sormagasság: így a képek kivágással (cover) illeszkednek,
     nem a saját képarányuk húzza szét a mozaikot. */
  grid-template-rows: repeat(2, 268px);
  gap: 24px;
}
.gallery-item {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
  box-shadow: 0 20px 55px rgba(13,59,76,.09);
}
.gallery-item-feature { grid-column: span 3; grid-row: span 2; min-height: 560px; }
.gallery-item-wide { grid-column: span 2; }
.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-open:focus-visible { outline: 2px solid white; outline-offset: -6px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86);
  transition: transform .7s ease, filter .7s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,59,76,.58));
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1); }
.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 25px;
  bottom: 20px;
  color: white;
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .08em;
  pointer-events: none;
}

/* ==========================================================================
   8/b. Nagyított kép (lightbox)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 30, 44, .8);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(.97);
  transition: transform .3s ease;
}
.lightbox.open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: rgba(255,255,255,.06);
  box-shadow: 0 35px 90px rgba(0,0,0,.45);
}
.lightbox-figure figcaption {
  color: rgba(255,255,255,.88);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 23px);
  letter-spacing: .08em;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 2.5vw, 34px);
  top: clamp(10px, 2.5vw, 30px);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.lightbox-close img { width: 40px; filter: brightness(0) invert(1); opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.lightbox-close:hover img { opacity: 1; transform: scale(1.08); }
.lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transform: translateY(-50%);
  transition: background .25s ease, transform .25s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-nav img { width: 30px; filter: brightness(0) invert(1); }
.lightbox-prev { left: clamp(8px, 2.5vw, 34px); }
.lightbox-prev img { transform: rotate(180deg); }
.lightbox-next { right: clamp(8px, 2.5vw, 34px); }

/* ==========================================================================
   9. Útközben (blog)
   ========================================================================== */

.journal { background: var(--paper); }
.journal-heading {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}
.journal-heading .section-label::after { margin-left: auto; margin-right: auto; }
.journal-grid { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.journal-card { background: rgba(255,255,255,.82); box-shadow: 0 20px 55px rgba(13,59,76,.08); transition: transform .3s ease, box-shadow .3s ease; }
.journal-card:hover { transform: translateY(-7px); box-shadow: 0 28px 70px rgba(13,59,76,.14); }
.journal-card-image { height: 235px; background-size: cover; background-position: center; }
.journal-card-image.shallow { background-image: url("assets/images/shallow-water.jpg"); }
.journal-card-image.deep { background-image: url("assets/images/deep-ocean.jpg"); }
.journal-card-image.light { background-image: url("assets/images/watercolor-light.jpg"); }
.journal-card-body { padding: 30px 30px 34px; }
.journal-card-body > span { color: var(--ocean); font-size: 9px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.journal-card h3 { min-height: 62px; margin: 9px 0 13px; font-size: 28px; }
.journal-card p { min-height: 108px; margin: 0; font-size: 14px; }
/* Csak a „tovább” hivatkozás – a kártyacímben lévő link nem kap ilyen stílust. */
.journal-card-body > a { display: inline-flex; align-items: center; gap: 13px; margin-top: 18px; color: var(--ocean); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.journal-card-body > a img { width: 28px; }
.journal-more { margin-top: 46px; text-align: center; }

/* ==========================================================================
   10. Kapcsolat
   ========================================================================== */

.contact { background: linear-gradient(120deg, rgba(230,233,231,.55), rgba(255,254,250,.95)); }
.contact-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(55px, 9vw, 120px); align-items: center; }
.contact-icon { width: 110px; margin: 0 0 15px -10px; }
.contact-copy p:not(.section-label) { max-width: 470px; }
.contact-email { display: inline-flex; align-items: center; gap: 15px; margin-top: 20px; color: var(--deep); font-size: 13px; letter-spacing: .05em; }
.contact-email img { width: 46px; }
.contact-form { display: grid; gap: 20px; }
.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: -4px;
  color: var(--deep);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .07em;
  line-height: 1.6;
  text-transform: none;
  cursor: pointer;
}
.contact-form .contact-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(13,59,76,.4);
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  transition: background-color .2s ease, border-color .2s ease;
}
.contact-form .contact-consent input[type="checkbox"]:hover { border-color: var(--lagoon); }
.contact-form .contact-consent input[type="checkbox"]:checked {
  border-color: var(--ocean);
  background-color: var(--ocean);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.6 9 10 3.2' fill='none' stroke='%23fffefa' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input, textarea, select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(13,59,76,.35);
  border-radius: 0;
  padding: 12px 4px;
  color: var(--ink);
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .2s ease, background .2s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--lagoon); background: rgba(150,220,204,.07); }
.form-status { min-height: 1.5em; margin: 0; color: var(--ocean); font-size: 13px; }
.form-status.error { color: #8b3f43; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* ==========================================================================
   11. Idézet, lábléc, toast
   ========================================================================== */

.quote-section { position: relative; height: 185px; display: grid; place-content: center; text-align: center; overflow: hidden; background: url("assets/images/quote-ocean.jpg") center 56% / cover no-repeat; }
.quote-overlay { position: absolute; inset: 0; background: rgba(249,247,242,.62); }
.quote-section blockquote { position: relative; z-index: 2; margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(25px, 3vw, 39px); font-weight: 500; line-height: 1.08; letter-spacing: .09em; text-transform: uppercase; }
.quote-section .small-rule { position: relative; z-index: 2; margin: 18px auto 0; }

.site-footer {
  min-height: 154px;
  padding: 26px clamp(32px, 8.5vw, 140px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  background: var(--paper);
  overflow: visible;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer nav a { font-size: 8px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer-center { text-align: center; overflow: visible; }
.footer-logo {
  width: 66px;
  height: 66px;
  margin: 0 auto 7px;
  padding: 4px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.footer-center p { margin: 0; font-size: 10px; }
.social-links { display: flex; justify-content: flex-end; gap: 11px; }
.social-links a { width: 30px; height: 30px; display: grid; place-items: center; }
.social-links img { width: 28px; }

.toast {
  position: fixed;
  z-index: 5000;
  left: 50%; bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  color: white;
  background: var(--deep);
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: .3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* ==========================================================================
   12. Belső oldalak (bejegyzés, oldal, archívum, 404)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 190px clamp(32px, 8.5vw, 140px) 70px;
  background: linear-gradient(180deg, rgba(230,233,231,.6), var(--ivory));
  text-align: center;
}
.page-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .06em;
}
.page-hero .section-label { margin-bottom: 14px; }
.page-hero .section-label::after { margin-left: auto; margin-right: auto; }
.page-meta { margin: 18px 0 0; color: var(--ocean); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

/* Egy bejegyzés részletes oldala (Útközben) */
.single-hero {
  position: relative;
  padding: 186px clamp(32px, 8.5vw, 140px) 64px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(230,233,231,.7), var(--ivory));
  text-align: center;
}
.single-hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.single-hero .section-label { margin-bottom: 14px; }
.single-hero .section-label::after { margin-left: auto; margin-right: auto; }
.single-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: .05em;
  overflow-wrap: break-word;
}
.single-hero .small-rule { margin: 26px auto 0; }
.single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  color: var(--ocean);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.watercolor-single {
  left: -10%;
  top: -30%;
  width: 45%;
  height: 150%;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse at center, black 12%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 12%, transparent 70%);
}
.single-body { padding: 0 clamp(32px, 8.5vw, 140px) 20px; background: var(--paper); }
.single-body > .entry-inner { padding-top: 64px; }
.single-body .entry-thumb { margin-top: -30px; box-shadow: none; }
.single-body .entry-thumb img { width: 100%; box-shadow: var(--shadow); }
.single-body .entry-thumb figcaption {
  margin-top: 14px;
  color: var(--ocean);
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
}
.single-foot { max-width: 780px; margin: 54px auto 0; text-align: center; }
.single-foot .small-rule { margin: 0 auto 18px; }
.single-nav {
  max-width: 1180px;
  margin: 70px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.single-nav-link { display: grid; gap: 9px; }
.single-nav-link.align-end { text-align: right; }
.single-nav-link.align-end .section-label::after { margin-left: auto; }
.single-nav-link .section-label { margin: 0; }
.single-nav-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: .05em;
  transition: color .25s ease;
}
.single-nav-link:hover .single-nav-title { color: var(--ocean); }
.single-more { background: linear-gradient(180deg, var(--paper), var(--ivory)); padding-top: 90px; }
.single-more .section-heading { margin-bottom: 46px; }
.single-hero-text {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--body);
  font-size: 15px;
}
.single-hero-text p { margin: 0 0 12px; }

/* Aloldalak: bejegyzéslista, versek, képek galéria */
.archive-body,
.gallery-page-body { padding-top: 70px; background: var(--paper); }
.archive-body .journal-grid,
.gallery-page-body .image-gallery-grid { position: relative; z-index: 2; }
.archive-note {
  max-width: 620px;
  margin: 46px auto 0;
  color: var(--ocean);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
}
.journal-card h3 a { transition: color .25s ease; }
.journal-card h3 a:hover { color: var(--ocean); }

.poem-card { display: flex; flex-direction: column; }
.poem-card .journal-card-body { display: flex; flex-direction: column; flex: 1; }
.poem-card-mark {
  height: 235px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(150,220,204,.32), rgba(230,233,231,.75));
}
.poem-card-mark img { width: 165px; opacity: .6; }
.poem-card h3 { min-height: 0; }
.poem-excerpt {
  min-height: 0 !important;
  margin: 0 0 auto !important;
  color: var(--deep);
  font-family: var(--serif);
  font-size: 19px !important;
  line-height: 1.55;
}
.poem-card a { margin-top: 22px; }

.poem-body {
  max-width: 660px;
  margin: 0 auto;
  padding-top: 64px;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.75;
  letter-spacing: .02em;
  text-align: center;
}
.poem-body p { margin: 0 0 28px; }
.poem-body em { font-style: italic; }

.entry { padding: 70px clamp(32px, 8.5vw, 140px) 100px; background: var(--paper); }
.entry-inner { max-width: 780px; margin: 0 auto; }
.entry-thumb { max-width: 1180px; margin: 0 auto 55px; box-shadow: var(--shadow); }
.entry-inner h2 { font-size: clamp(30px, 3vw, 40px); text-transform: none; letter-spacing: .04em; }
.entry-inner h3 { margin: 34px 0 12px; }
.entry-inner p { margin: 0 0 20px; }
.entry-inner a:not(.primary-button):not(.secondary-button) { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.entry-inner blockquote {
  margin: 32px 0;
  padding-left: 26px;
  border-left: 2px solid var(--lagoon);
  color: var(--deep);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
}
.entry-inner ul, .entry-inner ol { margin: 0 0 22px; padding-left: 22px; }
.entry-inner li { margin-bottom: 8px; }
.entry-inner img, .entry-inner figure { margin: 30px 0; }
.entry-inner figcaption { color: var(--ocean); font-size: 12px; text-align: center; }
.entry-nav { max-width: 780px; margin: 55px auto 0; display: flex; justify-content: space-between; gap: 20px; }
.entry-nav a { color: var(--ocean); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.pagination { max-width: 1240px; margin: 55px auto 0; display: flex; justify-content: center; gap: 12px; }
.pagination .page-numbers {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--deep);
  font-size: 11px;
  text-align: center;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { color: white; background: var(--deep); border-color: var(--deep); }
.no-results { max-width: 780px; margin: 0 auto; text-align: center; }
.comments-area { max-width: 780px; margin: 60px auto 0; }
.comments-area .comment-list { margin: 0; padding: 0; list-style: none; }
.comments-area .comment-list li { margin-bottom: 26px; }

/* ==========================================================================
   13. Reszponzív töréspontok
   ========================================================================== */

@media (max-width: 1220px) {
  .brand-name { font-size: 16px; }
  .header-actions { gap: 13px; }
  .desktop-nav { gap: 12px; }
  .desktop-nav .nav-link { font-size: 7.6px; letter-spacing: .045em; }
}

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: block; }
  .site-header { height: 82px; }
  .header-actions { gap: 12px; }
  .language-switcher:not(.mobile-language-switcher) { margin-left: auto; }
  .hero { background-size: cover, cover, 76vw 100%; }
  .hero-content { width: 52vw; }
}

@media (max-width: 940px) {
  .brand-mark, .site-header.scrolled .brand-mark { width: 54px; height: 54px; }
  .hero {
    min-height: 760px;
    height: 92vh;
    background-image: linear-gradient(180deg, rgba(249,247,242,.96) 0%, rgba(249,247,242,.82) 35%, rgba(249,247,242,.38) 65%, rgba(249,247,242,.72) 100%), url("assets/images/hero-ocean.jpg");
    background-position: center, 63% center;
    background-size: cover;
  }
  .hero-content { width: auto; max-width: 650px; margin: auto; padding: 80px 32px 0; text-align: center; }
  .hero h1 { font-size: clamp(52px, 11vw, 82px); }
  .hero-subtitle { font-size: 12px; }
  .hero-content .small-rule { margin-left: auto; margin-right: auto; }
  .hero-orbit { display: none; }
  .hero-wave-lines { width: 85%; opacity: .18; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { max-width: 650px; margin: auto; text-align: center; }
  .about-copy .section-label::after { margin-left: auto; margin-right: auto; }
  .about-visual { min-height: 430px; }
  .poetry { grid-template-columns: 1fr; }
  .poetry-image { min-height: 420px; }
  .video-caption { width: 48%; right: 5%; }
  /* Tableten: teljes szélességű nagy csempe, alatta 2×2 mozaik. */
  .image-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 390px repeat(2, 250px); }
  .gallery-item-feature { grid-column: 1 / -1; grid-row: auto; min-height: 390px; }
  .gallery-item-wide { grid-column: span 1; }
  .image-gallery-grid.is-full { grid-template-rows: none; grid-auto-rows: 250px; }
  .image-gallery-grid.is-full .gallery-item-feature { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .journal-grid { grid-template-columns: 1fr; max-width: 620px; }
  .journal-card p, .journal-card h3 { min-height: 0; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-copy { text-align: center; }
  .contact-copy .section-label::after { margin-left: auto; margin-right: auto; }
  .contact-icon { margin-left: auto; margin-right: auto; }
  .contact-copy p:not(.section-label) { margin-left: auto; margin-right: auto; }
  .site-footer { min-height: 0; grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 38px; text-align: center; }
  .site-footer nav, .social-links { justify-content: center; }
  .footer-center { grid-row: 1; }
  .page-hero { padding-top: 160px; }
  .single-hero { padding-top: 158px; }
  .single-nav { gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding: 0 20px; }
  .header-actions { gap: 10px; }
  .language-button { font-size: 8.5px; }
  .language-switcher { gap: 3px; }
  .brand { gap: 10px; }
  .brand-name { max-width: 185px; font-size: 15px; letter-spacing: .12em; }
  .brand-mark, .site-header.scrolled .brand-mark { width: 48px; height: 48px; padding: 3px; }
  .section { padding: 80px 24px; }
  .hero { min-height: 700px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 52px); letter-spacing: .045em; }
  .eyebrow { display: block; }
  .hero-subtitle { letter-spacing: .13em; line-height: 1.8; }
  .hero-wave-lines { bottom: 35px; height: 100px; }
  .scroll-cue { display: none; }
  /* Fluid méret, hogy a hosszú magyar szavak (pl. KAPCSOLÓDJUNK) is kiférjenek. */
  h2 { font-size: clamp(30px, 9vw, 40px); letter-spacing: .055em; }
  h2, h3, .journal-card h3 { overflow-wrap: break-word; }
  .about-visual { min-height: 360px; }
  .portal-frame { width: 230px; }
  .about-circle { width: 150px; }
  .poetry-image { min-height: 340px; }
  .poetry-copy { padding: 70px 24px; }
  .poetry-copy blockquote { font-size: 28px; }
  .video-feature { height: 640px; }
  .video-feature::after { background: linear-gradient(180deg, rgba(13,59,76,.12), rgba(13,59,76,.78)); }
  .video-play { left: 50%; top: 34%; width: 90px; height: 90px; }
  .video-caption { left: 28px; right: 28px; bottom: 42px; top: auto; width: auto; transform: none; text-align: center; }
  .video-caption .section-label::after { margin-left: auto; margin-right: auto; }
  /* Mobilon egy oszlop, egységes csempemagassággal (az első kiemelt). */
  .image-gallery-grid { grid-template-columns: 1fr; grid-template-rows: 380px; grid-auto-rows: 300px; gap: 16px; }
  .gallery-item, .gallery-item-feature, .gallery-item-wide { grid-column: auto; grid-row: auto; min-height: 0; }
  .image-gallery-grid.is-full { grid-template-rows: none; grid-auto-rows: 300px; }
  .poem-card-mark { height: 200px; }
  .poem-card-mark img { width: 92px; }
  .poem-body { padding-top: 48px; }
  .gallery-item figcaption { left: 20px; bottom: 15px; font-size: 21px; }
  .journal-card-image { height: 200px; }
  .contact-email { font-size: 11px; }
  .quote-section { height: 220px; padding: 20px; }
  .site-footer { padding: 35px 24px; }
  .site-footer nav { gap: 15px 24px; }
  .footer-logo { width: 70px; height: 70px; }
  .mobile-menu-inner { justify-content: flex-start; padding: 52px 0 28px; overflow-y: auto; }
  .mobile-menu-logo { width: 82px; margin-bottom: 7px; }
  .mobile-menu-inner > a, .mobile-menu-group > p { font-size: 22px; }
  .mobile-submenu { gap: 14px; }
  .page-hero { padding: 140px 24px 55px; }
  .entry { padding: 55px 24px 80px; }
  .entry-nav { flex-direction: column; align-items: center; text-align: center; }
  .single-hero { padding: 138px 24px 48px; }
  .single-body { padding-left: 24px; padding-right: 24px; }
  .single-body > .entry-inner { padding-top: 48px; }
  .single-nav { grid-template-columns: 1fr; margin-top: 55px; }
  .single-nav-link.align-end { text-align: left; }
  .single-nav-link.align-end .section-label::after { margin-left: 0; }
  .single-more { padding-top: 70px; }
  .gallery-dots { margin-top: 26px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav img { width: 22px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { width: 40px; height: 40px; right: 6px; top: 8px; }
  .lightbox-close img { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
