/* =========================================================================
   FEORA — gallery theme
   Hybrid: no Bootstrap CSS (keep Bootstrap JS for modal/dropdown/tooltip).
    Font Awesome retained.
   ========================================================================= */

:root {
  --paper:        #f6f1e8;
  --paper-2:      #efe8db;
  --paper-deep:   #e7dfce;
  --ink:          #1d1b18;
  --ink-soft:     #3a3631;
  --ink-mute:     #76706a;
  --ink-faint:    #a39d94;
  --line:         #d8cfbd;
  --line-strong:  #b8ad97;
  --accent:       #6a4a2b;
  --accent-2:     #8a6a3d;
  --gold:         #b08856;
  --danger:       #8a3a3a;
  --success:      #3a5a4a;

  --shadow-soft:  0 1px 2px rgba(29,27,24,.04), 0 8px 30px rgba(29,27,24,.06);
  --shadow-art:   0 2px 4px rgba(29,27,24,.06), 0 24px 60px -12px rgba(29,27,24,.22);

  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* legacy var aliases — old pages that still reference them keep working */
  --bg-dark:        var(--paper-2);
  --bg-card:        var(--paper);
  --bg-card-hover:  var(--paper-deep);
  --text-main:      var(--ink);
  --border-subtle:  var(--line);
  --accent-primary: var(--accent);
  --accent-secondary: var(--accent-2);
}

/* ===== reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* sticky footer: push footer to bottom */
  min-height: 100vh;
  flex-direction: column;
}
body > .container {
  flex: 1 0 auto;
}
body > .footer {
  flex-shrink: 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--ink); color: var(--paper); }

/* ===== type ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.04; font-weight: 300; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
h4 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
h5 { font-size: 16px; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
em, .italic { font-style: italic; color: var(--ink-soft); }
small, .small { font-size: 12px; }

.text-muted { color: var(--ink-mute) !important; }
.text-white { color: var(--paper) !important; }
.text-white-50 { color: rgba(246,241,232,.7) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-info    { color: var(--accent-2) !important; }

/* ===== container / grid (Bootstrap-compatible class names) ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class^="col-"], .row > [class*=" col-"] { padding: 0 12px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 100%; max-width: 100%; }
.col-md-8 { flex: 0 0 100%; max-width: 100%; }
.col-lg-3 { flex: 0 0 100%; max-width: 100%; }
.col-lg-4 { flex: 0 0 100%; max-width: 100%; }
.col-lg-8 { flex: 0 0 100%; max-width: 100%; }
.col-sm-6 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}
.g-2 > * { padding: 4px; }
.g-3 > * { padding: 8px; }
.g-4 > * { padding: 12px; }

/* ===== utilities (subset of Bootstrap's, restyled) ===== */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none !important; }
@media (min-width: 768px) { .d-md-none { display: none !important; } }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.me-1 { margin-right: .25rem; } .me-2 { margin-right: .5rem; } .me-3 { margin-right: 1rem; }
.ms-1 { margin-left: .25rem; } .ms-2 { margin-left: .5rem; } .ms-3 { margin-left: 1rem; }
.p-0 { padding: 0; } .p-2 { padding: .5rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; } .p-5 { padding: 3rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
.fw-bold { font-weight: 600; }
.fs-5 { font-size: 1.1rem; }
.lead { font-family: var(--serif); font-size: 20px; color: var(--ink-soft); line-height: 1.5; }
.rounded-0 { border-radius: 0 !important; }
.rounded-pill { border-radius: 999px; }
.rounded-3 { border-radius: 4px; }
.rounded-4 { border-radius: 6px; }
.shadow-sm { box-shadow: var(--shadow-soft); }
.shadow-lg { box-shadow: var(--shadow-art); }
.border-0 { border: 0 !important; }
.bg-transparent { background: transparent !important; }
.overflow-hidden { overflow: hidden; }

/* ===== nav ===== */
.navbar {
  background: rgba(246,241,232,.86) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar-brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .18em;
  font-weight: 400;
  color: var(--ink) !important;
}
.navbar-nav { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.navbar-nav .nav-link {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
  padding: 8px 0;
  position: relative;
}
.navbar-nav .nav-link:hover { color: var(--ink) !important; }
.navbar-nav .nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}
.navbar-nav .nav-link i { color: var(--accent) !important; }

.navbar-toggler {
  border: 1px solid var(--line);
  background: transparent;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.navbar-toggler-icon {
  display: block; width: 14px; height: 1.5px; background: var(--ink);
  position: relative;
}
.navbar-toggler-icon::before, .navbar-toggler-icon::after {
  content: ""; position: absolute; left: 0; width: 14px; height: 1.5px; background: var(--ink);
}
.navbar-toggler-icon::before { top: -5px; }
.navbar-toggler-icon::after  { top:  5px; }

@media (max-width: 767px) {
  .navbar-collapse { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .navbar-collapse.show { display: flex; }
  .navbar-nav { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:focus { outline: 1px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: transparent; color: var(--ink); }

.analytics-stat-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.analytics-stat-label {
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.analytics-stat-value {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.analytics-chart-card .card-body {
  min-height: 320px;
}

.btn-success { background: var(--success); color: var(--paper); border-color: var(--success); }
.btn-success:hover { background: transparent; color: var(--success); }

.btn-outline-secondary, .btn-outline-light, .btn-outline-info, .btn-outline-warning, .btn-outline-danger {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn-outline-secondary:hover, .btn-outline-light:hover, .btn-outline-info:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.btn-outline-warning:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-outline-danger:hover  { background: var(--danger); color: var(--paper); border-color: var(--danger); }

.btn-sm { padding: 9px 16px; font-size: 10px; }
.btn-lg { padding: 18px 36px; font-size: 12px; }
.btn-link { background: transparent; border: none; color: var(--accent); padding: 0; letter-spacing: 0; text-transform: none; }
.btn-link:hover { background: transparent; color: var(--ink); }

/* ===== forms ===== */
.form-control, .form-select {
  display: block; width: 100%;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--ink); }
.form-control::placeholder { color: var(--ink-faint); font-style: italic; }
.form-control-sm { padding: 8px 10px; font-size: 14px; }
.form-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; display: block; }

/* ===== cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-img-top { width: 100%; display: block; }

/* ===== glass-panel (legacy) ===== */
.glass-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
}

/* ===== gallery thumbnails (Index masonry) ===== */
.masonry-grid { column-count: 1; column-gap: 32px; }
@media (min-width: 576px) { .masonry-grid { column-count: 2; } }
@media (min-width: 992px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1200px) { .masonry-grid { column-count: 4; } }

.masonry-item { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 32px; }

.masonry-item .card,
.masonry-item a.card {
  background: #fff;
  border: 1px solid rgba(29,27,24,.08);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .35s, transform .35s;
}
.masonry-item a.card:hover { box-shadow: var(--shadow-art); transform: translateY(-2px); }
.masonry-item img { width: 100%; height: auto; display: block; }
.masonry-item .overlay-details {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(29,27,24,.85));
  padding: 24px 16px 14px;
  color: var(--paper);
  opacity: 0;
  transition: opacity .3s;
}
.masonry-item a.card:hover .overlay-details { opacity: 1; }
.hover-lift { transition: transform .25s, box-shadow .25s; }

/* ===== hero ===== */
.hero-section {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  text-align: left !important;
  padding: 80px 40px !important;
  min-height: auto !important;
  display: block !important;
}
.hero-section h1, .hero-section .display-3 {
  font-family: var(--serif) !important;
  font-weight: 300 !important;
  color: var(--ink) !important;
  letter-spacing: -.005em !important;
  font-size: clamp(40px,6vw,80px) !important;
}
.hero-section .lead { color: var(--ink-soft) !important; max-width: 540px; }
.hero-section .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== modal ===== */
.modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
}
.modal-header { border-bottom: 1px solid var(--line); padding: 20px 24px; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--line); padding: 16px 24px; }
.btn-close { background: none; border: none; color: var(--ink-mute); font-size: 22px; cursor: pointer; }
.btn-close::before { content: "×"; }
.btn-close-white { color: var(--ink); }

/* ===== dropdown ===== */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  min-width: 220px;
  margin: 6px 0 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-art);
  padding: 8px 0;
  font-size: 13px;
}
.dropdown-menu.show { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-item { display: block; padding: 8px 16px; color: var(--ink-soft); text-decoration: none; }
.dropdown-item:hover { background: var(--paper-2); color: var(--ink); }
.dropdown-divider { border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown-menu-dark { background: var(--ink); color: var(--paper); }
.dropdown-menu-dark .dropdown-item { color: var(--paper-deep); }
.dropdown-menu-dark .dropdown-item:hover { background: var(--ink-soft); color: var(--paper); }

/* ===== alerts ===== */
.alert { padding: 14px 18px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 0; margin-bottom: 16px; }
.alert-info       { border-color: var(--accent); }
.alert-success    { border-color: var(--success); color: var(--success); }
.alert-warning    { border-color: var(--gold); }
.alert-danger     { border-color: var(--danger); color: var(--danger); }
.alert-secondary  { background: var(--paper-deep); }

/* ===== badges ===== */
.badge {
  display: inline-block; padding: 4px 10px;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  background: var(--paper-deep); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 0;
}
.bg-warning { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.bg-secondary { background: var(--ink-soft); color: var(--paper); }

/* ===== pagination ===== */
.pagination { display: flex; justify-content: center; gap: 4px; list-style: none; padding: 0; margin: 32px 0 0; }
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 12px;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: 16px;
  border-radius: 0;
}
.pagination .page-link:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-item.active .page-link { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-item.disabled .page-link { opacity: .4; pointer-events: none; }

/* ===== artwork detail ===== */
.artwork-full-img {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  padding: 40px !important;
  display: flex; align-items: center; justify-content: center;
}
.artwork-full-img .frame {
  background: #fff !important;
  border: 1px solid rgba(29,27,24,.08) !important;
  border-radius: 0 !important;
  padding: 18px !important;
  box-shadow: var(--shadow-art);
}
.artwork-full-img .frame img { background: #fff; box-shadow: none !important; }
.artwork-full-img .glass-reflection { display: none !important; }

/* ===== footer ===== */
.footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 0;
  color: var(--ink-mute);
  font-size: 13px;
}
.footer a, .footer .text-muted { color: var(--ink-soft) !important; }
.footer a:hover { color: var(--ink) !important; }

/* ===== atelier (CreateImage) ===== */
.atelier-page { padding: 56px 0 96px; }
.atelier-head { margin-bottom: 48px; }
.atelier-head .eyebrow { display: block; margin-bottom: 14px; }
.atelier-head h1 { font-size: clamp(36px, 4.6vw, 56px); margin: 0 0 14px; font-weight: 300; }
.atelier-head p { color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 19px; max-width: 640px; }
.atelier-rule { border: none; border-top: 1px solid var(--line); margin: 0 0 40px; }

.atelier-form { background: var(--paper-2); border: 1px solid var(--line); padding: 36px; }
.atelier-form .form-row { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.atelier-form .form-row > * { min-width: 0; }
@media (max-width: 767px) { .atelier-form { padding: 24px; } .atelier-form .form-row { grid-template-columns: 1fr; gap: 20px; } }
.atelier-form label.form-label,
.atelier-form .field-label {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 10px;
}
.atelier-form textarea.form-control,
.atelier-form select.form-select {
  background: #fff !important; color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important; border-radius: 0 !important;
  font-family: var(--serif); font-size: 17px; padding: 14px 16px;
  width: 100%;
}
.atelier-form textarea.form-control { min-height: 130px; line-height: 1.45; }
.atelier-form select.form-select { padding-right: 36px; }
.atelier-form textarea.form-control:focus,
.atelier-form select.form-select:focus { border-color: var(--ink) !important; outline: none; box-shadow: none; }
.atelier-form .ai-enhance-btn {
  background: none; border: none; color: var(--accent-2); font-size: 13px;
  letter-spacing: .15em; text-transform: uppercase; padding: 0;
  font-family: var(--sans); font-weight: 500;
}
.atelier-form .ai-enhance-btn:hover { color: var(--accent); }

.atelier-stage { margin-top: 48px; display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
@media (max-width: 991px) { .atelier-stage { grid-template-columns: 1fr; } }
.atelier-stage > * { min-width: 0; }
.atelier-canvas {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 32px; display: flex; align-items: center; justify-content: center;
  min-height: 480px; position: relative;
}
.atelier-canvas .frame {
  background: #fff; border: 1px solid rgba(29,27,24,.08); padding: 16px;
  box-shadow: var(--shadow-art); max-width: 100%; width: 100%;
}
.atelier-canvas .frame img { display: block; width: 100%; max-width: 100%; max-height: 540px; height: auto; }
.create-image-placeholder { background: transparent !important; opacity: .5; }

@media (max-width: 767px) {
  .atelier-canvas {
    min-height: auto;
    padding: 18px;
  }

  .atelier-canvas .frame {
    padding: 10px;
  }
}

.atelier-thumbs { margin-top: 18px; }
.atelier-thumbs .thumb-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
}
.atelier-thumbs a, .atelier-thumbs button {
  flex-shrink: 0; width: 76px; height: 76px;
  background: #fff; border: 1px solid var(--line) !important; border-radius: 0 !important;
  padding: 4px; position: relative; overflow: hidden;
}
.atelier-thumbs a.border-primary, .atelier-thumbs a.border-3 { border: 2px solid var(--ink) !important; }
.atelier-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.atelier-side { display: flex; flex-direction: column; gap: 18px; }
.atelier-side .panel {
  background: var(--paper); border: 1px solid var(--line); padding: 22px;
}
.atelier-side .panel h5 {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 14px;
}
.atelier-side .panel .btn { width: 100%; margin-bottom: 8px; }
.atelier-side .panel .btn:last-child { margin-bottom: 0; }
.atelier-side #generationProgressContainer .d-flex {
  align-items: center;
}
.atelier-side #generationProgressContainer .flex-grow-1 {
  min-width: 0;
}
.atelier-side #cancelGenerationBtn {
  flex: 0 0 56px;
  width: 56px;
  min-width: 56px;
  padding-left: 0;
  padding-right: 0;
}
.atelier-side .meta-row { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); }
.atelier-side .prompt-box {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 12px 14px; font-family: var(--serif); font-size: 14px;
  color: var(--ink); max-height: 9em; overflow-y: auto; line-height: 1.5;
}

.discreet-progress { height: 4px; background: var(--paper-deep); }
.progress {
  overflow: hidden;
}
.progress-bar {
  display: block;
  height: 100%;
  min-width: 0;
  background: var(--ink);
  transition: width .35s ease;
}
.progress-bar-striped { background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent); background-size: 1rem 1rem; }

.image-ajax-loading-overlay {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--paper); background: rgba(29,27,24,.6); backdrop-filter: blur(2px);
}

.atelier-prompts { margin-top: 64px; }
.atelier-prompts h3 {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.atelier-prompts ul { list-style: none; padding: 0; margin: 0; }
.atelier-prompts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.atelier-prompts li:last-child { border-bottom: none; }
.atelier-prompts a {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--ink-soft); text-decoration: none;
}
.atelier-prompts a:hover { color: var(--ink); }

/* ===== MyGallery ===== */
.collection-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 56px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
  flex-wrap: wrap; gap: 16px;
}
.collection-head h1 { margin: 0; font-size: clamp(36px, 4vw, 52px); font-weight: 300; }
.collection-head .eyebrow { margin-bottom: 8px; }

.collection-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); margin-bottom: 32px;
}
.collection-stats .stat {
  padding: 22px 20px; border-right: 1px solid var(--line);
}
.collection-stats .stat:last-child { border-right: none; }
.collection-stats .stat .lbl {
  font-size: 10px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 8px;
}
.collection-stats .stat .num {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; color: var(--ink); line-height: 1;
}
@media (max-width: 575px) {
  .collection-stats { grid-template-columns: 1fr 1fr; }
  .collection-stats .stat:nth-child(2) { border-right: none; }
  .collection-stats .stat:nth-child(1), .collection-stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

.collection-filterbar {
  display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); padding-bottom: 16px;
  flex-wrap: wrap; align-items: center;
}
.collection-filterbar a {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 8px 18px; color: var(--ink-mute); border: 1px solid transparent;
}
.collection-filterbar a.active, .collection-filterbar a:hover { color: var(--ink); }
.collection-filterbar a.active { border-bottom: 1px solid var(--ink); }
.collection-filterbar .count {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-family: var(--serif); font-size: 11px; color: var(--ink-mute);
}

.gallery-img-card {
  background: #fff !important; border: 1px solid rgba(29,27,24,.08) !important;
  padding: 14px !important; box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.gallery-img-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-art); }
.gallery-img-card .gallery-thumbnail { border: none !important; border-radius: 0 !important; display: block; }
.gallery-img-card .badge {
  background: var(--paper) !important; color: var(--ink) !important;
  border: 1px solid var(--line) !important; font-size: 9px !important; padding: 4px 8px !important;
}
.gallery-img-card .gallery-img-actions { background: linear-gradient(transparent, rgba(29,27,24,.92)) !important; padding: 16px !important; }
.gallery-img-card .gallery-img-actions .form-control { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.gallery-img-card .gallery-img-actions .btn { border-radius: 0 !important; }
.gallery-img-card .rounded-3, .gallery-img-card .rounded-bottom-3, .gallery-img-card .rounded-bottom-0 { border-radius: 0 !important; }

.empty-collection {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 80px 32px; text-align: center;
}
.empty-collection h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.empty-collection p { color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 18px; max-width: 520px; margin: 0 auto 28px; }

/* ===== Print Checkout ===== */
.checkout-page { padding: 64px 0 96px; max-width: 920px; margin: 0 auto; }
.checkout-page .eyebrow { display: block; text-align: center; margin-bottom: 14px; }
.checkout-page h1 { text-align: center; font-size: clamp(30px, 3.8vw, 44px); font-weight: 300; margin: 0 0 12px; }
.checkout-page .lede { text-align: center; color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 17px; margin-bottom: 48px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: stretch; }
@media (max-width: 767px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-summary, .checkout-action {
  background: var(--paper-2); border: 1px solid var(--line); padding: 32px;
}
.checkout-summary h2 {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.checkout-summary dl { margin: 0; }
.checkout-summary dt {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 4px;
}
.checkout-summary dd {
  font-family: var(--serif); font-size: 17px; color: var(--ink); margin: 0 0 18px;
}
.checkout-summary dd:last-child { margin-bottom: 0; }
.checkout-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.checkout-action .btn { min-width: 240px; }
.checkout-aside-link { display: block; text-align: center; margin-top: 24px; font-family: var(--sans); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); }

/* ===== Long-form pages (About, PrintQuality) ===== */
.editorial-page { padding: 64px 0 96px; max-width: 760px; margin: 0 auto; }
.editorial-page .eyebrow { display: block; margin-bottom: 14px; }
.editorial-page h1 {
  font-size: clamp(40px, 5vw, 64px); font-weight: 300; margin: 0 0 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.editorial-page .lede {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4;
  color: var(--ink-soft); margin: 0 0 48px;
}
.editorial-page section { margin-bottom: 48px; }
.editorial-page section h2 {
  font-size: 26px; font-weight: 400; margin: 0 0 14px;
}
.editorial-page section p {
  font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 14px; text-wrap: pretty;
}

/* ===== misc legacy ===== */
.hover-white:hover { color: var(--ink) !important; }
.auto-color { color: var(--accent) !important; }
.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
.text-sm { font-size: 13px; }

/* ===== gallery hover overlay text colour fix ===== */
.overlay-details .text-white { color: var(--paper) !important; }

/* ===== search toggle (Index) ===== */
.search-toggle-wrap { display: flex; align-items: center; gap: 8px; }
.search-toggle-wrap #Search { max-width: 300px; transition: width .3s, opacity .25s; }

/* ===== expanding nav search ===== */
.nav-search { display: inline-flex; align-items: center; position: relative; }
.nav-search .nav-search-input {
  width: 0; opacity: 0; padding: 0; border: none; outline: none; background: transparent;
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  transition: width .35s ease, opacity .25s ease, padding .25s ease, margin .25s ease;
  border-bottom: 1px solid transparent; pointer-events: none;
}
.nav-search.open .nav-search-input {
  width: 220px; opacity: 1; padding: 6px 4px; margin-right: 8px;
  border-bottom: 1px solid var(--line-strong); pointer-events: auto;
}
.nav-search .nav-search-input::placeholder { color: var(--ink-faint); font-style: italic; }
.nav-search-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); cursor: pointer; transition: border-color .2s, color .2s;
}
.nav-search-btn:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 767px) { .nav-search.open .nav-search-input { width: 160px; } }
