:root {
  color-scheme: dark;
  --ink: #f3efe7;
  --muted: #aaa195;
  --paper: #080807;
  --charcoal: #10100f;
  --panel: #171714;
  --line: rgba(243, 239, 231, 0.16);
  --accent: #8d9299;
  --olive: #87835d;
  --mat: #f4efe6;
  --mat-ink: #15120f;
  --mat-line: rgba(8, 8, 7, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.4;
  visibility: visible;
  opacity: 1;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(160, 166, 174, 0.14), transparent 24rem),
    linear-gradient(135deg, #080807, #111110 56%, #050505);
  background-size: 100% 4px, auto, auto;
  content: "";
}

body.is-locked {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

button {
  color: inherit;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3.5vw, 3.5rem);
  background: linear-gradient(rgba(8, 8, 7, 0.94), rgba(8, 8, 7, 0.44));
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  max-width: none;
  min-width: max-content;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand h1,
.brand span {
  display: block;
  min-width: max-content;
  margin: 0;
  overflow: visible;
  text-overflow: clip;
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.brand img {
  width: 2.15rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2.4rem);
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav button {
  color: inherit;
}

.nav-link {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.nav-link:hover,
.nav-link.is-active,
.site-footer a:hover,
.lang-toggle:hover {
  color: var(--ink);
}

.collections-nav {
  position: relative;
}

.collections-nav-toggle::after {
  display: inline-block;
  margin-left: 0.38rem;
  content: "⌄";
}

.collections-nav-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  z-index: 22;
  display: grid;
  gap: 0.15rem;
  width: max-content;
  min-width: 13rem;
  max-width: min(28rem, 82vw);
  border: 1px solid rgba(243, 239, 231, 0.12);
  padding: 0.55rem;
  opacity: 0;
  pointer-events: none;
  background: rgba(42, 45, 49, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  transform: translateY(-0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(18px);
}

.collections-nav:hover .collections-nav-menu,
.collections-nav:focus-within .collections-nav-menu,
.collections-nav.is-open .collections-nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.collections-nav-menu button {
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  border: 0;
  padding: 0.48rem 0.55rem;
  color: rgba(243, 239, 231, 0.72);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
}

.collections-nav-menu button:hover,
.collections-nav-menu button.is-active {
  color: var(--ink);
  background: rgba(243, 239, 231, 0.07);
}

.collections-nav-menu button[data-nav-subfilter] {
  padding-left: calc(1.35rem + var(--nav-level, 1) * 0.8rem);
  color: rgba(243, 239, 231, 0.6);
  font-size: 0.7rem;
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  color: var(--ink);
  background: rgba(243, 239, 231, 0.055);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  grid-area: 1 / 1;
  min-width: 0;
  position: relative;
  z-index: -2;
}

.hero-image img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero::after {
  content: none;
}

.hero-copy {
  grid-area: 1 / 1;
  align-self: end;
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 8rem clamp(1rem, 4vw, 4rem) 5.2rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0.24rem 1.6rem rgba(0, 0, 0, 0.42);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--olive);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  overflow-wrap: anywhere;
  font-weight: 500;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8.2vw, 7.25rem);
  line-height: 0.86;
}

.hero-copy h1 {
  max-width: 12ch;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: keep-all;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6.6vw, 5.5rem);
  line-height: 0.9;
}

.hero-deck {
  max-width: 39rem;
  margin-top: 1.2rem;
  color: #d9d0c4;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.12rem;
}

.hero-copy h1 + .kicker {
  max-width: none;
  margin: 1.15rem 0 0;
  color: #d9d0c4;
  text-transform: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  font-family: "Segoe UI", sans-serif;
}

.hero-meta span {
  border: 1px solid var(--line);
  padding: 0.48rem 0.72rem;
  color: var(--muted);
  background: rgba(8, 8, 7, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: clamp(1rem, 3vw, 2.75rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid rgba(243, 239, 231, 0.28);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.42);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.scroll-cue:hover {
  border-color: var(--olive);
  background: rgba(135, 131, 93, 0.24);
  transform: translateY(2px);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  width: 100%;
  margin: clamp(0.9rem, 1.8vw, 1.6rem) auto 0;
  padding: 0 0.55rem clamp(3rem, 7vw, 7rem);
}

.collections-browser {
  width: min(100%, 92rem);
  margin: clamp(0.45rem, 1.1vw, 1rem) auto 0;
  padding: 0 clamp(0.85rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem);
}

.collections-browser[hidden] {
  display: none;
}

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

.collections-back {
  border: 1px solid rgba(243, 239, 231, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: rgba(243, 239, 231, 0.78);
  background: rgba(243, 239, 231, 0.055);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.collection-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.25rem;
  margin: 0;
  color: rgba(243, 239, 231, 0.52);
  font-size: 0.78rem;
  font-weight: 750;
}

.collection-breadcrumb button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.collection-breadcrumb button:hover {
  color: var(--ink);
}

.collection-breadcrumb span {
  color: rgba(243, 239, 231, 0.34);
}

.collection-folders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.72rem;
}

.collection-folders[hidden] {
  display: none;
}

.collection-folder {
  position: relative;
  display: grid;
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 231, 0.12);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #080807;
  cursor: pointer;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.28);
}

.collection-folder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.82) contrast(1.05);
}

.collection-folder::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.05), rgba(5, 5, 5, 0.88)),
    linear-gradient(90deg, rgba(5, 5, 5, 0.48), transparent 62%);
  content: "";
}

.collection-folder-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  text-align: left;
}

.collection-folder-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.collection-folder-count {
  color: rgba(243, 239, 231, 0.68);
  font-size: 0.75rem;
  font-weight: 750;
}

.collection-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.collection-photos[hidden] {
  display: none;
}

.collection-photo {
  position: relative;
  display: grid;
  min-height: 13rem;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #050505;
  cursor: pointer;
}

.collection-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.collection-photo span {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.78rem;
  color: rgba(243, 239, 231, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.collections-toggle,
.sidebar-scrim,
.sidebar-nav {
  display: none;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(16rem, 0.42fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head p:not(.kicker) {
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.96rem;
}

.gallery-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100vh;
  max-height: 100vh;
  padding: clamp(3.4rem, 5.5vw, 4.5rem) 0.7rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(54, 57, 61, 0.94), rgba(31, 33, 36, 0.96)),
    #2a2d31;
  border-right: 1px solid rgba(243, 239, 231, 0.08);
  font-family: "Segoe UI", sans-serif;
  scrollbar-width: thin;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.62rem;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(243, 239, 231, 0.1);
  padding: 0.85rem 0.45rem 0;
  order: 10;
}

.sidebar-profile-link {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-width: 0;
}

.sidebar-profile-link img {
  width: 2.3rem;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 239, 231, 0.42);
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile strong {
  font-size: 0.82rem;
  font-weight: 850;
}

.sidebar-profile span {
  color: rgba(243, 239, 231, 0.62);
  font-size: 0.78rem;
}

.sidebar-label {
  margin: 0.1rem 0 0.35rem;
  color: rgba(243, 239, 231, 0.66);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters,
.subfilters {
  display: grid;
  gap: 0.2rem;
}

.is-nested-source {
  display: none !important;
}

.filters {
  margin-bottom: 0;
}

.genre-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.85rem;
  align-items: center;
}

.genre-item > .filter {
  grid-column: 1;
}

.genre-toggle {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  padding: 0;
  color: rgba(243, 239, 231, 0.58);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.genre-toggle:hover {
  color: var(--ink);
  background: rgba(243, 239, 231, 0.06);
}

.genre-toggle::before {
  content: "⌄";
  line-height: 1;
}

.genre-item.is-collapsed > .genre-toggle::before {
  content: "›";
}

.genre-item > .nested-subfilters {
  grid-column: 1 / -1;
}

.genre-item.is-collapsed > .nested-subfilters {
  display: none;
}

.subfilters,
.nested-subfilters {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 0.15rem 1.05rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(243, 239, 231, 0.12);
}

.subfilters[hidden] {
  display: none;
}

.recent-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(8rem, 10vw, 13rem), 1fr));
  gap: clamp(0.55rem, 1vw, 0.9rem);
  margin-bottom: 1.05rem;
  padding-bottom: 0.15rem;
}

.recent-gallery[hidden] {
  display: none;
}

.recent-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
  background: var(--panel);
  appearance: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.recent-frame img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 220ms ease;
}

.recent-frame:hover img {
  filter: saturate(1) contrast(1.08);
}

.filter,
.subfilter {
  position: relative;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.62rem 0.55rem;
  color: rgba(243, 239, 231, 0.68);
  background: transparent;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.filter::before {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  margin-right: 0.65rem;
  color: rgba(243, 239, 231, 0.62);
  content: "◆";
}

.filter[data-filter="featured"]::before {
  content: "★";
}

.subfilter {
  padding: 0.4rem 0.45rem;
  color: rgba(243, 239, 231, 0.58);
  font-size: 0.78rem;
}

.subfilter::before {
  margin-right: 0.4rem;
  color: rgba(243, 239, 231, 0.42);
  content: "•";
}

.subfilter[style*="--subfilter-level: 2"] {
  padding-left: 0.9rem;
  font-size: 0.74rem;
}

.subfilter[style*="--subfilter-level: 3"] {
  padding-left: 1.25rem;
  font-size: 0.7rem;
}

.filter:hover,
.filter.is-active,
.subfilter:hover,
.subfilter.is-active {
  color: var(--ink);
  background: rgba(243, 239, 231, 0.07);
  border-color: transparent;
}

.filter:hover,
.subfilter:hover {
  transform: translateX(2px);
}

.filter.is-active,
.subfilter.is-active {
  background: linear-gradient(90deg, rgba(160, 166, 174, 0.26), rgba(243, 239, 231, 0.06));
}

.gallery {
  --gallery-photo-height: clamp(12.48rem, 19.5vw, 21.84rem);
  align-self: start;
  align-content: start;
  align-items: start;
  min-width: 0;
  display: grid;
  gap: 10px !important;
  width: 100%;
}

.gallery-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  height: var(--row-height, auto);
  min-height: 0;
}

.frame {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: min(100%, calc(var(--photo-ratio, 1.35) * var(--row-photo-height, var(--gallery-photo-height))));
  height: var(--row-photo-height, var(--gallery-photo-height));
  position: relative;
  overflow: hidden;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
  justify-content: flex-start;
  line-height: 0;
  text-align: left;
  transition: transform 220ms ease, filter 220ms ease;
}

.recent-frame {
  position: relative;
}

.frame-large {
  grid-column: auto;
  grid-row: auto;
}

.frame-wide {
  grid-column: auto;
}

.frame-panoramic {
  grid-column: auto;
  width: min(100%, calc(var(--photo-ratio, 3) * var(--row-photo-height, var(--gallery-photo-height))));
  margin-bottom: 0;
}

.frame-panoramic img {
  height: var(--row-photo-height, var(--gallery-photo-height));
  max-height: none;
  object-fit: contain;
}

.frame:not(.frame-large, .frame-wide) {
  grid-column: auto;
}

.frame[hidden] {
  display: none;
}

.frame img {
  width: calc(var(--photo-ratio, 1.35) * var(--row-photo-height, var(--gallery-photo-height)));
  max-width: 100%;
  height: 100%;
  background: transparent;
  filter: saturate(0.92) contrast(1.02);
  object-fit: cover;
  transform: scale(1);
  transition: transform 420ms ease, filter 260ms ease;
}

.frame:hover img {
  filter: saturate(1.04) contrast(1.06);
  transform: scale(1.018);
}

.frame::after {
  content: none;
}

.frame-comment {
  display: none;
  padding: 0.62rem 0.08rem 0.12rem;
  overflow: visible;
  color: var(--mat-ink);
  background: var(--mat);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.frame-comment[hidden] {
  display: none;
}

.frame span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.about-contact {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.72);
}

.about-grid {
  display: grid;
  grid-template-columns: clamp(var(--contact-logo-min, 6rem), var(--contact-logo-fluid, 9vw), var(--contact-logo-max, 7.6rem)) minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(var(--contact-gap-min, 1.4rem), var(--contact-gap-fluid, 3vw), var(--contact-gap-max, 2.8rem));
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 4vw, 2rem);
}

.portrait {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: grid;
  gap: 1.25rem;
  transform: translateY(var(--contact-shift, 0rem));
}

.about-copy p,
.about-copy a {
  margin: 0;
}

.phone-link {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 800;
}

.contact-block {
  display: grid;
  gap: 0.72rem;
}

.contact-block .kicker {
  margin-bottom: 1rem;
  font-size: 0.72rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.contact-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 2.15rem;
  padding: 0.52rem 0.8rem;
  color: var(--muted);
  background: rgba(243, 239, 231, 0.04);
  font-size: clamp(var(--contact-text-min, 0.72rem), var(--contact-text-fluid, 1.1vw), var(--contact-text-max, 0.82rem));
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-row a:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3.5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #060606;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
}

.lightbox {
  width: fit-content;
  max-width: 96vw;
  max-height: 96vh;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.lightbox::backdrop {
  background: rgba(5, 5, 5, 0.94);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox-card {
  position: relative;
  display: grid;
  grid-template-areas:
    "image"
    "caption";
  grid-template-rows: minmax(0, auto) auto;
  justify-items: center;
  width: fit-content;
  max-width: 94vw;
  max-height: 94vh;
  margin: 0;
  border: 1px solid rgba(243, 239, 231, 0.12);
  padding: clamp(0.45rem, 1vw, 0.8rem);
  color: var(--ink);
  background: rgba(12, 12, 11, 0.96);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}

.lightbox-media {
  grid-area: image;
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: calc(94vw - clamp(1rem, 2.4vw, 2.2rem));
  max-height: calc(94vh - 6.8rem);
  overflow: hidden;
  background: #080807;
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: inherit;
  object-fit: contain;
}

.lightbox-watermark {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  color: rgba(243, 239, 231, 0.1);
  font-family: "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.lightbox-watermark-large {
  top: 50%;
  left: 50%;
  font-size: clamp(2rem, 5vw, 5.6rem);
  transform: translate(-50%, -50%) rotate(-28deg);
}

.lightbox-watermark-small {
  font-size: 12px;
}

.lightbox-watermark-small-1 { top: 8%; left: 9%; transform: rotate(-24deg); }
.lightbox-watermark-small-2 { top: 16%; right: 12%; transform: rotate(18deg); }
.lightbox-watermark-small-3 { top: 31%; left: 24%; transform: rotate(-12deg); }
.lightbox-watermark-small-4 { top: 42%; right: 18%; transform: rotate(-30deg); }
.lightbox-watermark-small-5 { top: 54%; left: 8%; transform: rotate(16deg); }
.lightbox-watermark-small-6 { top: 62%; right: 9%; transform: rotate(-18deg); }
.lightbox-watermark-small-7 { bottom: 18%; left: 20%; transform: rotate(24deg); }
.lightbox-watermark-small-8 { bottom: 12%; right: 23%; transform: rotate(-10deg); }
.lightbox-watermark-small-9 { top: 74%; left: 44%; transform: rotate(-28deg); }
.lightbox-watermark-small-10 { top: 23%; left: 52%; transform: rotate(12deg); }

.lightbox figcaption {
  grid-area: caption;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.12rem 0.75rem;
  align-items: start;
  width: 100%;
  padding-top: 0.75rem;
}

.lightbox p {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  max-height: none;
  margin: 0;
  padding: 0.42rem 0.08rem 0.08rem;
  overflow: visible;
  color: rgba(243, 239, 231, 0.84);
  background: transparent;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.lightbox-title,
.lightbox-meta {
  display: block;
  grid-column: 1;
  width: 100%;
  font-family: "Segoe UI", sans-serif;
}

.lightbox-title {
  padding-top: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.lightbox-title[hidden],
.lightbox-meta[hidden],
.lightbox p[hidden] {
  display: none;
}

.lightbox-meta {
  padding-top: 0.18rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.lightbox-exif-toggle,
.lightbox-share,
.lightbox-reaction {
  position: relative;
  z-index: 4;
  align-self: start;
  margin-top: -0.08rem;
  border: 1px solid rgba(243, 239, 231, 0.22);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  color: rgba(243, 239, 231, 0.78);
  background: rgba(243, 239, 231, 0.055);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lightbox-exif-toggle,
.lightbox-share {
  grid-row: 1;
}

.lightbox-exif-toggle {
  grid-column: 2;
}

.lightbox-share {
  grid-column: 3;
}

.lightbox-reactions {
  display: flex;
  grid-column: 4;
  grid-row: 1;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: -0.08rem;
}

.lightbox-reaction {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  min-width: 3.05rem;
  padding-inline: 0.52rem;
}

.lightbox-reaction b {
  font: inherit;
}

.lightbox-reaction.is-active {
  border-color: rgba(243, 239, 231, 0.52);
  color: var(--ink);
  background: rgba(243, 239, 231, 0.16);
}

.lightbox-buy {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 4;
  align-self: start;
  border: 1px solid rgba(243, 239, 231, 0.22);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  color: rgba(243, 239, 231, 0.84);
  background: rgba(243, 239, 231, 0.075);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.lightbox-buy:hover {
  border-color: rgba(243, 239, 231, 0.42);
  color: var(--ink);
  background: rgba(243, 239, 231, 0.12);
}

.lightbox-buy[hidden] {
  display: none;
}

.lightbox-share:hover,
.lightbox-reaction:hover,
.lightbox-exif-toggle:hover,
.lightbox-exif-toggle[aria-expanded="true"] {
  border-color: rgba(243, 239, 231, 0.42);
  color: var(--ink);
  background: rgba(243, 239, 231, 0.12);
}

.lightbox-exif-panel {
  grid-area: exif;
  align-self: start;
  width: min(18rem, 28vw);
  min-width: 13rem;
  border-left: 1px solid rgba(243, 239, 231, 0.14);
  padding-left: clamp(0.8rem, 1.4vw, 1.1rem);
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.lightbox-card.is-exif-open {
  grid-template-areas:
    "image exif"
    "caption exif";
  grid-template-columns: minmax(0, auto) minmax(13rem, 18rem);
  column-gap: clamp(0.8rem, 1.7vw, 1.35rem);
  align-items: start;
}

.lightbox-card.is-exif-open .lightbox-exif-panel {
  display: grid;
  gap: 0.52rem;
  margin-top: -0.18rem;
}

.lightbox-card.is-exif-open .lightbox-media {
  max-width: calc(94vw - 21rem);
}

.lightbox-exif-panel[hidden] {
  display: none;
}

.lightbox-exif-panel h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
}

.lightbox-exif-panel p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.lightbox-exif-panel dl {
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.lightbox-exif-panel div {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 0.48rem;
}

.lightbox-exif-panel dt {
  color: rgba(243, 239, 231, 0.54);
  font-weight: 800;
}

.lightbox-exif-panel dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(243, 239, 231, 0.35);
  background: rgba(8, 8, 7, 0.72);
  cursor: pointer;
  top: 1rem;
  right: 1rem;
  padding: 0.55rem 0.72rem;
  display: none;
}

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(36%, 19rem);
  min-width: 4.5rem;
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  font-family: "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
  text-shadow: none;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus,
.lightbox-nav:focus-visible,
.lightbox-nav:active {
  color: transparent;
  opacity: 0;
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.lightbox-prev {
  left: 0;
  justify-items: start;
  padding-left: clamp(0.45rem, 2vw, 1.1rem);
}

.lightbox-next {
  right: 0;
  justify-items: end;
  padding-right: clamp(0.45rem, 2vw, 1.1rem);
}

@media (max-width: 980px) {
  .site-header {
    gap: 0.75rem;
    padding-inline: clamp(0.85rem, 2.5vw, 1.75rem);
  }

  .brand {
    flex: 0 0 auto;
    max-width: none;
    min-width: max-content;
    font-size: 0.72rem;
  }

  .site-nav {
    gap: clamp(0.65rem, 2vw, 1.2rem);
    font-size: 0.68rem;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 4rem;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .gallery {
    --gallery-photo-height: clamp(10.14rem, 24.18vw, 15.6rem);
  }

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

  .frame-large,
  .frame-wide,
  .frame-panoramic,
  .frame:not(.frame-large, .frame-wide) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-bottom: 5.5rem;
  }

  body {
    padding-bottom: calc(4.8rem + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .site-header {
    position: fixed;
    top: auto;
    bottom: 0;
    align-items: center;
    flex-direction: row;
    gap: 0.65rem;
    border-top: 1px solid var(--line);
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(8, 8, 7, 0.78), rgba(8, 8, 7, 0.96));
  }

  .brand {
    flex: 0 0 auto;
    gap: 0.52rem;
    min-width: max-content;
    font-size: 0.64rem;
    line-height: 1.08;
    text-transform: none;
    white-space: normal;
  }

  .brand h1,
  .brand span {
    max-width: none;
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .brand img {
    width: 1.95rem;
  }

  .site-nav {
    display: none;
  }

  .hero-image img {
    object-position: center;
  }

  .hero-copy {
    padding: 4.25rem 1rem calc(5.25rem + env(safe-area-inset-bottom));
  }

  h1 {
    max-width: none;
    font-size: clamp(2.65rem, 13.5vw, 4.15rem);
  }

  h2 {
    max-width: 9ch;
    font-size: clamp(2.9rem, 15vw, 4rem);
  }

  .hero-deck,
  .section-head p:not(.kicker) {
    font-size: 0.98rem;
  }

  .hero-meta,
  .filters,
  .subfilters,
  .nested-subfilters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-meta::-webkit-scrollbar,
  .filters::-webkit-scrollbar,
  .subfilters::-webkit-scrollbar,
  .nested-subfilters::-webkit-scrollbar {
    display: none;
  }

  .hero-meta {
    margin-right: -1rem;
    padding-bottom: 0.2rem;
  }

  .scroll-cue {
    right: 1rem;
    bottom: calc(4.95rem + env(safe-area-inset-bottom));
    width: 2.25rem;
    height: 2.25rem;
  }

  .hero-meta span,
  .filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .work {
    display: block;
    padding: 1.5rem 1rem 3.6rem;
  }

  .collections-browser {
    padding: 0 1rem 1rem;
  }

  .collections-browser-head {
    align-items: center;
  }

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

  .collection-folder {
    min-height: 10.5rem;
  }

  .collection-folder-copy {
    padding: 0.75rem;
  }

  .collections-toggle {
    position: fixed;
    top: calc(0.85rem + env(safe-area-inset-top));
    left: 0.85rem;
    z-index: 35;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(243, 239, 231, 0.2);
    border-radius: 50%;
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: rgba(8, 8, 7, 0.58);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    backdrop-filter: blur(16px);
  }

  .collections-toggle span,
  .collections-toggle::before,
  .collections-toggle::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .collections-toggle span {
    box-shadow: 0 -0.42rem 0 currentColor, 0 0.42rem 0 currentColor;
  }

  .collections-toggle::before,
  .collections-toggle::after {
    position: absolute;
    opacity: 0;
  }

  body.is-collections-open .collections-toggle span {
    opacity: 0;
  }

  body.is-collections-open .collections-toggle::before {
    opacity: 1;
    transform: rotate(45deg);
  }

  body.is-collections-open .collections-toggle::after {
    opacity: 1;
    transform: rotate(-45deg);
  }

  .gallery-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: min(22rem, 88vw);
    height: 100svh;
    min-height: 0;
    max-height: none;
    margin: 0;
    border-right: 1px solid rgba(243, 239, 231, 0.14);
    border-bottom: 0;
    padding: calc(4.25rem + env(safe-area-inset-top)) 0.85rem calc(1rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(42, 45, 49, 0.96);
    box-shadow: 22px 0 70px rgba(0, 0, 0, 0.46);
    transform: translateX(-102%);
    transition: transform 220ms ease;
    backdrop-filter: blur(18px);
  }

  body.is-collections-open .gallery-sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    border: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.42);
    transition: opacity 220ms ease;
  }

  body.is-collections-open .sidebar-scrim {
    pointer-events: auto;
    opacity: 1;
  }

  .sidebar-profile,
  .sidebar-label {
    display: grid;
  }

  .sidebar-label {
    display: block;
    margin-top: 0.95rem;
    font-size: 1.05rem;
  }

  .sidebar-profile {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    margin-top: auto;
    order: 5;
  }

  .sidebar-profile .lang-toggle {
    display: grid;
    min-width: 3.15rem;
    min-height: 3.15rem;
    place-items: center;
    border: 1px solid rgba(243, 239, 231, 0.14);
    border-radius: 50%;
    padding: 0;
    color: var(--ink);
    background: rgba(8, 8, 7, 0.2);
    font-size: 0.78rem;
    font-weight: 850;
  }

  .section-head {
    gap: 0.9rem;
    margin-bottom: 1.1rem;
  }

  .filters {
    display: grid;
    gap: 0.24rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .subfilters,
  .nested-subfilters {
    display: grid;
    gap: 0.18rem;
    margin: 0.25rem 0 0.35rem 0.45rem;
    border-left: 0;
    padding: 0 0 0.1rem 0.45rem;
    overflow: visible;
  }

  .filter,
  .subfilter {
    width: 100%;
    border: 1px solid var(--line);
    padding: 0.5rem 0.68rem;
    font-size: 0.78rem;
    text-align: left;
    white-space: nowrap;
  }

  .genre-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.85rem;
    align-items: center;
    min-width: 0;
  }

  .genre-toggle {
    display: grid;
    border: 1px solid var(--line);
    border-left: 0;
    background: rgba(243, 239, 231, 0.04);
  }

  .genre-item > .nested-subfilters {
    grid-column: 1 / -1;
  }

  .filter::before,
  .subfilter::before {
    content: none;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    width: min(100%, 28rem);
    text-align: center;
  }

  .portrait {
    width: 5.75rem;
  }

  .contact-row {
    justify-content: center;
  }

  .contact-row a {
    min-height: 2.15rem;
    font-size: clamp(0.72rem, 3.4vw, 0.82rem);
    white-space: normal;
  }

  .gallery {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    column-count: auto;
    gap: 10px !important;
  }

  .gallery-row {
    display: grid;
    align-items: start;
    gap: 10px;
    width: 100%;
    height: auto !important;
    min-height: 0;
  }

  .frame-large,
  .frame-wide,
  .frame-panoramic,
  .frame:not(.frame-large, .frame-wide) {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .frame {
    display: flex;
    align-self: start;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .frame::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    max-width: 86%;
    overflow: hidden;
    color: rgba(243, 239, 231, 0.1);
    content: "AVTO METREVELI";
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.15rem, 7vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    text-overflow: clip;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-28deg);
    user-select: none;
    white-space: nowrap;
  }

  .frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: saturate(0.94) contrast(1.02);
  }

  .frame-comment {
    display: none;
    padding: 0.62rem 0.08rem 0.1rem;
    overflow: visible;
    color: var(--mat-ink);
    background: var(--mat);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .lightbox {
    width: 100vw;
    max-width: none;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    margin: 0;
    padding: calc(3.9rem + env(safe-area-inset-top)) 0.78rem calc(0.7rem + env(safe-area-inset-bottom));
    background: transparent;
  }

  .lightbox[open] {
    display: grid;
    align-items: start;
    justify-items: center;
  }

  .lightbox-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    max-height: calc(100svh - 4.6rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.62rem;
  }

  .lightbox-card.is-exif-open {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
  }

  .lightbox-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: calc(100svh - 12rem);
  }

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

  .lightbox-card.is-exif-open .lightbox-media {
    max-height: calc(100svh - 12rem);
  }

  .lightbox figcaption {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    width: 100%;
  }

  .lightbox-reactions {
    grid-column: 4;
    grid-row: 1;
    justify-content: flex-end;
  }

  .lightbox-exif-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .lightbox-share {
    grid-column: 3;
    grid-row: 1;
  }

  .lightbox-reaction {
    min-width: 2.72rem;
    padding: 0.3rem 0.46rem;
  }

  .lightbox p {
    width: 100%;
    max-height: none;
    padding: 0.4rem 0.08rem 0;
    font-size: 0.82rem;
  }

  .lightbox-exif-panel {
    position: static;
    flex: 0 0 auto;
    align-self: start;
    width: 100%;
    min-width: 0;
    border-top: 1px solid rgba(243, 239, 231, 0.14);
    border-left: 0;
    padding-top: 0.35rem;
    padding-left: 0;
    margin-top: 0;
  }

  .lightbox-card.is-exif-open .lightbox-exif-panel {
    margin-top: 0;
  }

  .lightbox-close {
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 0.75rem;
  }

  .lightbox-nav {
    width: 42vw;
    min-width: 4rem;
    background: transparent;
    font-size: 2.35rem;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }

.site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1.5rem;
  }
}

.copyright-note {
  color: rgba(243, 239, 231, 0.58);
}

@media (max-width: 420px) {
  .brand h1,
  .brand span {
    display: block;
    max-width: none;
  }

  .brand {
    gap: 0.42rem;
    font-size: 0.58rem;
  }

  .brand img {
    width: 1.72rem;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .site-nav a,
  .lang-toggle {
    flex: 0 0 auto;
    padding: 0.45rem 0.46rem;
    text-align: center;
  }

  .hero-copy {
    padding-inline: 0.85rem;
  }

  h1 {
    font-size: clamp(2.15rem, 13.2vw, 3.05rem);
  }

}

@media (hover: none) {
  .frame:hover img {
    filter: saturate(0.82) contrast(1.04);
    transform: none;
  }
}
