/* ==========================================================================
   GLOBAL RESPONSIVE RESET (Fixes Hardcoded Container Widths)
   ========================================================================== */

/* 1. Prevent fixed pixel widths on parent wrappers */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 2. Target your main container/wrapper (adjust class names if different) */
.main-container,
.app-container,
.wrapper,
main {
  width: 100% !important;
  max-width: 1200px; /* Or your preferred max desktop width */
  margin: 0 auto;
  box-sizing: border-box;
}


/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-parchment: #F8F3E9;
  --card-bg-light: #FAF6EE;
  --card-bg-dark: #121C2B;
  --text-dark: #3A3532;
  --text-muted: #8C827A;
  --text-light: #F4EBE1;
  --accent-rose: #D05C6B;
  --border-light: #E2D6C5;
  --border-gold: #C5A059;

  /* Typography */
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Spacing & Layout */
  --max-width: 1200px;
  --radius-card: 16px;
  --gap-grid: 20px;
}

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

body {
  background-color: var(--bg-parchment);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.navbar {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo .title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo .heart {
  color: var(--accent-rose);
}

.logo .subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--accent-rose);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   3. MAIN GRID CONTAINER
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-grid);
}

/* Card Base */
.card {
  background-color: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(58, 53, 50, 0.03);
  position: relative;
}

/* ==========================================================================
   4. HERO GRID (TOP ROW)
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: var(--gap-grid);
  align-items: stretch;
}

/* ==========================================================================
   THE PROPOSAL CARD (PIXEL-PERFECT REFINEMENTS)
   ========================================================================== */

.card-proposal {
  background-color: #FAF6EE;
  border: 1px solid #EAE0D0;
  border-radius: 16px;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Header Ornament */
.card-proposal .card-header-ornament {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #7A7067;
  margin-bottom: 24px;
}

.card-proposal .star {
  color: #C5A059;
  font-size: 0.8rem;
  margin: 0 4px;
}

/* Quote Section */
.proposal-content {
  margin-bottom: 20px;
  width: 100%;
}

.heart-badge {
  color: #D05C6B;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.proposal-quote {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 1px;
  color: #4A423B;
  text-transform: uppercase;
}

.highlight-pink {
  color: #D05C6B;
  font-weight: 700;
  font-style: italic;
}

.proposal-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #9C9288;
  letter-spacing: 1px;
  margin-top: 16px;
}

/* Bottom Pixel Illustration Frame (Overlapping Style) */
.proposal-art-frame {
  width: 100%;
  background-color: #F5EFE3;
  border: 1px solid #E6DCCB;
  border-radius: 12px;
  padding: 10px 10px 0 10px; /* Leave bottom open for overlap */
  position: relative;
  overflow: visible; /* Allows image to extend outside container bounds */
}

.proposal-img {
  width: calc(100% + 12px); /* Makes image slightly wider than inner box */
  margin-left: -6px;        /* Pulls left edge outward */
  margin-bottom: -10px;     /* Pulls bottom edge out to overlap frame border */
  display: block;
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 2;
}

/* Container for the illustration without inner padding or box borders */
.proposal-illustration-wrapper {
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.proposal-art-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  /* Optional soft vignette transition into background */
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0.9) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0.9) 100%);
}

/* Center Card Container */
.card-shrine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 20px 40px;
}

/* Wrapper to hold relative anchor position */
.arch-container {
  position: relative;
  width: 100%;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Arch Frame */
.arch-window {
  width: 100%;
  height: 380px;
  border: 3px solid #C5A059;
  border-radius: 160px 160px 0 0;
  position: relative;
  overflow: hidden; /* Clips the interior image inside arch curve */
  background: linear-gradient(180deg, #EAE0D0 0%, #FAF6EE 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Individual Cherry Blossom Petal */
.petal {
  position: absolute;
  background: linear-gradient(135deg, #FFB7C5 0%, #FF94A8 100%);
  border-radius: 12px 2px 12px 2px;
  opacity: 0.75;
  pointer-events: none;
  animation: fall linear infinite, sway ease-in-out infinite alternate;
}

/* Fall and Sway Keyframes */
@keyframes fall {
  0% {
    top: -8%;
  }
  100% {
    top: 108%;
  }
}

@keyframes sway {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(20px) rotate(180deg);
  }
}

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

/* 1. Resize and reposition the winged Poring badge */
.poring-badge {
  position: absolute;
  bottom: -18px; /* Pulled further down so wings sit over the bottom banner border */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 42px; /* Increased from 32px/36px for proper visual impact */
  height: auto;
}

.poring-badge img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. Banner alignment check to give breathing room for Poring */
.ribbon-banner {
  background: #F5EFE3;
  border: 1px solid #C5A059;
  padding: 8px 32px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #4A423B;
  position: absolute;
  bottom: -12px;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-story {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}

/* ==========================================================================
   5. BOTTOM GRID
   ========================================================================== */
.bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-grid);
}

.card-destination {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
  border-color: transparent;
}

/* ==========================================================================
   6. RESPONSIVE / MOBILE ADAPTABILITY
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   7. COMPONENT STYLES
   ========================================================================== */

/* Header Ornaments */
.card-header-ornament {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.card-header-ornament .star {
  color: var(--border-gold);
  margin: 0 4px;
}

/* --- THE PROPOSAL CARD --- */
.proposal-content {
  text-align: center;
  margin-bottom: 16px;
}
.heart-badge {
  color: var(--accent-rose);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.proposal-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
}
.highlight-pink {
  color: var(--accent-rose);
  font-weight: 700;
}
.proposal-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.proposal-art-frame {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.proposal-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* --- MAIN SHRINE CARD --- */
.shrine-header {
  margin-bottom: 16px;
}
.shrine-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}
.shrine-cross {
  color: var(--accent-rose);
  margin: 0 6px;
  font-size: 1.4rem;
}
.shrine-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 4px;
  text-align: center;
}

/* Stained Glass Arch Window */
.arch-window {
  width: 100%;
  max-width: 320px;
  height: 380px;
  border: 4px solid var(--border-gold);
  border-radius: 160px 160px 0 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EAE0D0 0%, #FAF6EE 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(197, 160, 89, 0.2);
}
.hero-couple {
  width: 100%;
  position: relative;
}

/* Ribbon Banner */
.ribbon-banner {
  background: #EFE4D3;
  border: 1px solid var(--border-gold);
  padding: 8px 32px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin-top: -18px;
  position: relative;
  z-index: 3;
}
.poring-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
}

/* --- OUR STORY TIMELINE CARD --- */
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dotted #E2D6C5;
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.timeline-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #3A3532;
  text-transform: uppercase;
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #8C827A;
  letter-spacing: 0.5px;
}

/* --- MEMORIES POLAROID CAROUSEL --- */
.card-memories {
  padding: 28px 24px 20px;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Navigation Arrows */
.nav-arrow {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #8C827A;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.nav-arrow:hover {
  color: #D05C6B;
}

.polaroid-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 6px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.polaroid-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.polaroid-card {
  background: #FFFFFF;
  padding: 10px 10px 14px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(58, 53, 50, 0.08);
  flex: 0 0 135px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Alternate rotation angles */
.polaroid-card:nth-child(1) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(2) { transform: rotate(1deg); }
.polaroid-card:nth-child(3) { transform: rotate(-0.5deg); }
.polaroid-card:nth-child(4) { transform: rotate(1.5deg); }
.polaroid-card:nth-child(5) { transform: rotate(-1deg); }

.polaroid-card:hover {
  transform: translateY(-4px) scale(1.03) rotate(0deg);
  box-shadow: 0 8px 18px rgba(58, 53, 50, 0.12);
  z-index: 2;
}
/* Washi Tape Effect */
.polaroid-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 10px;
  background-color: rgba(248, 243, 233, 0.7);
  border: 1px solid rgba(226, 214, 197, 0.5);
  backdrop-filter: blur(1px);
  z-index: 3;
}
.polaroid-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  background-color: #121C2B;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: #3A3532;
  margin-top: 8px;
  white-space: nowrap;
}

/* Pagination Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #E2D6C5;
  display: inline-block;
}

.carousel-dots .active-dot {
  background-color: transparent;
  color: #D05C6B;
  font-size: 0.75rem;
  line-height: 1;
  width: auto;
  height: auto;
}

/* --- NEXT DESTINATION CARD --- */
.card-destination {
  background: linear-gradient(180deg, #121C2B 0%, #1A273B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-card);
}
.dest-subtitle {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #8CA0BA;
  margin-bottom: 8px;
}
.dest-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #FFF;
  margin-bottom: 6px;
}
.dest-desc {
  font-size: 0.85rem;
  color: #A3B5CC;
  margin-bottom: 20px;
}
.btn-rsvp {
  background: transparent;
  border: 1px solid #3B4E6B;
  color: #FFF;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-rsvp:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}
.btn-icon {
  width: 18px;
  height: 18px;
}

@keyframes poringFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.poring-badge {
  animation: poringFloat 3s ease-in-out infinite;
}

/* RO3 Title & Wing Alignment */
.ro3-title-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 8px;
}

.dest-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1;
}

.wing-icon {
  width: 24px;
  height: auto;
  opacity: 0.75;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Subtle hover interaction on wings when focusing the card */
.card-destination:hover .wing-left {
  transform: translateX(-3px) rotate(-4deg);
  opacity: 1;
}

.card-destination:hover .wing-right {
  transform: translateX(3px) rotate(4deg);
  opacity: 1;
}

/* ==========================================================================
   CARDS & CAROUSEL OVERFLOW FIX
   ========================================================================== */

/* 1. Force all cards to respect parent boundaries and override flex min-width */
.card,
.card-memories,
.card-destination,
.destination-card,
.ro3-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important; /* Overrides default min-width: auto */
  box-sizing: border-box !important;
  overflow: hidden; /* Contains all nested content inside card borders */
}

/* 2. Contain the Memories Carousel inside the card bounds */
.carousel-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

.polaroid-track {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important; /* Enables horizontal swipe/scroll */
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
  padding: 12px 8px !important;
}

.polaroid-card {
  flex: 0 0 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

/* 3. Reset margins on the RO3 / Next Destination Banner */
.card-destination,
.destination-card,
.ro3-card,
.next-destination {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ==========================================================================
   AUDIO TOGGLE BUTTON
   ========================================================================== */

.music-toggle-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFFDF9;
  border: 1.5px solid #C5A059;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  background-color: #FBF4E8;
}

.music-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Optional pulse effect when playing */
.music-toggle-btn.playing {
  animation: music-pulse 2s infinite ease-in-out;
}

@keyframes music-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(197, 160, 89, 0);
  }
}

/* ==========================================================================
   NAVIGATION MENU MOBILE FIX
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Flexbox / Grid Layout Container Adjustments */
  .nav-menu,
  .navigation,
  nav ul,
  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Keep items in 1 line with compact spacing */
    gap: 8px 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 8px !important;
    margin: 0 auto 16px !important;
    box-sizing: border-box !important;
  }

  /* 2. Standardize Nav Links and Items */
  .nav-item,
  .nav-link,
  nav ul li,
  nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none;
  }

  /* 3. Scale Icons */
  .nav-item img,
  .nav-link img,
  nav ul li img,
  .nav-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    margin-bottom: 4px !important;
  }

  /* 4. Adjust Label Typography */
  .nav-item span,
  .nav-link span,
  nav ul li a,
  .nav-label {
    font-size: 0.65rem !important; /* Smaller size to fit text cleanly */
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important; /* Allows multi-word labels like NEXT DESTINATION to wrap naturally */
    word-break: break-word;
    hyphens: auto;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* 1. Force main container to fit 100% viewport width without horizontal overflow */
  body, 
  .main-container, 
  .grid-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 12px !important;
    box-sizing: border-box;
  }

  /* 2. Stack all grid cards in a single column */
  .grid-container,
  .dashboard-grid { /* replace with your main layout grid class */
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .card {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 3. Memories Card Carousel Responsiveness */
  .card-memories {
    padding: 20px 12px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .carousel-wrapper {
    position: relative;
    width: 100%;
    gap: 0;
  }

  .polaroid-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
    padding: 12px 8px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Keep polaroid cards legible instead of squeezing them */
  .polaroid-card {
    flex: 0 0 160px !important; /* Fixed width for readable cards */
    scroll-snap-align: center;
  }

  /* Hide navigation arrows on touch screens (swipe native gesture) */
  .nav-arrow {
    display: none;
  }
}

/* ==========================================================================
   MOBILE BREAKPOINT (≤ 768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* Reset the CSS Grid columns to a single flexible column */
  .grid-container,
  .dashboard-grid,
  .hero-grid { 
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  /* Make every card take 100% of the mobile viewport width */
  .card {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    box-sizing: border-box !important;
  }

  /* Memories Card Horizontal Scroll Fix */
  .card-memories {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .polaroid-track {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 4px !important;
  }

  .polaroid-card {
    flex: 0 0 160px !important; /* Prevents cards from squishing */
    min-width: 160px !important;
  }
}