/* ─── ARTWORK PAGE — shared styles ───────────────────────────────── */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --cream:       #F5F0E8;
  --cream-dark:  #EDE6D8;
  --sage:        #A8C5A0;
  --sage-light:  #D4E6CE;
  --sage-mist:   #EAF2E7;
  --forest:      #3D5A38;
  --forest-deep: #2A3F25;
  --stone:       #9E8E7E;
  --stone-light: #C8B8A8;
  --charcoal:    #2C2C2C;
  --white:       #FFFFFF;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ─── LANGUAGE TOGGLE ────────────────────────────────────── */
body.lang-en .fr, body.lang-en .ru { display: none !important; }
body.lang-fr .en, body.lang-fr .ru { display: none !important; }
body.lang-ru .fr, body.lang-ru .en { display: none !important; }

/* ─── LANGUAGE SWITCHER ─────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; }
.lang-opt {
  background: none;
  border: 1px solid rgba(255,255,255,0.45);
  border-right: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition);
}
.lang-opt:first-child { border-radius: 20px 0 0 20px; }
.lang-opt:last-child  { border-radius: 0 20px 20px 0; border-right: 1px solid rgba(255,255,255,0.45); }
.lang-opt.active { background: var(--sage); border-color: var(--sage) !important; color: var(--white); }
.lang-opt:not(.active):hover { background: rgba(255,255,255,0.18); color: var(--white); }
.header.scrolled .lang-opt { border-color: var(--stone-light); border-right: none; color: var(--stone); }
.header.scrolled .lang-opt:last-child { border-right: 1px solid var(--stone-light); }
.header.scrolled .lang-opt.active { background: var(--sage); border-color: var(--sage) !important; color: var(--white); }
.header.scrolled .lang-opt:not(.active):hover { background: var(--forest); border-color: var(--forest); color: var(--white); }

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.header-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color var(--transition);
}
.header.scrolled .header-logo { color: var(--forest); }
.header-logo em {
  color: var(--sage);
  font-style: italic;
}
.header.scrolled .header-logo em { color: var(--sage); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header.scrolled .header-nav a { color: var(--stone); }
.header-nav a:hover { color: var(--white); }
.header.scrolled .header-nav a:hover { color: var(--forest); }
.back-arrow { flex-shrink: 0; }
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.header.scrolled .lang-btn {
  border-color: var(--stone-light);
  color: var(--stone);
}
.lang-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.header.scrolled .lang-btn:hover {
  background: var(--sage-mist);
  color: var(--forest);
}

/* ─── HERO ───────────────────────────────────────────────── */
.artwork-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--forest-deep);
}
.artwork-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.artwork-hero-img.loaded { transform: scale(1); }
.artwork-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 63, 37, 0.15) 0%,
    rgba(42, 63, 37, 0.55) 100%
  );
}
.artwork-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 56px 64px 52px;
}
.artwork-breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.artwork-breadcrumb a {
  color: var(--sage-light);
  transition: color var(--transition);
}
.artwork-breadcrumb a:hover { color: var(--white); }
.artwork-breadcrumb span { opacity: 0.5; }
.artwork-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.artwork-hero-title em {
  font-style: italic;
  color: var(--sage-light);
}

/* ─── DESCRIPTION ────────────────────────────────────────── */
.artwork-desc {
  max-width: 760px;
  margin: 72px auto;
  padding: 0 40px;
}
.artwork-desc-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}
.artwork-desc-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--charcoal);
  font-style: italic;
}
.artwork-desc-text p + p { margin-top: 1.2em; }

/* ─── GALLERY ────────────────────────────────────────────── */
.artwork-gallery {
  padding: 0 40px 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.artwork-gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream-dark);
}
.artwork-gallery-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.artwork-gallery-count {
  font-size: 0.75rem;
  color: var(--stone-light);
  letter-spacing: 0.06em;
}

/* Masonry grid via CSS columns */
.artwork-gallery-grid {
  columns: 3;
  column-gap: 16px;
}
.artwork-gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  position: relative;
}
.artwork-gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.artwork-gallery-item:hover img {
  transform: scale(1.03);
}
.artwork-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 63, 37, 0);
  transition: background var(--transition);
}
.artwork-gallery-item:hover::after {
  background: rgba(42, 63, 37, 0.1);
}

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(30, 26, 22, 0.96);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 24px; right: 32px;
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

/* ─── COLLECTION NAV ─────────────────────────────────────── */
.coll-nav {
  background: var(--forest);
  padding: 40px 64px;
  text-align: center;
}
.coll-nav-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.coll-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}
.coll-nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.coll-nav-links a:hover { color: var(--white); }
.coll-nav-links a.active { color: var(--sage-light); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--forest-deep);
  padding: 48px 64px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer-brand em { font-style: italic; color: var(--sage); }
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ─── REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .header { padding: 0 24px; }
  .artwork-hero-content { padding: 40px 32px 36px; }
  .artwork-desc { padding: 0 24px; margin: 48px auto; }
  .artwork-gallery { padding: 0 24px 72px; }
  .artwork-gallery-grid { columns: 2; }
  .coll-nav { padding: 32px 24px; }
  .footer { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .artwork-hero { height: 55vh; min-height: 360px; }
  .artwork-hero-content { padding: 28px 20px 24px; }
  .artwork-gallery-grid { columns: 1; }
  .header-nav { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
}
