/* ========================================
   Gemini-Style Image Gallery
   Responsive Grid + Dark/Light Mode
   ======================================== */

/* --- Theme Variables --- */
:root {
  --gallery-bg-primary: #f8fafc;
  --gallery-bg-card: #ffffff;
  --gallery-bg-hover: #f1f5f9;
  --gallery-text-primary: #0f172a;
  --gallery-text-secondary: #475569;
  --gallery-text-tertiary: #94a3b8;
  --gallery-border: rgba(15, 23, 42, 0.08);
  --gallery-border-light: rgba(15, 23, 42, 0.04);
  --gallery-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --gallery-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --gallery-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --gallery-shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 12px 20px -8px rgba(15, 23, 42, 0.05);
  --gallery-accent: #6366f1;
  --gallery-accent-soft: rgba(99, 102, 241, 0.08);
  --gallery-accent-glow: rgba(99, 102, 241, 0.2);
  --gallery-radius: 12px;
  --gallery-radius-lg: 16px;
  --gallery-radius-xl: 20px;
  --gallery-gradient-start: #6366f1;
  --gallery-gradient-mid: #a78bfa;
  --gallery-gradient-end: #ec4899;
  --gallery-overlay: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --gallery-bg-primary: #0f172a;
  --gallery-bg-card: #1e293b;
  --gallery-bg-hover: #334155;
  --gallery-text-primary: #f8fafc;
  --gallery-text-secondary: #cbd5e1;
  --gallery-text-tertiary: #64748b;
  --gallery-border: rgba(255, 255, 255, 0.08);
  --gallery-border-light: rgba(255, 255, 255, 0.04);
  --gallery-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --gallery-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --gallery-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
  --gallery-shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  --gallery-accent: #818cf8;
  --gallery-accent-soft: rgba(129, 140, 248, 0.15);
  --gallery-accent-glow: rgba(129, 140, 248, 0.3);
  --gallery-overlay: rgba(15, 23, 42, 0.88);
}

/* --- Gallery Container --- */
.gallery-page {
  min-height: 100vh;
  background: var(--gallery-bg-primary);
  color: var(--gallery-text-primary);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
}

.gallery-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background: linear-gradient(
    180deg,
    var(--gallery-accent-soft) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .gallery-page::before {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 100%
  );
}

/* --- Header --- */
.gallery-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--gallery-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gallery-border-light);
  transition: all 0.3s ease;
}

.gallery-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gallery-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-header-btn:hover {
  background: var(--gallery-bg-hover);
  color: var(--gallery-text-primary);
}
.gallery-header-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--gallery-bg-card);
  border: 1px solid var(--gallery-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gallery-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-header-center:hover {
  border-color: var(--gallery-accent);
  color: var(--gallery-accent);
}
.gallery-header-center .badge-new {
  font-size: 11px;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--gallery-gradient-start), var(--gallery-gradient-end));
  color: white;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 4px;
}

.gallery-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--gallery-bg-card);
  border: 1px solid var(--gallery-border);
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  padding: 3px;
}
.theme-toggle-btn:hover {
  border-color: var(--gallery-accent);
}
.theme-toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gallery-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(0);
}
.theme-toggle-knob svg {
  width: 13px;
  height: 13px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}
[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(20px);
  background: var(--gallery-accent);
}

/* --- Hero Section --- */
.gallery-hero {
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 1;
}

.gallery-hero-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gallery-gradient-start) 0%, var(--gallery-gradient-mid) 50%, var(--gallery-gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: galleryGradientShift 6s ease infinite;
}

@keyframes galleryGradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.gallery-hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--gallery-text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Suggestion Cards Grid --- */
.gallery-suggestions {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .suggestions-grid {
    gap: 16px;
  }
}

.suggestion-card {
  background: var(--gallery-bg-card);
  border: 1px solid var(--gallery-border);
  border-radius: var(--gallery-radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}
.suggestion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gallery-accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.suggestion-card:hover {
  border-color: var(--gallery-accent);
  box-shadow: var(--gallery-shadow-lg);
  transform: translateY(-2px);
}
.suggestion-card:hover::before {
  opacity: 1;
}
.suggestion-card:active {
  transform: translateY(0) scale(0.98);
}

.suggestion-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gallery-text-primary);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.suggestion-desc {
  font-size: 13px;
  color: var(--gallery-text-tertiary);
  position: relative;
  z-index: 1;
}

/* --- Main Image Gallery Grid --- */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  contain: content;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) and (min-width: 376px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 375px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- Image Card --- */
.gallery-item {
  position: relative;
  border-radius: var(--gallery-radius-lg);
  overflow: hidden;
  background: var(--gallery-bg-card);
  border: 1px solid var(--gallery-border-light);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  contain: strict;
  will-change: transform, box-shadow;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--gallery-shadow-xl);
  border-color: transparent;
  z-index: 10;
}

.gallery-item:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.gallery-item-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gallery-bg-hover);
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.gallery-item-img.loaded {
  opacity: 1;
}

.gallery-item:hover .gallery-item-img {
  transform: scale(1.05);
}

/* Skeleton / Placeholder */
.gallery-item-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--gallery-bg-hover) 0%,
    var(--gallery-bg-card) 50%,
    var(--gallery-bg-hover) 100%
  );
  background-size: 200% 100%;
  animation: galleryShimmer 1.5s infinite;
  border-radius: var(--gallery-radius-lg);
}

@keyframes galleryShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Overlay on hover */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  pointer-events: none;
}

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

.gallery-item-info {
  color: white;
  font-size: 13px;
  font-weight: 500;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.gallery-item-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  pointer-events: none;
}

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

.gallery-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}
.gallery-action-btn:hover {
  background: white;
  transform: scale(1.1);
}
.gallery-action-btn svg { width: 15px; height: 15px; stroke: #334155; fill: none; stroke-width: 2; }

/* Badge */
.gallery-item-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #334155;
  pointer-events: none;
}

/* --- Lightbox Modal --- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--gallery-radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox.active .gallery-lightbox-inner {
  transform: scale(1) translateY(0);
}

.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--gallery-radius-xl);
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.gallery-lightbox-close svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; }

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}
.gallery-lightbox-nav.prev { left: -20px; }
.gallery-lightbox-nav.next { right: -20px; }
.gallery-lightbox-nav svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; }

.gallery-lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* --- Bottom Navigation --- */
.gallery-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 16px 12px;
  background: var(--gallery-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--gallery-border-light);
  transition: all 0.3s ease;
}

.gallery-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  color: var(--gallery-text-tertiary);
  min-width: 56px;
}
.gallery-nav-item:hover {
  background: var(--gallery-bg-hover);
  color: var(--gallery-text-secondary);
}
.gallery-nav-item.active {
  color: var(--gallery-accent);
}
.gallery-nav-item.active .gallery-nav-icon {
  position: relative;
}
.gallery-nav-item.active .gallery-nav-icon::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gallery-accent);
}

.gallery-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gallery-nav-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery-nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.gallery-nav-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gallery-gradient-start), var(--gallery-gradient-end));
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --- Input Area (Gemini Style) --- */
.gallery-input-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
}

.gallery-input-wrapper {
  background: var(--gallery-bg-card);
  border: 1px solid var(--gallery-border);
  border-radius: var(--gallery-radius-xl);
  padding: 6px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  box-shadow: var(--gallery-shadow-md);
  transition: all 0.25s ease;
}
.gallery-input-wrapper:focus-within {
  border-color: var(--gallery-accent);
  box-shadow: var(--gallery-shadow-lg), 0 0 0 3px var(--gallery-accent-glow);
}

.gallery-input-add-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--gallery-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gallery-border);
  color: var(--gallery-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.gallery-input-add-btn:hover {
  background: var(--gallery-bg-hover);
  color: var(--gallery-text-primary);
  border-color: var(--gallery-border);
}
.gallery-input-add-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

.gallery-input-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--gallery-text-primary);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  padding: 8px 4px;
  max-height: 120px;
  font-family: inherit;
}
.gallery-input-field::placeholder {
  color: var(--gallery-text-tertiary);
}

.gallery-input-send-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--gallery-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gallery-text-primary);
  border: none;
  color: var(--gallery-bg-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.gallery-input-send-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.gallery-input-send-btn:active {
  transform: scale(0.95);
}
.gallery-input-send-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* --- Filter Bar --- */
.gallery-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-filter-bar::-webkit-scrollbar { display: none; }

.gallery-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--gallery-bg-card);
  border: 1px solid var(--gallery-border);
  color: var(--gallery-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}
.gallery-filter-chip:hover {
  border-color: var(--gallery-accent);
  color: var(--gallery-accent);
}
.gallery-filter-chip.active {
  background: var(--gallery-accent);
  border-color: var(--gallery-accent);
  color: white;
}
.gallery-filter-chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --- Loading State --- */
.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
}
.gallery-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gallery-border);
  border-top-color: var(--gallery-accent);
  border-radius: 50%;
  animation: gallerySpin 0.8s linear infinite;
}
@keyframes gallerySpin {
  to { transform: rotate(360deg); }
}
.gallery-loading-text {
  font-size: 14px;
  color: var(--gallery-text-tertiary);
}

/* --- Empty State --- */
.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.gallery-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gallery-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.gallery-empty-icon svg { width: 32px; height: 32px; stroke: var(--gallery-accent); fill: none; stroke-width: 1.5; }
.gallery-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gallery-text-primary);
  margin-bottom: 8px;
}
.gallery-empty-desc {
  font-size: 14px;
  color: var(--gallery-text-tertiary);
  max-width: 320px;
  line-height: 1.6;
}

/* --- Mobile Adjustments --- */
@media (max-width: 767px) {
  .gallery-header { padding: 12px 16px; }
  .gallery-header-btn { width: 36px; height: 36px; }
  .gallery-header-btn svg { width: 20px; height: 20px; }
  .gallery-header-center { font-size: 13px; padding: 6px 14px; }
  .gallery-hero { padding: 40px 16px 28px; }
  .gallery-suggestions { padding: 0 16px; margin-bottom: 24px; }
  .suggestion-card { padding: 14px 16px; }
  .suggestion-title { font-size: 14px; }
  .gallery-container { padding: 0 16px 96px; }
  .gallery-input-area { padding: 0 16px 96px; }
  .gallery-filter-bar { padding: 0 16px; margin-bottom: 16px; }
  .gallery-bottom-nav { padding: 6px 12px 10px; }
  .gallery-nav-item { padding: 4px 12px; min-width: 52px; }
  .gallery-lightbox-nav { display: none; }
  .gallery-item-actions { opacity: 1; transform: none; }
  .gallery-item-overlay { opacity: 1; }
  .gallery-item-info { transform: none; }
}

@media (max-width: 375px) {
  .gallery-header-center span:not(.badge-new) { display: none; }
  .suggestion-title { font-size: 13px; }
  .suggestion-desc { font-size: 12px; }
}

/* --- Print Styles --- */
@media print {
  .gallery-header, .gallery-bottom-nav, .gallery-input-area, .gallery-lightbox { display: none !important; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery-item { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}