/* ── RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --clr-bg:        #0e0d0c;
  --clr-surface:   #161412;
  --clr-surface-2: #1e1b18;
  --clr-border:    rgba(255,255,255,0.08);
  --clr-text:      #e8e2d9;
  --clr-text-muted:#9a9086;
  --clr-text-dim:  #5c5550;
  --clr-gold:      #c8a96e;
  --clr-gold-light:#dfc090;
  --clr-gold-dim:  rgba(200,169,110,0.15);
  --clr-white:     #ffffff;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  /* Spacing */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  64px;
  --sp-xl:  96px;
  --sp-2xl: 140px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.7s;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* ── UTILITY ──────────────────────────────────────── */
.section {
  padding: var(--sp-xl) var(--sp-md);
  max-width: 1280px;
  margin-inline: auto;
}

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-sm);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
}

.section__title em {
  font-style: italic;
  color: var(--clr-gold);
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  padding: calc(96px + var(--sp-lg)) var(--sp-md) var(--sp-xl);
}

.page-shell__card {
  max-width: 860px;
  margin-inline: auto;
  background: rgba(22, 20, 18, 0.82);
  border: 1px solid var(--clr-border);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.page-shell__content > * + * {
  margin-top: var(--sp-sm);
}

.page-shell__content p,
.page-shell__content li {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.page-shell__content a {
  color: var(--clr-gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 169, 110, 0.45);
  text-underline-offset: 0.2em;
}

.page-shell__content strong {
  color: var(--clr-white);
  font-weight: 500;
}

.page-shell__content ul {
  padding-left: 1.2rem;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gold);
  transform: translateX(-105%);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}

.btn:hover::before { transform: translateX(0); }
.btn > * { position: relative; z-index: 1; }
.btn span, .btn { position: relative; }

.btn--dark {
  background: var(--clr-gold);
  color: var(--clr-bg);
  border-color: var(--clr-gold);
}
.btn--dark::before { background: var(--clr-gold-light); }

.btn--light {
  background: var(--clr-white);
  color: var(--clr-bg);
  border-color: var(--clr-white);
}
.btn--light::before { background: var(--clr-gold-light); }
.btn--light:hover { color: var(--clr-bg); }

.btn--outline-light {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-light::before { background: rgba(255,255,255,0.1); }

.btn--full { width: 100%; justify-content: center; }

/* ── ANIMATIONS ───────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim {
    animation: fadeUp 1s var(--ease) both;
    animation-delay: var(--d, 0s);
  }

  .hero__slide.is-active .hero__bg-img {
    animation: heroZoom 12s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  }

  .hero__scroll {
    animation: fadeIn 1s 1s var(--ease) both;
  }

  .hero__scroll-line {
    animation: scrollPulse 2.2s ease-in-out infinite;
    transform-origin: top;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroZoom {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.22) translate(-2%, -1.5%);
  }
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(14, 13, 12, 0.98);
  padding: 18px 48px;
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav__logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav__logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
  transition: height 0.4s ease;
}

.nav.scrolled .nav__logo img {
  height: 42px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--clr-gold);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover { color: var(--clr-white); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  color: var(--clr-gold) !important;
  border: 1px solid var(--clr-gold) !important;
  padding: 8px 22px;
}
.nav__cta:hover { background: var(--clr-gold); color: var(--clr-bg) !important; }
.nav__cta::after { display: none !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--clr-white);
  transition: all 0.35s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s var(--ease), visibility 0.85s;
  z-index: 0;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    160deg,
    rgba(14,13,12,0.75) 0%,
    rgba(14,13,12,0.55) 50%,
    rgba(14,13,12,0.82) 100%
  );
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.hero__dot.is-active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  transform: scale(1.25);
}

.hero__dot:hover {
  border-color: var(--clr-gold);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--sp-md);
  max-width: 780px;
}

.hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-sm);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--clr-white);
  margin-bottom: var(--sp-md);
}

.hero__title em {
  font-style: italic;
  color: var(--clr-gold);
}

.hero__sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(232,226,217,0.8);
  margin-bottom: var(--sp-md);
}

.hero__actions {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: var(--clr-gold);
}

/* ── ABOUT ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  padding-block: var(--sp-2xl);
}

.about__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 680px;
  cursor: pointer;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%) contrast(1.05);
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--clr-gold);
  color: var(--clr-bg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__badge-year {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.about__badge-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.about__text { padding-left: var(--sp-md); }

.about__text p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
  line-height: 1.8;
}

.about__quote {
  font-family: var(--font-serif) !important;
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--clr-text) !important;
  border-left: 2px solid var(--clr-gold);
  padding-left: var(--sp-sm);
  margin-block: var(--sp-md) !important;
  line-height: 1.6 !important;
}

/* ── SERVICES ──────────────────────────────────────── */
.services {
  padding-block: var(--sp-2xl);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.services__head {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--clr-surface);
}

.service-card__img-wrap {
  width: 100%; height: 100%;
  transition: transform 0.7s var(--ease);
}

.service-card:hover .service-card__img-wrap {
  transform: scale(1.06);
}

.service-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) grayscale(15%);
  transition: filter 0.7s ease;
}

.service-card:hover .service-card__img-wrap img {
  filter: brightness(0.5) grayscale(0%);
}

.service-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-md) var(--sp-sm);
  background: linear-gradient(to top, rgba(14,13,12,0.95) 0%, transparent 100%);
  transform: translateY(0);
}

.service-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--clr-white);
  margin-bottom: 6px;
}

.service-card__body p {
  font-size: 0.82rem;
  color: rgba(232,226,217,0.7);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s ease;
  opacity: 0;
}

.service-card:hover .service-card__body p {
  max-height: 100px;
  opacity: 1;
}

/* ── PORTFOLIO ──────────────────────────────────────── */
.portfolio {
  padding-block: var(--sp-2xl);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.portfolio__head {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-xs);
}

.portfolio__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--clr-surface);
}

.portfolio__item--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.portfolio__item--wide {
  grid-column: span 1;
}

.portfolio__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s ease;
  filter: grayscale(20%) brightness(0.85);
}

/* Erstes (tall) Portfolio-Bild: Crop so, dass der Kopf oben nicht abgeschnitten wird */
.portfolio__item--centered-head img {
  object-position: center 15%;
}

.portfolio__item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(1);
}

.portfolio__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,13,12,0);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-sm);
  transition: background 0.4s ease;
}

.portfolio__item:hover .portfolio__item-overlay {
  background: rgba(14,13,12,0.35);
}

.portfolio__item-overlay span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--clr-white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.portfolio__item:hover .portfolio__item-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ── QUOTE STRIP ────────────────────────────────────── */
.quote-strip {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
}

.quote-strip__inner blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--clr-white);
}

.quote-strip__inner blockquote em {
  color: var(--clr-gold);
  font-style: italic;
}

.quote-strip__inner cite {
  display: block;
  margin-top: var(--sp-sm);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  font-style: normal;
}

/* ── CONTACT ────────────────────────────────────────── */
.contact {
  padding-block: var(--sp-2xl);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.contact__info .section__title { margin-bottom: var(--sp-sm); }

.contact__info p {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
}

.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.contact__details svg {
  width: 18px; height: 18px;
  color: var(--clr-gold);
  flex-shrink: 0;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: var(--sp-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 0;
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  width: 100%;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--clr-text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-gold);
  background: var(--clr-bg);
}

.form__success {
  display: none;
  font-size: 0.85rem;
  color: var(--clr-gold);
  text-align: center;
  padding: var(--sp-xs);
  border: 1px solid var(--clr-gold-dim);
  background: var(--clr-gold-dim);
}

.form__success.visible { display: block; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.96) 0%, rgba(22, 20, 18, 1) 100%);
  border-top: 1px solid var(--clr-border);
  padding: clamp(32px, 4vw, 48px) var(--sp-md);
}

.footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding-top: 8px;
}

.footer__logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.footer__logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  flex: 1 1 260px;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
}

.footer__nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__nav a:hover {
  color: var(--clr-gold);
  transform: translateY(-1px);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .about__text { padding-left: 0; }
  .about__img-wrap { max-height: 500px; margin-inline: auto; max-width: 420px; width: 100%; }
  .about__badge { right: 0; bottom: -16px; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio__item--tall { grid-row: span 1; aspect-ratio: 1; }
}

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }
  .nav.scrolled { padding: 14px 24px; }
  .nav__logo img { height: 42px; }
  .nav.scrolled .nav__logo img { height: 34px; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--clr-bg);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav__links.open { opacity: 1; pointer-events: all; }
  .nav__links a { font-size: 0.9rem; }
  .nav__burger { display: flex; z-index: 10; }

  .hero__actions { flex-direction: column; align-items: center; }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-sm);
  }
  .footer__copy { text-align: center; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__item--tall { aspect-ratio: 1; }
}

/* ── LIGHTBOX ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.92);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.lightbox__figure {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: calc(88vh - 56px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  background: transparent;
}

.lightbox__img.is-loaded {
  opacity: 1;
}

.lightbox__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--clr-text);
  letter-spacing: 0.02em;
}

.lightbox__counter {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  white-space: nowrap;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--clr-white);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.lightbox__close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

@media (max-width: 768px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .lightbox__caption {
    font-size: 0.95rem;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
}

