/* ==========================================================================
   Baby Shower Photo Site — Global Styles
   Theme: It's a Boy · Soft blues, whites, elegant typography
   ========================================================================== */

/* ─── Design tokens ────────────────────────────────────────────────────── */
:root {
  --c-sky-25:    #f7fcff;
  --c-sky-50:    #f0f9ff;
  --c-sky-100:   #e0f2fe;
  --c-sky-200:   #bae6fd;
  --c-sky-300:   #7dd3fc;
  --c-baby:      #4a9eca;   /* primary brand blue */
  --c-baby-deep: #2e86b8;
  --c-baby-dark: #1e5f8a;
  --c-navy:      #1e3a5f;
  --c-stamp:     #e06820;   /* film timestamp orange */
  --c-white:     #ffffff;
  --c-surface:   #f8fafc;

  --shadow-card:
    0 2px 4px rgba(74,158,202,0.08),
    0 8px 24px rgba(74,158,202,0.10),
    0 1px 2px rgba(0,0,0,0.06);
  --shadow-polaroid:
    0 4px 8px rgba(74,158,202,0.12),
    0 12px 32px rgba(30,63,95,0.12),
    0 2px 4px rgba(0,0,0,0.08);
  --shadow-polaroid-hover:
    0 8px 16px rgba(74,158,202,0.20),
    0 24px 48px rgba(30,63,95,0.16),
    0 4px 8px rgba(0,0,0,0.10);
  --shadow-featured:
    0 8px 24px rgba(74,158,202,0.20),
    0 32px 64px rgba(30,63,95,0.18),
    0 4px 8px rgba(0,0,0,0.10);
  --shadow-modal:
    0 24px 64px rgba(14,50,100,0.30),
    0 4px 16px rgba(14,50,100,0.12);

  --radius-card:    16px;
  --radius-modal:   24px;
  --radius-btn:     14px;

  --font-script: 'Great Vibes', cursive;
  --font-body:   'Inter', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
}

/* ─── Base reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-navy);
  background: #f0f8ff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: var(--c-baby); }

/* ─── SVG grain filter (applied via CSS) ────────────────────────────────── */
.grain-filter {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── Page background ───────────────────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%,   rgba(186,230,253,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%,  rgba(219,234,254,0.40) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(224,242,254,0.50) 0%, transparent 70%),
    #f0f8ff;
}

/* ─── Floating bubbles (decorative) ────────────────────────────────────── */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubble-float linear infinite;
  opacity: 0;
}

@keyframes bubble-float {
  0%   { transform: translateY(0)     scale(1);    opacity: 0; }
  10%  { opacity: 0.35; }
  80%  { opacity: 0.2; }
  100% { transform: translateY(-110vh) scale(0.85); opacity: 0; }
}

/* ─── Main content wrapper ──────────────────────────────────────────────── */
.site-content {
  position: relative;
  z-index: 1;
}

/* ─── Hero / Header ─────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-baby);
  margin-bottom: 12px;
  opacity: 0.8;
}

.hero-headline {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  color: var(--c-navy);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  /* Subtle text shadow for depth */
  text-shadow: 0 2px 8px rgba(74,158,202,0.18);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--c-baby);
  letter-spacing: 0.06em;
  margin: 0 0 32px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--c-sky-300);
  margin: 0 auto;
  max-width: 280px;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-sky-200), transparent);
}

.hero-divider-icon {
  font-size: 18px;
  color: var(--c-sky-300);
  line-height: 1;
}

/* ─── Upload card ───────────────────────────────────────────────────────── */
.upload-section { padding: 0 24px 56px; }

.upload-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(186,230,253,0.5);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.upload-card-title {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #6b9aba;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.upload-card-sub {
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  color: #5a7a9a;
  margin-bottom: 28px;
  line-height: 1.5;
}

.upload-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  border: 2px solid var(--c-sky-200);
  border-radius: var(--radius-btn);
  background: linear-gradient(160deg, rgba(240,249,255,0.8), rgba(224,242,254,0.6));
  color: var(--c-baby-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 2px 8px rgba(74,158,202,0.10);
  position: relative;
  overflow: hidden;
}

.upload-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(74,158,202,0.06), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.upload-btn:hover {
  transform: translateY(-3px);
  border-color: var(--c-baby);
  box-shadow: 0 6px 20px rgba(74,158,202,0.22);
}

.upload-btn:hover::before { opacity: 1; }

.upload-btn:active {
  transform: translateY(-1px);
  transition: transform 0.08s ease;
}

.upload-btn:focus-visible {
  outline: 3px solid var(--c-baby);
  outline-offset: 2px;
}

.upload-btn svg {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  flex-shrink: 0;
}

.upload-note {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
}

/* ─── Upload status area ────────────────────────────────────────────────── */
.upload-status {
  margin-top: 20px;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
}

.upload-status.uploading {
  background: rgba(224,242,254,0.6);
  border: 1px solid var(--c-sky-200);
  color: var(--c-baby-dark);
}

.upload-status.success {
  background: rgba(220,252,231,0.7);
  border: 1px solid #86efac;
  color: #166534;
}

.upload-status.error {
  background: rgba(254,242,242,0.7);
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.progress-bar-wrap {
  margin-top: 10px;
  height: 6px;
  background: rgba(74,158,202,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-baby), var(--c-baby-deep));
  border-radius: 999px;
  transition: width 0.2s ease;
  width: 0%;
}

/* ─── Spinner ────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(74,158,202,0.3);
  border-top-color: var(--c-baby);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* ─── Album section ─────────────────────────────────────────────────────── */
.album-section {
  padding: 0 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.album-section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3rem);
  text-align: center;
  color: var(--c-baby-dark);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(74,158,202,0.15);
}

.album-section-sub {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

/* ─── Featured photo (Fuji instant style) ──────────────────────────────── */
.featured-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.featured-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-sky-300);
  margin-bottom: 20px;
}

.fuji-card {
  background: white;
  border-radius: 4px;
  /* Fuji-style: slightly wider white frame all around, thick bottom */
  padding: 12px 12px 56px;
  box-shadow: var(--shadow-featured);
  max-width: 340px;
  width: 100%;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
}

.fuji-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 12px 32px rgba(74,158,202,0.25),
    0 48px 80px rgba(30,63,95,0.20),
    0 6px 12px rgba(0,0,0,0.10);
}

.fuji-card:focus-visible {
  outline: 3px solid var(--c-baby);
  outline-offset: 4px;
}

.fuji-card-image-wrap {
  position: relative;
  overflow: hidden;
  /* Fuji aspect ratio is roughly square */
  aspect-ratio: 1 / 1;
}

.fuji-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay on image */
.fuji-card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(30, 63, 95, 0.35) 100%
  );
  pointer-events: none;
}

/* Timestamp on featured card */
.fuji-timestamp {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 11px;
  font-weight: bold;
  color: var(--c-stamp);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3), -1px -1px 0 rgba(255,100,0,0.1);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
  opacity: 0.92;
}

/* Fuji color strip at bottom (stripe across the white margin) */
.fuji-strip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg,
    #4a9eca 0%, #7dd3fc 25%,
    #93c5fd 50%, #bae6fd 75%,
    #e0f2fe 100%
  );
  border-radius: 2px;
  opacity: 0.7;
}

.fuji-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fuji-caption-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0d8ec;
}

/* ─── Polaroid carousel ─────────────────────────────────────────────────── */
.polaroid-grid {
  overflow: hidden;
  padding: 24px 0 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: carousel-scroll var(--carousel-duration, 40s) linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .carousel-track:hover {
    animation-play-state: paused;
  }
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.polaroid-card {
  background: white;
  /* padding: top/sides = 10px, bottom = 52px (the white margin) */
  padding: 10px 10px 52px;
  box-shadow: var(--shadow-polaroid);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  width: 200px;
  flex-shrink: 0;
  /* Rotation is applied inline via JS */
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  will-change: transform;
}

.polaroid-card:hover {
  /* Lift effect — rotation stays from inline style, just adds the Y shift */
  box-shadow: var(--shadow-polaroid-hover);
  z-index: 5;
}

.polaroid-card:focus-visible {
  outline: 3px solid var(--c-baby);
  outline-offset: 2px;
}

.polaroid-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c-sky-50);
}

.polaroid-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.polaroid-card:hover .polaroid-image-wrap img {
  transform: scale(1.03);
}

/* Gradient overlay on polaroid image */
.polaroid-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(30, 63, 95, 0.28) 100%
  );
  pointer-events: none;
}

/* Film timestamp imprint */
.polaroid-timestamp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 9.5px;
  font-weight: bold;
  color: var(--c-stamp);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.35), -1px -1px 0 rgba(255,80,0,0.08);
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 2;
  opacity: 0.90;
  white-space: nowrap;
}

/* White margin area with caption */
.polaroid-margin {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.polaroid-caption {
  font-family: var(--font-script);
  font-size: 13px;
  color: #8aafcc;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* ─── Empty state ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: #94a3b8;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #7ec8e3;
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ─── Full-screen photo viewer ──────────────────────────────────────────── */
.viewer {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.97);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.viewer.active {
  opacity: 1;
  pointer-events: auto;
}

.viewer-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-img {
  max-width: min(90vw, calc(100vw - 120px));
  max-height: min(88vh, calc(100vh - 80px));
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  transition: opacity 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.viewer-img.loading { opacity: 0.4; }

.viewer-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.viewer-close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.08);
}

.viewer-close:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.viewer-close svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
}

.viewer-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.viewer-nav:hover {
  background: rgba(255,255,255,0.20);
}

.viewer-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.viewer-nav:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.viewer-nav svg {
  width: 22px;
  height: 22px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

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

.viewer-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 10;
  user-select: none;
}

/* ─── PIN Modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 40, 90, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: linear-gradient(145deg, #dff0fb 0%, #c8e6f5 45%, #d8eef9 100%);
  border: 1px solid rgba(186,230,253,0.7);
  border-radius: var(--radius-modal);
  padding: 40px 32px 36px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  position: relative;
  overflow: hidden;
  transform: scale(0.88) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Star decorations in modal */
.modal-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.modal-star {
  position: absolute;
  color: rgba(74,158,202,0.35);
  font-size: 14px;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.2); }
}

/* Cloud shapes */
.modal-cloud {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  pointer-events: none;
}

/* Lock icon */
.modal-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(186,230,253,0.9);
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(74,158,202,0.18);
  position: relative;
  z-index: 1;
}

.modal-lock svg {
  width: 28px;
  height: 28px;
  fill: var(--c-baby);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--c-navy);
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}

.modal-sub {
  font-size: 14px;
  text-align: center;
  color: #5a7a9a;
  margin: 0 0 24px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(186,230,253,0.9);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.7);
  color: var(--c-navy);
  outline: none;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-input:focus {
  border-color: var(--c-baby);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 3px rgba(74,158,202,0.18);
}

.modal-input::placeholder { color: #9db8cc; }

.modal-error {
  font-size: 13px;
  color: #dc2626;
  background: rgba(254,242,242,0.8);
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.modal-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a7a9a;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.modal-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-baby);
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.modal-btn {
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.modal-btn:hover { transform: translateY(-1px); }
.modal-btn:active { transform: translateY(0); }

.modal-btn:focus-visible {
  outline: 3px solid var(--c-baby);
  outline-offset: 2px;
}

.modal-btn-cancel {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(186,230,253,0.8);
  color: #5a7a9a;
}

.modal-btn-cancel:hover { background: rgba(255,255,255,0.8); }

.modal-btn-submit {
  background: linear-gradient(135deg, var(--c-baby) 0%, var(--c-baby-deep) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(74,158,202,0.35);
}

.modal-btn-submit:hover { box-shadow: 0 6px 18px rgba(74,158,202,0.45); }
.modal-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── Utility classes ───────────────────────────────────────────────────── */
.hidden    { display: none !important; }
.sr-only   {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 48px 20px 36px; }
  .hero-headline { font-size: 2.8rem; }

  .upload-card { padding: 24px 20px; }
  .upload-btn { padding: 18px 12px; font-size: 13px; }

  .carousel-track { gap: 16px; }

  .viewer-nav { display: none; } /* swipe on mobile */
  .viewer-img { max-width: 94vw; max-height: 80vh; }

  .modal-card { padding: 32px 24px 28px; }
  .modal-actions { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .upload-buttons { grid-template-columns: 1fr; }
}

/* ─── Skeleton loading animation ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #e0f2fe 25%, #bae6fd 50%, #e0f2fe 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 4px;
}

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