/* ==========================================================================
   DodoPix — Editorial Minimalism Stylesheet (Light Mode Default + Dark Mode)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-elevated: #ffffff;
  --text: #222222;
  --text-muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.92);
  --pill-text: #1c1c1e;
  --accent: #1c1c1e;
  --accent-text: #ffffff;
  --heart: #e11d48;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.22);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

html[data-theme="dark"] {
  --bg: #111315;
  --surface: #1b1e22;
  --surface-elevated: #1e2126;
  --text: #f2f2f4;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --pill-bg: rgba(28, 31, 36, 0.9);
  --pill-text: #f2f2f4;
  --accent: #f2f2f4;
  --accent-text: #111315;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hidden {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

/* ==========================================================================
   Loading & PIN Screen
   ========================================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 1000;
  gap: 14px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.pin-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  z-index: 900;
}

.pin-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.pin-brand {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pin-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
}

.pin-subtitle {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.pin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pin-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.2em;
  outline: none;
}

.pin-form input:focus {
  border-color: var(--text);
}

.pin-error {
  margin: 12px 0 0;
  color: var(--heart);
  font-size: 13px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

/* ==========================================================================
   Editorial Hero Cover
   ========================================================================== */
.hero-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.hero-top-right {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  right: max(26px, env(safe-area-inset-right));
  z-index: 2;
}

.studio-brand {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.studio-brand img {
  max-height: 36px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  color: #ffffff;
  max-width: 820px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 66px);
  line-height: 1.12;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.hero-date {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

.hero-scroll-btn {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(2px);
}

/* ==========================================================================
   Smart Navigation Bar & Floating Compact Pills
   ========================================================================== */
.gallery-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-nav.is-compact-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.gallery-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-shoot-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.filter-tab {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.filter-tab.active {
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tab-count {
  font-weight: 400;
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-pill-btn:hover {
  border-color: var(--text-muted);
}

.nav-pill-btn.active,
.nav-pill-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Floating Pills on Deep Scroll */
.floating-nav-pills {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-pill-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--pill-text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-pill-btn.active {
  background: var(--accent);
  color: var(--accent-text);
}

.float-pill-icon {
  width: 34px;
  padding: 0;
}

/* ==========================================================================
   Masonry Grid (Responsive 4 / 3 / 2 columns, zero CLS via aspect-ratio)
   ========================================================================== */
.gallery-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 20px 110px;
}

.masonry-grid {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo-card {
  position: relative;
  width: 100%;
  background: var(--surface);
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.photo-card:hover img {
  transform: scale(1.018);
}

/* Selected state subtle ring */
.photo-card.is-selected {
  box-shadow: inset 0 0 0 2px var(--heart);
}

/* Always-visible minimal status badges on selected / noted photos */
.card-status-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.badge-heart {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--heart);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.badge-note {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1c1e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* Hover Quick Action Pill (Top-Left) */
.card-hover-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: #1c1c1e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

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

.photo-card:hover .card-status-badges {
  opacity: 0;
}

.card-pill-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #1c1c1e;
  transition: background 0.12s ease;
}

.card-pill-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.card-pill-btn.is-active {
  color: var(--heart);
}

.card-pill-btn.is-comparing {
  background: #1c1c1e;
  color: #ffffff;
}

/* Mobile quick tap heart button (top-right, minimum 36x36px touch target) */
.card-mobile-heart {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.card-mobile-heart:active {
  transform: scale(0.92);
}

.card-mobile-heart.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--heart);
}

@media (hover: none), (max-width: 767px) {
  .card-mobile-heart {
    display: inline-flex;
  }
}

@media (hover: none) {
  .card-hover-pill {
    display: none;
  }
  .photo-card:hover img {
    transform: none;
  }
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}

/* ==========================================================================
   Bottom Sticky Bar
   ========================================================================== */
.bottom-bar {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(760px, calc(100% - 24px));
}

.bottom-bar-inner {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bottom-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  white-space: nowrap;
}

.bottom-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-compare {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-review-submit {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  gap: 12px;
  z-index: 5;
}

.lightbox-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lb-filename {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-copy-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.lb-circle-btn:hover {
  transform: scale(1.06);
}

.lb-circle-btn.is-active {
  border-color: var(--heart);
  color: var(--heart);
}

.lb-circle-btn.is-comparing {
  background: var(--accent);
  color: var(--accent-text);
}

.lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 56px;
}

.lb-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}

.lb-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.22s ease;
  transform-origin: center center;
}

.lb-image.is-zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lightbox-bottom {
  padding: 8px 16px max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.lb-counter {
  font-size: 12px;
  color: var(--text-muted);
}

.lb-note-preview {
  font-size: 12.5px;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Side-by-Side Compare Modal
   ========================================================================== */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.compare-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.compare-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.compare-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.compare-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.compare-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.compare-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-img-box {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}

.compare-img-box.is-zoomed {
  cursor: grab;
}

.compare-img-box.is-zoomed.is-dragging {
  cursor: grabbing;
}

.compare-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  will-change: transform;
}

.compare-img-box.is-dragging .compare-img {
  transition: none;
}

.compare-pane-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  gap: 8px;
}

.compare-filename {
  font-size: 12.5px;
  font-weight: 500;
}

.compare-pane-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cmp-btn {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

.cmp-btn.is-active {
  border-color: var(--heart);
  color: var(--heart);
}

/* ==========================================================================
   Modals (Note & Review)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.note-modal-card { max-width: 460px; }
.review-modal-card { max-width: 780px; }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.modal-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.note-modal-body {
  padding: 16px 20px;
}

.note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.note-chip {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
}

.note-chip:hover {
  border-color: var(--text);
}

.note-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
}

.note-textarea:focus {
  border-color: var(--text);
}

.note-auto-select-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.review-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.review-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.review-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-item-meta {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-item-name {
  font-size: 12px;
  font-weight: 500;
}

.review-note-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.review-success {
  padding: 42px 24px;
  text-align: center;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.success-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
}

.success-summary {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  background: #1c1c1e;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}

/* ==========================================================================
   Responsive (Tablet <= 1199px, Mobile <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .hide-xs {
    display: none;
  }

  .gallery-nav-inner {
    padding: 10px 12px;
  }

  .nav-shoot-name {
    display: none;
  }

  .gallery-section {
    padding: 10px 10px 100px;
  }

  .masonry-grid {
    gap: 8px;
  }

  .masonry-col {
    gap: 8px;
  }

  .lightbox-stage {
    padding: 4px 6px;
  }

  .lb-nav-btn {
    display: none;
  }

  .compare-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 8px;
    gap: 8px;
  }

  .bottom-bar-inner {
    padding: 7px 8px 7px 14px;
  }

  .bottom-bar-status {
    font-size: 12.5px;
  }

  .btn-review-submit {
    padding: 9px 14px;
    font-size: 12.5px;
  }
}
