@font-face {
  font-family: 'Lovers Quarrel';
  src: url('../fonts/LoversQuarrel-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Malibu';
  src: url('../fonts/Malibu.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #fdedf3;
}

#container {
    display: none;
    text-align: center;
}

a:link {
    color: #8c8c8e;
    text-decoration: none;
    font-family: 'Libre Baskerville', serif;
}

a:visited {
    color: #297689;
}

a:hover {
    color: #297689;
}

a:active {
    color: #8c8c8e;
}

.header {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    height: 120vh;
    background-image: url('/images/hero-edit.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    align-items: center;
}

#couple-name {
    width: 100%;
    height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3.5rem;
    padding-top: 8rem;
}

h1 {
    font-family: "Malibu", cursive;
    font-size: 100px ;
    margin-bottom: 0;
    color: #edeae4;
    font-weight: 200;
    animation-name: fadeIn;
    animation-duration: 2s; 
    animation-timing-function: ease-in; 
    animation-fill-mode: forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#couple-name p {
    font-family: 'Libre Baskerville', serif;
    font-size: 30px ;
     color: #edeae4;
    margin-top: -2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.header-nav-list {
    display: flex;
    list-style: none;
    justify-content: right;
    text-align: right;
    margin-bottom: 10px;
}

.header-nav-list li {
    font-family: 'Libre Baskerville', serif;
    padding: 10px;
    margin-right: 5px;
    font-size: 12px;
}

.section-countdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.countdown-container {
    color: #edeae4;
    justify-content: center;
}

#countdown {
    display: flex;
    justify-content: center;
    width: 500px;
    padding-left: auto;
    padding-bottom: .5rem;
    padding-right: 1.5rem;
    margin-left: 1.5rem;
    margin-right: auto;
    margin-top: -3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.time {
    padding: 50px;
    text-align: center;
    border-radius: 5px;
}

.time-divider {
    font-family: 'Libre Baskerville', serif;
    display: block;
    margin-top: 50px;
    font-size: 80px;
    font-weight: 300;
    justify-content: center;
    text-align: center;
}

.time span {
    font-family: 'Libre Baskerville', serif;
    display: block;
    font-size: 80px;
    font-weight: 300;
}

.time p {
    font-family: 'Libre Baskerville', serif;
}

.story {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

#ourstory {
    width: 100%;
    background: 
        url('/images/upper-left2.webp') top left no-repeat,
        url('/images/lower-right2.webp') bottom right no-repeat;
    background-size: 1000px auto, auto;
    margin: 0;
}

h2 {
    font-family: "Malibu", cursive;
    font-size: 60px;
    font-weight: 200;
    text-align: center;
    vertical-align: middle;
    padding: 50px 20px 20px 20px;
    color: #2a2874;
}

.story-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;    
    padding: 20px;
    gap: 50px;
    
}

.story-card {
    font-family: 'Libre Baskerville', serif;
    width: 50%;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

h3 {
    color: #373762;
    padding-bottom: 10px;
    font-family: "Malibu", cursive;
    font-size: 30px;
}

#section-story {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
    background-color: none;
}

#section-story-card {
    width:100%;
    text-align: center;
    color: #373762;
    background-color:#f4ecef;
}

.story-img-container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 100%;
    height: 100%;
    gap: 10px;
    object-fit: cover;
}


#full-photo {
    width: 100%;
    height: 100%;
    display: flex;
    grid-column: span 2;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 5;
    animation-name: slideUp;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
    border-radius: 15px;
    object-fit: cover;
}

#full-photo1 {
    width: 100%;
    height: 100%;
    display: flex;
    grid-column: span 2;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 5;
    grid-row-end: 10;
    animation-name: slideUp;
    animation-duration: 1s;
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
    border-radius: 15px;
    object-fit: cover;
}

#couple-img-1 {
    width: 100%;
    height: 100%;
    display: flex;
    grid-column: span 2;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;
    animation-name: slideIn;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
    border-radius: 15px;
}

#couple-img-2 {
    width: 100%;
    height: 100%;
    display: flex;
    grid-column: span 2;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 5;
    border-radius: 15px;
}

#couple-img-3 {
    width: 100%;
    height: 100%;
    display: flex;
    grid-column: span 2;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 5;
    grid-row-end: 7;
    animation-name: slideIn;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
    border-radius: 15px;
}

#couple-img-4 {
    width: 100%;
    height: 100%;
    display: flex;
    grid-column: span 2;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 7;
    grid-row-end: 10;
    border-radius: 15px;
}

.story-img-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.wedding-details-section {
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.details {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.wedding-details-img-container {
    width:100%;
    height: 100%;
    display: block;
}

.wedding-details-img-container img {
    width: 100%;
    height: 100%;
    animation-name: fadeIn;
    animation-duration: 1.8s; 
    animation-timing-function: ease-in-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry 0% 40%;
}

/* MAPS — desktop: 2 per row */
.maps {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    gap: 35px;
    justify-content: center;
}

.rsvp-now.map {
    flex: 1 1 calc(50% - 95px);
    max-width: calc(50% - 95px);
    width: 100%;
    margin-bottom: 2rem;
}

.rsvp-now.map img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-top: 0.5rem;
}

.rsvp-now.map p {
    color: #2a2874;
    font-family: "Malibu", cursive !important;
    margin-top: 0.5rem;
}

#section-dresscode {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
}

.details-icons {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
}

.details-icons img {
    width: 50px;
    height: 50px;
}

.details-icons p {
    text-align: left;
    align-content: center;
}


/*//////////////////////*/
  /* --- MAIN CONTAINER --- */
  /* #yt-mini-player {
    position: fixed; 
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 10px 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    text-align: right;
    font-family: 'Libre Baskerville', serif;
  }

  #yt-iframe-container {
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    position: absolute;
  }

  #yt-play-btn {
    width: 95%;
    background: #901830; 
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
  }
  #yt-play-btn:hover {
    background: #a08060;
  }

  #yt-label {
    font-size: 13px;
    color: #bcbbbb;
    white-space: nowrap;
  }

  #yt-volume-cont {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
  }

  #yt-volume {
    width: 60px;
    accent-color: #922e42; 
    cursor: pointer;
  }

  #yt-vol-icon {
    font-size: 16px;
  } */



/*/////////////////////*/
#heart-player-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#heart-player-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
}

#heart-svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 10px rgba(144,24,48,0.55));
  animation: heartbeat 2.2s ease-in-out infinite;
  transition: transform 0.15s;
}

#heart-player-btn:hover #heart-svg {
  transform: scale(1.12);
}

#heart-player-btn span {
  font-family: 'Libre Baskerville', serif;
  font-size: 10px;
  color: rgba(237,234,228,0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.14); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.08); }
  56%      { transform: scale(1); }
}

#yt-iframe-container {
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  position: absolute;
}

#yt-mini-player {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  transform: none;
  width: 180px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: 'Libre Baskerville', serif;
}

#yt-mini-player.open {
  visibility: visible;
  opacity: 1;
}

#yt-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

#yt-label {
  font-size: 11px;
  color: rgba(237,234,228,0.9);
  line-height: 1.4;
}

#yt-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(237,234,228,0.6);
  font-size: 13px;
  padding: 0;
  line-height: 1;
}

#yt-close-btn:hover {
  color: #edeae4;
  background: none;
}

#yt-play-btn {
  width: 100%;
  background: #901830;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.2s;
}

#yt-play-btn:hover {
  background: #a08060;
}

#yt-volume-cont {
  display: flex;
  align-items: center;
  gap: 6px;
}

#yt-volume {
  flex: 1;
  accent-color: #922e42;
  cursor: pointer;
}

#yt-vol-icon {
  font-size: 13px;
}

@media only screen and (max-width: 500px) {
  #heart-player-wrap {
    top: 16px;
    right: 16px;
  }

  #heart-svg {
    width: 44px;
    height: 44px;
  }

  #yt-mini-player {
    width: 145px;
    padding: 9px 11px;
    gap: 6px;
    border-radius: 12px;
  }

  #yt-label {
    font-size: 10px;
  }

  #yt-play-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  #yt-vol-icon {
    font-size: 12px;
  }
}


/*/////////////////////*/

#dresscode {
    padding-top: 3rem;
}

.ideas {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    padding: 0 0 3rem 0;
}

.ideas img {
    width: 90%;
    object-fit: fill;
}

#story-card-dresscode {
    margin-top: -2rem;
    margin-bottom: 5rem;
    border-radius: 15px;
    background-color:  #f4ecef;
}

.swatches-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.swatch-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.swatch-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 11px;
    color: #373762;
    letter-spacing: 0.05em;
    text-align: center;
}

#section-timeline {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-bottom: 3rem;
}

#section-timeline img {
    width: 100%;
}

#section-faq {
    padding-bottom: 5rem;
}

#faq-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.faq-card {
    font-family: 'Libre Baskerville', serif;
    width: 80%;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.faq-card:hover {
    transform: translateY(-4px);
}

.divider {
    display: flex;
    width: 80%;
    height: auto;
    justify-content: center;
}

.divider img{
    display: flex;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;
}

#section-rsvp {
    padding-bottom: 5rem;
}

#rsvp-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;    
    padding: 20px;
    text-align: center;
}

#rsvp-card {
    font-family: 'Libre Baskerville', serif;
    width: 80%;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.rsvp-now {
    font-family: 'Libre Baskerville', serif;
    width: 30%;
    height: 100%;
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin-bottom: 5rem;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: solid 2px  #901830;
}

.rsvp-now:hover {
    background-color: #922e42;
}

.rsvp-now a:hover {
    color: #f4ecef;
}

#section-footer {
    width: 100%;
    height: 100%;
    font-family: 'Libre Baskerville', serif;
    background-image: url('/images/mr-3.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    padding-top: 5rem;
    padding-bottom: 4rem;
    color: #edeae4;
}

#h2-countdown {
    color:#edeae4;
    padding-top: 8rem;
    padding-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#section-footer p {
    margin-bottom: 1rem;
}

#section-footer-p {
    margin-top: 3rem;
}



#section-quiz {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; */
    background: url('/images/lower-left.png'),
    url('/images/lower-right2.webp');
    background-size: 1500px auto, 1500px auto;
    background-position: left bottom, right bottom;
    background-repeat: no-repeat;
    margin: 0;
    margin-bottom: 3rem;
}

.quiz-container {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.quiz-container h2{
    font-size: 40px;
}

#h3-quiz {
    margin-bottom: 1rem;
}

#question-text {
    margin-bottom: 1rem;
}

#question-container {
    margin-bottom: 20px;
}

#options-container label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

#options-container input[type="radio"] {
    margin-right: 5px;
}

button {
    font-family: 'Libre Baskerville', serif;
    background-color: #922e42;
    color: #edeae4;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

#submit-btn,
#restart-btn {
    display: block;
    min-width: 160px;   
    margin: 1rem auto;  
    text-align: center; 
    padding: 0.5rem 1rem;
}

button:hover {
    background-color: #c8558d;;
}

#result-container {
    margin-top: 20px;
}


/* =========================================
   PHOTO GALLERY
   ========================================= */

#section-gallery {
  padding-bottom: 5rem;
  background-color: #fdedf3;
}

#h2-gallery {
  color: #2a2874;
  padding-top: 50px;
  padding-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 5px;
  background-color: #f4ecef;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
}

.gallery-item::after {
  content: '';
  display: block;
  padding-bottom: 125%;
}

.gallery-item:nth-child(3n+2) {
  margin-top: 20px;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: saturate(0.92);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 40, 116, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-expand-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-expand-icon svg {
  width: 12px;
  height: 12px;
}

.gallery-item:hover .gallery-expand-icon {
  opacity: 1;
  transform: scale(1);
}

/* =========================================
   LIGHTBOX
   ========================================= */

.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 25, 0.92);
  backdrop-filter: blur(6px);
  animation: galleryFadeIn 0.3s ease;
}

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gallery-lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: galleryZoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes galleryZoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.gallery-lb-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.gallery-lb-counter {
  font-family: 'Libre Baskerville', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(237, 234, 228, 0.5);
  margin-top: 14px;
}

.gallery-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(237, 234, 234, 0.3);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #edeae4;
  transition: background 0.2s, border-color 0.2s;
}

.gallery-lb-close:hover {
  background: rgba(237, 234, 228, 0.12);
  border-color: rgba(237, 234, 228, 0.6);
}

.gallery-lb-close svg {
  width: 16px;
  height: 16px;
}

.gallery-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(237, 234, 228, 0.25);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #edeae4;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.gallery-lb-nav:hover {
  background: rgba(237, 234, 228, 0.12);
  border-color: rgba(237, 234, 228, 0.6);
}

.gallery-lb-nav svg {
  width: 18px;
  height: 18px;
}

.gallery-lb-prev { left: 16px; }
.gallery-lb-next { right: 16px; }

/*////////////////////////////////////*/


@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(100%); 
        }
        to {
            opacity: .5;
            transform: translateX(50%); 
        }
        to {
            opacity: 1;
            transform: translateX(0%); 
        }
    }

    /* /////////////////////////////// */

    @media only screen and (max-width: 500px) {


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            margin: 0;
        }

        .header {
            background-image: url('/images/mr-4.webp') !important;
        }

        #couple-name {
            width: 100%;
            display: grid;
            grid-template-columns: 1fr;
            justify-content:center;
            align-items: center;
            text-align: center;
            margin-top: 12rem;
            padding-top: 10rem;
            padding-bottom: 2.5rem;
            padding-left: auto;
            padding-right: auto;
            line-height: 6rem;
        }

        #couple-name h1 {
            display: block;
            font-family: "Malibu", cursive !important;
            font-size: 75px;
        }

        #couple-name p {
             color: #edeae4;
            display: block;
            font-family: 'Libre Baskerville', serif !important;
            font-size: 20px;
            padding-bottom: 2.5rem;
            padding-top: 0;
        }

        .header {
            padding-top: 2rem;
            width: 100%;
            background-size: cover;
            background-position: center;
            align-items: center;
        }

        .header-nav {
            display: grid;
            grid-template-columns: 1fr;
            width: 100%;
            text-align: center;
            justify-content: center;
            align-items: center;
        }

        .header-nav-list {
            display: grid;
            grid-template-columns: 1fr;
            width: 100%;
            text-align: center;
        }

        .header-nav-list li {
            align-items: center;
            text-align: center;
            margin-bottom: -.5rem;
        }

        #h2-countdown,
        #h2-story,
        #wedding-details,
        #dresscode,
        #h2-faq,
        #h2-rsvp {
            font-family: "Malibu", cursive !important;
            font-size: 45px;
            width: 100%;
        }

        #h2-story {
            margin-top: 2rem;
            width: 100%;
        }

        #section-story-card {
            width:100%;
            text-align: center;
            background-color:#f4ecef;
        }

        #section-story  {
            width: 100%;
            margin: 0;
        }

        .story-cards {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

         #wedding-details-section {
            display: flex;
            flex-direction: column;
            width: 140%;
            height: 100%;
            background-color:#f4ecef;
            z-index: 1000;
        }

        #story-card-details {
            display: flex;
            flex-direction: column;
            padding: 1rem;
            width: 130%;
            height: 100%;
            background-color:#f4ecef;
            z-index: 1000;
        }

        #story-card-dresscode{
            display: flex;
            flex-direction: column;
            width: 110%;
            height: 100%;
            background-color:#f4ecef;
            z-index: 1000;
        }

        .details {
            display: flex;
            width: 100%;
        }

        /* MAPS — mobile: 1 per row */
        .maps {
            flex-direction: column;
            gap: 0;
           align-items: center;
        }

        .rsvp-now.map {
            flex: 1 1 100%;
            max-width: 100%;
            width: 90%;
            margin-bottom: 1.5rem;
            padding: 20px;
        }

        .rsvp-now a {
            font-size: 15px;
        }

        .rsvp-now p {
            margin-top: 10px;
            color: #2a2874;
            font-family: "Malibu", cursive !important;
        }

        #story-card-dresscode {
            margin-top: 1rem;
        }

        .story-img-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            width: 100%;
        }

        .story-img-container img{
            display: block;
            width: 100%;
        }

        .ideas {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }


        .ideas img {
            width: 140%;
            height: auto;
        }

        #story-card-details {
            width: 100%;
        }

        #section-dresscode {
            width: 100%;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: bottom center;
            margin: 0;
        }
        
        #story-card-dresscode {
            margin-top: -2rem;
            margin-bottom: 1.5rem;
        }

        #story-card-dresscode h3 {
            text-align: center;
        }

        .details-icons img {
            width: 35px;
            height: 35px;
        }

        iframe {
            display: flex;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        #faq-card {
            width: 120%;
        }

        #section-quiz {
            width: 100%;
            background: url('/images/lower-left.png'),
            url('/images/lower-right2.webp');
            background-size: 650px auto, 650px auto;
            background-repeat: no-repeat;
            background-repeat: no-repeat, no-repeat;
            background-position: left bottom, right bottom;
            margin: 0;
            gap: 0;
        }

        .quiz-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .quiz-container button {
            display: inline-block;
            max-width: 100%;
        }

        #rsvp-card {
            width: 100%;
            height: 100%;
        }

        .rsvp-now {
            display: block;
            width: 100%;
        }

        .countdown-container {
            display: flex;
            flex-direction: column;
            width: 80%;
            height: 100%;
            margin: 0 auto;
            margin-bottom: 2rem;
            padding-left: 1.5rem;
            color: #edeae4;
            justify-content: center;
            text-align: center;
        }

        #countdown {
            flex: 1;
            display: flex;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            text-align: center;
            margin: auto;
            line-height: 2rem;
        }

        .time {
            padding: 5px;
        }

        .time-divider {
            color: #edeae4;
            margin-top: -1rem;
        }

        .time span {
            font-family: 'Libre Baskerville', serif;
            font-size: 2em;
        }

       #section-footer {
            width: 100%;
            min-height: unset;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding-top: 4rem;
            padding-bottom: 3rem;
            padding-left: 1rem;
            padding-right: 1rem;
            margin-bottom: 0;
            background-size: cover;
            background-position: 25% center;
            background-repeat: no-repeat;
        }

        #decor {
            margin-top: -1rem;
        }

       #section-footer-p {
            margin-top: 15px;
            margin-bottom: 0; 
            padding-bottom: 0;
            width: 90%;
            text-align: center;
        }

        .gallery-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            padding: 0 12px 12px;
        }

        .gallery-item:nth-child(3n+2) {
            margin-top: 0;
        }

        .gallery-item:nth-child(2n) {
            margin-top: 16px;
        }

        .gallery-lb-nav {
            width: 36px;
            height: 36px;
        }

        .gallery-lb-prev { left: 6px; }
        .gallery-lb-next { right: 6px; }
    }

    /* /////////////////////////////// */

    @media only screen and (min-width: 650px) and (max-width: 899px) {

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .body {
            padding-left: 1rem;
        }

        .header {
            width: 100%;
        }

        .header-nav-list li {
            padding: 10px;
            margin-top: 1rem;
            margin-right: 5px;
            font-size: 13px;
        }

        #couple-name {
            margin-top: 3rem;
        }

        h1 {
            font-family: "Malibu", cursive !important;
            font-size: 95px;
            padding-bottom: 1rem;
        }

         .story-cards {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        #h2-countdown,
        #h2-story,
        #wedding-details,
        #dresscode,
        #h2-faq,
        #h2-rsvp {
            font-family: "Malibu", cursive !important;
            font-size: 50px;
            width: 100%;
        }

        #h2-story {
            margin-top: 2rem;
            width: 100%;
        }

        #section-story, #wedding-details-section, #story-card-details, #story-card-dresscode-container,#story-card-dresscode,
        .story-img-container
        #section-faq {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        #story-card-dresscode-container {
            width: 100%;
            padding-bottom: 1.5rem;
        }

        #story-card-dresscode {
            margin-bottom: 0;
        }

        #section-faq {
            width: 100%;
            padding-left: 1.5rem;
            padding-right: auto;
        }

        #faq-cards{
            width: 100%;
        }

        .faq-card {
            width: 90%;
            margin-left: 1rem;
            margin-right: auto;
        }

        #rsvp-card {
            width: 90%;
        }

        h2 {
            font-family: "Malibu", cursive !important;
            font-size: 45px;
            width: 90%;
        }

        iframe {
            display: flex;
            width: 100%;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .ideas img {
            width: 95%;
            margin-left: auto;
            margin-right: 1rem;
        }

        #section-footer {
            width: 100%;
            height: 90%;
            justify-content: space-between;
        }

        #section-footer-p {
            margin-top: 2rem;
        }

        .countdown-container {
            color: #edeae4;
            justify-content: center;
            width: 80%;
            height: 70%;
        }

        #countdown {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        .time span {
            display: block;
            font-size: 50px;
            font-weight: 300;
        }

        .gallery-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .gallery-item:nth-child(3n+2) {
            margin-top: 0;
        }

        .gallery-item:nth-child(2n) {
            margin-top: 18px;
        }
    }