/* ══ TOKENS ══════════════════════════════════════════════ */
:root {
  --bg:     #070707;
  --bg2:    #0c0c0c;
  --bg3:    #121212;
  --text:   #ede9e3;
  --muted:  #4a4a4a;
  --gray-mid: #909090;
  --accent: #c8a96e;
  --border: #1e1e1e;
  --gap:    4px;
}

/* ══ RESET ═══════════════════════════════════════════════ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
img { display:block; width:100%; height:100%; object-fit:cover; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

/* ══ HAMBURGER ═══════════════════════════════════════════ */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 600;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
#hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ══ MOBILE MENU ═════════════════════════════════════════ */
#mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(7,7,7,.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ══ CURSOR ══════════════════════════════════════════════ */
#cur-ring {
  position: fixed;
  width: 60px; height: 60px;
  border: 1px solid rgba(200,169,110,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%,-50%);
  left: -100px; top: -100px;
  background: rgba(200,169,110,0.04);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: width .35s ease, height .35s ease, opacity .3s ease;
}
#cur-ring.big  { width:90px; height:90px; border-color:rgba(200,169,110,.9); }
#cur-ring.hide { opacity:0; }
#cur-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9001;
  transform: translate(-50%,-50%);
  left: -100px; top: -100px;
}

/* ══ PROGRESS BAR ════════════════════════════════════════ */
#prog {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 8999;
  transition: width .05s linear;
}

/* ══ NAV ═════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 20px 48px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(7,7,7,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: opacity .5s ease, transform .5s ease;
}
.nav-brand-name,
.nav-brand-sub {
  white-space: nowrap;
}
#nav.at-top .nav-brand {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.nav-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: .08em;
  color: var(--text);
  line-height: 1;
}
.nav-brand-sub {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--accent);
}
.nav-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 28px;
  align-items: flex-start;
  justify-content: flex-end;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  transition: color .2s;
  position: relative;
  line-height: 1;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ══ HERO ════════════════════════════════════════════════ */
#hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.hero-img.go { transform: scale(1); }
.hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,7,7,.75) 0%, transparent 55%),
    linear-gradient(to top,  rgba(7,7,7,.9)  0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 52px 60px;
  max-width: 820px;
}
.hero-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(61px, 10.2vw, 133px);
  letter-spacing: .04em;
  line-height: .92;
  color: var(--text);
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s .35s cubic-bezier(.16,1,.3,1) forwards;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-name span { display: block; }
.hero-dash {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  opacity: 0;
  animation: slideRight .8s .7s ease forwards;
}
.hero-dash-line { width:36px; height:1px; background:var(--accent); }
.hero-dash-text {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
}
.hero-scroll-hint {
  position: absolute;
  right: 52px; bottom: 56px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn .8s 1.2s ease forwards;
}
.hero-scroll-hint span {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .3em;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-tick {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: tickPulse 2.5s 2s infinite ease-in-out;
}

@keyframes slideUp    { to { opacity:1; transform:translateY(0); } }
@keyframes slideRight { to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn     { to { opacity:1; } }
@keyframes tickPulse  {
  0%,100% { opacity:.3; transform:scaleY(.7); transform-origin:top; }
  50%     { opacity:1;  transform:scaleY(1); }
}

/* ══ MARQUEE ═════════════════════════════════════════════ */
.marquee-wrap {
  background: var(--accent);
  padding: 11px 0;
  overflow: hidden;
  margin-bottom: 10px;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0 28px;
  white-space: nowrap;
}
.marquee-sep { color:rgba(7,7,7,.35) !important; padding:0 4px !important; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.section, #contact {
  scroll-margin-top: 80px;
}
@media (max-width: 560px) {
  .section, #contact { scroll-margin-top: 86px; }
}
#gallery-loading {
  text-align: center;
  padding: 120px 52px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--muted);
  text-transform: uppercase;
}
#gallery-error {
  display: none;
  text-align: center;
  padding: 120px 52px;
}
#gallery-error p {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--muted);
  line-height: 2;
}
#gallery-error code {
  color: var(--accent);
  font-size: 13px;
}

/* ══ SECTIONS ════════════════════════════════════════════ */
.section {
  padding: 100px 52px 80px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.section.vis { opacity:1; transform:none; }
.s-ghost {
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,169,110,.04);
  right: -3%; top: -8%;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.s-intro {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid #3a3a3a;
}
.s-left { display:flex; flex-direction:column; gap:10px; }
.s-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(51px, 7.2vw, 99px);
  letter-spacing: .03em;
  line-height: .9;
  color: var(--text);
}
.s-right {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--gray-mid);
  text-align: right;
}

/* ══ SUBSECTION LABEL ════════════════════════════════════ */
.sub { margin-bottom: 52px; position: relative; z-index: 1; }
.sub-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(29px, 3.6vw, 47px);
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

/* ══ GALLERY ITEMS ════════════════════════════════════════ */
.grid {
  display: grid;
  gap: var(--gap);
  grid-auto-flow: dense;
  grid-auto-rows: 210px;
  position: relative;
  z-index: 1;
}
.g5  { grid-template-columns: repeat(5, 1fr); }
.g4  { grid-template-columns: repeat(4, 1fr); }
.sc2 { grid-column: span 2; }
.sc3 { grid-column: span 3; }
.sc4 { grid-column: span 4; }
.sr2 { grid-row: span 2; }
.sr3 { grid-row: span 3; }
/* aspect-ratio classes kept for hero/non-grid use */
.a169 { aspect-ratio: 16/9; }
.a43  { aspect-ratio: 4/3; }
.a34  { aspect-ratio: 3/4; }
.a167 { aspect-ratio: 16/7; }
.gi-min { min-height: 320px; }

.gi {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  cursor: none;
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path .85s cubic-bezier(.77,0,.175,1),
    transform  .4s cubic-bezier(.25,.46,.45,.94);
}
.gi.rev { clip-path: inset(0 0% 0 0); }

/* Stagger first 9 children */
.gi:nth-child(1) { transition-delay:.00s,.0s; }
.gi:nth-child(2) { transition-delay:.10s,.0s; }
.gi:nth-child(3) { transition-delay:.20s,.0s; }
.gi:nth-child(4) { transition-delay:.30s,.0s; }
.gi:nth-child(5) { transition-delay:.40s,.0s; }
.gi:nth-child(6) { transition-delay:.50s,.0s; }
.gi:nth-child(7) { transition-delay:.60s,.0s; }
.gi:nth-child(8) { transition-delay:.70s,.0s; }
.gi:nth-child(9) { transition-delay:.80s,.0s; }

.gi img {
  transition: transform .65s cubic-bezier(.25,.46,.45,.94), filter .4s ease;
  filter: brightness(.82) saturate(.92);
}
.gi:hover img { filter: brightness(1) saturate(1.05); }
.gi::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .5s ease;
}
.gi:hover::after { width: 100%; }

/* ══ ABOUT ═══════════════════════════════════════════════ */
#about-block {
  grid-column: 1 / -1;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  margin-bottom: 20px;
}
#about-block.portrait {
  grid-template-columns: min(280px, 25vw) 1fr;
}
#about-block.landscape {
  grid-template-columns: min(25vw, 40%) 1fr;
}
#about-block.panoramic {
  grid-template-columns: 1fr;
}
#about-block.panoramic #about-photo {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin-bottom: 24px;
}
#about-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(.88) saturate(.9);
}
#about-block.portrait  #about-photo { aspect-ratio: 3/4; }
#about-block.landscape #about-photo { aspect-ratio: 4/3; }
#about-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-mid);
  white-space: pre-wrap;
}

/* ══ CONTACT FORM ════════════════════════════════════════ */
#contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.cf-row {
  display: flex;
  gap: 10px;
}
.cf-input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  padding: 12px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--text);
  outline: none;
  transition: border-color .25s;
  appearance: none;
  -webkit-appearance: none;
}
.cf-input::placeholder { color: var(--gray-mid); }
.cf-input:focus { border-color: var(--accent); }
.cf-textarea {
  resize: vertical;
  min-height: 120px;
}
.cf-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--accent);
  padding: 11px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-mid);
  cursor: none;
  font-size: 14px;
  transition: color .25s, border-color .25s;
}
.cf-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.cf-status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--gray-mid);
  min-height: 1.4em;
}
.cf-status.ok  { color: var(--accent); }
.cf-status.err { color: #c0604a; }

/* ══ CONTACT ═════════════════════════════════════════════ */
#contact {
  padding: 80px 52px;
  border-top: 1px solid var(--border);
  display: block;
}
.c-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: .04em;
  line-height: .95;
  color: var(--text);
}
.c-tag {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--accent);
  margin-top: 12px;
}
.c-contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 24px;
  margin-bottom: 6px;
}
.c-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
}
.c-links a {
  color: var(--gray-mid);
  transition: color .25s;
  display: flex;
  align-items: center;
}
.c-links a:hover { color: var(--accent); }
.c-links a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.footer {
  padding: 20px 52px 28px;
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--border);
  text-align: center;
}

/* ══ LIGHTBOX ════════════════════════════════════════════ */
#lb {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: #030303;
  display: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
#lb.open {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
#lbPrev, #lbNext {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lb-arrow-inner {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8a96e;
  opacity: .7;
  transition: opacity .25s;
  background:
    linear-gradient(#c8a96e,#c8a96e) 0    0    / 10px 1px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 0    0    / 1px  10px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 100% 0    / 10px 1px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 100% 0    / 1px  10px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 0    100% / 10px 1px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 0    100% / 1px  10px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 100% 100% / 10px 1px no-repeat,
    linear-gradient(#c8a96e,#c8a96e) 100% 100% / 1px  10px no-repeat;
}
#lbPrev:hover .lb-arrow-inner,
#lbNext:hover .lb-arrow-inner { opacity:1; }
#lb-img {
  display: block;
  max-width: 90%;
  max-height: calc(90vh - 80px);
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: opacity .2s ease;
}
#lb-caption {
  margin-top: 14px;
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--gray-mid);
  text-align: center;
  max-width: 80%;
}
.lb-close {
  position: absolute;
  top: 8px; right: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--gray-mid);
  cursor: none;
  transition: color .2s;
  z-index: 20;
}
.lb-close:hover { color: var(--text); }
#lb-category {
  position: absolute;
  top: 12px; left: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--gray-mid);
  z-index: 20;
}
#lb-author {
  position: absolute;
  bottom: 12px; left: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--gray-mid);
  z-index: 20;
}
#lb-ctr {
  position: absolute;
  bottom: 15px;
  left: 50%; transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gray-mid);
  z-index: 20;
}

/* ══ RESPONSIVE ══════════════════════════════════════════ */
/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .g5 { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-auto-rows: 200px; }
  .sc4 { grid-column: span 3; }
}

@media (max-width: 900px) {
  #nav { padding: 20px 24px 14px; }
  .nav-links { gap: 2px 20px; font-size: 13px; }
  .section { padding: 72px 24px 60px; }
  .hero-content { padding: 0 28px 48px; }
  .hero-scroll-hint { right: 28px; }
  .g5, .g4 { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-auto-rows: 180px; }
  .sc2, .sc3, .sc4 { grid-column: span 2; }
  #contact { padding: 60px 24px; }
  #about-block.landscape { grid-template-columns: 340px 1fr; }
}

@media (max-width: 900px) and (min-width: 561px) {
  #lb.open { flex-direction: column; }
  #lb-center { flex: 1; padding-bottom: 72px; }
  #lb-img { max-width: 96%; max-height: calc(80vh - 80px); }
  #lbPrev, #lbNext { position: absolute; bottom: 44px; top: auto; width: 44px; height: 44px; }
  #lbPrev { left: calc(50% - 54px); }
  #lbNext { left: calc(50% + 10px); }
  .lb-arrow-inner { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  /* Nav */
  .nav-links { display: none !important; }
  #hamburger { display: flex; }

  /* Sections */
  .section { padding: 28px 16px 24px; }
  .s-intro { margin-bottom: 24px; }
  .s-title { font-size: clamp(36px, 10vw, 52px); }

  /* Grid */
  .g5, .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-auto-rows: 140px; }
  .sc2, .sc3, .sc4 { grid-column: span 2; }
  .sr2 { grid-row: span 2; }

  /* Hero */
  .hero-content { padding: 0 20px 40px; }
  .hero-scroll-hint { display: none; }

  /* Marquee — faster */
  .marquee-track { animation-duration: 9s; }

  /* About */
  #about-block,
  #about-block.landscape,
  #about-block.portrait { grid-template-columns: 1fr; }
  #about-photo {
    aspect-ratio: 16/9 !important;
    max-height: 240px;
  }

  /* Lightbox — arrows at bottom center, 20% smaller */
  #lb.open { flex-direction: column; }
  #lb-center {
    flex: 1;
    padding-bottom: 72px;
  }
  #lb-img { max-width: 96%; max-height: calc(80vh - 80px); }
  #lbPrev, #lbNext {
    position: absolute;
    bottom: 44px;
    top: auto;
    width: 52px;
    height: 44px;
  }
  #lbPrev { left: calc(50% - 62px); }
  #lbNext { left: calc(50% + 10px); }
  .lb-arrow-inner {
    width: 29px;
    height: 29px;
    background:
      linear-gradient(#c8a96e,#c8a96e) 0    0    / 8px 1px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 0    0    / 1px  8px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 100% 0    / 8px 1px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 100% 0    / 1px  8px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 0    100% / 8px 1px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 0    100% / 1px  8px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 100% 100% / 8px 1px no-repeat,
      linear-gradient(#c8a96e,#c8a96e) 100% 100% / 1px  8px no-repeat;
  }
  #lb-author { font-size: 15px; bottom: 10px; }
  #lb-ctr    { font-size: 12px; bottom: 13px; }
  #lb-category { font-size: 16px; }

  /* Close — no hover on touch, same color as other lb elements */
  .lb-close { color: var(--gray-mid); font-size: 14px; }
  .lb-close:hover { color: var(--gray-mid); }

  /* Contact */
  #contact { padding: 48px 16px; gap: 10px; }
  .c-links { justify-content: flex-start; }

  /* Sub-category spacing -30% between subs */
  .sub { margin-bottom: 36px; }
  .sub + .sub { margin-top: -10px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  #lb-img { max-width: 96%; max-height: calc(88vh - 80px); }
  .section, #contact { scroll-margin-top: 35px; }
  /* 3 columns in landscape, panoramic spans full width */
  .g5, .g4, .g3 { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-auto-rows: 160px; }
  .sc3, .sc4 { grid-column: span 3; }
  .sc2 { grid-column: span 2; }
  .sr2 { grid-row: span 2; }
  /* Lateral arrows in landscape — override bottom positioning */
  #lb.open { flex-direction: row; }
  #lb-center { flex: 1; padding-bottom: 0; }
  #lbPrev, #lbNext {
    position: static;
    top: auto; bottom: auto;
    left: auto; right: auto;
    width: 52px;
    height: auto;
    align-self: stretch;
  }
  .lb-arrow-inner { width: 29px; height: 29px; }
}

@media (max-width: 380px) {
  .g5, .g4, .g3 { grid-template-columns: 1fr; }
  .grid { grid-auto-rows: 200px; }
  .sc2, .sc3, .sc4 { grid-column: span 1; }
  .sr2 { grid-row: span 1; }
}
}
