/* ─── 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: 5px;
  --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-logo img {
  height: 32px;
  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: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-spiral {
  width: clamp(60px, 7vw, 100px);
  height: auto;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero-wordmark {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  opacity: 0.95;
  margin-bottom: 32px;
}

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

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

.hero-meta {
  font-size: 11px;
  font-weight: 300;
  opacity: 0.45;
  letter-spacing: 4px;
  text-transform: uppercase;
  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);
}

.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: var(--gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: var(--gap);
}

.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);
}

/* Portrait: tall cell */
.gallery-item.portrait {
  grid-row: span 2;
}

/* Landscape: wide cell */
.gallery-item.landscape {
  grid-column: span 2;
}

/* Square */
.gallery-item.square {
  grid-row: span 1;
  grid-column: span 1;
}

/* Video card */
.gallery-item.video-card {
  grid-column: span 2;
  grid-row: span 2;
}

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

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  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;
}

/* ─── 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-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 — grid gets drag handles */
.gallery-grid.edit-mode .gallery-item {
  cursor: grab;
  outline: 1.5px solid rgba(230, 99, 71, 0.25);
  outline-offset: -1px;
}

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

.gallery-grid.edit-mode .gallery-item .item-overlay {
  opacity: 1;
  background: rgba(30, 25, 20, 0.4);
  pointer-events: none;
}

/* 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;
}

.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;
}

/* 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-logo img {
  height: 28px;
  opacity: 0.35;
  margin-bottom: 16px;
}

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

/* ─── RESPONSIVE ─── */

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
  }
}

@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;
    gap: 4px;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.portrait  { grid-row: span 2; }
  .gallery-item.landscape { grid-column: span 2; }
  .gallery-item.video-card { grid-column: span 2; grid-row: span 2; }

  .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); }
}
