.wd_gallery_wrapper .container {
  width: 100%;
  max-width: none;
}

.couple-gallery {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 5px 26px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.couple-gallery::-webkit-scrollbar {
  display: none;
}

.couple-gallery__item {
  display: block;
  flex: 0 0 calc(25% - 13.5px);
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(239, 191, 191, 0.68);
  border-radius: 14px;
  background: linear-gradient(145deg, #451b2a, #181416);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.couple-gallery__item:hover,
.couple-gallery__item:focus-visible {
  border-color: #efbfbf;
  transform: translateY(-3px);
}

.couple-gallery__item:focus-visible,
.couple-gallery:focus-visible {
  outline: 2px solid #efbfbf;
  outline-offset: 3px;
}

.couple-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.wedding-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  margin: 0 auto;
}

.wedding-video {
  margin: 0;
  border: 1px solid rgba(239, 191, 191, 0.35);
  background: #141414;
}

.wedding-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 454 / 642;
  object-fit: contain;
  background: #0c0c0c;
}

.wedding-event-card {
  float: none;
  max-width: 720px;
  margin: 0 auto 30px;
}

.wedding-event-card h2 {
  color: #efbfbf;
}

.wedding-event-card h1 {
  border-color: rgba(239, 191, 191, 0.65);
}

.wedding-event-card > span {
  padding: 0 12px;
}

.wedding-event-times {
  display: grid;
  clear: both;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
}

.wedding-event-times p {
  float: none;
  width: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(239, 191, 191, 0.35);
  background: rgba(69, 15, 28, 0.36);
}

.wedding-event-times strong,
.wedding-event-times time {
  display: block;
}

.wedding-event-times strong {
  margin-bottom: 6px;
  color: #efbfbf;
  font-weight: 400;
}

.wedding-event-times time {
  color: #ffffff;
  font-size: 20px;
}

@media (max-width: 480px) {
  .wedding-event-times {
    grid-template-columns: 1fr;
  }
}

.wedding-rsvp {
  background-color: #141414;
  background-image: none;
}

.wedding-rsvp__details {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid rgba(239, 191, 191, 0.35);
  background-color: #0c0c0c;
  color: #ffffff;
  text-align: center;
}

.wedding-rsvp__details h2 {
  margin: 0 0 24px;
  color: #efbfbf;
}

.wedding-rsvp__details p {
  margin: 0 0 16px;
  font-size: 18px;
}

.wedding-rsvp__form {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  text-align: left;
}

.wedding-rsvp__form[hidden],
.wedding-rsvp__confirmation[hidden] {
  display: none;
}

.wedding-rsvp__confirmation {
  margin-top: 32px;
  padding: 34px 24px;
  border: 1px solid rgba(239, 191, 191, 0.55);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(69, 15, 28, 0.5), rgba(20, 20, 20, 0.9));
  animation: wedding-rsvp-confirmed 550ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wedding-rsvp__confirmation-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid #efbfbf;
  border-radius: 50%;
  color: #efbfbf;
  font-size: 25px;
}

.wedding-rsvp__confirmation h3 {
  margin: 0 0 10px;
  color: #efbfbf;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
}

.wedding-rsvp__details .wedding-rsvp__confirmation p {
  margin: 0;
}

@keyframes wedding-rsvp-confirmed {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.wedding-rsvp__form label {
  color: #efbfbf;
  font-size: 16px;
}

.wedding-rsvp__form input,
.wedding-rsvp__form select,
.wedding-rsvp__form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #9c686a;
  border-radius: 4px;
  background: #141414;
  color: #ffffff;
  font: inherit;
}

.wedding-rsvp__form input[type="number"] {
  color-scheme: dark;
}

.wedding-rsvp__form input[type="number"]::-webkit-inner-spin-button,
.wedding-rsvp__form input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.35;
  cursor: pointer;
  filter: grayscale(1);
  transition: opacity 180ms ease;
}

.wedding-rsvp__form input[type="number"]:hover::-webkit-inner-spin-button,
.wedding-rsvp__form input[type="number"]:focus::-webkit-inner-spin-button {
  opacity: 0.75;
}

.wedding-rsvp__form input:focus-visible,
.wedding-rsvp__form select:focus-visible,
.wedding-rsvp__form textarea:focus-visible,
.wedding-rsvp__form button:focus-visible {
  outline: 2px solid #efbfbf;
  outline-offset: 2px;
}

.wedding-rsvp__form .wedding-rsvp__honey {
  display: none;
}

.wedding-rsvp__form button {
  justify-self: center;
  min-width: 220px;
  margin-top: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 4px;
  background: #76182a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
}

.wedding-rsvp__form button:hover {
  background: #9c686a;
}

.wedding-rsvp__form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wedding-rsvp__details .wedding-rsvp__status {
  min-height: 24px;
  margin: 20px 0 0;
  color: #efbfbf;
}

.wedding-rsvp__details .wedding-rsvp__status:empty {
  display: none;
}

.wedding-rsvp__status.is-error {
  color: #ffb5b5;
}

@media (prefers-reduced-motion: reduce) {
  .wedding-rsvp__confirmation {
    animation: none;
  }
}

@media (min-width: 1600px) {
  .couple-gallery__item {
    flex-basis: calc(20% - 14.4px);
  }
}

@media (min-width: 2200px) {
  .couple-gallery__item {
    flex-basis: calc(16.6667% - 15px);
  }
}

@media (min-width: 3000px) {
  .couple-gallery__item {
    flex-basis: calc(12.5% - 15.75px);
  }
}

@media (max-width: 1199px) {
  .couple-gallery__item {
    flex-basis: calc(33.3333% - 12px);
  }
}

@media (max-width: 991px) {
  .couple-gallery__item {
    flex-basis: calc(50% - 9px);
  }
}

@media (max-width: 600px) {
  .couple-gallery {
    gap: 14px;
  }

  .couple-gallery__item {
    flex-basis: min(58vw, 280px);
    padding: 5px;
  }

  .wedding-rsvp__details {
    padding: 28px 20px;
  }
}
