/* Editorial Romance V3.5.5 — focused layout, media and control corrections. */

/* The wedding hero is text-led again; the decorative route sits in open space. */
.editorial-romance-v3-5 .hero {
  padding-block: clamp(88px, 8vw, 118px) clamp(82px, 7vw, 108px);
}

.editorial-romance-v3-5 .hero-v2-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 0;
}

.editorial-romance-v3-5 .hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1100px);
}

.editorial-romance-v3-5 .route-motif-hero {
  right: 0;
  bottom: -54px;
  width: min(24vw, 300px);
  opacity: .62;
}

/* Only the main celebration photograph breaks out to the viewport edges. */
.editorial-romance-v3-5 .hero-image-wrap.shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.editorial-romance-v3-5 .hero-image-wrap .wp-block-image,
.editorial-romance-v3-5 .hero-image-wrap .hero-photo {
  width: 100%;
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.editorial-romance-v3-5 .hero-image-wrap .hero-photo {
  min-height: clamp(480px, 53vw, 820px);
}

.editorial-romance-v3-5 .hero-image-wrap .hero-photo img {
  object-position: 50% 48% !important;
}

/* Fresh visits autoplay. The control remains above the moving content. */
.editorial-romance-v3-5 .trust-line-viewport {
  padding-right: 96px;
}

.editorial-romance-v3-5 .trust-line-track {
  width: max-content;
  animation: swp-v355-proof 52s linear infinite;
  will-change: transform;
}

.editorial-romance-v3-5 .trust-line.is-paused .trust-line-track {
  animation-play-state: paused;
}

@keyframes swp-v355-proof {
  to { transform: translateX(-50%); }
}

/* The final destination set is compact and separated clearly from its intro. */
.editorial-romance-v3-5 .swp-page-content .destination-gallery {
  gap: 28px 22px;
  margin-block-start: clamp(40px, 4vw, 56px);
}

.editorial-romance-v3-5 .destination-bled img {
  object-position: 50% 56% !important;
}

.editorial-romance-v3-5 .destination-ljubljana img {
  object-position: 50% 68% !important;
}

.editorial-romance-v3-5 .destination-smartno img {
  object-position: 50% 55% !important;
}

.editorial-romance-v3-5 .destination-piran img {
  object-position: 50% 62% !important;
}

/* The wedding tablescape is a contained editorial transition, not a banner. */
.editorial-romance-v3-5 .process-transition-photo {
  width: min(1380px, calc(100% - 64px));
  margin: clamp(64px, 7vw, 104px) auto;
  background: transparent;
}

.editorial-romance-v3-5 .process-transition-photo picture {
  aspect-ratio: 16 / 7;
}

.editorial-romance-v3-5 .process-transition-photo img {
  object-position: 50% 54%;
}

/* Match accessible native selects to the rest of the inquiry fields. */
.editorial-romance-v3-5 .inquiry-form .field select {
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 48px 0 16px;
  border: 1px solid rgba(17, 25, 44, .42);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%2319372f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 14px 9px;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.editorial-romance-v3-5 .inquiry-form .field select:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

/* Event CTAs remain in flow and wrap only when their labels need the room. */
.events-page .events-hero-copy {
  padding-bottom: 0;
}

.events-page .events-hero-copy .wp-block-buttons.button-row {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin: clamp(24px, 2.2vw, 32px) 0 0;
}

.events-page .events-hero-copy .wp-block-button {
  flex: 1 1 260px;
  max-width: 100%;
  margin: 0;
}

.events-page .events-hero-copy .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 15px 22px;
  text-align: center;
}

@media (max-width: 760px) {
  .editorial-romance-v3-5 .hero {
    padding-block: 82px 70px;
  }

  .editorial-romance-v3-5 .hero-v2-grid {
    gap: 0;
  }

  .editorial-romance-v3-5 .hero-image-wrap .hero-photo {
    min-height: clamp(400px, 116vw, 560px);
  }

  .editorial-romance-v3-5 .trust-line-track {
    display: flex;
    width: max-content;
    animation: swp-v355-proof 52s linear infinite;
  }

  .editorial-romance-v3-5 .trust-line-copy {
    display: block;
    flex: none;
    min-width: max-content;
    padding: 22px 32px;
    white-space: nowrap;
  }

  .editorial-romance-v3-5 .trust-line-copy[aria-hidden="true"],
  .editorial-romance-v3-5 .proof-strip-toggle {
    display: block;
  }

  .editorial-romance-v3-5 .proof-strip-toggle {
    right: 12px;
  }

  .editorial-romance-v3-5 .swp-page-content .destination-gallery {
    gap: 22px;
    margin-block-start: clamp(24px, 7vw, 32px);
  }

  .editorial-romance-v3-5 .process-transition-photo {
    width: calc(100% - 32px);
    margin-block: 56px;
  }

  .editorial-romance-v3-5 .process-transition-photo picture {
    aspect-ratio: 4 / 3;
  }

  .events-page .events-hero-copy .wp-block-button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-romance-v3-5 .trust-line:not(.is-explicit-playing) .trust-line-track {
    width: 100%;
    animation: none;
    transform: none;
  }

  .editorial-romance-v3-5 .trust-line:not(.is-explicit-playing) .trust-line-copy {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    padding-right: 24px;
    white-space: normal;
  }

  .editorial-romance-v3-5 .trust-line:not(.is-explicit-playing) .trust-line-copy[aria-hidden="true"] {
    display: none;
  }

  .editorial-romance-v3-5 .trust-line.is-explicit-playing .trust-line-track {
    width: max-content;
    animation: swp-v355-proof 52s linear infinite;
  }
}

@media (max-width: 420px) {
  .editorial-romance-v3-5 .trust-line-viewport {
    padding-right: 82px;
  }

  .editorial-romance-v3-5 .trust-line-copy {
    padding-inline: 24px;
  }
}
