/* Weddings final styling pass.
   Keeps the existing layout/content intact while matching the finished Home page's
   hero start position, Gallery-style rounded treatment and section-aware scroll arrow. */
.weddings-page {
  --wedding-radius: 22px;
  --wedding-radius-small: 16px;
}

/* Match the Home page's desktop page-start rhythm and top-align the two hero columns. */
@media (min-width: 901px) {
  .weddings-page .page-hero {
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .weddings-page .page-hero .container {
    align-items: start;
  }
}

/* Home uses a 54px opening offset once it collapses to one column. */
@media (max-width: 900px) {
  .weddings-page .page-hero {
    padding-top: 54px;
  }

  .weddings-page .page-hero .container {
    align-items: start;
  }
}

/* Gallery-style pill actions. */
.weddings-page .btn {
  border-radius: 999px;
}

/* Rounded photography and content cards, without changing their dimensions. */
.weddings-page .wedding-photo,
.weddings-page .packages-grid .package-card,
.weddings-page .package-detail-image,
.weddings-page .info-card {
  border-radius: var(--wedding-radius);
}

.weddings-page .price-box {
  border-radius: var(--wedding-radius-small);
}

.weddings-page .package-detail-image img {
  border-radius: var(--wedding-radius-small);
}

/* Ensure the photo caption remains clipped into the same rounded frame. */
.weddings-page .wedding-photo,
.weddings-page .packages-grid .package-card,
.weddings-page .package-detail-image,
.weddings-page .info-card {
  overflow: hidden;
}

/* Section-aware floating arrow, matching the finished Home / Occasions treatment. */
.weddings-page .section-scroll-next {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9998;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(244,210,124,.72);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
}

.weddings-page .section-scroll-next.is-visible {
  opacity: .86;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.weddings-page .section-scroll-next svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.65));
  transition: transform .18s ease;
}

.weddings-page .section-scroll-next:hover,
.weddings-page .section-scroll-next:focus-visible {
  opacity: 1;
  border-color: var(--gold-light);
  background: rgba(5,5,5,.18);
  outline: none;
}

.weddings-page .section-scroll-next:hover svg,
.weddings-page .section-scroll-next:focus-visible svg {
  transform: translateY(2px);
}

@media (max-width: 640px) {
  .weddings-page .section-scroll-next {
    width: 42px;
    height: 42px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .weddings-page .section-scroll-next svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .weddings-page .section-scroll-next,
  .weddings-page .section-scroll-next svg {
    transition: none;
  }
}

/* Final information cards: keep both bottom boxes visually equal on desktop. */
@media (min-width: 901px) {
  .weddings-page #wedding-info-pack .info-actions {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .weddings-page #wedding-info-pack .info-card {
    height: 100%;
  }
}


/* Ensure the portrait package artwork uses the same rounded treatment clearly and consistently. */
.weddings-page .package-detail-image {
  border-radius: var(--wedding-radius);
  overflow: hidden;
}

.weddings-page .package-detail-image img {
  display: block;
  width: 100%;
  border-radius: var(--wedding-radius);
}

/* Final portrait package artwork override.
   The global stylesheet contains legacy !important rules that force these square. */
.weddings-page .package-detail-image {
  border-radius: var(--wedding-radius) !important;
  overflow: hidden !important;
}

.weddings-page .package-detail-image img {
  border-radius: var(--wedding-radius) !important;
}
