:root {
  --paper: #f4efe6;
  --panel: #fbf8f1;
  --ink: #1d1a16;
  --muted: #6f675a;
  --line: rgba(29, 26, 22, 0.12);
  --shadow: 0 24px 60px rgba(26, 22, 16, 0.08);
  --card-radius: 7px;
  --card-gap: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(209, 193, 164, 0.28), transparent 34%),
    linear-gradient(180deg, #f6f2ea 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.back-link,
.tiny-link {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.lang-switch a {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch a.active {
  background: rgba(29, 26, 22, 0.9);
  color: #f7f2e9;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 28px;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.62;
  max-width: 6ch;
}

.hero-title-row {
  display: flex;
  align-items: flex-end;
  gap: 26px;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex: 0 0 auto;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.linkedin-link img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(10, 102, 194, 0.28);
  outline: none;
}

.hero-thumb {
  width: clamp(84px, 9vw, 124px);
  height: clamp(84px, 9vw, 124px);
  object-fit: cover;
  object-position: center top;
  display: block;
  flex: 0 0 auto;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 72ch;
  line-height: 1.8;
  color: #332d25;
  font-size: 0.98rem;
}

.hero-copy .meta {
  margin-top: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-note {
  align-self: end;
  padding: 20px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-note:empty {
  display: none;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.94rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 16px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-nav a {
  display: inline;
  padding: 0;
  color: var(--muted);
}

.category-nav a + a::before {
  content: "/";
  margin: 0 0.75em 0 0.55em;
  color: var(--muted);
}

.category-nav a:hover {
  color: #8c5a2b;
}

.gallery-section {
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.gallery-section + .gallery-section {
  margin-top: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--card-gap);
}

.art-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #191613;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 18px 38px rgba(20, 17, 13, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.art-card:hover,
.art-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(20, 17, 13, 0.18);
  outline: none;
}



.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 220ms ease, filter 220ms ease;
}

.art-card.focus-top img {
  object-position: center top;
}

.art-card.focus-bottom img {
  object-position: center bottom;
}

.art-card:hover img,
.art-card:focus-visible img {
  transform: scale(1.02);
  filter: brightness(0.78);
}

.card-copy {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  min-height: 42%;
  padding: 20px 18px 16px;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.84) 74%, rgba(10, 9, 8, 0.94) 100%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.art-card:hover .card-copy,
.art-card:focus-visible .card-copy {
  opacity: 1;
  transform: translateY(0);
}

.card-copy strong {
  display: block;
  color: #f8f4ec;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.card-copy span {
  display: none;
}

.footer-note {
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 8, 8, 0.94);
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: min(96vw, 1680px);
  height: min(94vh, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 380px);
  gap: 0;
  margin: 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #050505;
  padding: 24px;
}

.lightbox-media-column {
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
}

.lightbox-media-column .lightbox-media {
  grid-area: 1 / 1;
}

.lightbox-media.hidden {
  display: none;
}

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

.lightbox img.fit-width {
  width: 100%;
  height: auto;
}

.lightbox img.fit-height {
  width: auto;
  height: 100%;
}

.lightbox-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.lightbox-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 24px;
  background: #161616;
  color: #f5f1e8;
  overflow-y: auto;
  overflow-x: hidden;
}

.lightbox-panel-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
}

.lightbox-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.lightbox figcaption,
.lightbox-description {
  margin: 0;
  color: rgba(245, 241, 232, 0.86);
  text-align: left;
  line-height: 1.7;
  font-size: 0.95rem;
}

.lightbox-description a,
.lightbox-meta-item span a {
  color: #f6c37b;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lightbox-description a:hover,
.lightbox-meta-item span a:hover {
  color: #ffd8a5;
}

.playlist-intro,
.playlist-source {
  margin: 0 0 8px;
}

.playlist-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.playlist-list strong {
  display: block;
  margin-bottom: 4px;
}

.playlist-list p {
  margin: 4px 0 0;
  color: rgba(245, 241, 232, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.lightbox-meta {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-meta-item {
  display: grid;
  gap: 4px;
}

.lightbox-meta-item strong {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.55);
  font-weight: 600;
}

.lightbox-meta-item span {
  font-size: 0.92rem;
  color: rgba(245, 241, 232, 0.88);
}

#lightbox-caption {
  white-space: pre-line;
  line-height: 2;
  letter-spacing: 0.01em;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightbox-inner {
    width: min(96vw, 1200px);
    height: min(92vh, 980px);
    grid-template-columns: 1fr;
  }

  .lightbox-media {
    min-height: 54vh;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100%, calc(100% - 24px));
    padding-top: 18px;
  }

  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .art-card img {
    aspect-ratio: 1 / 1;
  }

  .card-copy {
    opacity: 1;
    transform: translateY(0);
  }

  .lightbox {
    padding: 8px;
  }

  .lightbox-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .lightbox-media,
  .lightbox-panel {
    padding: 16px;
  }

  .lightbox-media {
    min-height: 44vh;
  }

  .lightbox-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .card-copy {
    opacity: 1;
    transform: translateY(0);
  }
}
