/* =========================================================
   Paks TISZA Sziget — landing
   Palette derived from the logo: navy ink + Hungarian red/green
   ========================================================= */

:root {
  --ink:        #14233f;   /* navy */
  --ink-soft:   #24344f;
  --red:        #cf4657;   /* logó piros */
  --green:      #379277;   /* logó zöld */
  --paper:      #f5f7f9;   /* hűvös világos háttér */
  --surface:    #ffffff;
  --soft:       #eef1f5;   /* halvány szekció */
  --muted:      #5c6b82;
  --line:       #dfe4ec;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 1px 2px rgba(20,35,63,.04), 0 12px 32px -18px rgba(20,35,63,.28);
  --shadow-lg: 0 24px 60px -28px rgba(20,35,63,.4);

  --ff-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Fókusz láthatóság */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,247,249,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(245,247,249,.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .14em;
}
.brand-text em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.site-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: .3rem 0;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: .55rem 1.1rem !important;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px var(--red); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--red); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); font-size: 1.1rem; box-shadow: var(--shadow-lg); }
.btn-light:hover { transform: translateY(-2px); color: var(--red); }

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 9vw, 6.5rem);
}
/* Háttérkép */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../img/paks_header.jpg") center 42% / cover no-repeat;
  transform: scale(1.02); /* a blur-szélek ne engedjenek ki a keretből */
}
/* Háttér-slider (Swiper): a slide-ok töltik ki a hero-t.
   A vezérlők szándékosan hiányoznak — ez dekoráció, nem kezelőfelület.
   A .hero .hero-slider.swiper szelektor azért ilyen erős, mert a Swiper saját
   `.swiper { position: relative; z-index: 1 }` szabálya különben felülírná a
   .hero-bg abszolút pozicionálását (a hero összeomlana, a háttér a szöveg fölé kerülne). */
.hero .hero-slider.swiper {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background-image: none;
}
.hero .hero-slider .swiper-wrapper,
.hero .hero-slider .swiper-slide { height: 100%; }
.hero .hero-slider .swiper-slide {
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Olvashatóságot adó navy fátyol */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(15,26,48,.95) 0%, rgba(15,26,48,.82) 40%, rgba(15,26,48,.42) 100%),
    linear-gradient(to bottom, rgba(15,26,48,.15), rgba(15,26,48,.55));
}
/* Elmosott szélek (vignette-blur maszkkal) */
.hero-edge {
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask: radial-gradient(125% 120% at 50% 44%, transparent 56%, #000 100%);
          mask: radial-gradient(125% 120% at 50% 44%, transparent 56%, #000 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  margin: 0 0 1.2rem;
}
.eyebrow-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.hero-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 1.3rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(6,14,30,.35);
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgba(255,255,255,.92);
  max-width: 40ch;
  margin: 0 0 2rem;
  text-shadow: 0 1px 16px rgba(6,14,30,.3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.6rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3rem);
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.28);
  padding-top: 1.6rem;
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #fff;
}
.stat-lab { font-size: .85rem; color: rgba(255,255,255,.78); }

/* Ghost gomb a fotón */
.hero .btn-ghost {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.hero .btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px #fff;
  background: rgba(255,255,255,.1);
}

/* Hero visual — kézzel írt felhívás */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.handwrite {
  position: relative;
  text-align: center;
  transform: rotate(-5deg);
}
.handwrite-small {
  display: block;
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: rgba(255,255,255,.9);
  margin-bottom: -.2em;
}
.handwrite-big {
  display: block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: .9;
  color: #fff;
  text-shadow: 0 3px 22px rgba(6,14,30,.4);
}
.handwrite-big::after {
  /* aláhúzás piros ecsetvonással */
  content: "";
  display: block;
  width: 78%;
  height: 8px;
  margin: .15em auto 0;
  border-radius: 40%;
  background: var(--red);
  transform: rotate(-1.5deg);
  opacity: .95;
}
.handwrite-arrow {
  width: clamp(74px, 10vw, 112px);
  height: auto;
  margin-top: .5rem;
  margin-left: -34%;
  transform: rotate(6deg);
  overflow: visible;
}
.handwrite-arrow path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kézírás rárajzolódó animáció */
.hw-line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s var(--ease) .7s forwards; }
.hw-head { stroke-dasharray: 40;  stroke-dashoffset: 40;  animation: draw .3s var(--ease) 1.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hw-line, .hw-head { animation: none; stroke-dashoffset: 0; }
}

/* ================= SECTIONS (közös) ================= */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-soft { background: var(--soft); }
.section-ink { background: var(--ink); color: #fff; }

.section-eyebrow {
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}
.section-eyebrow-light { color: #f2a8b0; }

.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 1.4rem;
}
.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2.4rem;
}
/* Ha a címsor alatt nincs bevezető, ő tartja a szekció alsó térközét. */
.section-title-last { margin-bottom: 2.4rem; }

/* ================= KIK VAGYUNK ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-text p { font-size: 1.08rem; color: var(--ink-soft); }
.about-text p:first-of-type { margin-top: 0; }

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.chip {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.chip-you {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

/* ================= MIÉRT (ink) ================= */
.pullquote {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 2.6rem;
  max-width: 22ch;
  color: #fff;
  position: relative;
  padding-left: 1.4rem;
  border-left: 4px solid var(--red);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.why-grid p {
  margin: 0;
  color: #c9d3e4;
  font-size: 1.08rem;
}

/* ================= TISZTSÉGVISELŐK ================= */
.people-grid {
  display: grid;
  grid-template-columns: 1fr;   /* soronként egy tisztségviselő */
  gap: 1.6rem;
}
.person {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Fotó és monogramos avatar azonos méretben, hogy a kártyák egységesek legyenek */
.person-avatar,
.person-photo {
  flex: 0 0 auto;
  width: 192px; height: 192px;
  border-radius: 50%;
}
.person-avatar {
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 3.4rem;
  color: #fff;
}
.person-photo {
  object-fit: cover;
  background: var(--soft);
}
.person-avatar-red { background: var(--red); }
.person-avatar-green { background: var(--green); }
.person-avatar-ink { background: var(--ink); }
/* Teljes szélességű kártyán a szöveg sorhossza olvasható marad */
.person-body { max-width: 68ch; }
.person-body h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  margin: 0 0 .2rem;
}
.person-role {
  color: var(--red);
  font-weight: 600;
  font-size: .9rem;
  margin: 0 0 .7rem;
}
.person-body p:last-child { color: var(--muted); margin: 0; font-size: .98rem; }

/* ================= PROJEKTEK ================= */
.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}
.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* Csak a galériával rendelkező kártya emelkedik ki és kattintható.
   A „Galéria megtekintése" link ::after-je borítja be az egész kártyát,
   így egyetlen valódi link marad benne (nincs egymásba ágyazott link). */
.project-linked { cursor: pointer; }
.project-linked:hover,
.project-linked:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.project-linked .project-tag-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
/* Borítókép a kártya tetején — a galéria első képe */
.project-cover {
  display: block;
  aspect-ratio: 4 / 3;
  background-color: var(--soft);
  background-size: cover;
  background-position: center;
}
.project-cover-empty {
  background-image: linear-gradient(135deg, rgba(55,146,119,.1), rgba(207,70,87,.1));
  border-bottom: 1px dashed var(--line);
}
.project-body {
  padding: 1.6rem 1.8rem 1.8rem;
}
.project-body h3 {
  font-family: var(--ff-display);
  font-size: 1.22rem;
  line-height: 1.2;
  margin: 0 0 .25rem;
}
.project-year {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .8rem;
}
.project-body p:not(.project-year) { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: .98rem; }
.project-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(207,70,87,.09);
  padding: .35rem .8rem;
  border-radius: 999px;
}

/* ================= GALÉRIA ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(55,146,119,.1), rgba(207,70,87,.1)),
    var(--soft);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-item span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: .5rem;
}
.gallery-video { background: var(--ink); border-style: solid; border-color: var(--ink); }
.gallery-video span { color: #fff; }

/* ================= KAPCSOLAT ================= */
.contact { text-align: center; }
/* A címsor a teljes sávot használhatja (ne törjön ketté); a szöveg marad szűkebb. */
.contact-inner { margin-inline: auto; }
.contact .section-eyebrow { text-align: center; }
.contact-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
}
.contact-lead {
  color: #c9d3e4;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0f1a30;
  color: #93a2bd;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem;
  font-size: .92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 700;
}
.footer-brand img { border-radius: 50%; }
.footer-imp p { margin: 0 0 .8rem; max-width: 70ch; line-height: 1.6; }

/* Tabletnél és alatta a kétoszlopos lábléc összeszorulna: a márkajel középre
   kerül, az impresszum pedig alá, teljes szélességben. */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    justify-items: center;
    text-align: center;
  }
  .footer-imp p { margin-inline: auto; }
}
.footer-imp a { color: #f2a8b0; text-decoration: none; }
.footer-imp a:hover { text-decoration: underline; }
.footer-copy { color: #5f7192; font-size: .85rem; }

/* ================= REVEAL animáció ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin-inline: auto; }
  .about-grid,
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1.4rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a {
    padding: .9rem .2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta {
    text-align: center;
    margin-top: .8rem;
    padding: .85rem 1.1rem !important;
  }
  .hero-stats { gap: 1.4rem 2rem; }
}

@media (max-width: 760px) {
  /* Keskeny kijelzőn a fotó a kártya tetejére, középre kerül, és nagyobb lehet,
     mert nem kell mellette helyet hagyni a szövegnek (192 → 288px). */
  .person { flex-direction: column; gap: 1.1rem; align-items: center; }
  .person-avatar,
  .person-photo { width: 288px; height: 288px; }
  .person-avatar { font-size: 5rem; }
  /* Név és szerep középre; a bemutatkozás marad balra igazítva az olvashatóságért. */
  .person-body h3,
  .person-role { text-align: center; }
}
@media (max-width: 420px) {
  .person-avatar,
  .person-photo { width: 210px; height: 210px; }
  .person-avatar { font-size: 3.8rem; }
}

/* =========================================================
   WordPress-specifikus kiegészítések
   ========================================================= */

/* Admin-sáv ne takarja a sticky fejlécet */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Projekt-kártya galéria-link (kattintható tag) */
a.project-tag-link {
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
a.project-tag-link:hover { background: var(--red); color: #fff; }

/* Galéria-csempe borítóképpel */
a.gallery-item { text-decoration: none; color: inherit; }
.gallery-item { transition: transform .25s var(--ease); }
.gallery-item.has-cover {
  background-size: cover;
  background-position: center;
  border-style: solid;
  border-color: transparent;
  place-items: end start;
}
.gallery-item.has-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,26,48,.78), rgba(15,26,48,0) 62%);
}
.gallery-item.has-cover span {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  padding: .9rem;
  font-weight: 700;
}
.gallery-item.has-cover::after { color: #fff; opacity: .85; }
.gallery-item:hover { transform: translateY(-3px); }

/* Egy projekt oldala */
.project-single {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.project-single-head { margin-bottom: 2rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--red);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.project-single-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.project-single-body { font-size: 1.05rem; color: var(--ink-soft); }

/* Projekt-galéria: négyzetes thumbnailek rácsban, kattintásra fsLightbox.
   Desktopon 4 kép/sor — a 300px-es thumbnail ilyenkor ~260px-en jelenik meg
   (lefelé méretezés, tehát éles marad). */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.project-gallery-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.project-gallery-link:hover,
.project-gallery-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--soft);
}
@media (max-width: 900px) {
  .project-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Beépített WP galéria- és képblokkok */
.project-single-body .wp-block-image img,
.project-single-body .wp-block-gallery img {
  border-radius: var(--radius-sm);
}
.project-single-body figure { margin: 1.6rem 0; }

/* Reszponzív videó-beágyazás */
.project-video {
  margin-top: 2rem;
}
.project-video iframe,
.project-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
}
