html,
body {
  overflow-x: hidden;
}

@font-face {
  font-family: "Averia Serif";
  src: url("fonts/AveriaSerifLibre-Regular.ttf");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1f1f1f;
  font-family: Helvetica, Arial, sans-serif;

  background-image:
    linear-gradient(rgba(247, 238, 238, 0.78), rgba(247, 238, 238, 0.78)),
    url("iconos/15.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 32px 100px;
}

section {
  margin-bottom: 90px;
  text-align: center;
}

h2 {
  font-family: "Averia Serif", Georgia, serif;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 30px;
}

h3 {
  font-family: "Averia Serif", Georgia, serif;
}

/* HERO */

.invitation {
  width: 100%;
  max-width: 90%;
  margin-bottom: -50px;
}

/* CALENDAR */

.calendar-section h2 {
  font-size: 28px;
  margin-bottom: 0;
}

.calendar {
  width: 100%;
}

/* IMAGE SLIDER */

.drag-slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);

  overflow-x: auto;
  overflow-y: hidden;

  cursor: grab;

  scrollbar-width: none;
}

.drag-slider::-webkit-scrollbar {
  display: none;
}

.drag-track {
  display: flex;
  gap: 16px;

  width: max-content;
}

.drag-track img {
  width: 420px;
  height: 260px;

  object-fit: cover;

  flex-shrink: 0;

  display: block;

  user-select: none;

  cursor: pointer;
}

.drag-slider:active {
  cursor: grabbing;
}

/* ITINERARY */

.itinerary {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 90px;
}

.itinerary h2 {
  margin-bottom: 40px;
}

.itinerary-item {
  display: grid;

  grid-template-columns: 250px auto;

  justify-content: center;

  align-items: center;

  column-gap: 0;

  margin-left: -200px;
}

.itinerary-item img {
  width: 250px;
  height: auto;

  object-fit: contain;

  margin-right: -45px;

  justify-self: end;
}

.itinerary-item-content {
  text-align: center;

  width: 340px;

  margin-left: -40px;
}

.itinerary-item h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.itinerary-item p {
  font-size: 16px;
  margin: 0 0 8px;
}

.itinerary-item a {
  font-size: 14px;
  color: #1f1f1f;
  text-decoration: underline;
}

/* COUNTDOWN */

.countdown h2 {
  margin-bottom: 10px;
}

.countdown p {
  font-size: 32px;
  margin: 0;
}

/* RSVP */

.rsvp a {
  font-family: "Averia Serif", Georgia, serif;
  font-size: 48px;
  color: #1f1f1f;
  text-decoration: underline;
}

/* COLLAGE */

.polaroid-collage {
  width: 100vw;

  position: relative;

  left: 50%;
  transform: translateX(-50%);

  display: flex;
  justify-content: center;

  margin: 40px 0 120px;
}

.polaroid-collage img {
  width: 75vw;

  max-width: 1200px;

  height: auto;

  display: block;
}

/* WEDDING PARTY */

.wedding-party {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px 28px;
}

.party-card {
  text-align: center;
}

.polaroid {
  background: white;
  padding: 10px 10px 28px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: rotate(-2deg);
}

.party-card:nth-child(even) .polaroid {
  transform: rotate(2deg);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
}

.party-card h3 {
  font-size: 14px;
  margin: 12px 0 3px;
}

.party-card p {
  font-size: 13px;
  margin: 0;
}

/* DRESS CODE */

.dress-code p {
  font-size: 16px;
  margin: -18px 0 24px;
}

.dress-code img {
  width: 700px;
  max-width: 100%;
  margin-bottom: -80px;
}

/* TRAVEL */

.travel {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.tulsa {
  width: 600px;
  margin-bottom: 40px;
  margin-top: 70px;
}

.travel-item {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 18px;
  align-items: start;
  text-align: left;
  margin-bottom: 45px;
}

.travel-item img {
  width: 100px;
  height: auto;
  object-fit: contain;
  justify-self: center;
}

.travel-item img[src*="4.png"] {
  width: 150px;
}

.travel-item h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.travel-item h3 span {
  color: #7a7a7a;
}

.travel-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 6px;
}

.travel-item .english-answer {
  font-size: 14px;
  color: #9a9a9a;
}

.map {
  width: 600px;
  max-width: 100%;
  margin-top: 10px;
}

/* FAQ */

.faq {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  text-align: left;
  margin-bottom: 38px;
}

.faq-item h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.faq-item h3 span {
  color: #7a7a7a;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 6px;
}

.english-answer {
  font-size: 14px;
  color: #9a9a9a;
}

/* REGISTRY */

.registry {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.registry p {
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.registry .english-answer {
  font-size: 14px;
  color: #9a9a9a;
}

.registry a {
  display: inline-block;
  margin-top: 18px;
  color: #1f1f1f;
  text-decoration: underline;
  font-family: "Averia Serif", Georgia, serif;
  font-size: 22px;
}

/* IMAGE POPUP */

.image-popup {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.88);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.25s ease;

  z-index: 9999;

  cursor: pointer;
}

.image-popup.active {
  opacity: 1;
  visibility: visible;
}

.image-popup img {
  max-width: 92vw;
  max-height: 92vh;

  object-fit: contain;

  display: block;

  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* MOBILE */

@media (max-width: 768px) {

  .page {
    padding: 30px 18px 60px;
  }

  section {
    margin-bottom: 60px;
  }

  h2 {
    font-size: 48px;
  }

  /* HERO */

  .invitation {
    max-width: 85%;
    margin-bottom: -20px;
  }

  .calendar {
    max-width: 100%;
  }

  /* SLIDER */

  .drag-track {
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .drag-track img {
    width: 78vw;
    height: 220px;
    border-radius: 2px;
  }

  /* ITINERARY */

  .itinerary {
    max-width: 100%;
    margin-bottom: 70px;
  }

  .itinerary h2 {
    font-size: 48px;
    margin-bottom: 40px;
  }

  .itinerary-item {
    display: grid;

    grid-template-columns: 70px 1fr;

    align-items: center;
    justify-content: center;

    gap: 0px;

    margin: 0 auto 0px;

    max-width: 100%;
  }

  .itinerary-item img {
    width: 250px;
    margin: -100px;
    justify-self: end;
  }

  .itinerary-item-content {
    width: auto;
    margin: 0;
    text-align: left;
  }

  .itinerary-item h3 {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .itinerary-item p,
  .itinerary-item a {
    font-size: 15px;
    line-height: 1.4;
  }

  /* COUNTDOWN */

  .countdown p {
    font-size: 26px;
  }

  /* RSVP */

  .rsvp a {
    font-size: 38px;
  }

  /* COLLAGE */

  .polaroid-collage {
    margin: 30px 0 90px;
  }

  .polaroid-collage img {
    width: 120vw;
  }

  /* WEDDING PARTY */

  .party-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 8px;
  }

  .polaroid {
    padding: 5px 5px 14px;
  }

  .party-card h3 {
    font-size: 9px;
  }

  .party-card p {
    font-size: 8px;
  }

  /* DRESS CODE */

  .dress-code img {
    width: 100%;
    margin-bottom: -20px;
  }

  /* TRAVEL */

  .tulsa {
    width: 220px;
    margin-top: 30px;
  }

  .travel-item {
    display: flex;
    flex-direction: column;

    align-items: center;
    text-align: left;

    gap: 12px;
  }

  .travel-item img,
  .travel-item img[src*="4.png"] {
    width: 80px;
  }

  .travel-item h3 {
    font-size: 24px;
  }

  .travel-item p {
    font-size: 16px;
    line-height: 1.6;
  }

  .map {
    width: 100%;
  }

  /* FAQ */

  .faq-item {
    text-align: left;
  }

  .faq-item h3 {
    font-size: 24px;
  }

  .faq-item p {
    font-size: 16px;
  }

  /* REGISTRY */

  .registry p {
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
  }

  .registry a {
    font-size: 28px;
  }
}