:root {
  --font-body: "Space Grotesk", sans-serif;
  --font-display: "Fraunces", serif;
  --bg: #201817;
  --bg-layer: linear-gradient(128deg, #541d16 0%, #241311 46%, #120c0b 100%);
  --ink: #fff7f0;
  --muted: #d2b9ad;
  --card: rgba(255, 245, 236, 0.1);
  --line: rgba(255, 225, 202, 0.24);
  --accent: #f05a2a;
  --accent-2: #ffc84b;
  --surface: rgba(0, 0, 0, 0.28);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  --button-ink: #1d110d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-layer), var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 480ms ease, color 300ms ease;
}

.theme-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  --veil-duration: 900ms;
  --veil-peak: 0.44;
  --veil-blur: 2px;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--veil-a, var(--accent)) 78%, transparent) 0, transparent 45%),
    radial-gradient(circle at 86% 78%, color-mix(in srgb, var(--veil-b, var(--accent-2)) 66%, transparent) 0, transparent 52%),
    linear-gradient(120deg, color-mix(in srgb, var(--veil-a, var(--accent)) 24%, transparent), color-mix(in srgb, var(--veil-b, var(--accent-2)) 28%, transparent));
}

body[data-veil-style="minimal"] .theme-veil {
  --veil-duration: 540ms;
  --veil-peak: 0.22;
  --veil-blur: 1px;
}

body[data-veil-style="cinema"] .theme-veil {
  --veil-duration: 1120ms;
  --veil-peak: 0.56;
  --veil-blur: 3px;
}

body.theme-transitioning .theme-veil {
  animation: themeVeilPulse var(--veil-duration) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

body[data-theme="mono-noir"] {
  --font-body: "Syne", sans-serif;
  --font-display: "Bebas Neue", sans-serif;
  --bg: #0d0d0f;
  --bg-layer: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.06) 0, transparent 40%),
    linear-gradient(110deg, #16171b 0%, #0e0f13 55%, #000 100%);
  --ink: #fafafa;
  --muted: #b5b8c2;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.2);
  --accent: #f2f2f2;
  --accent-2: #9da2af;
  --surface: rgba(255, 255, 255, 0.04);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  --button-ink: #121315;
}

body[data-theme="sunset-pop"] {
  --font-body: "Space Grotesk", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --bg: #1f1835;
  --bg-layer: radial-gradient(circle at 85% 10%, rgba(255, 184, 130, 0.5) 0, transparent 34%),
    radial-gradient(circle at 4% 80%, rgba(253, 117, 86, 0.5) 0, transparent 30%),
    linear-gradient(120deg, #1f1a3f 0%, #2f1e4e 45%, #5f2452 100%);
  --ink: #fff4ef;
  --muted: #f5d2c0;
  --card: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 214, 194, 0.35);
  --accent: #ff6c4d;
  --accent-2: #ffd369;
  --surface: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 58px rgba(28, 6, 24, 0.52);
  --button-ink: #301329;
}

body[data-theme="contemporary"] {
  --font-body: "Syne", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --bg: #eff4ff;
  --bg-layer: radial-gradient(circle at 92% 14%, rgba(128, 170, 255, 0.52) 0, transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(133, 255, 224, 0.56) 0, transparent 30%),
    linear-gradient(135deg, #eef2ff 0%, #eaf8f3 55%, #f4fbff 100%);
  --ink: #132133;
  --muted: #4d6377;
  --card: rgba(255, 255, 255, 0.62);
  --line: rgba(19, 33, 51, 0.2);
  --accent: #3b66ff;
  --accent-2: #5de7c2;
  --surface: rgba(255, 255, 255, 0.62);
  --shadow: 0 20px 54px rgba(39, 72, 119, 0.18);
  --button-ink: #051629;
}

.ambient {
  position: fixed;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-1 {
  width: 380px;
  height: 380px;
  background: color-mix(in srgb, var(--accent) 80%, white 20%);
  top: -120px;
  right: -120px;
  border-radius: 42% 58% 55% 45%;
}

.ambient-2 {
  width: 360px;
  height: 360px;
  background: color-mix(in srgb, var(--accent-2) 70%, black 30%);
  bottom: -110px;
  left: -120px;
  border-radius: 61% 39% 47% 53%;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.theme-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(6px);
}

.theme-controls label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.theme-controls select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding-right: 0.6rem;
  cursor: pointer;
}

.control-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.switch-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.preset-select-wrap {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preset-select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.switch input {
  accent-color: var(--accent);
}

.layout-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

nav a:hover {
  border-color: currentColor;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.hero {
  margin-top: 1.4rem;
  padding: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(140deg, var(--card), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  animation: riseIn 700ms ease both;
  position: relative;
  overflow: hidden;
}

.hero-copy-block {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-notes span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
}

.hero-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
  gap: 1rem;
  align-items: end;
}

.hero-feature-media {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, rgba(4, 6, 10, 0.16) 42%, rgba(4, 6, 10, 0.72) 100%);
  pointer-events: none;
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.hero-feature-watermark {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-feature-meta {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0 0.25rem;
}

.hero-feature-label,
.hero-feature-details {
  margin: 0;
  color: var(--muted);
}

.hero-feature-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.hero-feature-summary {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 44%, transparent) 0, transparent 72%);
  pointer-events: none;
}

.kicker {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.hero h2 {
  margin: 0.5rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  max-width: 14ch;
}

.hero-copy {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 1.2rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--button-ink);
  text-decoration: none;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}

.gallery-section,
.community,
.about,
.contact {
  margin-top: 2rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(4px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section-head h3,
.community h3,
.about h3,
.contact h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.canvas-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.canvas-reset-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
}

.gallery-viewport {
  position: relative;
  height: min(82vh, 840px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: grab;
  background: rgba(0, 0, 0, 0.2);
}

.gallery-viewport.panning {
  cursor: grabbing;
}

.gallery-viewport:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
}

.gallery-grid.watch-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3600px;
  height: 2600px;
  columns: unset;
  transform-origin: 50% 50%;
  will-change: transform;
  --pan-x: 0px;
  --pan-y: 0px;
  --grid-scale: 0.96;
  --grid-rotation: 0deg;
  transform: translate(calc(-50% + var(--pan-x)), calc(-50% + var(--pan-y))) rotate(var(--grid-rotation)) scale(var(--grid-scale));
}

.gallery-grid.watch-grid .photo-card {
  position: absolute;
  width: var(--tile-size, 220px);
  height: var(--tile-size, 220px);
  margin: 0;
  border-radius: 50%;
  overflow: visible;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.share-panel,
.comments-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 1rem;
}

.giscus-thread {
  min-height: 140px;
}

.local-comments-fallback {
  margin-top: 0.75rem;
}

.share-panel h4,
.comments-panel h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.share-panel p,
.comments-panel p {
  color: var(--muted);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-btn,
.comment-submit {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.44rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.comment-form {
  display: grid;
  gap: 0.65rem;
}

.comment-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.comment-form input,
.comment-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--ink);
  font: inherit;
  padding: 0.6rem;
}

.comment-form textarea {
  resize: vertical;
  min-height: 100px;
}

.comments-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.comment-meta strong {
  font-size: 0.9rem;
}

.comment-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.comment-body {
  margin: 0.45rem 0 0;
}

.micro-status,
.comments-note,
.comment-empty {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.filter-btn.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--button-ink);
  border-color: transparent;
}

body[data-theme="editorial-burn"] .filter-btn {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-theme="editorial-burn"] .filter-btn.active {
  background: linear-gradient(90deg, #f07a34, #ffce4f);
}

body[data-theme="mono-noir"] .filter-btn {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

body[data-theme="mono-noir"] .filter-btn.active {
  background: #f2f2f2;
  color: #090a0c;
}

body[data-theme="sunset-pop"] .filter-btn {
  border-style: dashed;
}

body[data-theme="sunset-pop"] .filter-btn.active {
  background: linear-gradient(90deg, #ff6f4e, #ffd47d);
}

body[data-theme="contemporary"] .filter-btn {
  border-radius: 10px;
  border-color: rgba(19, 33, 51, 0.24);
}

body[data-theme="contemporary"] .filter-btn.active {
  background: linear-gradient(90deg, #5f7dff, #67eccc);
  color: #041221;
}

.gallery-grid {
  columns: 3 250px;
  column-gap: 1rem;
}

.gallery-grid.lookbook-mode {
  columns: unset;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 130px;
  gap: 1rem;
}

.photo-card {
  --card-tilt: 0deg;
  position: relative;
  break-inside: avoid;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 40%, black 8%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) rotate(var(--card-tilt));
  opacity: 0;
  animation: riseIn 480ms ease forwards;
  transition: transform 240ms ease;
}

.gallery-grid.lookbook-mode .photo-card {
  margin: 0;
  height: 100%;
  display: flex;
}

.gallery-grid.lookbook-mode .photo-card button {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-grid.lookbook-mode .photo-card img {
  flex: 1;
  min-height: 0;
}

.gallery-grid.lookbook-mode .photo-card.feature-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid.lookbook-mode .photo-card.feature-tall {
  grid-row: span 3;
}

.photo-card:nth-child(5n + 2) {
  --card-tilt: -1.6deg;
}

.photo-card:nth-child(6n + 4) {
  --card-tilt: 1.2deg;
}

.photo-card:hover {
  transform: translateY(-4px) rotate(var(--card-tilt));
}

.photo-card button {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.photo-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.photo-watermark {
  position: absolute;
  left: 0.6rem;
  bottom: 2.6rem;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  color: #eef3fb;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.33rem;
  z-index: 2;
  pointer-events: none;
}

.photo-share-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 12, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
}

body[data-theme="mono-noir"] .photo-share-btn {
  background: rgba(4, 6, 9, 0.8);
}

body[data-theme="sunset-pop"] .photo-share-btn {
  background: rgba(52, 20, 42, 0.75);
}

body[data-theme="contemporary"] .photo-share-btn {
  border-color: rgba(19, 33, 51, 0.26);
  background: rgba(255, 255, 255, 0.84);
  color: #102136;
}

.card-meta {
  padding: 0.7rem 0.85rem 0.9rem;
}

.card-title {
  margin: 0;
  font-weight: 700;
}

.card-title,
.caption-title {
  display: none;
}

.card-tag {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.lightbox {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(94vw, 980px);
  max-height: 92vh;
  overflow: hidden;
  background: #141213;
  color: #f6f0ec;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease;
}

body[data-theme="editorial-burn"] .lightbox {
  background: linear-gradient(145deg, #221514, #110b0b);
}

body[data-theme="mono-noir"] .lightbox {
  background: linear-gradient(145deg, #08090c, #1a1d23);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body[data-theme="sunset-pop"] .lightbox {
  background: linear-gradient(145deg, #2c1730, #5a2448);
}

body[data-theme="contemporary"] .lightbox {
  background: linear-gradient(145deg, #f7fbff, #e7f0ff);
  color: #102137;
  border: 1px solid rgba(19, 33, 51, 0.16);
}

body[data-theme="contemporary"] .caption-meta {
  color: #4b6172;
}

.lightbox::backdrop {
  background: rgba(10, 8, 9, 0.74);
  backdrop-filter: blur(5px);
}

.lightbox[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox-media {
  position: relative;
  background: #090b10;
}

.lightbox img {
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  display: block;
}

.lightbox-watermark {
  position: absolute;
  left: 1rem;
  bottom: 5rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #f2f6ff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.44rem;
  pointer-events: none;
}

.caption-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.2rem;
  padding: 1rem 1rem 1.1rem;
}

.caption-title,
.caption-meta {
  margin: 0;
}

.caption-main,
.caption-side {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.caption-title {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.caption-meta {
  color: #d5c9c2;
  margin-top: 0.2rem;
}

.caption-description {
  margin: 0;
  color: #efe8e4;
  line-height: 1.6;
}

.caption-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.caption-facts div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.caption-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aeb9c7;
}

.caption-facts dd {
  margin: 0;
  color: #f5f8fc;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-share-btn {
  position: absolute;
  top: 0.5rem;
  right: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.32rem 0.66rem;
  cursor: pointer;
}

@keyframes riseIn {
  from {
    transform: translateY(18px) rotate(var(--card-tilt));
    opacity: 0;
  }

  to {
    transform: translateY(0) rotate(var(--card-tilt));
    opacity: 1;
  }
}

@keyframes themeVeilPulse {
  0% {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(0);
  }

  45% {
    opacity: var(--veil-peak);
    transform: scale(1);
    filter: blur(var(--veil-blur));
  }

  100% {
    opacity: 0;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-transitioning .theme-veil {
    animation: none;
  }

  .theme-veil {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid.lookbook-mode {
    grid-auto-rows: 115px;
  }

  .gallery-grid.lookbook-mode .photo-card.feature-wide {
    grid-column: span 1;
  }
}

@media (max-width: 740px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .control-stack {
    width: 100%;
  }

  .theme-controls {
    width: 100%;
    justify-content: space-between;
  }

  .layout-toggle {
    width: 100%;
  }

  .share-btn,
  .comment-submit,
  .photo-share-btn {
    width: 100%;
  }

  .photo-share-btn {
    position: static;
    margin: 0.35rem 0.7rem 0.6rem;
  }

  .hero {
    padding: 1.3rem;
  }

  .hero h2 {
    max-width: 100%;
  }

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

  .gallery-grid.lookbook-mode {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-grid.lookbook-mode .photo-card.feature-tall,
  .gallery-grid.lookbook-mode .photo-card.feature-wide {
    grid-row: auto;
    grid-column: auto;
  }
}

/* Single contemporary studio look */
body[data-theme="studio"] {
  --font-body: "Syne", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --bg: #070809;
  --bg-layer: radial-gradient(circle at 80% -10%, rgba(68, 103, 255, 0.17), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(108, 255, 226, 0.13), transparent 30%),
    linear-gradient(160deg, #070809 0%, #0d0f13 56%, #050607 100%);
  --ink: #f2f4f8;
  --muted: #9ca5b2;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.15);
  --accent: #f2f4f8;
  --accent-2: #7fb6ff;
  --surface: rgba(255, 255, 255, 0.03);
  --button-ink: #10141c;
}

body[data-theme="studio"] .ambient,
body[data-theme="studio"] .theme-veil,
body[data-theme="studio"] .control-stack {
  display: none;
}

body[data-theme="studio"] .site-header {
  align-items: flex-start;
  padding-top: 1.6rem;
}

body[data-theme="studio"] .brand h1 {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

body[data-theme="studio"] .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: #6f7987;
}

body[data-theme="studio"] .site-header nav {
  position: fixed;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 40;
  background: rgba(196, 201, 210, 0.19);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.36rem;
  backdrop-filter: blur(16px);
  gap: 0.3rem;
}

body[data-theme="studio"] .site-header nav a {
  border: 0;
  color: #f5f7fb;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
}

body[data-theme="studio"] .site-header nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

body[data-theme="studio"] .hero {
  margin-top: 0.8rem;
  padding: 1.2rem 0 1.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.35rem;
  align-items: stretch;
}

body[data-theme="studio"] .hero::after {
  display: none;
}

body[data-theme="studio"] .kicker {
  color: #97a4b8;
}

body[data-theme="studio"] .hero h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.12;
  max-width: 24ch;
}

body[data-theme="studio"] .hero-copy {
  display: block;
  max-width: 48ch;
}

body[data-theme="studio"] .hero-feature {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

body[data-theme="studio"] .hero-feature-media {
  min-height: clamp(320px, 46vw, 560px);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body[data-theme="studio"] .hero-feature-meta {
  padding: 0;
}

body[data-theme="studio"] .hero-feature-label {
  color: #8e99a8;
}

body[data-theme="studio"] .hero-feature-summary {
  color: #dce4f0;
}

body[data-theme="studio"] .cta {
  display: inline-flex;
  align-items: center;
}

body[data-theme="studio"] .gallery-section,
body[data-theme="studio"] .community,
body[data-theme="studio"] .about,
body[data-theme="studio"] .contact {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body[data-theme="studio"] .gallery-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.6rem 1.4rem 1.2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-theme="studio"] .section-head {
  margin-bottom: 0.8rem;
}

body[data-theme="studio"] .canvas-hint {
  color: #8892a2;
}

body[data-theme="studio"] .canvas-reset-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="studio"] .section-head h3 {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-theme="studio"] .filters {
  gap: 0.4rem;
}

body[data-theme="studio"] .filter-btn {
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  padding: 0.33rem 0.55rem;
}

body[data-theme="studio"] .filter-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: #080b11;
}

body[data-theme="studio"] .gallery-grid {
  display: block;
}

body[data-theme="studio"] .gallery-viewport {
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(126, 180, 255, 0.11) 0, rgba(8, 11, 16, 0) 42%),
    linear-gradient(180deg, #020407, #07090e);
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-theme="studio"] .gallery-grid.watch-grid {
  display: block;
}

body[data-theme="studio"] .photo-card {
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: #0c1017;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  margin: 0;
  transform: none;
  opacity: 1;
  animation: none;
}

body[data-theme="studio"] .photo-card:hover {
  transform: none;
}

body[data-theme="studio"] .photo-card img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: saturate(1.08) contrast(1.04);
}

body[data-theme="studio"] .photo-share-btn {
  top: auto;
  right: auto;
  left: 50%;
  bottom: -0.95rem;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.24);
  font-size: 0.68rem;
  padding: 0.24rem 0.56rem;
}

body[data-theme="studio"] .card-meta {
  padding: 0.55rem 0.1rem 0;
  text-align: center;
}

body[data-theme="studio"] .card-tag {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8edf6;
}

body[data-theme="studio"] .community-grid {
  grid-template-columns: 1fr 1fr;
}

body[data-theme="studio"] .share-panel,
body[data-theme="studio"] .comments-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

body[data-theme="studio"] .about p,
body[data-theme="studio"] .contact p {
  color: #c8d1de;
}

body[data-theme="studio"] .contact a {
  color: #f5f8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 182, 255, 0.45);
}

body[data-theme="studio"] .contact a:hover {
  color: #9cc7ff;
  border-bottom-color: #9cc7ff;
}

body[data-theme="studio"] .lightbox {
  background: #06080b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.55);
}

body[data-theme="studio"] .caption-meta {
  color: #d6dee9;
}

body[data-theme="studio"] .caption-description {
  color: #edf3fa;
}

body[data-theme="studio"] .caption-facts dt {
  color: #90a0b3;
}

body[data-theme="studio"] .caption-facts div {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  body[data-theme="studio"] .gallery-grid.watch-grid .photo-card {
    width: max(160px, calc(var(--tile-size, 220px) * 0.86));
    height: max(160px, calc(var(--tile-size, 220px) * 0.86));
  }

  body[data-theme="studio"] .community-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  body[data-theme="studio"] .site-header nav {
    width: min(94vw, 420px);
    justify-content: space-between;
    gap: 0.1rem;
    padding: 0.26rem;
  }

  body[data-theme="studio"] .site-header nav a {
    padding: 0.45rem 0.58rem;
    font-size: 0.66rem;
  }

  body[data-theme="studio"] .canvas-toolbar {
    justify-content: flex-start;
  }

  body[data-theme="studio"] .gallery-viewport {
    height: 72vh;
  }

  body[data-theme="studio"] .gallery-grid.watch-grid .photo-card {
    width: max(132px, calc(var(--tile-size, 220px) * 0.74));
    height: max(132px, calc(var(--tile-size, 220px) * 0.74));
  }

  body[data-theme="studio"] .photo-share-btn {
    width: auto;
    position: absolute;
    margin: 0;
    left: 50%;
    bottom: -0.95rem;
    transform: translateX(-50%);
  }

  body[data-theme="studio"] .canvas-hint {
    width: 100%;
  }
}

/* Studio refresh: user-friendly innovative layout */
body[data-theme="studio"] .site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.58) 65%, rgba(7, 9, 13, 0));
  backdrop-filter: blur(8px);
}

body[data-theme="studio"] .site-header nav {
  position: static;
  transform: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="studio"] .gallery-section {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0.8rem 1rem 1.4rem;
  min-height: auto;
  display: block;
}

body[data-theme="studio"] .canvas-toolbar {
  justify-content: flex-start;
}

body[data-theme="studio"] .gallery-viewport {
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  cursor: default;
  background: transparent;
}

body[data-theme="studio"] .gallery-grid {
  position: static;
  width: auto;
  height: auto;
  transform: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

body[data-theme="studio"] .gallery-grid .photo-card {
  position: relative;
  width: auto;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

body[data-theme="studio"] .gallery-grid .photo-card button {
  display: block;
}

body[data-theme="studio"] .gallery-grid .photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  filter: saturate(1.07) contrast(1.04);
}

body[data-theme="studio"] .gallery-grid .card-meta {
  padding: 0.6rem 0.75rem 0.75rem;
  text-align: left;
}

body[data-theme="studio"] .gallery-grid .card-tag {
  color: #f1f5fb;
}

body[data-theme="studio"] .gallery-grid .photo-share-btn {
  left: auto;
  right: 0.65rem;
  top: 0.65rem;
  bottom: auto;
  transform: none;
  width: auto;
}

body[data-theme="studio"] .gallery-viewport:fullscreen {
  padding: 1rem;
  overflow: auto;
  background: #06080c;
}

body[data-theme="studio"] .gallery-viewport:fullscreen .gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 740px) {
  .hero-feature,
  .caption-wrap,
  body[data-theme="studio"] .hero {
    grid-template-columns: 1fr;
  }

  .hero-feature-media {
    min-height: 320px;
  }

  body[data-theme="studio"] .site-header nav {
    width: 100%;
    margin-left: 0;
  }

  body[data-theme="studio"] .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

}
