/* ===== Tokens ===== */
:root {
  --bg: #d7d2c7;
  --ink: #453b37;
  --muted: #988e87;
  --muted-30: rgba(69, 59, 55, 0.18);
  --muted-15: rgba(69, 59, 55, 0.1);
  --bg-tint: color-mix(in srgb, var(--ink) 6%, var(--bg));
  --bg-tint-strong: color-mix(in srgb, var(--ink) 10%, var(--bg));
  --on-dark-muted: rgba(215, 210, 199, 0.6);
  --on-dark-line: rgba(215, 210, 199, 0.18);

  --nav-h: 72px;
  --container-w: 1400px;
  --edge: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(4.5rem, 4rem + 3vw, 7.5rem);

  --fs-h1: clamp(2rem, 1.5rem + 1.8vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.55rem + 1.6vw, 2.875rem);
  --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-eyebrow: 0.75rem;
  --fs-caption: 0.8125rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Gilroy", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 3vw, 4rem);
}

.section-head h1,
.section-head h2 { font-size: var(--fs-h2); line-height: 1.12; }

.section-head p {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  color: var(--ink);
  max-width: 38rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--muted-30); }

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.nav-logo-img { height: 45px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a { padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav-links a:hover { border-color: var(--ink); }
.nav-links a.is-active { border-color: var(--ink); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-manager-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--muted-30);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-manager-link:hover { background: var(--bg-tint); border-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 45;
  padding: 2.5rem var(--edge);
  display: none;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), display 260ms allow-discrete;
}
.nav-mobile-panel.is-open {
  display: flex;
  opacity: 1;
  transform: none;
}
@starting-style {
  .nav-mobile-panel.is-open {
    opacity: 0;
    transform: translateY(-12px);
  }
}
.nav-mobile-panel a { font-size: 1.5rem; font-weight: 600; }
.nav-mobile-panel a.is-active { color: var(--muted); }
.nav-mobile-panel .btn { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .nav-mobile-panel {
    transform: none;
    transition: opacity 200ms ease, display 200ms allow-discrete;
  }
  @starting-style {
    .nav-mobile-panel.is-open { opacity: 0; }
  }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero (asymmetric split) ===== */
.hero {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  padding-bottom: var(--section-pad);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-copy { max-width: 34rem; }

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
}

.hero-copy p {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: var(--ink);
  max-width: 34ch;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--muted-30);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 5fr 7fr; column-gap: clamp(2.5rem, 5vw, 5.5rem); }
  .hero-media { aspect-ratio: 4 / 5; }
  .nav-logo-img { height: 55px; }
}

/* ===== Video banner (full-bleed, logo + text over looped video) ===== */
.video-banner {
  position: relative;
  height: clamp(22rem, 30vw + 14rem, 34rem);
  padding-block: 0;
  overflow: hidden;
  color: var(--bg);
}
.video-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding-inline: var(--edge);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.4));
}
.video-banner-logo { height: clamp(64px, 5vw + 40px, 96px); width: auto; }
.video-banner-text {
  max-width: 34ch;
  font-size: var(--fs-lead);
}

/* ===== Featured collection (asymmetric bento) ===== */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tile { display: flex; flex-direction: column; }
.tile-media { position: relative; overflow: hidden; border: 1px solid var(--muted-30); aspect-ratio: 4 / 3; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.035); }
.tile-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; }
.tile-caption h3 { font-size: var(--fs-h3); }
.tile-caption span { font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; }

@media (min-width: 900px) {
  .collection-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.75rem;
  }
  .tile--large { grid-row: 1 / 3; }
  .tile--large .tile-media { aspect-ratio: auto; height: 100%; min-height: 26rem; }
}

/* ===== Brand philosophy (full-bleed editorial statement) ===== */
.philosophy { background: var(--bg-tint); }
.philosophy-inner { max-width: 46rem; }
.philosophy h1,
.philosophy h2 {
  font-size: clamp(1.75rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.14;
}
.philosophy p {
  margin-top: 1.75rem;
  font-size: var(--fs-lead);
  max-width: 40rem;
  color: var(--ink);
}

/* ===== Materials filmstrip (horizontal scroll-snap) ===== */
.materials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filmstrip-nav { display: flex; gap: 0.5rem; }
.filmstrip-nav button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.filmstrip-nav button:hover { background: var(--ink); color: var(--bg); }

.filmstrip {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.filmstrip::-webkit-scrollbar { display: none; }

.filmstrip-item {
  flex: 0 0 clamp(230px, 30vw, 320px);
  scroll-snap-align: start;
}
.filmstrip-item .tile-media { aspect-ratio: 3 / 4; }
.filmstrip-item .tile-caption { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.filmstrip-item .tile-caption span { color: var(--muted); }

/* ===== Product categories (index list) ===== */
.index-list { border-top: 1px solid var(--muted-30); margin-top: clamp(2.5rem, 3vw, 3.5rem); }
.index-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--muted-30);
}
.index-num { font-size: 1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-row h3 { font-size: var(--fs-h3); }
.index-row p { margin-top: 0.4rem; color: var(--muted); max-width: 46ch; font-size: 0.9375rem; }
.index-arrow { font-size: 1.25rem; color: var(--muted); transition: transform 0.25s ease; }
.index-row:hover .index-arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .index-row { grid-template-columns: 2.5rem 1fr; }
  .index-arrow { display: none; }
}

/* ===== Showroom / contact (form panel) ===== */
.showroom { background: var(--bg-tint); }
.showroom-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.showroom-info h1,
.showroom-info h2 { font-size: var(--fs-h2); line-height: 1.12; max-width: 20ch; }
.showroom-info p { margin-top: 1.25rem; font-size: var(--fs-lead); max-width: 32ch; }

.showroom-details { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.showroom-details dt { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.showroom-details dd { margin: 0.15rem 0 0; font-size: 1rem; }

.showroom-form {
  background: var(--bg);
  border: 1px solid var(--muted-30);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.field input,
.field textarea {
  border: 1px solid var(--muted);
  background: var(--bg);
  padding: 0.85rem 1rem;
  border-radius: 0;
  font-size: 0.9375rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--muted-15);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field-hint { font-size: 0.8125rem; color: var(--muted); }

.showroom-form .btn { align-self: flex-start; margin-top: 0.5rem; }

@media (min-width: 900px) {
  .showroom-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
}

/* ===== Legal pages (privacy / cookies / terms) ===== */
.legal-page .section-head { margin-bottom: clamp(2rem, 2.5vw, 3rem); }
.section-head .legal-updated {
  margin-top: 0.75rem;
  font-size: var(--fs-caption);
  color: var(--muted);
  max-width: none;
}

.legal-content { max-width: 50rem; }
.legal-content > * + * { margin-top: 1.15rem; }

.legal-content h1,
.legal-content h2 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  margin-top: 2.5rem;
}
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
}
.legal-content > *:first-child { margin-top: 0; }

.legal-content ul,
.legal-content ol { padding-left: 1.25rem; }
.legal-content ul li { list-style: disc; }
.legal-content li + li { margin-top: 0.5rem; }

.legal-content a { text-decoration: underline; text-underline-offset: 0.15em; }
.legal-content a:hover { color: var(--muted); }
.legal-content strong { font-weight: 600; }

/* ===== Footer (dark, single deliberate inversion) ===== */
.site-footer { background: var(--ink); color: var(--bg); padding-block: clamp(3.5rem, 5vw, 5rem) 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
}

.footer-brand { max-width: 22rem; }
.footer-brand .nav-logo { font-size: 1.375rem; }
.footer-brand p { margin-top: 1rem; color: var(--on-dark-muted); font-size: 0.9375rem; }

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.9375rem; transition: opacity 0.2s ease; opacity: 0.92; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }

.footer-bottom {
  margin-top: clamp(3rem, 4vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-credit { opacity: 0.75; transition: opacity 0.2s ease; }
.footer-credit:hover { opacity: 1; text-decoration: underline; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ===== Notices (form feedback) ===== */
.notice-stack { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.notice {
  border: 1px solid var(--muted-30);
  border-left: 3px solid var(--ink);
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  background: var(--bg-tint);
}
.notice--error { border-left-color: var(--muted); }

/* ===== Text link (inline, non-button CTA) ===== */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.15rem;
  transition: opacity 0.2s ease;
}
.text-link:hover { opacity: 0.7; }

/* ===== Teaser split (homepage previews) ===== */
.teaser-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.teaser-copy { max-width: 30rem; }
.teaser-copy h2 { font-size: var(--fs-h2); line-height: 1.14; }
.teaser-copy p { margin-top: 1rem; font-size: var(--fs-lead); }
.teaser-media .tile-media { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .teaser-split { grid-template-columns: 6fr 6fr; column-gap: 3rem; }
  .teaser-split.is-reversed .teaser-media { order: 2; }
  .teaser-split.is-reversed .teaser-copy { order: 1; }
}

/* ===== CTA banner (reusable include) ===== */
.cta-banner { background: var(--bg-tint); }
.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.cta-banner-copy h2 { font-size: var(--fs-h2); line-height: 1.14; max-width: 20ch; }
.cta-banner-copy p { margin-top: 0.75rem; font-size: var(--fs-lead); max-width: 32ch; }

@media (min-width: 700px) {
  .cta-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; }
}

/* ===== Gallery grid (Referanslarımız) ===== */
.gallery-grid {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.gallery-grid figcaption { margin-top: 1rem; }
.gallery-grid figcaption h3 { font-size: var(--fs-h3); }
.gallery-grid figcaption span { display: block; margin-top: 0.25rem; font-size: var(--fs-caption); color: var(--muted); }
.gallery-grid .tile-media { aspect-ratio: 4 / 5; }

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid figure:nth-child(1) .tile-media { aspect-ratio: 4 / 5; }
  .gallery-grid figure:nth-child(2) .tile-media { aspect-ratio: 3 / 4; }
  .gallery-grid figure:nth-child(3) .tile-media { aspect-ratio: 4 / 3; }
  .gallery-grid figure:nth-child(4) .tile-media { aspect-ratio: 4 / 5; }
}

/* ===== Map embed (İletişim, Leaflet) ===== */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--muted-30);
  background: var(--bg-tint);
  filter: grayscale(75%) sepia(12%) saturate(120%) brightness(1.03) contrast(1.03);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-marker {
  width: 14px;
  height: 14px;
  background: var(--ink);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--ink);
  border-radius: 0;
}

/* ===== Floating actions (WhatsApp, call) ===== */
.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 44;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.floating-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.floating-btn:hover { background: var(--bg); color: var(--ink); border-color: var(--muted-30); }
.floating-btn:active { transform: scale(0.96); }
.floating-btn svg { width: 22px; height: 22px; }
.floating-btn i { font-size: 20px; line-height: 1; }

@media (max-width: 640px) {
  .floating-actions { right: 1rem; bottom: 1rem; gap: 0.6rem; }
  .floating-btn { width: 44px; height: 44px; }
}

/* ===== Section rhythm ===== */
section { padding-block: var(--section-pad); }

/* ===== Detail pages (Çalışma / Referans) ===== */
.detail-back { margin-top: 0; }

.detail-head {
  margin-top: clamp(1.5rem, 2vw, 2.25rem);
  max-width: 40rem;
}
.detail-head h1 { font-size: var(--fs-h1); line-height: 1.05; }
.detail-meta { margin-top: 0.75rem; font-size: var(--fs-lead); color: var(--muted); }

.detail-cover {
  margin-top: clamp(2rem, 3vw, 3rem);
}
.detail-cover .tile-media { aspect-ratio: 16 / 9; border: 1px solid var(--muted-30); }

.detail-copy {
  margin-top: clamp(1.75rem, 2.5vw, 2.5rem);
  max-width: 42rem;
  font-size: var(--fs-lead);
}

.detail-gallery {
  margin-top: clamp(2.5rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail-gallery-item { display: block; overflow: hidden; border: 1px solid var(--muted-30); aspect-ratio: 4 / 3; }
.detail-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.detail-gallery-item:hover img { transform: scale(1.04); }

@media (min-width: 700px) {
  .detail-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(30, 25, 23, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(215, 210, 199, 0.12); }

.lightbox-prev, .lightbox-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  border: 1px solid rgba(215, 210, 199, 0.4);
  background: rgba(30, 25, 23, 0.4);
  font-size: 1.75rem;
  line-height: 1;
  z-index: 1;
  transition: background 0.2s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(215, 210, 199, 0.12); }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-overlay.has-multiple .lightbox-prev,
.lightbox-overlay.has-multiple .lightbox-next { display: flex; }

.lightbox-thumbs {
  display: none;
  flex: 0 0 auto;
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.25rem;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-overlay.has-multiple .lightbox-thumbs { display: flex; }

.lightbox-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 1px solid transparent;
  opacity: 0.55;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb:hover { opacity: 0.85; }
.lightbox-thumb.is-active { opacity: 1; border-color: var(--bg); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-thumb { width: 48px; height: 36px; }
}
