/* Standalone behavior; the original design is in styles.css. */
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
[role="button"] {
  cursor: pointer;
}
body.invitation-closed {
  overflow: hidden;
  touch-action: none;
}
body.invitation-closed .nav {
  display: none;
}
#lovex {
  height: 200vh;
}
#audio-container {
  -webkit-tap-highlight-color: transparent;
}
#forGallery {
  position: relative;
  width: 100%;
  overflow: hidden;
}
#forGallery > a {
  position: absolute;
  display: block;
  overflow: hidden;
}
#forGallery > a > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.for-particles canvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wish-alert:not(:empty) {
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.5;
}
.wish-data {
  min-width: 0;
}
.data-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wish-avatar.local-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #8d2e1b;
  color: #fff;
}
.local-attendance {
  font-size: 10px;
  margin-left: 8px;
}
.gallery-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 50px 64px;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
  overflow: hidden;
}
.gallery-dialog[open] {
  display: grid;
  place-items: center;
}
.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.gallery-dialog img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
}
.gallery-dialog button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #3339;
  font: 28px/1 sans-serif;
  cursor: pointer;
}
.gallery-close {
  top: 12px;
  right: 14px;
}
.gallery-previous {
  left: 10px;
  top: calc(50% - 22px);
}
.gallery-next {
  right: 10px;
  top: calc(50% - 22px);
}
.gallery-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  font: 14px/1 sans-serif;
}
.copy-status {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  max-width: 90vw;
  border-radius: 8px;
  padding: 12px 18px;
  background: #29231e;
  color: #fff;
  font: 13px/1.5 sans-serif;
}
noscript {
  position: fixed;
  z-index: 1000000000;
  inset: 0 0 auto;
  padding: 15px;
  background: #fff;
  color: #000;
  text-align: center;
}
/* Match the source lightbox's translucent backdrop and edge controls. */
.gallery-dialog {
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: rgba(237, 237, 237, 0.9);
}
.gallery-dialog::backdrop {
  background: transparent;
}
.gallery-dialog img {
  max-height: calc(100dvh - 30px);
  max-width: 100%;
  border-radius: 12px;
}
.gallery-dialog button {
  color: inherit;
  background: transparent;
}
.gallery-dialog .gallery-close {
  z-index: 3;
  top: 13px;
  right: 15px;
  width: 30px;
  height: 30px;
}
.gallery-dialog .gallery-fullscreen {
  z-index: 3;
  top: 15px;
  right: 60px;
  width: 30px;
  height: 30px;
}
.gallery-fullscreen svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.gallery-dialog .gallery-previous,
.gallery-dialog .gallery-next {
  top: 0;
  height: 100%;
  width: 15%;
  border-radius: 0;
}
.gallery-dialog .gallery-previous {
  left: 0;
}
.gallery-dialog .gallery-next {
  right: 0;
}
.gallery-previous span,
.gallery-next span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
}
.gallery-counter {
  z-index: 3;
  top: 19px;
  left: 20px;
  font: 15px/1.5 sans-serif;
}
@media (max-width: 600px) {
  .gallery-dialog {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .for-particles canvas {
    display: none;
  }
}
/* Keep live RSVP feedback readable over the heritage background. */
#wishes-form > label, .wish-alert { color: #fff3da !important; }
/* Full desktop composition, including narrower desktop browser panels. */
@media (min-width: 768px) {
  body { --invitation-column: min(500px, 55vw); }
  .elementor-225237 .elementor-element.elementor-element-2ae2984f {
    width: 100%; --width: 100%; flex-direction: row; flex-wrap: nowrap;
    justify-content: flex-start; align-items: flex-start;
  }
  .elementor-225237 .elementor-element.elementor-element-ee424e3 {
    display: flex !important; width: calc(100% - var(--invitation-column));
    flex: 0 0 calc(100% - var(--invitation-column)); min-height: 100dvh;
  }
  .elementor-225237 .elementor-element.elementor-element-330fba83 {
    display: flex !important; position: fixed; left: 0; top: 0;
    width: calc(100% - var(--invitation-column)); height: 100dvh;
    min-height: 100dvh; max-height: 100dvh;
  }
  .elementor-225237 .elementor-element.elementor-element-4a6c42c8 {
    --width: var(--invitation-column); width: var(--invitation-column);
    flex: 0 0 var(--invitation-column); min-width: 0;
  }
  #coverx .coverx { width: var(--invitation-column); max-width: var(--invitation-column); }
}
