/* Responsive corrections shared by the Hostinger pages. */
.site-shell section[id] {
  scroll-margin-top: 88px;
}

.event-content,
.wedding-copy,
.about-method-copy,
.section-heading > *,
.contact > * {
  min-width: 0;
}

.event-content {
  width: 100%;
}

.event-card h3 {
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.wedding-copy .wedding-nowrap-title {
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  line-height: 1.08;
}

.wedding-day-grid h3 {
  hyphens: auto;
  overflow-wrap: anywhere;
}

.corporate-hero .corporate-hero-title {
  width: 100%;
  max-width: 100%;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  white-space: normal;
  text-wrap: balance;
  line-height: 1.05;
}

.corporate-hero-subtitle {
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

.wedding-statement p {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.15;
}

.wedding-statement p span,
.voices-banner-copy span {
  white-space: normal;
  text-wrap: balance;
}

.voices-banner-copy {
  width: min(900px, calc(100% - 2 * clamp(24px, 6vw, 92px)));
}

.legal-page {
  display: flex;
  flex-direction: column;
}

.legal-page .legal-content {
  flex: 1;
  width: 100%;
  padding-top: clamp(128px, 12vw, 164px);
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.legal-text a {
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
  .corporate-page .corporate-logo-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    padding: 8px;
  }

  .corporate-page .corporate-logo-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
  }
}

@media (max-width: 1180px) {
  .events {
    padding-bottom: 0;
  }

  .events .event-grid {
    margin: 0 calc(-1 * clamp(24px, 5.5vw, 84px));
  }

  .event-content {
    padding-right: clamp(24px, 5.5vw, 84px);
    padding-left: clamp(24px, 5.5vw, 84px);
  }

  .mobile-menu-panel {
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu-panel > a,
  .mobile-events > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
  }

  .mobile-events-panel a {
    display: flex;
    align-items: center;
    min-height: 40px;
    font-size: 0.875rem;
  }
}

@media (max-width: 860px) {
  .corporate-hero .corporate-hero-title {
    font-size: clamp(32px, 7vw, 54px);
  }
}

@media (max-width: 520px) {
  .corporate-hero .corporate-hero-title {
    font-size: 32px;
  }
}
