:root {
  /* Default palette: Black & White */
  --bg: #f5f5f5;
  --bg-soft: #ebebeb;
  --bg-mid: #d4d4d4;
  --ink: #111111;
  --ink-soft: #555555;
  --rust: #111111;
  --rust-deep: #000000;
  --white: #ffffff;
  --card: #ffffff;
  --line: #cccccc;
  --accent: #111111;
  --bg-color: #f5f5f5;
  --text-color: #111111;
  --bg-about: #ffffff;
}

/* ── Palette: Perseus Gradient ──────────────────────── */
[data-palette="perseus"] {
  --bg: #DFF6DF;
  --bg-soft: #B6FBD3;
  --bg-mid: #AFF1D6;
  --ink: #1a4a52;
  --ink-soft: #2d6b7a;
  --rust: #79D6E6;
  --rust-deep: #5ab4c4;
  --card: #ffffff;
  --line: #AFF1D6;
  --accent: #79D6E6;
  --bg-color: #DFF6DF;
  --text-color: #1a4a52;
  --bg-about: #DFF6DF;
}

/* ── Palette: Warm Mediterranean ────────────────────── */
[data-palette="warm"] {
  --bg: #d8c3a5;
  --bg-soft: #e2d2b8;
  --bg-mid: #c4a882;
  --ink: #556b2f;
  --ink-soft: #6b8240;
  --rust: #c1653e;
  --rust-deep: #a6532f;
  --card: #ffffff;
  --line: #c2ad8a;
  --accent: #c1653e;
  --bg-color: #d8c3a5;
  --text-color: #556b2f;
  --bg-about: #e2d2b8;
}


/* ── Palette: Deep Teal ─────────────────────────────── */
[data-palette="teal"] {
  --bg: #eaf6f5;
  --bg-soft: #cdeae8;
  --bg-mid: #16636F;
  --ink: #373E48;
  --ink-soft: #858383;
  --rust: #1B8C81;
  --rust-deep: #16636F;
  --card: #ffffff;
  --line: #B2B0B0;
  --accent: #1B8C81;
  --bg-color: #eaf6f5;
  --text-color: #373E48;
  --bg-about: #ffffff;
}

/* ── Dark mode — B&W (default) ──────────────────────── */
[data-theme="dark"] {
  --bg: #111111;
  --bg-soft: #1e1e1e;
  --bg-mid: #2a2a2a;
  --ink: #f0f0f0;
  --ink-soft: #aaaaaa;
  --rust: #ffffff;
  --rust-deep: #dddddd;
  --card: #1e1e1e;
  --line: #444444;
  --accent: #ffffff;
  --bg-color: #111111;
  --text-color: #f0f0f0;
  --bg-about: #1e1e1e;
}

/* ── Dark mode — Perseus ────────────────────────────── */
[data-theme="dark"][data-palette="perseus"] {
  --bg: #0d2d35;
  --bg-soft: #1a3d44;
  --bg-mid: #1e4a52;
  --ink: #DFF6DF;
  --ink-soft: #B6FBD3;
  --bg-color: #0d2d35;
  --text-color: #DFF6DF;
  --card: #1a3d44;
  --line: #2d6b7a;
  --bg-about: #1a3d44;
}

/* ── Dark mode — Warm ───────────────────────────────── */
[data-theme="dark"][data-palette="warm"] {
  --bg: #1a180f;
  --bg-soft: #2a2718;
  --bg-mid: #3a3420;
  --ink: #e2d2b8;
  --ink-soft: #c2ad8a;
  --card: #2a2718;
  --line: #4a4232;
  --bg-color: #1a180f;
  --text-color: #e2d2b8;
  --bg-about: #2a2718;
}


/* ── Dark mode — Deep Teal ──────────────────────────── */
[data-theme="dark"][data-palette="teal"] {
  --bg: #0d1f22;
  --bg-soft: #16303a;
  --bg-mid: #1e4a52;
  --ink: #d0eeec;
  --ink-soft: #B2B0B0;
  --card: #16303a;
  --line: #2d5a60;
  --bg-color: #0d1f22;
  --text-color: #d0eeec;
  --bg-about: #16303a;
}
.about-container,
.content-wrapper,
.contact-wrapper,
.footer-container {
  max-width: 100%;
  padding: 0 2rem;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', 'Barlow', sans-serif;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 48px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background: var(--bg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] .navbar.scrolled {
  background: var(--bg);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-links-left, .nav-links-right {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}
.nav-links-left { justify-content: flex-start; }
.nav-links-right { justify-content: flex-end; }
.nav-links-left a, .nav-links-right a {
  color: var(--white);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.navbar.scrolled .nav-links-left a,
.navbar.scrolled .nav-links-right a {
  color: var(--ink);
}
.nav-links-left a::after,
.nav-links-right a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--rust);
  transition: width 0.25s ease;
}
.nav-links-left a:hover::after,
.nav-links-right a:hover::after { width: 100%; }
.nav-links-left a:hover,
.nav-links-right a:hover { color: var(--rust); }

.nav-monogram { display: flex; align-items: center; justify-content: center; }
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}
.navbar.scrolled .nav-logo-img { filter: none; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 0;
}
.nav-controls button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  transition: color 0.2s;
}
.navbar.scrolled .nav-controls button { color: var(--ink); }
.nav-controls button:hover { color: var(--rust); }

/* Mobile nav */
.nav-mobile {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg);
  flex-direction: column;
  gap: 0;
}
.nav-mobile.show { display: flex; }
.nav-mobile li a {
  display: block;
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile li a:hover { color: var(--rust); background: var(--bg-soft); }

.nav-button,
.category-button,
#theme-toggle {
  min-height: 35px;
  min-width: 35px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#theme-toggle i {
  transition: color 0.3s ease, transform 0.3s ease;
  color: inherit;
}

#theme-toggle:hover i {
  transform: rotate(180deg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gallery {
  columns: 3;
  column-gap: 1rem;
  padding: 2rem;
}

.gallery-item {
  position: relative;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: #1a1a1a;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05); /* Nice little zoom on hover */
}

.caption {
  position: absolute;
  bottom: 10px;
  left: 220px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

.views {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.9rem;
}
.pin {
  position: absolute;
  top: 10px;
  right: 10px;
  color: rgb(255, 255, 255);
  font-size: 1.2rem;
}

.CameraInfo {
  position: absolute;
  bottom: 465px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.9rem;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  display: flex;
  gap: 2rem;
  background-color: rgb(255, 255, 255); /* ✅ Use dynamic theme variable */
  color: rgba(5, 5, 5, 0.8); /* ✅ Match theme text */
  padding: 2rem;
  border-radius: 10px;
  max-width: 90%;
  max-height: 80%;
  overflow: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox-info {
  flex: 1;
  color: #000000;
  font-size: 1rem;
  line-height: 1.5;
}

.lightbox-map {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s;
}

.lightbox-map:hover {
  transform: scale(1.05);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}

/* ── Lightbox nav arrows ─────────────────────────────────────────────────── */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.2s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ── Lightbox info panel ─────────────────────────────────────────────────── */
.lb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.lb-header h3 { margin: 0; flex: 1; min-width: 0; }

.lb-like-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
  font-family: inherit;
}
.lb-like-btn:hover { border-color: var(--rust); color: var(--rust); }
.lb-like-btn.liked { border-color: var(--rust); color: var(--rust); }
.lb-like-btn.liked #lb-like-icon { font-weight: 900; }

.lb-location { display: flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; color: #555; margin: 0 0 0.5rem; }

.lb-description {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  margin: 0 0 0.8rem;
  font-style: italic;
}
.lb-description:empty { display: none; }

.lb-views { display: none; font-size: 0.8rem; color: #888; margin: 0 0 0.6rem; }
.is-admin .lb-views { display: block; }

.gallery-item img.portrait {
  width: 100%;
  height: auto;
  object-fit: contain; /* instead of cover */
  border-radius: 10px;
  background-color: red;
  display: block;
}

.nagishli-trigger-icon {
  position: fixed; /* ensure it stays in place */
  bottom: 100px; /* or wherever it's supposed to sit */
  right: 1px;
  z-index: 9999 !important; /* force it to be above everything */
}

/* slide */
.slide-content {
  position: relative;
}

.slide-content img {
  width: 100%;
  display: block;
}

.slide-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: white;
  padding: 10px 10px;
  border-radius: 5px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slider {
  position: relative;
  width: 100vw; /* ✅ fill full viewport width */
  max-width: none; /* ✅ override any inherited max-width */
  height: 710px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.slider-container {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
}

/* Ken Burns — 4 variants applied cyclically to each slide */
@keyframes kb-zoom-in {
  from { transform: scale(1);    }
  to   { transform: scale(1.12); }
}
@keyframes kb-zoom-out {
  from { transform: scale(1.12) translate(2%, 1%); }
  to   { transform: scale(1)    translate(0,   0); }
}
@keyframes kb-pan-right {
  from { transform: scale(1.1) translateX(-4%); }
  to   { transform: scale(1.1) translateX(4%);  }
}
@keyframes kb-pan-left {
  from { transform: scale(1.1) translateX(4%);  }
  to   { transform: scale(1.1) translateX(-4%); }
}

.slide:nth-child(4n+1).active img { animation: kb-zoom-in   6s ease-out    forwards; }
.slide:nth-child(4n+2).active img { animation: kb-pan-right 6s ease-in-out forwards; }
.slide:nth-child(4n+3).active img { animation: kb-zoom-out  6s ease-in     forwards; }
.slide:nth-child(4n+4).active img { animation: kb-pan-left  6s ease-in-out forwards; }

/* Controls Wrapper */
.controls {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
}
/* Navigation Buttons */
.nav-button {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0px;
  cursor: pointer;
  max-width: 10px;
  max-height: 10px;
  font-size: 18px;
  transition: background 0.2s;
}
.nav-button:hover {
  background: rgba(7, 7, 7, 0.9);
}
/* Progress Bar Container */
.progress-container {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transition: width linear;
}

/* bubbling */
.category-bubbles-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.short-explain h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.short-explain p {
  font-size: 1rem;
  color: #6b7280; /* subtle gray */
  margin-bottom: 1.5rem;
}
.category-button {
  padding: 10px 20px;
  border: none;
  margin: auto;
  border-radius: 20px;
  background-color: #333;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.5s, color 0.5s;
}

.category-button:hover {
  background: var(--rust);
  color: white;
  opacity: 0.9;
  transition: 1.3s;
}
.category-button.active {
  background: var(--rust);
  color: white;
  transition: background 0.5s, color 0.5s;
}

/* about section */
.about-me {
  background: #ffffff;
  padding: 7rem 5vw;
}
[data-theme="dark"] .about-me {
  background: var(--bg-soft);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-photos-stack {
  position: relative;
  height: 560px;
}

.about-photo-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 50%;
  object-fit: cover;
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.about-photo-front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 72%;
  height: 76%;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.about-heading-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.about-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--rust);
  flex-shrink: 0;
}

.about-heading-row h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.02em;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-text p {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 2.2;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photos-stack {
    height: 360px;
  }
  .about-photo-back {
    width: 55%;
    height: 55%;
  }
  .about-photo-front {
    width: 70%;
    height: 78%;
  }
}
.skills-logos img {
  width: 60px; /* ↓ adjust this value */
  height: auto;
  filter: grayscale(30%);
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skills-logos img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#hamburger {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
}

/* header of contant me */
.form-heading {
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 0rem; /* ✅ reduced spacing */
  max-width: 100%; /* ✅ allow full width on mobile */
  padding: 0 1rem; /* ✅ small padding for text wrapping */
  color: var(--text-color);
}

.form-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.2rem; /* ✅ small spacing between h2 and p */
}

.form-heading p {
  font-size: 1rem;
  color: #a0a0a0;
  word-wrap: break-word; /* ✅ wrap long words */
  overflow-wrap: break-word; /* ✅ fallback */
  max-width: 600px; /* ✅ optional limit */
  margin: 0 auto; /* ✅ center paragraph block */
  padding: 0 0rem; /* ✅ mobile-side padding */
}

/* contact me area */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* small side padding on mobile */
}

/* the contact me section */
.contact-section {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 4rem 2rem;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.1rem; /* minimal gap between children */
  min-height: 300px; /* increase height */
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.1rem; /* minimal margin */
}

.contact-info p {
  font-size: 1rem;
  color: #a0a0a0;
  margin-bottom: 0.2rem; /* minimal margin */
  text-align: center;
}

.info-block {
  margin-bottom: 1rem;
}

.info-block strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}

.social-icons a {
  margin-left: 10px;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--rust);
}

.contact-form {
  flex: 1 1 390px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: white;
  color: #333;
  font-family: inherit;
  direction: rtl;
}

.contact-form button {
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #555;
}

/* footer area */
.site-footer {
  background-color: var(--bg-soft);
  color: var(--ink);
  padding: 3rem 2rem;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  font-size: 11px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
}

.footer-column p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--rust);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-bottom p {
  margin: 0;
}

.social-icons a {
  margin-left: 1rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--rust);
}

footer hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* software skills  */
.software-skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-color);
}

.software-skills h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.skills-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.skills-logos img {
  width: 60px;
  height: auto;
  filter: grayscale(30%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skills-logos img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-icons {
    margin-top: 1rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
}

/* phone support */
@media (max-width: 768px) {
  #hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--ink);
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 1;
    z-index: 9999;
  }

  #hamburger i {
    color: var(--text-color);
    font-size: 2rem;
    display: inline-block;
  }
  .form-heading {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0rem;
    max-width: 400px;
    margin-inline: auto;
    color: var(--text-color);
  }

  .form-heading h2 {
    font-size: 2rem;
    margin-bottom: 0rem;
  }

  .form-heading p {
    font-size: 0.95rem;
    padding: 0 1rem;
    text-align: center;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  .contact-info h2,
  .contact-form button {
    text-align: center;
  }

  .contact-form {
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .contact-info p {
    text-align: center;
  }
  .contact-section {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0rem 0rem;
    text-align: center; /* ✅ Center text for headings too */
  }

  .nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem; /* optional spacing */
  }

  .nav-button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 0px;
    cursor: pointer;
    font-size: 1px;
    size: 1px;
    transition: background 0.2s;
  }
  .nav-button:hover {
    background: rgba(255, 255, 255, 0.9);
  }
  /* Progress Bar Container */
  .progress-container {
    width: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    overflow: hidden;
  }
  .progress-bar {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    transition: width linear;
  }

  .lightbox-map {
    width: 100%;
    height: 120px; /* 👈 Smaller fixed height */
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }

  .navbar {
    padding: 14px 20px;
  }
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  .nav-links-left,
  .nav-links-right > a {
    display: none;
  }

  #theme-toggle i {
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }

  .gallery {
    columns: 2;
    column-gap: 0.75rem;
    padding: 1rem;
  }

  .gallery-item {
    margin-bottom: 0.75rem;
  }

  .caption {
    font-size: 0.5rem;
    left: 100px;
    bottom: 10px;
    display: none;
  }

  .views {
    display: none;
  }

  .CameraInfo {
    margin-top: 4px; /* Tighter spacing on mobile */
    font-size: 0.5rem; /* Slightly smaller */
    bottom: 240px;
    left: 10px;
    display: none;
  }

  .category-bubbles {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center; /* Center the row */
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .category-button {
    padding: 6px 12px; /* Small, compact buttons */
    max-width: 70%;
    font-size: 14px; /* Smaller font */
    border-radius: 10px; /* Pill shape */
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.5s;
    white-space: nowrap; /* Prevents text from breaking into new lines */
  }

  .slider {
    height: 240px;
    max-width: 100%;
  }
  .lightbox-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    background: var(--card);
    opacity: 0.97;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 40vh;
    object-fit: contain;
    border-radius: 10px;
  }

  .lightbox-info {
    font-size: 0.9rem;
    padding: 0.5rem;
    color: #fff;
  }

  .pin {
    font-size: 0.9rem;
    top: 6px;
    right: 6px;
    display: none;
  }

  .close {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
  }
  .pin {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgb(255, 255, 255);
    font-size: 0.6rem;
  }
  .nagishli-trigger-icon {
    position: fixed; /* ensure it stays in place */
    bottom: 100px; /* or wherever it's supposed to sit */
    right: 0px;
    z-index: 9999 !important; /* force it to be above everything */
  }
  .nav-button,
  .category-button,
  #theme-toggle {
    min-height: 0px;
    min-width: 0px;
  }

  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 120px;
    min-width: 120px;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-column h4 {
    font-size: 0.9rem;
  }

  .footer-column li {
    font-size: 0.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Social rail ──────────────────────────────────────── */
.social-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 100;
}
.social-rail a {
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}
.social-rail a:hover { transform: scale(1.15); opacity: 1; }
.social-line {
  width: 1px;
  height: 60px;
  background: var(--rust);
  opacity: 0.5;
  margin-top: 4px;
}
@media (max-width: 900px) { .social-rail { display: none; } }

/* ── Hero section ──────────────────────────────────────── */
.hero-section { position: relative; }
.hero-stats-bar {
  display: none; /* removed */
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 20px 64px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
  z-index: 10;
}
.stat-item { text-align: center; color: var(--white); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.9;
}
@media (max-width: 600px) {
  .hero-stats-bar { gap: 30px; padding: 16px 24px; }
  .stat-num { font-size: 22px; }
}

/* ── Hero overlay ─────────────────────────────────────── */
.slider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  color: white;
  width: 90%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 88px;
  color: var(--rust);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin: 0 0 0.3rem;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

.hero-name.typing {
  border-right: 3px solid var(--rust);
  animation: tw-cursor 0.75s step-end infinite;
}

@keyframes tw-cursor {
  0%, 100% { border-right-color: var(--rust); }
  50%       { border-right-color: transparent; }
}

.hero-name.tw-done {
  animation: tw-fadeout 0.7s ease forwards;
}

@keyframes tw-fadeout {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0.5rem 0 1.8rem;
  opacity: 0.9;
}

.hero-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: none;
  color: var(--white);
  padding: 14px 38px;
  text-decoration: none;
  transition: all 0.3s;
  background: linear-gradient(135deg, #79D6E6 0%, #81E8D9 100%);
  display: inline-block;
  text-shadow: none;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(121,214,230,0.42);
}

.hero-cta:hover {
  background: linear-gradient(135deg, #5ab4c4 0%, #6dd4c4 100%);
  box-shadow: 0 6px 24px rgba(121,214,230,0.55);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero-name { font-size: 3rem; }
  .hero-tagline { font-size: 0.75rem; letter-spacing: 0.2em; }
  .hero-cta { padding: 0.6rem 1.8rem; font-size: 0.9rem; }
  .hero-overlay { bottom: 55px; }
}

/* ── Language toggle button ───────────────────────────── */
#lang-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  min-height: 28px;
  min-width: 36px;
}

.navbar.scrolled #lang-toggle {
  border-color: rgba(0, 0, 0, 0.4);
  color: black;
}

#lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Direction-aware sections ─────────────────────────── */
html[lang="he"] .lang-aware {
  direction: rtl;
  text-align: right;
}

html[lang="en"] .lang-aware {
  direction: ltr;
  text-align: left;
}

html[lang="he"] .about-text {
  direction: rtl;
  text-align: right;
}

html[lang="en"] .about-text {
  direction: ltr;
  text-align: left;
}

html[lang="he"] .contact-form input,
html[lang="he"] .contact-form textarea,
html[lang="he"] .contact-form select {
  direction: rtl;
  text-align: right;
}

html[lang="en"] .contact-form input,
html[lang="en"] .contact-form textarea,
html[lang="en"] .contact-form select {
  direction: ltr;
  text-align: left;
}

/* ── Contact form select ──────────────────────────────── */
.contact-form select {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: white;
  color: #333;
  font-family: inherit;
  cursor: pointer;
}

/* ── How It Works section ─────────────────────────────── */
.how-it-works {
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.how-it-works h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1 1 240px;
  max-width: 290px;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 3.5rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  opacity: 0.75;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #a0a0a0;
}

@media (max-width: 768px) {
  .how-it-works { padding: 3rem 1rem; }
  .how-it-works h2 { font-size: 2.2rem; margin-bottom: 2rem; }
  .step { max-width: 100%; }
}

/* ── Generic hidden utility ───────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Portfolio section — two-level gallery ────────────── */
.portfolio-section {
  padding: 4rem 5vw;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.portfolio-section > .portfolio-intro,
.portfolio-section > .category-grid,
.portfolio-section > .inner-gallery {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-intro {
  margin-bottom: 2.5rem;
}

/* ── Section title with extending divider line ─────────── */
.section-title-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

html[lang="he"] .section-title-row {
  flex-direction: row-reverse;
}

.section-title-row h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Category cover cards grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.category-card-img-wrap {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

.category-no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: 3.5rem;
}

.category-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.category-card:hover .category-card-img-wrap img {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 1.1rem 1rem;
  background: rgba(20, 20, 20, 0.48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: white;
  text-align: center;
  transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
  background: rgba(20, 20, 20, 0.62);
}

.category-card-overlay h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0;
  color: #ffffff;
  text-shadow: none;
}

.category-card-overlay p {
  display: none;
}

.album-card-location {
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

.album-card-desc {
  display: block !important;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
  line-height: 1.4;
  max-width: 160px;
}

/* Unassigned photos below album grid */
.unassigned-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-color, #888);
  opacity: 0.55;
}
.unassigned-divider::before,
.unassigned-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Inner gallery — photo grid inside a category */
.gallery-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

html[lang="he"] .gallery-nav {
  direction: rtl;
}

html[lang="en"] .gallery-nav {
  direction: ltr;
}

html[lang="he"] .back-icon {
  display: inline-block;
  transform: scaleX(-1);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(128, 128, 128, 0.4);
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.back-btn:hover {
  background: rgba(128, 128, 128, 0.15);
  border-color: rgba(128, 128, 128, 0.6);
}

.album-share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
  background: none;
  border: 1px solid rgba(128, 128, 128, 0.4);
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
  white-space: nowrap;
}

.album-share-btn:hover {
  background: rgba(128, 128, 128, 0.15);
  border-color: rgba(128, 128, 128, 0.6);
}

#inner-gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* Responsive */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .category-card-overlay h3 {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .portfolio-section {
    padding: 2rem 1rem;
  }
}

/* ── Blog section ─────────────────────────────────────── */
.blog-section {
  padding: 5rem 5vw;
  background: #ffffff;
}
[data-theme="dark"] .blog-section { background: var(--bg-soft); }

.blog-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

html[lang="he"] .blog-section-inner { direction: rtl; }
html[lang="en"] .blog-section-inner { direction: ltr; }

.blog-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.blog-title-bar h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}

.blog-view-all {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.blog-view-all:hover { opacity: 0.7; }

.blog-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  padding: 0;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

[data-theme="dark"] .blog-card {
  background: var(--card);
}

.blog-card-image {
  display: block;
  text-decoration: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: none;
  border-radius: 0;
  margin: 0;
  max-width: 100%;
}

html[lang="en"] .blog-card-image { margin: 0; }

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

html[lang="he"] .blog-card-content { text-align: right; direction: rtl; }
html[lang="en"] .blog-card-content { text-align: left;  direction: ltr; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blog-tag {
  background: rgba(121, 214, 230, 0.15);
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .blog-tag {
  background: rgba(121, 214, 230, 0.22);
  color: var(--rust);
}

.blog-date {
  font-size: 0.82rem;
  color: #a0a0a0;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--text-color);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--rust); }

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rust);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: gap 0.2s;
}
.blog-read-more:hover { gap: 0.55rem; }

html[lang="he"] .rm-en { display: none !important; }
html[lang="he"] .rm-he { display: inline !important; }
html[lang="en"] .rm-he { display: none !important; }
html[lang="en"] .rm-en { display: inline !important; }

.blog-like-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #aaa;
  padding: 0;
  transition: color 0.2s ease;
}

.blog-like-btn:hover,
.blog-like-btn.liked { color: var(--rust); }

.blog-like-btn i { will-change: transform; }

.blog-like-btn.liked i { animation: pop 0.25s ease; }

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.blog-empty {
  text-align: center;
  color: #a0a0a0;
  padding: 2rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .blog-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .blog-posts { grid-template-columns: 1fr; }
}

/* ── Section visibility ───────────────────────────────── */
.section-hidden { display: none !important; }

/* ── Videos section ───────────────────────────────────── */
.videos-section {
  padding: 5rem 5vw;
  background: var(--bg);
}

.videos-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.videos-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 2.5rem;
}

html[lang="he"] .videos-title { text-align: right; }
html[lang="en"] .videos-title { text-align: left; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px)  { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .videos-grid { grid-template-columns: 1fr; } }

.video-card {
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.video-card-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-card-embed iframe,
.video-card-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-card-title {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.videos-empty {
  text-align: center;
  color: #a0a0a0;
  padding: 2rem;
  font-style: italic;
}

/* ── Date availability checker ────────────────────────── */
.date-checker-section {
  background-color: var(--bg-soft);
  background-image: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date-checker-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--text-color);
}

.date-checker-form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto 2rem;
}

.date-checker-form input {
  flex: 1 1 180px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  direction: rtl;
  text-align: right;
}

html[lang="en"] .date-checker-form input {
  direction: ltr;
  text-align: left;
}

[data-theme="dark"] .date-checker-form input {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

.date-checker-form input:focus {
  border-color: var(--rust);
}

.dc-submit {
  padding: 0.75rem 2rem;
  background: var(--rust);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.dc-submit:hover {
  background: var(--rust-deep);
  transform: translateY(-1px);
}

.dc-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.dc-status {
  width: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
  text-align: center;
}

.dc-status--ok  { color: #2e7d32; }
.dc-status--err { color: #c62828; }

.contact-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.contact-detail {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.contact-detail:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .date-checker-section {
    padding: 2.5rem 1.2rem;
  }

  .date-checker-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 100%;
  }

  .date-checker-form input {
    flex: none;
    width: 100%;
    height: 48px;
    font-size: 1rem;
  }

  .dc-submit {
    flex: none;
    width: 100%;
    height: 52px;
    font-size: 1.05rem;
  }

  .dc-status {
    text-align: center;
  }

  .contact-info-row {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* ── Retro Intro Overlay ─────────────────────────────────────────────────────── */
.retro-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #06040a;
  color: #ffb300;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* TV-off dismissal animation */
.retro-intro.retro-exit {
  animation: retro-tv-off 0.65s ease-in forwards;
  pointer-events: none;
}

@keyframes retro-tv-off {
  0%   { transform: scaleY(1)    scaleX(1);   filter: brightness(1);   opacity: 1; }
  18%  { transform: scaleY(1)    scaleX(1);   filter: brightness(5) saturate(0); opacity: 1; }
  48%  { transform: scaleY(0.04) scaleX(1);   filter: brightness(2);   opacity: 1; }
  78%  { transform: scaleY(0.04) scaleX(0.15);filter: brightness(0.5); opacity: 0.7; }
  100% { transform: scaleY(0)    scaleX(0);   filter: brightness(0);   opacity: 0; }
}

/* Background photo slideshow */
.retro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.retro-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(0.55) sepia(0.4) contrast(1.1) brightness(0.42);
  will-change: opacity;
  animation: retro-slide-fade linear infinite;
}

@keyframes retro-slide-fade {
  0%, 4%    { opacity: 0; }
  12%       { opacity: 1; }
  20%       { opacity: 1; }
  28%, 100% { opacity: 0; }
}

/* Film grain — animated SVG noise tile */
.retro-grain {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  animation: grain-anim 0.14s steps(2) infinite;
}

@keyframes grain-anim {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, -3%); }
  50%  { transform: translate(3%, 5%); }
  75%  { transform: translate(-2%, 4%); }
  100% { transform: translate(5%, -1%); }
}

/* Horizontal scanlines */
.retro-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 4px
  );
}

/* Vignette */
.retro-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.88) 100%);
}

/* Moving VHS tracking shimmer — uses transform so no paint cost */
.retro-tracking {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  top: -60px;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
  background: linear-gradient(
    0deg,
    transparent 0%,
    rgba(255, 200, 80, 0.04) 20%,
    rgba(255, 200, 80, 0.09) 50%,
    rgba(255, 200, 80, 0.04) 80%,
    transparent 100%
  );
  animation: tracking-sweep 7s linear infinite;
}

@keyframes tracking-sweep {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(100vh + 60px)); }
}

/* REC indicator */
.retro-rec {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  z-index: 10;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffb300;
  text-shadow: 0 0 8px #ffb300;
}

.retro-rec-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2200;
  box-shadow: 0 0 6px #ff2200, 0 0 14px #ff2200;
  animation: rec-blink 1.1s step-end infinite;
}

/* Timestamp */
.retro-timestamp {
  position: absolute;
  top: 1.8rem;
  left: 2rem;
  z-index: 10;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #b07800;
  text-shadow: 0 0 6px rgba(176, 120, 0, 0.7);
}

/* Center content */
.retro-main {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.retro-logo {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: bold;
  letter-spacing: 0.4em;
  color: #ffb300;
  text-shadow:
    0 0 10px rgba(255, 179, 0, 0.9),
    0 0 30px rgba(255, 179, 0, 0.5),
    0 0 70px rgba(255, 140, 0, 0.25);
  animation: logo-flicker 9s infinite;
}

.retro-sub {
  font-size: clamp(0.75rem, 2vw, 1.1rem);
  letter-spacing: 0.65em;
  color: #b07800;
  text-shadow: 0 0 10px rgba(176, 120, 0, 0.6);
}

.retro-divider {
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffb300 30%, #ffb300 70%, transparent);
  box-shadow: 0 0 8px rgba(255, 179, 0, 0.6);
}

.retro-prompt {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: #7a5500;
  text-shadow: 0 0 6px rgba(122, 85, 0, 0.7);
  animation: prompt-pulse 2.2s ease-in-out infinite;
}

.retro-blink-char {
  animation: rec-blink 0.85s step-end infinite;
  display: inline-block;
}

/* Bottom bar */
.retro-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #4a3200;
  text-shadow: 0 0 5px rgba(74, 50, 0, 0.8);
}

/* Animations */
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes logo-flicker {
  0%, 92%, 100% { opacity: 1; }
  93%  { opacity: 0.75; }
  94%  { opacity: 1; }
  96%  { opacity: 0.5; }
  97%  { opacity: 0.95; }
}

@keyframes prompt-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════════════════
   Web Stories — circular thumbnail row
════════════════════════════════════════════════════════════════════════ */
.stories-section {
  padding: 4.5rem 5vw;
  background: var(--bg);
}

.blog-section-inner.stories-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stories-row {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
}

/* Individual story thumbnail */
.story-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}
.story-thumb:hover { transform: translateY(-3px); }

/* Gradient ring */
.story-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 160deg, var(--rust, #c1653e) 0%, var(--ink, #556b2f) 55%, var(--rust, #c1653e) 100%);
  transition: box-shadow 0.25s ease;
}
.story-thumb:hover .story-ring {
  box-shadow: 0 0 0 3px var(--bg), 0 4px 18px rgba(0,0,0,0.2);
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--card, #fff);
  background: var(--bg-mid, #ccc);
}

.story-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.story-thumb-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink, #333);
  text-align: center;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.stories-empty {
  text-align: center;
  color: var(--ink-soft, #777);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  padding: 2rem 0;
  width: 100%;
}

@media (max-width: 480px) {
  .stories-row    { gap: 1.2rem; }
  .story-ring     { width: 96px; height: 96px; }
  .story-thumb-label { max-width: 96px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Web Stories — fullscreen viewer
════════════════════════════════════════════════════════════════════════ */
#story-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  overflow: hidden;
  background: #000;
  will-change: transform, opacity;
  /* transform-origin is set dynamically per-click */
}

/* Background image layer — size set dynamically per slide (contain / cover) */
.sv-bg {
  position: absolute;
  inset: 0;
  will-change: filter, transform;
}
.sv-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* overridden in JS per slide */
  object-position: center center; /* overridden in JS per slide */
}

/* Subtle top vignette — only to ensure progress bar + close button are readable */
.sv-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, transparent 18%);
  pointer-events: none;
}

/* ── Progress bar strip ── */
.sv-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 0.55rem 0.75rem 0;
  z-index: 10;
  pointer-events: none;
}

.sv-prog-track {
  flex: 1;
  height: 2.5px;
  background: rgba(255,255,255,0.28);
  border-radius: 2px;
  overflow: hidden;
}

.sv-prog-fill {
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ── Floating text box ── */
.sv-content {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  background: rgba(12, 12, 12, 0.60);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem 1.35rem 1.1rem;
  max-width: min(380px, calc(100% - 2.4rem));
  width: max-content;
  /* default position: bot-center (overridden by data-pos below) */
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
}

.sv-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  color: #fff;
  direction: rtl;
  text-align: right;
}
.sv-headline:empty { display: none; }

.sv-body {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.8rem, 1.7vw, 0.95rem);
  font-weight: 400;
  line-height: 1.62;
  margin: 0;
  color: rgba(255,255,255,0.88);
  direction: rtl;
  text-align: right;
}
.sv-body:empty { display: none; }

/* truncated on mobile */
.sv-body.sv-body-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "read more" link — hidden on desktop, shown only via JS on mobile */
.sv-read-more {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 0.3rem 0 0;
  margin: 0;
  pointer-events: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.3);
  direction: rtl;
  text-align: right;
  width: 100%;
  line-height: 1.5;
  transition: color 0.15s;
}
.sv-read-more:hover { color: rgba(255,255,255,0.9); }

/* ── Actions row (download + share) ── */
.sv-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
  align-items: stretch;
}

/* ── Download link — blur-in → full → fade to 30% ── */
@keyframes sv-dl-reveal {
  0%   { opacity: 0;    filter: blur(8px);  }
  50%  { opacity: 1;    filter: blur(0px);  }
  72%  { opacity: 1;    filter: blur(0px);  }
  100% { opacity: 0.30; filter: blur(0px);  }
}
.sv-download {
  display: block;
  flex: 1;
  padding: 0.42rem 0.85rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
  direction: rtl;
  pointer-events: auto;
  cursor: pointer;
  animation: sv-dl-reveal 3s ease-out forwards;
}
.sv-download:hover { opacity: 1 !important; filter: none !important; }

/* ── Share button ── */
@keyframes sv-share-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 0.75; transform: translateY(0); }
}
.sv-share {
  flex: 1;
  padding: 0.42rem 0.85rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  animation: sv-share-in 0.55s ease-out 0.15s both;
}
.sv-share:hover { opacity: 1 !important; }

#story-viewer[data-theme="light"] .sv-download,
#story-viewer[data-theme="light"] .sv-share {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.18);
  color: #111;
}

/* ── Mobile overrides ── */
@media (max-width: 640px) {
  /* Mobile box position — data-mpos overrides data-pos on narrow screens */
  #story-viewer[data-mpos="top-left"]   .sv-content { top: 3.6rem; bottom: auto; left: 1.2rem;  right: auto; transform: none; }
  #story-viewer[data-mpos="top-center"] .sv-content { top: 3.6rem; bottom: auto; left: 50%;     right: auto; transform: translateX(-50%); }
  #story-viewer[data-mpos="top-right"]  .sv-content { top: 3.6rem; bottom: auto; right: 1.2rem; left: auto;  transform: none; }
  #story-viewer[data-mpos="mid-left"]   .sv-content { top: 50%; bottom: auto; left: 1.2rem;  right: auto; transform: translateY(-50%); }
  #story-viewer[data-mpos="mid-center"] .sv-content { top: 50%; bottom: auto; left: 50%;     right: auto; transform: translate(-50%,-50%); }
  #story-viewer[data-mpos="mid-right"]  .sv-content { top: 50%; bottom: auto; right: 1.2rem; left: auto;  transform: translateY(-50%); }
  #story-viewer[data-mpos="bot-left"]   .sv-content { bottom: 2.8rem; top: auto; left: 1.2rem;  right: auto; transform: none; }
  #story-viewer[data-mpos="bot-center"] .sv-content { bottom: 2.8rem; top: auto; left: 50%;     right: auto; transform: translateX(-50%); }
  #story-viewer[data-mpos="bot-right"]  .sv-content { bottom: 2.8rem; top: auto; right: 1.2rem; left: auto;  transform: none; }
}

/* ── 9 box positions via data-pos on #story-viewer ── */
/* Top row */
#story-viewer[data-pos="top-left"]   .sv-content { top: 3.6rem; bottom: auto; left: 1.2rem; right: auto; transform: none; }
#story-viewer[data-pos="top-center"] .sv-content { top: 3.6rem; bottom: auto; left: 50%;    right: auto; transform: translateX(-50%); }
#story-viewer[data-pos="top-right"]  .sv-content { top: 3.6rem; bottom: auto; right: 1.2rem; left: auto; transform: none; }
/* Middle row */
#story-viewer[data-pos="mid-left"]   .sv-content { top: 50%; bottom: auto; left: 1.2rem;  right: auto; transform: translateY(-50%); }
#story-viewer[data-pos="mid-center"] .sv-content { top: 50%; bottom: auto; left: 50%;     right: auto; transform: translate(-50%,-50%); }
#story-viewer[data-pos="mid-right"]  .sv-content { top: 50%; bottom: auto; right: 1.2rem; left: auto;  transform: translateY(-50%); }
/* Bottom row */
#story-viewer[data-pos="bot-left"]   .sv-content { bottom: 2.8rem; top: auto; left: 1.2rem;  right: auto; transform: none; }
#story-viewer[data-pos="bot-center"] .sv-content { bottom: 2.8rem; top: auto; left: 50%;     right: auto; transform: translateX(-50%); }
#story-viewer[data-pos="bot-right"]  .sv-content { bottom: 2.8rem; top: auto; right: 1.2rem; left: auto;  transform: none; }

/* ── Light theme — bright frosted box ── */
#story-viewer[data-theme="light"] .sv-content {
  background: rgba(255,255,255,0.68);
  border-color: rgba(0,0,0,0.08);
}
#story-viewer[data-theme="light"] .sv-headline,
#story-viewer[data-theme="light"] .sv-body { color: #111; }
#story-viewer[data-theme="light"] .sv-body { color: rgba(0,0,0,0.78); }
#story-viewer[data-theme="light"] .sv-prog-track { background: rgba(0,0,0,0.22); }
#story-viewer[data-theme="light"] .sv-prog-fill  { background: #111; }

/* ── Close button ── */
.sv-close {
  position: absolute;
  top: clamp(2.6rem, 6vw, 3.2rem);
  right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.sv-close:hover { background: rgba(0,0,0,0.65); }

/* ── Invisible tap zones ── */
.sv-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sv-tap-l { left: 0;   width: 30%; }
.sv-tap-c { left: 30%; width: 40%; cursor: default; }
.sv-tap-r { right: 0;  width: 30%; }

/* ── Hide accessibility widget while story is fullscreen ── */
body.sv-open .nagishli-wrapper,
body.sv-open [class*="nagishli"],
body.sv-open [id*="nagishli"] { display: none !important; }

/* ── Pause button ── */
.sv-pause {
  position: absolute;
  top: clamp(2.6rem, 6vw, 3.2rem);
  right: 3.8rem;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.sv-pause:hover             { background: rgba(0,0,0,0.65); opacity: 1; color: #fff; }
#story-viewer.sv-paused .sv-pause { opacity: 1; color: #fff; background: rgba(255,255,255,0.18); }
