/* ─── Valentina Client Gallery ─── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --hc: #E66347;
  --bo: #B6512B;
  --n:  #1E1914;
  --cr: #F2ECE3;
  --pe: #ECA684;
  --gap: 2px;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--n);
  color: var(--cr);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NAVIGATION ─── */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(30, 25, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242, 236, 227, 0.06);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}

#nav.visible { transform: translateY(0); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-spiral {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.nav-wordmark {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

.nav-gallery-name {
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.45;
  flex: 1;
  text-align: center;
  padding: 0 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(242, 236, 227, 0.06);
  border: 1px solid rgba(242, 236, 227, 0.08);
  border-radius: var(--radius);
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(230, 99, 71, 0.15);
  border-color: rgba(230, 99, 71, 0.3);
  color: var(--hc);
}

.nav-btn.active {
  background: rgba(230, 99, 71, 0.2);
  border-color: var(--hc);
  color: var(--hc);
}

.nav-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav-btn .count {
  min-width: 18px;
  height: 18px;
  background: var(--hc);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transition: transform 0.3s var(--ease);
}

.nav-btn .count.zero { background: rgba(242, 236, 227, 0.2); }
.nav-btn .count.bump { transform: scale(1.4); }

/* ─── HERO ─── */

.gallery-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 25, 20, 0.55) 0%,
    rgba(30, 25, 20, 0.3) 40%,
    rgba(30, 25, 20, 0.75) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-brand {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-spiral {
  width: clamp(50px, 6vw, 80px);
  height: auto;
  opacity: 0.9;
}

.hero-wordmark {
  width: clamp(160px, 20vw, 280px);
  height: auto;
  opacity: 0.95;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: rgba(242, 236, 227, 0.4);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--cr);
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-meta {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.45;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 2.2;
  color: var(--cr);
  margin-bottom: 20px;
}

.hero-message {
  max-width: 480px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  opacity: 0.6;
  font-style: italic;
  color: var(--cr);
}

/* ─── GALLERY TOOLBAR ─── */

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(242, 236, 227, 0.06);
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--n);
}

.section-toolbar {
  position: relative;
  top: auto;
  z-index: 1;
  column-span: all;
  margin-top: 60px;
  border-top: 1px solid rgba(242, 236, 227, 0.06);
}

.toolbar-count {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.3;
}

.toolbar-filters {
  display: flex;
  gap: 6px;
}

.filter-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.1);
  border-radius: 99px;
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover, .filter-btn.active {
  opacity: 1;
  border-color: rgba(230, 99, 71, 0.5);
  color: var(--hc);
}

/* ─── GALLERY GRID ─── */

.gallery-grid {
  padding: 2px;
  position: relative;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: rgba(242, 236, 227, 0.04);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  break-inside: avoid;
  margin-bottom: 2px;
}

.gallery-item.loaded {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.wide {
  /* No column-span to avoid breaking column flow */
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.04);
}

/* Video play indicator */
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(30, 25, 20, 0.6);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(242, 236, 227, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.video-play-badge svg {
  width: 18px;
  height: 18px;
  color: var(--cr);
  margin-left: 3px;
}

.gallery-item:hover .video-play-badge {
  background: rgba(230, 99, 71, 0.4);
  border-color: var(--hc);
}

/* Photo overlay */
.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 25, 20, 0.75) 0%,
    rgba(30, 25, 20, 0) 50%,
    rgba(30, 25, 20, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.gallery-item:hover .item-overlay { opacity: 1; }

.item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-self: flex-start;
}

.item-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 25, 20, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 236, 227, 0.15);
  color: var(--cr);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.item-btn:hover { background: rgba(230, 99, 71, 0.3); border-color: var(--hc); color: var(--hc); }
.item-btn.active { background: var(--hc); border-color: var(--hc); color: white; }
.item-btn svg { width: 14px; height: 14px; }

.item-index {
  align-self: flex-end;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.4;
}

/* ─── B/W TOGGLE ─── */

.bw-toggle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(30, 25, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(242, 236, 227, 0.25);
  border-radius: 6px;
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 20;
  opacity: 1;
  transition: all 0.25s var(--ease);
}

.bw-toggle:hover {
  background: rgba(242, 236, 227, 0.2);
  border-color: rgba(242, 236, 227, 0.5);
}

.bw-toggle.active {
  background: rgba(242, 236, 227, 0.85);
  border-color: rgba(242, 236, 227, 0.9);
  color: var(--n);
}

/* ─── SECTION OVERLAYS ─── */

.section-title-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
  background: rgba(30, 25, 20, 0.35);
}

.section-title-overlay h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--cr);
  opacity: 0.9;
}

.gallery-section-gap {
  display: none;
}

.gallery-item.section-start {
  margin-top: 0;
}

/* ─── LIGHTBOX ─── */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 12, 10, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 40px; height: 40px;
  background: rgba(242, 236, 227, 0.07);
  border: 1px solid rgba(242, 236, 227, 0.1);
  border-radius: 50%;
  color: var(--cr);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  z-index: 10;
}

.lb-close:hover { background: rgba(230, 99, 71, 0.2); color: var(--hc); border-color: var(--hc); }

.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(242, 236, 227, 0.07);
  border: 1px solid rgba(242, 236, 227, 0.1);
  border-radius: 50%;
  color: var(--cr);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  z-index: 10;
}

.lb-nav:hover { background: rgba(230, 99, 71, 0.2); color: var(--hc); border-color: var(--hc); }
.lb-nav.lb-prev { left: 24px; }
.lb-nav.lb-next { right: 24px; }

.lb-image-wrap {
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-image-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}

.lb-image-wrap img.loading { opacity: 0.3; }

.lb-toolbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  background: linear-gradient(to top, rgba(15,12,10,0.9), transparent);
}

.lb-counter {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  opacity: 0.4;
  margin-right: 8px;
}

.lb-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(242, 236, 227, 0.07);
  border: 1px solid rgba(242, 236, 227, 0.1);
  border-radius: 99px;
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.lb-action-btn:hover { background: rgba(230, 99, 71, 0.2); color: var(--hc); border-color: var(--hc); }
.lb-action-btn.active { background: var(--hc); border-color: var(--hc); color: white; }
.lb-action-btn svg { width: 13px; height: 13px; }

/* ─── SIDE PANELS ─── */

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.7);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.panel-backdrop.open { opacity: 1; pointer-events: all; }

.side-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw);
  background: rgba(28, 23, 18, 0.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(242, 236, 227, 0.06);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.side-panel.open { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(242, 236, 227, 0.06);
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0.6;
}

.panel-header .panel-count {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.35;
  letter-spacing: 2px;
  margin-left: 10px;
}

.panel-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.1);
  border-radius: 50%;
  color: var(--cr);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}

.panel-close:hover { border-color: var(--hc); color: var(--hc); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 99, 71, 0.3) transparent;
}

.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(230, 99, 71, 0.3); border-radius: 2px; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.panel-thumb {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(242, 236, 227, 0.04);
}

.panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.panel-thumb:hover img { transform: scale(1.06); }

.panel-thumb .remove-btn {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: rgba(30, 25, 20, 0.8);
  border: none;
  border-radius: 50%;
  color: var(--cr);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s var(--ease);
}

.panel-thumb:hover .remove-btn { opacity: 1; }
.panel-thumb .remove-btn:hover { background: var(--hc); }

.panel-bw-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(242, 236, 227, 0.85);
  color: var(--n);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 4px;
}

.panel-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.25;
}

.panel-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(242, 236, 227, 0.06);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-footer-info {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.35;
  letter-spacing: 1px;
  text-align: center;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--hc);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary:hover { background: var(--bo); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.12);
  border-radius: var(--radius);
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.25s var(--ease);
}

.btn-secondary:hover { opacity: 1; border-color: rgba(242, 236, 227, 0.3); }

/* ─── PRINT SEND FORM ─── */

.print-note {
  width: 100%;
  padding: 12px 14px;
  background: rgba(242, 236, 227, 0.04);
  border: 1px solid rgba(242, 236, 227, 0.1);
  border-radius: var(--radius);
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  resize: none;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.print-note:focus { border-color: rgba(230, 99, 71, 0.4); }
.print-note::placeholder { opacity: 0.3; }

/* ─── ADMIN TOOLBAR ─── */

.toolbar-admin {
  display: flex;
  gap: 6px;
  align-items: center;
}

.admin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.15);
  border-radius: 99px;
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.25s var(--ease);
}

.admin-btn:hover { opacity: 1; border-color: rgba(242, 236, 227, 0.35); }
.admin-btn.save  { border-color: var(--hc); color: var(--hc); opacity: 1; }
.admin-btn.save:hover { background: var(--hc); color: white; }
.admin-btn.cancel { opacity: 0.4; }
.admin-btn.hidden { display: none; }

/* Edit mode — free canvas layout */
.gallery-grid.edit-mode {
  column-count: unset;
  position: relative;
  min-height: 3000px;
  display: block;
}

.gallery-grid.edit-mode .gallery-item {
  position: absolute !important;
  cursor: move;
  outline: 1.5px solid rgba(230, 99, 71, 0.25);
  outline-offset: -1px;
  margin-bottom: 0;
  break-inside: unset;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.gallery-grid.edit-mode .gallery-item.selected {
  outline: 2px solid var(--hc);
  z-index: 50;
}

.gallery-grid.edit-mode .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-grid.edit-mode .gallery-item:active { cursor: grabbing; }

.gallery-grid.edit-mode .gallery-item .item-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Hover brings image to front */
.gallery-grid .gallery-item:hover {
  z-index: 40;
}

/* Resize handles */
.resize-handle {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--hc);
  z-index: 30;
}

.resize-handle.br {
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.resize-handle.tl {
  top: 0;
  left: 0;
  cursor: nwse-resize;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.gallery-grid.edit-mode .resize-handle {
  display: block;
}

/* Admin item toolbar */
.admin-item-bar {
  display: none;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  gap: 4px;
  background: rgba(20, 15, 10, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 236, 227, 0.15);
  border-radius: 8px;
  padding: 4px;
  z-index: 25;
  pointer-events: all;
}

.gallery-grid.edit-mode .admin-item-bar {
  display: flex;
}

.admin-opt {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.2);
  border-radius: 5px;
  color: rgba(242, 236, 227, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.admin-opt:hover {
  background: rgba(230, 99, 71, 0.25);
  border-color: var(--hc);
  color: var(--hc);
}

.admin-opt.active {
  background: var(--hc);
  border-color: var(--hc);
  color: white;
}

/* Admin delete button per photo */
.admin-delete-btn {
  display: none;
}

.gallery-grid.edit-mode .admin-delete-btn {
  display: flex;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: rgba(20, 10, 10, 0.85);
  border: 1px solid rgba(255, 80, 60, 0.5);
  border-radius: 50%;
  color: rgba(255, 120, 100, 1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s var(--ease);
  pointer-events: all;
}

.gallery-grid.edit-mode .admin-delete-btn:hover {
  background: rgba(200, 40, 20, 0.9);
  border-color: #e05040;
  color: white;
}

/* ─── Drag handle (admin edit mode) ─── */

.drag-handle {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(20, 10, 10, 0.78);
  border: 1px solid rgba(242, 236, 227, 0.18);
  border-radius: 8px;
  color: rgba(242, 236, 227, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: grab;
  transition: background 0.18s;
}

.drag-handle:active { cursor: grabbing; }

.gallery-grid.edit-mode .drag-handle {
  display: flex;
}

.drag-handle:hover {
  background: rgba(230, 99, 71, 0.35);
  border-color: var(--hc);
  color: var(--hc);
}

/* ─── Focal point dot ─── */

.focal-dot {
  display: none;
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hc);
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
  transition: left 0.15s, top 0.15s;
}

.gallery-grid.edit-mode .focal-dot {
  display: block;
}

/* ─── Crop selector (admin edit mode) ─── */

.admin-crop-bar {
  display: none;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  gap: 4px;
  background: rgba(20, 15, 10, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 236, 227, 0.12);
  border-radius: 10px;
  padding: 5px;
  z-index: 20;
  pointer-events: all;
}

.gallery-grid.edit-mode .admin-crop-bar {
  display: flex;
}

.crop-opt {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(242, 236, 227, 0.15);
  border-radius: 6px;
  color: rgba(242, 236, 227, 0.6);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.crop-opt:hover {
  background: rgba(230, 99, 71, 0.2);
  border-color: var(--hc);
  color: var(--hc);
}

.crop-opt.active {
  background: var(--hc);
  border-color: var(--hc);
  color: white;
}

.gallery-item.sortable-ghost {
  opacity: 0.3;
}

.gallery-item.sortable-drag {
  opacity: 0.95;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(1.03);
  z-index: 50;
}

/* Hero editor panel */
.hero-editor {
  position: fixed;
  top: 80px;
  left: 20px;
  width: 260px;
  background: rgba(20, 15, 10, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(242, 236, 227, 0.12);
  border-radius: var(--radius);
  padding: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 99, 71, 0.3) transparent;
}

.hero-editor h3 {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--hc);
  margin-bottom: 4px;
}

.hero-editor label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cr);
  opacity: 0.5;
}

.hero-editor input[type="text"],
.hero-editor select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(242, 236, 227, 0.06);
  border: 1px solid rgba(242, 236, 227, 0.12);
  border-radius: 6px;
  color: var(--cr);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  outline: none;
}

.hero-editor input[type="text"]:focus,
.hero-editor select:focus {
  border-color: rgba(230, 99, 71, 0.4);
}

.hero-editor input[type="range"] {
  width: 100%;
  accent-color: var(--hc);
}

.hero-editor select {
  cursor: pointer;
}

/* Admin mode banner */
.admin-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(230, 99, 71, 0.15);
  border: 1px solid rgba(230, 99, 71, 0.4);
  border-radius: var(--radius);
  color: var(--hc);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  z-index: 90;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.admin-banner.show { opacity: 1; }

/* ─── TOAST NOTIFICATION ─── */

#toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 23, 18, 0.95);
  border: 1px solid rgba(230, 99, 71, 0.3);
  border-radius: var(--radius);
  color: var(--cr);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 12px 24px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── LOADING STATE ─── */

.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(242, 236, 227, 0.1);
  border-top-color: var(--hc);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.3;
}

/* ─── ERROR STATE ─── */

.gallery-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 12px;
  text-align: center;
  padding: 40px;
}

.gallery-error h2 {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.5;
}

.gallery-error p {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.3;
}

/* ─── FOOTER ─── */

footer {
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid rgba(242, 236, 227, 0.06);
  margin-top: 60px;
}

.footer-spiral {
  height: 30px;
  opacity: 0.35;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 28px;
  opacity: 0.35;
  margin-bottom: 16px;
}

.footer-studio {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.2;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  .nav-gallery-name { display: none; }
  .nav-btn span:last-child { display: none; }

  .gallery-hero { height: 100svh; }
  .hero-spiral { width: clamp(48px, 10vw, 72px); }
  .hero-wordmark { width: clamp(140px, 40vw, 220px); }

  .gallery-toolbar { padding: 16px 24px; }
  .toolbar-filters { display: none; }

  .gallery-grid {
    padding: 4px;
    column-count: 2;
    column-gap: 4px;
  }

  .lb-nav { display: none; }
  .lb-image-wrap { max-width: 100vw; }
  .lb-toolbar { flex-wrap: wrap; gap: 8px; padding: 16px; }

  footer { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
}
