html,
body {
  margin: 0;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.animated-fast {
  animation-duration: var(--invite-animation-fast, 0.45s) !important;
}

.animated-normal,
.animated {
  animation-duration: var(--invite-animation-normal, 0.7s) !important;
}

.animated-slow {
  animation-duration: var(--invite-animation-slow, 1.1s) !important;
}

#btn-audio[style*="display: flex"] {
  visibility: visible !important;
  opacity: 1 !important;
}

#btn-audio {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 8px)) !important;
  left: auto !important;
  top: auto !important;
  width: 42px !important;
  z-index: 9999 !important;
}

#btn-audio #audio-container {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(126, 41, 53, .92);
  color: #fffaf5;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(39, 25, 20, .22);
  -webkit-tap-highlight-color: transparent;
}

#btn-audio #audio-container:hover {
  background: #9d3543;
}

#btn-audio #audio-container:focus-visible {
  outline: 3px solid rgba(255, 250, 245, .9);
  outline-offset: 3px;
}

#btn-audio #audio-container svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#btn-audio #audio-container .vinyl-icon {
  fill: none;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

#btn-audio #audio-container.is-playing .vinyl-icon,
#btn-audio #audio-container.is-playing svg {
  animation: vinyl-spin 2.4s linear infinite;
}

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

#guestname { display: none !important; }
#watermark-brand > [data-id="7cb2a94e"],
#watermark-brand > [data-id="6efce0c1"],
#watermark-brand > [data-id="32a11624"] { display: none !important; }
[data-id="77860ae6"] { display: none !important; }

#wedding-wishes-public {
  width: min(100%, 720px);
  margin: 28px auto 0;
  display: grid;
  gap: 12px;
}
.wedding-wishes-title { margin: 0 0 4px; text-align: center; }
.wedding-wish-card {
  background: rgba(255, 251, 244, .88);
  border: 1px solid rgba(126, 41, 53, .2);
  padding: 16px;
  color: #3b302a;
}
.wedding-wish-card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wedding-wish-card p { margin: 8px 0 0; white-space: pre-wrap; }
.wedding-wish-card small { color: #796b63; }
.wedding-gallery-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wedding-gallery-custom > :nth-child(n+9) { display: none; }
#gallery .elementor-gallery__container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px !important;
}
#gallery .elementor-gallery__container > :nth-child(n+9) { display: none !important; }
.wedding-gallery-custom figure { margin: 0; min-width: 0; }
.wedding-gallery-custom img,
.wedding-gallery-custom video { width: 100%; height: 260px; display: block; object-fit: cover; background: #e8e0d6; }
.wedding-gallery-custom figcaption { padding: 7px 4px 12px; text-align: center; font-size: 13px; }
@media (max-width: 560px) {
  .wedding-gallery-custom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wedding-gallery-custom img, .wedding-gallery-custom video { height: 190px; }
}

.journey-timeline-custom {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 0;
}
.journey-timeline-custom::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(126, 41, 53, .35);
}
.journey-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 40px;
  padding: 0 0 28px;
  position: relative;
}
.journey-entry::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #7e2935;
  border: 3px solid #fffaf5;
  box-shadow: 0 0 0 1px rgba(126, 41, 53, .35);
}
.journey-entry time { color: #7e2935; font-weight: 700; text-align: right; }
.journey-entry h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 1.15rem; }
.journey-entry p { margin: 0; line-height: 1.65; white-space: pre-wrap; }
