:root {
  color-scheme: light;
  --bg: #eef6f2;
  --body-bg: linear-gradient(180deg, #f7fbff 0, #eef6f2 45%, #fff4eb 100%);
  --ink: #102027;
  --muted: #61717a;
  --soft: #73827c;
  --line: #d5e1df;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --toolbar-bg: rgba(247, 251, 255, 0.84);
  --control-bg: rgba(255, 255, 255, 0.88);
  --segment-bg: #e7f0ee;
  --thumb-bg: #dce9e7;
  --empty-bg: rgba(255, 255, 255, 0.56);
  --viewer-panel: #ffffff;
  --description: #465760;
  --accent: #0b7285;
  --accent-strong: #074b59;
  --gold: #d97706;
  --rose: #d63f5e;
  --night: #102027;
  --primary-bg: #102027;
  --primary-ink: #f7fbff;
  --shadow: 0 22px 60px rgba(16, 32, 39, 0.13);
  --thumb: 230px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1518;
  --body-bg: linear-gradient(180deg, #071015 0, #0d1518 48%, #182018 100%);
  --ink: #eff7f8;
  --muted: #a7b5bb;
  --soft: #899a9b;
  --line: #273b3f;
  --panel: #121d21;
  --panel-strong: #0d171b;
  --toolbar-bg: rgba(13, 23, 27, 0.88);
  --control-bg: rgba(18, 29, 33, 0.94);
  --segment-bg: #1b2a2d;
  --thumb-bg: #0b1518;
  --empty-bg: rgba(18, 29, 33, 0.64);
  --viewer-panel: #111b1f;
  --description: #c6d3d7;
  --accent: #38bdf8;
  --accent-strong: #a5e9ff;
  --gold: #f59e0b;
  --rose: #fb7185;
  --night: #eff7f8;
  --primary-bg: #eff7f8;
  --primary-ink: #0d171b;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
label.button,
select {
  min-height: 44px;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 42px) 48px;
}

.topbar,
.toolbar,
.brand,
.actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.brand {
  min-width: 0;
  gap: 14px;
}

.logo-mark {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 62%);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent), transparent 82%) 0 26%, transparent 27%),
    linear-gradient(135deg, var(--panel-strong), color-mix(in srgb, var(--gold), transparent 86%));
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.logo-mark::before {
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: color-mix(in srgb, var(--accent), transparent 65%);
}

.logo-mark::after {
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: color-mix(in srgb, var(--accent), transparent 65%);
}

.logo-mark i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  pointer-events: none;
}

.logo-mark i:nth-child(1) {
  left: 7px;
  top: 7px;
  border-left: 2px solid;
  border-top: 2px solid;
}

.logo-mark i:nth-child(2) {
  right: 7px;
  top: 7px;
  border-right: 2px solid;
  border-top: 2px solid;
}

.logo-mark i:nth-child(3) {
  left: 7px;
  bottom: 7px;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.logo-mark i:nth-child(4) {
  right: 7px;
  bottom: 7px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.logo-mark span {
  position: relative;
  z-index: 1;
  min-width: 17px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel-strong), transparent 18%);
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--line), transparent 55%);
  pointer-events: none;
}

.logo-mark span:first-child {
  color: var(--accent);
}

.logo-mark span:last-child {
  color: var(--gold);
}


.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 5.3rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 700;
}

.actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.button,
.icon-button,
.theme-toggle,
.segment,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: var(--primary-bg);
  color: var(--primary-ink);
  box-shadow: 0 12px 30px rgba(25, 27, 34, 0.18);
}

.contact-button {
  padding: 0 16px;
}

.account-button,
.cart-button {
  padding: 0 14px;
}

.account-button {
  gap: 8px;
}

.account-button.is-signed-in {
  min-height: 46px;
  display: inline-flex;
  gap: 8px;
  padding: 5px 12px;
  border-color: color-mix(in srgb, var(--accent), transparent 46%);
  background: color-mix(in srgb, var(--accent), transparent 91%);
}

.account-state {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.account-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 82%);
}

.cart-button {
  gap: 8px;
}

.cart-button span {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
}

.icon-button {
  width: 44px;
  display: inline-grid;
  place-items: center;
}

.theme-toggle {
  position: relative;
  width: 44px;
  display: inline-grid;
  place-items: center;
}

.theme-icon {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -6px -4px 0 var(--control-bg);
}

:root[data-theme="dark"] .theme-icon {
  width: 20px;
  height: 20px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 166, 66, 0.16);
}

:root[data-theme="dark"] .theme-icon::before,
:root[data-theme="dark"] .theme-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

:root[data-theme="dark"] .theme-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.folder-icon {
  position: relative;
  width: 22px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.folder-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 10px;
  height: 6px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: inherit;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--toolbar-bg);
  box-shadow: 0 14px 38px rgba(30, 24, 18, 0.08);
  backdrop-filter: blur(18px);
}

.search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.search-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search input::placeholder {
  color: #8a9299;
}

:root[data-theme="dark"] .search input::placeholder {
  color: #87919c;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, auto));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--segment-bg);
}

.segment {
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segment.is-active {
  background: var(--panel-strong);
  color: var(--accent-strong);
  box-shadow: 0 5px 18px rgba(30, 24, 18, 0.1);
}

.favorites-filter {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--rose), transparent 50%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--rose), transparent 91%);
  color: var(--rose);
  font-weight: 900;
  white-space: nowrap;
}

.favorites-filter span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1;
}

.favorites-filter.is-active {
  border-color: var(--rose);
  background: var(--rose);
  color: #ffffff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--rose), transparent 78%);
}

select {
  padding: 0 13px;
  font-weight: 780;
}

.range {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

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

.bottom-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.bottom-controls .range {
  width: min(340px, 100%);
  min-height: 40px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--panel-strong), transparent 14%);
  box-shadow: 0 10px 26px rgba(16, 32, 39, 0.08);
  backdrop-filter: blur(14px);
}

.bottom-controls .range span {
  white-space: nowrap;
}

.bottom-controls .range input {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(230px, 35vh, 390px);
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 42px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 15, 19, 0.78), rgba(14, 15, 19, 0.3) 62%, rgba(201, 141, 39, 0.22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 620'%3E%3Crect width='1400' height='620' fill='%23191b22'/%3E%3Cpath d='M0 434 148 320l166 64 202-184 206 199 166-110 214 151 298-214v394H0z' fill='%23fffaf2'/%3E%3Cpath d='M0 480 256 272l270 348H0z' fill='%23126b5f' fill-opacity='.82'/%3E%3Ccircle cx='1068' cy='154' r='72' fill='%23c98d27'/%3E%3Crect x='42' y='42' width='1316' height='536' rx='28' fill='none' stroke='%23fffaf2' stroke-opacity='.22' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 96px;
  height: 28px;
  border-top: 2px solid rgba(255, 250, 242, 0.62);
  border-right: 2px solid rgba(255, 250, 242, 0.62);
  pointer-events: none;
}

.hero.is-ready {
  background-image: linear-gradient(90deg, rgba(14, 15, 19, 0.72), rgba(14, 15, 19, 0.16) 64%, rgba(201, 141, 39, 0.18)), var(--hero-image);
}

.hero.is-dragging {
  outline: 4px solid rgba(201, 141, 39, 0.34);
  outline-offset: -10px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  color: #fffaf2;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.3);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 242, 0.42);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.14);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.count {
  margin-bottom: 8px;
  color: rgba(255, 250, 242, 0.86);
  font-weight: 850;
}

h2 {
  max-width: 920px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--thumb), 100%), 1fr));
  gap: 16px;
}

.photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(30, 24, 18, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(30, 24, 18, 0.14);
}

.photo-button {
  display: block;
  width: 100%;
  height: clamp(180px, calc(var(--thumb) * 0.78), 290px);
  padding: 0;
  background: var(--thumb-bg);
}

.photo-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 7px 0 13px;
}

.photo-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.favorite {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--muted), transparent 12%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.favorite:hover {
  background: color-mix(in srgb, var(--rose), transparent 92%);
  color: var(--rose);
}

.favorite:active {
  transform: scale(0.94);
}

.buy-photo {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 56%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 90%);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.buy-photo:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 84%);
}

.favorite.is-on {
  background: rgba(187, 65, 92, 0.1);
  color: var(--rose);
}

.empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--muted), transparent 62%);
  border-radius: 8px;
  background: var(--empty-bg);
  color: var(--muted);
  font-weight: 850;
}

.viewer {
  width: min(1160px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111417;
  color: #ffffff;
  box-shadow: var(--shadow);
  transform-origin: center;
}

.viewer:fullscreen,
.viewer.is-fullscreen-fallback {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.viewer::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.44);
}

.shop-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.viewer[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  animation: viewer-open 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer[open]::backdrop {
  animation: viewer-backdrop-open 220ms ease-out;
}

.viewer figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  margin: 0;
  animation: viewer-content-open 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-photo-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #0a0c0d;
}

.viewer-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0a0c0d;
  -webkit-user-drag: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 680ms ease-in-out,
    transform 680ms ease-in-out;
  will-change: opacity, transform;
}

.viewer-image-layer.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.viewer figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--viewer-panel);
  color: var(--ink);
}

.viewer-heading {
  min-width: 0;
}

.viewer-label {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.viewer figcaption strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.08;
}

#viewerDescription {
  grid-column: 1 / -1;
  max-width: 850px;
  margin: 3px 0 0;
  color: var(--description);
  font-size: 1rem;
  line-height: 1.5;
}

.buy-viewer {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border-color: color-mix(in srgb, var(--accent), transparent 48%);
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent-strong);
}

.download-menu {
  position: relative;
  align-self: start;
  justify-self: end;
  padding-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.download-toggle {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.download-toggle:hover,
.download-menu.is-open .download-toggle {
  border-color: var(--ink);
}

.download-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  width: 180px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--viewer-panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.download-menu.is-open .download-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.download-options button {
  min-height: 36px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.download-options button:hover {
  background: color-mix(in srgb, var(--ink), transparent 92%);
}

.viewer-close,
.viewer-fullscreen,
.contact-close,
.viewer-nav {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.viewer-close {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.7rem;
}

.contact-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--viewer-panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.shop-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--viewer-panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-dialog h3 {
  margin: 0 48px 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.shop-dialog h3 {
  margin: 0 48px 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.shop-note {
  margin: 0 0 18px;
  color: var(--description);
  line-height: 1.45;
}

.shop-form {
  display: grid;
  gap: 12px;
}

.shop-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.shop-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--panel-strong);
  color: var(--ink);
}

.shop-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 84%);
}

.shop-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.account-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.35;
}

.account-favorites {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.account-favorites[hidden] {
  display: none;
}

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.account-section-heading h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1;
}

.account-section-heading span {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rose), transparent 88%);
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 900;
}

.account-favorite-list {
  display: grid;
  gap: 9px;
  max-height: min(280px, 34vh);
  overflow: auto;
  padding-right: 4px;
}

.account-favorite-empty {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.account-favorite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.account-favorite:hover {
  border-color: var(--accent);
}

.account-favorite-open {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.account-favorite img {
  width: 62px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--thumb-bg);
}

.account-favorite-cart {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 56%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 90%);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.account-favorite-details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-favorite-details strong,
.account-favorite-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-favorite-details strong {
  font-size: 0.95rem;
}

.account-favorite-details span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.account-favorite-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.logout-button {
  width: 100%;
  margin-top: 12px;
  border-color: color-mix(in srgb, var(--rose), transparent 58%);
  color: var(--rose);
}

.logout-button[hidden] {
  display: none;
}

.cart-dialog {
  width: min(680px, calc(100vw - 32px));
}

.cart-items {
  display: grid;
  gap: 10px;
  max-height: min(420px, 48vh);
  overflow: auto;
  padding-right: 4px;
}

.cart-empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--muted), transparent 60%);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.cart-item img {
  width: 70px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--thumb-bg);
}

.cart-item-details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cart-item-details strong,
.cart-item-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-details strong {
  font-size: 0.98rem;
}

.cart-item-details span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.cart-item b {
  color: var(--accent-strong);
}

.cart-item button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 850;
}

.cart-total strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.checkout-button {
  width: 100%;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.contact-card-brand {
  display: grid;
  justify-items: center;
  padding: 10px 18px 28px;
  text-align: center;
}

.contact-logo {
  width: 108px;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  margin-bottom: 14px;
}

.contact-logo span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  font-weight: 700;
  line-height: 0.78;
  color: var(--ink);
}

.contact-logo span:first-child {
  transform: translateX(16px);
}

.contact-logo span:last-child {
  color: var(--gold);
  transform: translateX(-16px);
}

.contact-card-brand p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.72em;
  text-indent: 0.72em;
  text-transform: uppercase;
}

.contact-card-brand h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
}

.contact-close {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: var(--control-bg);
  color: var(--ink);
  font-size: 1.35rem;
}

.viewer-fullscreen {
  top: 12px;
  right: 62px;
  width: 42px;
  height: 42px;
}

.fullscreen-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: currentColor;
}

.corner-tl {
  left: 0;
  top: 0;
  border-left: 2px solid;
  border-top: 2px solid;
}

.corner-tr {
  right: 0;
  top: 0;
  border-right: 2px solid;
  border-top: 2px solid;
}

.corner-bl {
  left: 0;
  bottom: 0;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.corner-br {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.viewer:fullscreen .corner-tl,
.viewer.is-fullscreen-fallback .corner-tl {
  left: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-left: 0;
  border-top: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.viewer:fullscreen .corner-tr,
.viewer.is-fullscreen-fallback .corner-tr {
  right: 2px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-right: 0;
  border-top: 0;
  border-left: 2px solid;
  border-bottom: 2px solid;
}

.viewer:fullscreen .corner-bl,
.viewer.is-fullscreen-fallback .corner-bl {
  left: 2px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-left: 0;
  border-bottom: 0;
  border-right: 2px solid;
  border-top: 2px solid;
}

.viewer:fullscreen .corner-br,
.viewer.is-fullscreen-fallback .corner-br {
  right: 2px;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-right: 0;
  border-bottom: 0;
  border-left: 2px solid;
  border-top: 2px solid;
}

.viewer-nav {
  top: 50%;
  width: 46px;
  height: 68px;
  transform: translateY(-50%);
  font-size: 2.2rem;
}

.viewer-prev {
  left: 12px;
}

.viewer-next {
  right: 12px;
}

@keyframes viewer-open {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes viewer-content-open {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes viewer-backdrop-open {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-page,
  .intro-track {
    animation: none;
    transition: none;
  }

  .viewer[open],
  .viewer[open]::backdrop,
  .viewer figure {
    animation: none;
  }

  .viewer-image-layer {
    transition: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  .shell {
    padding-top: 22px;
  }

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

  .brand {
    align-items: flex-start;
  }

  .logo-mark {
    width: 48px;
    height: 48px;
    margin-top: 4px;
  }

  .actions {
    width: 100%;
    justify-content: flex-start;
  }

  .button.primary {
    flex: 1 1 190px;
  }

  .segmented {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .favorites-filter {
    width: 100%;
    justify-content: center;
  }

  .range,
  select {
    width: 100%;
  }

  .range input {
    width: 100%;
  }

  .bottom-controls {
    justify-content: stretch;
  }

  .hero {
    min-height: 390px;
  }

  .viewer figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .buy-viewer {
    width: 100%;
  }

  .download-menu {
    width: 100%;
    justify-self: stretch;
    padding-top: 0;
  }

  .download-toggle {
    width: 100%;
  }

  .download-options {
    width: 100%;
  }

  .shop-actions {
    display: grid;
  }

  .cart-item {
    grid-template-columns: 62px minmax(0, 1fr) auto;
  }

  .cart-item img {
    width: 62px;
    height: 58px;
  }

  .cart-item button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .account-favorite {
    grid-template-columns: 1fr;
  }

  .account-favorite-cart {
    justify-self: start;
  }
}

/* Minimal portfolio presentation */
:root {
  --body-bg: #ffffff;
  --ink: #111111;
  --muted: #777777;
  --soft: #a6a6a6;
  --line: #eeeeee;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --toolbar-bg: #ffffff;
  --control-bg: #ffffff;
  --segment-bg: #ffffff;
  --thumb-bg: #f4f4f4;
  --empty-bg: #fafafa;
  --viewer-panel: #ffffff;
  --description: #555555;
  --accent: #111111;
  --accent-strong: #111111;
  --gold: #9d8b70;
  --rose: #c43d4f;
  --primary-bg: #111111;
  --primary-ink: #ffffff;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
  --thumb: 330px;
}

:root[data-theme="dark"] {
  --body-bg: #101010;
  --ink: #f4f4f4;
  --muted: #a8a8a8;
  --soft: #777777;
  --line: #2a2a2a;
  --panel: #151515;
  --panel-strong: #181818;
  --toolbar-bg: #101010;
  --control-bg: #151515;
  --segment-bg: #101010;
  --thumb-bg: #191919;
  --empty-bg: #151515;
  --viewer-panel: #151515;
  --description: #c8c8c8;
  --accent: #ffffff;
  --accent-strong: #ffffff;
  --gold: #c3b397;
  --rose: #ff6b80;
  --primary-bg: #f4f4f4;
  --primary-ink: #101010;
}

body {
  background: var(--body-bg);
}

body.intro-active {
  overflow: hidden;
}

.intro-page {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--body-bg);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease, visibility 520ms ease;
  visibility: hidden;
}

body.intro-active .intro-page {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.intro-stage {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: clamp(8px, 1vw, 16px);
  opacity: 0.44;
  transform: rotate(-3deg) scale(1.08);
}

.intro-stage::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(90deg, var(--body-bg) 0 14%, transparent 34% 66%, var(--body-bg) 86% 100%),
    linear-gradient(180deg, var(--body-bg) 0 14%, transparent 35% 64%, var(--body-bg) 88% 100%);
  pointer-events: none;
}

.intro-track {
  display: flex;
  gap: clamp(8px, 1vw, 16px);
  width: max-content;
  will-change: transform;
}

.intro-track-a {
  animation: intro-drift-left 26s linear infinite;
}

.intro-track-b {
  animation: intro-drift-right 30s linear infinite;
  transform: translateX(-18%);
}

.intro-track img {
  width: clamp(190px, 23vw, 420px);
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.94);
  -webkit-user-drag: none;
  user-select: none;
}

.intro-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 38px));
  display: grid;
  justify-items: center;
  text-align: center;
}

.intro-logo {
  margin-bottom: 24px;
}

.intro-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.56em;
  text-indent: 0.56em;
  text-transform: uppercase;
}

.intro-content h2 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
}

.intro-text {
  max-width: 470px;
  margin: 22px 0 30px;
  color: var(--description);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.65;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.intro-enter {
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--body-bg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.intro-enter:hover {
  background: transparent;
  color: var(--ink);
}

.intro-music {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--body-bg), transparent 8%);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.intro-music:hover,
.intro-music.is-playing {
  border-color: var(--ink);
  color: var(--ink);
}

.intro-music.is-playing::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--gold);
  vertical-align: 1px;
}

@keyframes intro-drift-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-28%);
  }
}

@keyframes intro-drift-right {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(0);
  }
}

.shell {
  width: min(1120px, 100%);
  padding: 56px clamp(18px, 4vw, 36px) 56px;
}

.topbar {
  flex-direction: column;
  justify-content: center;
  gap: 42px;
  margin-bottom: 48px;
}

.brand {
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.logo-mark {
  width: 104px;
  height: 74px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.logo-mark::before,
.logo-mark::after,
.logo-mark i {
  display: none;
}

.logo-mark span {
  min-width: 0;
  min-height: 0;
  display: block;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  font-weight: 400;
  line-height: 0.8;
}

.logo-mark span:first-of-type {
  transform: translateX(16px);
}

.logo-mark span:last-of-type {
  transform: translateX(-16px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.72em;
  text-indent: 0.72em;
}

h1 {
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  text-transform: uppercase;
}

.actions {
  justify-content: center;
  gap: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.button,
.icon-button,
.theme-toggle,
.segment,
select,
.favorites-filter {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.button,
label.button,
.icon-button,
.theme-toggle,
.segment,
select,
.favorites-filter {
  min-height: 32px;
}

.button,
.segment,
select,
.favorites-filter {
  padding: 0;
  color: var(--muted);
  font-weight: 500;
}

.button:hover,
.segment:hover,
.favorites-filter:hover,
select:hover {
  color: var(--ink);
}

.button.primary {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.cart-button span,
.account-state {
  min-width: 18px;
  min-height: 18px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--body-bg);
  font-size: 0.68rem;
}

.account-button.is-signed-in {
  min-height: 32px;
  padding: 0;
  background: transparent;
  border-color: transparent;
}

.account-dot {
  background: var(--ink);
  box-shadow: none;
}

.theme-toggle,
.icon-button {
  width: 32px;
}

.theme-toggle {
  position: fixed;
  top: 22px;
  right: clamp(16px, 3vw, 42px);
  z-index: 80;
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

#pickFolder,
label[for="pickFiles"] {
  display: none;
}

.movie-import {
  color: var(--muted);
}

.theme-icon {
  width: 14px;
  height: 14px;
}

.folder-icon {
  width: 18px;
  height: 13px;
}

.toolbar {
  position: static;
  justify-content: center;
  gap: 34px;
  padding: 0;
  margin: 0 auto 104px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-family: Georgia, "Times New Roman", serif;
}

.search {
  flex: 0 1 180px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
}

.search:focus-within {
  border-bottom-color: var(--line);
}

.search-icon {
  display: none;
}

.search input {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.segmented {
  display: flex;
  gap: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.segment.is-active,
.favorites-filter.is-active {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.favorites-filter {
  gap: 5px;
  border: 0;
  color: var(--muted);
}

.favorites-filter span {
  font-size: 0.88rem;
}

select {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.hero {
  display: none;
}

.gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(var(--thumb), 100%), 1fr));
  gap: 8px;
}

.photo-card {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.photo-card:hover {
  transform: none;
  box-shadow: none;
}

.photo-button {
  height: auto;
  aspect-ratio: 3 / 2;
  background: var(--thumb-bg);
}

.photo-button img {
  transition: filter 220ms ease, transform 220ms ease;
}

.photo-card:hover .photo-button img {
  filter: brightness(0.78);
  transform: scale(1.015);
}

.video-button {
  position: relative;
}

.video-button video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.82);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.photo-card footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-card:hover footer,
.photo-card:focus-within footer {
  opacity: 1;
  transform: translateY(0);
}

.photo-name {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  font-weight: 500;
}

.buy-photo {
  min-height: 30px;
  padding: 0 9px;
  border-color: rgba(255, 255, 255, 0.36);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.76rem;
}

.favorite {
  width: 30px;
  height: 30px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.36rem;
}

.favorite:hover,
.favorite.is-on {
  background: transparent;
  color: var(--rose);
}

.bottom-controls {
  justify-content: flex-end;
  margin: -54px 0 18px;
  position: relative;
  z-index: 2;
}

.bottom-controls .range {
  width: min(300px, 100%);
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.bottom-controls .range input {
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.bottom-controls .range input::-webkit-slider-runnable-track {
  height: 1px;
  background: color-mix(in srgb, var(--ink), transparent 72%);
}

.bottom-controls .range input::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4.5px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--body-bg);
}

.bottom-controls .range input::-moz-range-track {
  height: 1px;
  background: color-mix(in srgb, var(--ink), transparent 72%);
}

.bottom-controls .range input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--body-bg);
}

.contact-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 38px 42px 34px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.about-dialog {
  width: min(620px, calc(100vw - 32px));
}

.about-copy {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.about-copy p {
  margin: 0;
  color: var(--description);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.about-copy p:first-child {
  color: var(--ink);
}

.video-viewer {
  width: min(980px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #050505;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.video-viewer::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.video-viewer[open] {
  animation: viewer-open 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-viewer figure {
  margin: 0;
}

.video-viewer video {
  width: 100%;
  max-height: min(72vh, 720px);
  display: block;
  background: #050505;
}

.video-viewer figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 20px;
  background: var(--viewer-panel);
  color: var(--ink);
}

.contact-card-brand {
  padding: 8px 12px 32px;
}

.contact-links {
  gap: 12px;
}

.contact-links a {
  justify-content: center;
  min-height: 48px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.whatsapp-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.whatsapp-box label {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.whatsapp-box textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.whatsapp-box textarea:focus {
  border-color: var(--ink);
}

.whatsapp-box button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--body-bg);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.contact-close {
  top: 14px;
  right: 14px;
  border-radius: 0;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(min(var(--thumb), 100%), 1fr));
  }
}

@media (max-width: 760px) {
  .shell {
    padding-top: 34px;
  }

  .topbar {
    gap: 20px;
  }

  .actions,
  .toolbar,
  .segmented {
    gap: 16px;
  }

  .actions {
    justify-content: center;
  }

  .theme-toggle {
    top: 14px;
    right: 14px;
  }

  .toolbar {
    margin-bottom: 48px;
  }

  .segmented {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .favorites-filter {
    width: auto;
  }

  .bottom-controls {
    justify-content: stretch;
    margin: 0 0 18px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(min(var(--thumb), 100%), 1fr));
  }

  .photo-card footer {
    opacity: 1;
    transform: none;
  }
}
