/* hadir. Gallery Identity v1
   Photo-first, private, warm, and native-feeling without imitating a system UI literally. */

#gallery-view {
  --gallery-bg: #000;
  --gallery-surface: #1c1c1e;
  --gallery-surface-strong: #242426;
  --gallery-label: #f5f5f7;
  --gallery-secondary: rgba(235, 235, 245, .60);
  --gallery-tertiary: rgba(235, 235, 245, .34);
  --gallery-line: rgba(255, 255, 255, .10);
  --gallery-warm: #d8bd8b;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  background: var(--gallery-bg);
  color: var(--gallery-label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#gallery-view::-webkit-scrollbar {
  display: none;
}

#gallery-view .gallery-page {
  width: min(100%, 680px);
  max-width: 680px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 116px);
  background: var(--gallery-bg);
}

#gallery-view .gallery-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: calc(env(safe-area-inset-top, 0px) + 56px);
  margin: 0;
  padding: env(safe-area-inset-top, 0px) 12px 0;
  border-bottom: 1px solid transparent;
  background: rgba(0, 0, 0, .92);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #gallery-view .gallery-topbar {
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
  }
}

#gallery-view .gallery-wordmark {
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
  text-align: center;
  text-transform: none;
}

#gallery-view .gallery-icon-button,
#gallery-view .gallery-utility-button,
#gallery-view .gallery-dock-button,
#gallery-view .gallery-tab,
#gallery-view .photo-card,
.lightbox button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#gallery-view .gallery-icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gallery-label);
}

#gallery-view .gallery-icon-button:last-child { justify-self: end; }
#gallery-view .gallery-icon-button:active { background: rgba(255, 255, 255, .10); }
#gallery-view .gallery-icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#gallery-view #gallery-settings-btn svg { fill: currentColor; stroke: none; }

#gallery-view .gallery-main { min-width: 0; }

#gallery-view .gallery-hero {
  display: block;
  margin: 0;
  padding: 28px 20px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#gallery-view .gallery-eyebrow {
  margin: 0 0 10px;
  color: var(--gallery-warm);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
}

#gallery-view .gallery-title {
  max-width: 560px;
  margin: 0;
  color: var(--gallery-label);
  font-family: inherit;
  font-size: clamp(36px, 10vw, 54px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

#gallery-view .gallery-brand-line {
  max-width: 430px;
  margin: 14px 0 0;
  color: var(--gallery-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -.012em;
}

#gallery-view .gallery-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--gallery-secondary);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: -.006em;
}

#gallery-view .gallery-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gallery-tertiary) !important;
}

#gallery-view .gallery-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
  color: rgba(235, 235, 245, .48);
}

#gallery-view .gallery-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, .10);
}

#gallery-view .gallery-utility-actions {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

#gallery-view .gallery-utility-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gallery-surface);
  color: var(--gallery-label);
  font: inherit;
  font-size: 12px;
  font-weight: 620;
}

#gallery-view .gallery-utility-button:active { transform: scale(.97); background: var(--gallery-surface-strong); }
#gallery-view .gallery-utility-button:disabled { opacity: .42; }
#gallery-view .gallery-utility-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

#gallery-view .gallery-control-bar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  z-index: 15;
  padding: 8px 20px 10px;
  border-top: 1px solid var(--gallery-line);
  border-bottom: 1px solid var(--gallery-line);
  background: rgba(0, 0, 0, .94);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #gallery-view .gallery-control-bar {
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: saturate(150%) blur(20px);
    backdrop-filter: saturate(150%) blur(20px);
  }
}

#gallery-view .gallery-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 360px;
  min-height: 38px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 11px;
  background: var(--gallery-surface);
}

#gallery-view .gallery-tab {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gallery-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -.012em;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

#gallery-view .gallery-tab.active {
  background: #f2f2f7;
  color: #111113;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}

#gallery-view .gallery-tab:active { transform: scale(.985); }

#gallery-view .gallery-collection {
  padding: 0;
  border: 0;
}

#gallery-view .collection-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 22px 20px 14px;
}

#gallery-view .collection-heading h2 {
  margin: 0;
  color: var(--gallery-label);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
}

#gallery-view .collection-heading p {
  margin: 5px 0 0;
  color: var(--gallery-secondary);
  font-size: 12px;
  line-height: 1.35;
}

#gallery-view .collection-heading > span {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: var(--gallery-tertiary);
  font-size: 11px;
  font-weight: 580;
  letter-spacing: 0;
  text-transform: none;
}

#gallery-view .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 2px;
  width: 100%;
  padding: 0 2px;
  background: var(--gallery-bg);
}

#gallery-view .photo-card,
#gallery-view .photo-card-0,
#gallery-view .photo-card-1,
#gallery-view .photo-card-2,
#gallery-view .photo-card-3,
#gallery-view .photo-card-4 {
  position: relative;
  display: block;
  grid-column: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #161618;
  box-shadow: none;
  animation: gallery-photo-reveal 260ms ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

#gallery-view .photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
  transition: background 160ms ease;
}

#gallery-view .photo-card:active::after { background: rgba(0, 0, 0, .20); }
#gallery-view .photo-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease, opacity 200ms ease; }
#gallery-view .photo-card:active img { transform: scale(.985); }
#gallery-view .photo-card .photo-tag { display: none; }
#gallery-view .photo-card.has-film::after { opacity: .14; }

#gallery-view .gallery-skeleton {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #151517;
}

#gallery-view .gallery-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  animation: gallery-skeleton 1.25s ease-in-out infinite;
  animation-delay: var(--skeleton-delay, 0ms);
}

#gallery-view .empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 390px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 52px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gallery-secondary);
  text-align: center;
}

#gallery-view .empty-state-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  place-items: center;
  border: 1px solid var(--gallery-line);
  border-radius: 17px;
  color: var(--gallery-warm);
  font-size: 25px;
  line-height: 1;
}

#gallery-view .empty-state strong {
  color: var(--gallery-label);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}

#gallery-view .empty-state p {
  max-width: 290px;
  margin: 0;
  color: var(--gallery-secondary);
  font-size: 13px;
  line-height: 1.5;
}

#gallery-view .gallery-load-sentinel {
  min-height: 52px;
  padding: 16px 20px 24px;
  color: var(--gallery-tertiary);
  font-size: 11px;
  font-weight: 580;
  letter-spacing: 0;
  text-transform: none;
}

#gallery-view .gallery-action-dock {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 9px;
  width: min(100%, 680px);
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  transform: translateX(-50%);
  border-top: 1px solid var(--gallery-line);
  background: rgba(12, 12, 14, .96);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #gallery-view .gallery-action-dock {
    background: rgba(12, 12, 14, .80);
    -webkit-backdrop-filter: saturate(170%) blur(24px);
    backdrop-filter: saturate(170%) blur(24px);
  }
}

#gallery-view .gallery-dock-button {
  display: flex;
  min-width: 0;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -.016em;
}

#gallery-view .gallery-dock-button svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#gallery-view .gallery-dock-secondary { background: var(--gallery-surface); color: var(--gallery-label); }
#gallery-view .gallery-dock-primary { background: #f2f2f7; color: #111113; }
#gallery-view .gallery-dock-button:active { transform: scale(.975); }

.gallery-toast {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
  max-width: calc(100vw - 32px);
  background: rgba(242, 242, 247, .96);
  color: #111113;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .36);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  background: #000;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.lightbox.open {
  display: grid;
  visibility: visible;
  opacity: 1;
  transition: opacity 180ms ease;
}

.lightbox-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: calc(env(safe-area-inset-top, 0px) + 58px);
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: rgba(0, 0, 0, .82);
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
}

.lightbox-close {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
}

.lightbox-close svg,
.lightbox-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close:active { background: rgba(255,255,255,.12); }

.lightbox-position { display: grid; justify-items: center; gap: 2px; color: #fff; }
.lightbox-position strong { font-size: 12px; font-weight: 650; }
.lightbox-position span { color: rgba(255,255,255,.44); font-size: 10px; font-weight: 650; letter-spacing: -.025em; }
.lightbox-topbar-spacer { width: 40px; }

.lightbox-figure {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 78px);
  place-items: center;
}

.lightbox img,
.lightbox .lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  object-fit: contain;
  opacity: 1;
}

.lightbox-caption {
  position: absolute;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: 0;
  display: grid;
  gap: 3px;
  padding: 0 12px;
  color: #fff;
  text-align: center;
}

.lightbox-tag {
  position: static;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-shadow: none;
}

.lightbox-caption span { color: rgba(255,255,255,.48); font-size: 11px; }

.lightbox-nav {
  position: static;
  grid-row: 2;
  width: 42px;
  height: 58px;
  align-self: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
}

.lightbox-prev { grid-column: 1; justify-self: end; }
.lightbox-next { grid-column: 3; justify-self: start; }
.lightbox-nav:active { background: rgba(255,255,255,.18); }
.lightbox-nav[hidden] { display: none; }

html.gallery-viewer-open,
html.gallery-viewer-open body { overflow: hidden; overscroll-behavior: none; }
html.gallery-viewer-open #gallery-view { overflow-y: hidden; }

@keyframes gallery-photo-reveal {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes gallery-skeleton {
  to { transform: translateX(100%); }
}

@media (max-width: 360px) {
  #gallery-view .gallery-hero { padding-right: 16px; padding-left: 16px; }
  #gallery-view .gallery-control-bar { padding-right: 16px; padding-left: 16px; }
  #gallery-view .collection-heading { padding-right: 16px; padding-left: 16px; }
  #gallery-view .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #gallery-view .gallery-dock-button { font-size: 12px; }
}

@media (min-width: 681px) {
  #gallery-view .gallery-page,
  #gallery-view .gallery-action-dock { border-right: 1px solid rgba(255,255,255,.06); border-left: 1px solid rgba(255,255,255,.06); }
  #gallery-view .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  #gallery-view .photo-card:hover img { transform: scale(1.025); }
  #gallery-view .gallery-icon-button:hover,
  #gallery-view .gallery-utility-button:hover,
  #gallery-view .gallery-dock-secondary:hover { background: var(--gallery-surface-strong); }
  #gallery-view .gallery-dock-primary:hover { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  #gallery-view .photo-card,
  #gallery-view .gallery-skeleton::after,
  .lightbox { animation: none !important; transition: none !important; }
}

#gallery-view .photo-card.photo-load-error::before {
  content: "Momen belum tersedia";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--gallery-tertiary);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
#gallery-view .photo-card.photo-load-error img { opacity: 0; }
.lightbox .lightbox-figure img { transition: opacity 140ms ease; }

/* hadir. Adaptive Warm Gallery v1
   Warm-light by default for outdoor readability, system dark mode for low light.
   Camera and fullscreen viewer remain dark. */
#gallery-view {
  color-scheme: light dark;
  --gallery-bg: #f6f5f2;
  --gallery-page: #f6f5f2;
  --gallery-surface: #ffffff;
  --gallery-surface-strong: #efede8;
  --gallery-label: #111111;
  --gallery-secondary: #66645f;
  --gallery-tertiary: #918e87;
  --gallery-line: rgba(17, 17, 17, .085);
  --gallery-warm: #b79b67;
  --gallery-warm-strong: #a9874c;
  --gallery-topbar: rgba(246, 245, 242, .94);
  --gallery-topbar-glass: rgba(246, 245, 242, .80);
  --gallery-dock: rgba(250, 249, 246, .96);
  --gallery-dock-glass: rgba(250, 249, 246, .84);
  --gallery-segment: #ebe8e2;
  --gallery-segment-active: #ffffff;
  --gallery-thumb-placeholder: #e9e6df;
  background: var(--gallery-bg);
  color: var(--gallery-label);
}

#gallery-view .gallery-page { background: var(--gallery-page); }

#gallery-view .gallery-topbar {
  border-bottom-color: var(--gallery-line);
  background: var(--gallery-topbar);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #gallery-view .gallery-topbar {
    background: var(--gallery-topbar-glass);
    -webkit-backdrop-filter: saturate(165%) blur(20px);
    backdrop-filter: saturate(165%) blur(20px);
  }
}

#gallery-view .gallery-wordmark { color: var(--gallery-label); }
#gallery-view .gallery-icon-button { color: var(--gallery-label); }
#gallery-view .gallery-icon-button:active { background: rgba(17,17,17,.07); }

#gallery-view .gallery-hero {
  padding-top: 30px;
  padding-bottom: 22px;
}

#gallery-view .gallery-eyebrow {
  color: var(--gallery-warm-strong);
  letter-spacing: .105em;
}

#gallery-view .gallery-title,
#gallery-view .collection-heading h2,
#gallery-view .empty-state strong { color: var(--gallery-label); }

#gallery-view .gallery-brand-line,
#gallery-view .gallery-meta,
#gallery-view .collection-heading p,
#gallery-view .empty-state p { color: var(--gallery-secondary); }

#gallery-view .gallery-meta-dot { background: var(--gallery-warm) !important; }
#gallery-view .gallery-live { color: var(--gallery-tertiary); }

#gallery-view .gallery-utility-button {
  border: 1px solid var(--gallery-line);
  background: rgba(255,255,255,.72);
  color: var(--gallery-label);
  box-shadow: 0 1px 1px rgba(17,17,17,.025);
}
#gallery-view .gallery-utility-button:active {
  background: var(--gallery-surface-strong);
}

#gallery-view .gallery-control-bar {
  border-color: var(--gallery-line);
  background: var(--gallery-topbar);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #gallery-view .gallery-control-bar {
    background: var(--gallery-topbar-glass);
    -webkit-backdrop-filter: saturate(165%) blur(20px);
    backdrop-filter: saturate(165%) blur(20px);
  }
}

#gallery-view .gallery-tabs {
  background: var(--gallery-segment);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.025);
}

#gallery-view .gallery-tab { color: var(--gallery-secondary); }
#gallery-view .gallery-tab.active {
  background: linear-gradient(180deg, #c9ab70, #b89452);
  color: #fff;
  box-shadow: 0 2px 8px rgba(126, 92, 32, .20);
}

#gallery-view .collection-heading > span { color: var(--gallery-tertiary); }
#gallery-view .photo-grid { background: var(--gallery-bg); }

#gallery-view .photo-card,
#gallery-view .photo-card-0,
#gallery-view .photo-card-1,
#gallery-view .photo-card-2,
#gallery-view .photo-card-3,
#gallery-view .photo-card-4,
#gallery-view .gallery-skeleton {
  background: var(--gallery-thumb-placeholder);
}

#gallery-view .gallery-skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
}

#gallery-view .empty-state-mark {
  border-color: rgba(183,155,103,.34);
  background: rgba(183,155,103,.07);
  color: var(--gallery-warm-strong);
}

#gallery-view .gallery-action-dock {
  border-top-color: var(--gallery-line);
  background: var(--gallery-dock);
  box-shadow: 0 -10px 30px rgba(35,29,20,.045);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #gallery-view .gallery-action-dock {
    background: var(--gallery-dock-glass);
    -webkit-backdrop-filter: saturate(175%) blur(24px);
    backdrop-filter: saturate(175%) blur(24px);
  }
}

#gallery-view .gallery-dock-secondary {
  border: 1px solid var(--gallery-line);
  background: var(--gallery-surface);
  color: var(--gallery-label);
}

#gallery-view .gallery-dock-primary {
  background: linear-gradient(180deg, #c9ab70, #b89452);
  color: #fff;
  box-shadow: 0 5px 16px rgba(126,92,32,.20);
}

.gallery-toast {
  background: rgba(255,255,255,.96);
  color: #111;
  border: 1px solid rgba(17,17,17,.07);
  box-shadow: 0 12px 36px rgba(34,29,22,.16);
}

@media (min-width: 681px) {
  #gallery-view .gallery-page,
  #gallery-view .gallery-action-dock {
    border-right-color: var(--gallery-line);
    border-left-color: var(--gallery-line);
  }
}

@media (hover: hover) and (pointer: fine) {
  #gallery-view .gallery-icon-button:hover,
  #gallery-view .gallery-utility-button:hover,
  #gallery-view .gallery-dock-secondary:hover { background: var(--gallery-surface-strong); }
  #gallery-view .gallery-dock-primary:hover { filter: brightness(1.035); }
}

@media (prefers-color-scheme: dark) {
  #gallery-view {
    --gallery-bg: #0b0b0c;
    --gallery-page: #0b0b0c;
    --gallery-surface: #1c1c1e;
    --gallery-surface-strong: #272729;
    --gallery-label: #f5f5f7;
    --gallery-secondary: #a1a1a6;
    --gallery-tertiary: #707075;
    --gallery-line: rgba(255,255,255,.10);
    --gallery-warm: #c8ad76;
    --gallery-warm-strong: #d0b57e;
    --gallery-topbar: rgba(11,11,12,.94);
    --gallery-topbar-glass: rgba(11,11,12,.80);
    --gallery-dock: rgba(15,15,16,.96);
    --gallery-dock-glass: rgba(15,15,16,.84);
    --gallery-segment: #202022;
    --gallery-segment-active: #303033;
    --gallery-thumb-placeholder: #171719;
  }

  #gallery-view .gallery-icon-button:active { background: rgba(255,255,255,.10); }
  #gallery-view .gallery-utility-button {
    border-color: transparent;
    background: var(--gallery-surface);
    box-shadow: none;
  }
  #gallery-view .gallery-tab.active {
    background: linear-gradient(180deg, #c8aa70, #aa874b);
    color: #111113;
    box-shadow: 0 2px 8px rgba(0,0,0,.30);
  }
  #gallery-view .gallery-skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  }
  #gallery-view .gallery-dock-secondary {
    border-color: transparent;
    background: var(--gallery-surface);
  }
  #gallery-view .gallery-dock-primary {
    background: linear-gradient(180deg, #c8aa70, #aa874b);
    color: #111113;
  }
  .gallery-toast {
    background: rgba(242,242,247,.96);
    color: #111113;
    border-color: transparent;
    box-shadow: 0 12px 36px rgba(0,0,0,.36);
  }
}
