/*
 * Support styles for the Mawhub templates.
 *
 * The vendored theme carries the whole design; this file only covers the
 * places where the original page relied on a JavaScript package we do not
 * ship (masonry, lightbox, the hero slider's sizing) and the handful of
 * elements the invitation adds on top of the theme's demo content.
 *
 * Everything is scoped under `.mawhub-root`, same as the theme.
 */

/* The theme renders `<a>` as navigation; ours scroll, so they carry no href. */
.mawhub-root a {
  cursor: pointer;
}

/*
 * Tailwind's utilities are global and reach inside the theme. A few of its
 * utility names are also Bootstrap class names, and `collapse` is the one that
 * bites: Tailwind's means `visibility: collapse`, Bootstrap's means a
 * togglable panel — and the navigation is one. The Tailwind scan skips this
 * folder (see `tailwind.config.ts`), and this is the belt to that brace, so a
 * utility generated from somewhere else cannot hide the nav again.
 */
.mawhub-root .collapse {
  visibility: visible;
}

/* -------------------------------------------------------------------------- */
/* Hero slider                                                                 */
/* -------------------------------------------------------------------------- */

.mawhub-root .wpo-hero-slider {
  position: relative;
  overflow: hidden;
}

/* The theme lays the hero out as a flex row and the package's own root
   element used to fill it; ours has to say so, or it collapses to zero width
   and the slides never paint. */
.mawhub-root .wpo-hero-slider .swiper {
  flex: 1 0 100%;
  width: 100%;
}

.mawhub-root .wpo-hero-slider .swiper,
.mawhub-root .wpo-hero-slider .swiper-wrapper,
.mawhub-root .wpo-hero-slider .swiper-slide {
  height: 100%;
}

/* Swiper's own bullets are absolutely positioned by its stylesheet; ours are
   buttons, so they need the reset the package normally applies. */
.mawhub-root .wpo-hero-slider .swiper-pagination {
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.mawhub-root .wpo-hero-slider .swiper-pagination-bullet {
  margin: 0 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.mawhub-root .wpo-hero-slider .swiper-button-next,
.mawhub-root .wpo-hero-slider .swiper-button-prev {
  z-index: 3;
  padding: 0;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Gallery masonry                                                             */
/* -------------------------------------------------------------------------- */

/*
 * CSS columns rather than a measured JS masonry.
 *
 * The reference site runs a masonry package that reads the rendered sizes and
 * reflows; `column-count` gets the same staggered look from the browser, and
 * it responds to width on its own. That matters because the photo count is the
 * host's to choose — a fixed two-column split left three photos stacked in one
 * tall strip down the middle of the page.
 */
.mawhub-root .mawhub-masonry {
  column-count: 3;
  column-gap: 30px;
}

@media (max-width: 991px) {
  .mawhub-root .mawhub-masonry {
    column-count: 2;
  }
}

@media (max-width: 575px) {
  .mawhub-root .mawhub-masonry {
    column-count: 1;
    column-gap: 20px;
  }
}

/* A tile must not be split across a column break, and the gap between rows is
   its own margin — `column-gap` only spaces the columns. */
.mawhub-root .mawhub-masonry .grid {
  break-inside: avoid;
  /* Safari still needs the old spelling. */
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 30px;
  display: block;
  width: 100%;
}

@media (max-width: 575px) {
  .mawhub-root .mawhub-masonry .grid {
    margin-bottom: 20px;
  }
}

.mawhub-root .mawhub-masonry .grid .img-holder img {
  width: 100%;
  height: auto;
  display: block;
}

/* The theme styles `.hover-content` as a div; ours is the button that opens
   the lightbox. */
.mawhub-root .portfolio-grids .grid .img-holder .hover-content {
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Lightbox                                                                    */
/* -------------------------------------------------------------------------- */

.mawhub-root .mawhub-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(10, 10, 12, 0.92);
}

.mawhub-root .mawhub-lightbox-img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mawhub-root .mawhub-lightbox-close,
.mawhub-root .mawhub-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.25s;
}

.mawhub-root .mawhub-lightbox-close:hover,
.mawhub-root .mawhub-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.mawhub-root .mawhub-lightbox-close {
  top: 18px;
  right: 18px;
}

.mawhub-root .mawhub-lightbox-nav.prev {
  left: 18px;
}

.mawhub-root .mawhub-lightbox-nav.next {
  right: 18px;
}

.mawhub-root .mawhub-lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* -------------------------------------------------------------------------- */
/* Mobile menu                                                                 */
/* -------------------------------------------------------------------------- */

.mawhub-root .mawhub-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 10, 12, 0.45);
}

/* -------------------------------------------------------------------------- */
/* Events — "See Location"                                                     */
/* -------------------------------------------------------------------------- */

/* The reference page rendered this as a Material button; the theme styles the
   list item around it, so only the link itself needs describing. */
.mawhub-root .wpo-event-text ul li a.btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* -------------------------------------------------------------------------- */
/* RSVP                                                                        */
/* -------------------------------------------------------------------------- */

.mawhub-root .contact-validation-active textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.mawhub-root .mawhub-rsvp-done,
.mawhub-root .mawhub-rsvp-error {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  font-size: 17px;
}

.mawhub-root .mawhub-rsvp-error {
  color: #c0392b;
  padding-bottom: 0;
}

.mawhub-root .submit-area button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* -------------------------------------------------------------------------- */
/* Invite message                                                              */
/* -------------------------------------------------------------------------- */

.mawhub-root .mawhub-invite-body {
  
  text-align: center;
}

.mawhub-root .mawhub-invite-body blockquote {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  font-family: Sail, cursive;
  font-size: 34px;
  line-height: 1.4;
}

.mawhub-root .mawhub-invite-body p {
  font-size: 18px;
  line-height: 1.8;
}

.mawhub-root .mawhub-invite-closing {
  margin-top: 18px;
  font-style: italic;
}

.mawhub-root .mawhub-invite-body .theme-btn-s2 {
  margin-top: 26px;
}

@media (max-width: 767px) {
  .mawhub-root .mawhub-invite-body blockquote {
    font-size: 26px;
  }

  .mawhub-root .mawhub-invite-body p {
    font-size: 16px;
  }
}

/* -------------------------------------------------------------------------- */
/* Buttons the theme expects to be anchors                                     */
/* -------------------------------------------------------------------------- */

.mawhub-root button.theme-btn-s2,
.mawhub-root button.theme-btn {
  border: 0;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Background music                                                            */
/* -------------------------------------------------------------------------- */

/* Stacked above the theme's back-to-top arrow (fixed at right 30px, 45px wide,
   bottom 25px) and centred on the same axis. */
.mawhub-root .mawhub-music {
  position: fixed;
  right: 32px;
  bottom: 80px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  /* Falls back to the theme's own accent when no skin is applied. */
  background: var(--sk-accent, #c8a898);
  color: var(--sk-on-accent, #fff);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.25s;
}

.mawhub-root .mawhub-music:hover {
  transform: scale(1.08);
}

/* -------------------------------------------------------------------------- */
/* Photo shapes                                                                */
/* -------------------------------------------------------------------------- */

/*
 * The theme was built around artwork of a fixed size per slot — the story
 * ovals are 450x580, the party portraits 301x388, and so on — and it leans on
 * that: consecutive story chapters overlap by -150px, which only reads as an
 * overlap when the ovals are tall.
 *
 * Hosts upload whatever photo they have, so each slot restates the ratio the
 * theme assumes and crops to it. Without this a landscape snapshot collapses
 * the row and the chapters land on top of each other.
 */
.mawhub-root .wpo-story-section .wpo-story-img img,
.mawhub-root .wpo-story-section-s2 .wpo-story-img img {
  width: 100%;
  aspect-ratio: 450 / 580;
  object-fit: cover;
}

.mawhub-root .wpo-story-section-s3 .wpo-story-img img {
  width: 100%;
  aspect-ratio: 583 / 560;
  object-fit: cover;
}

.mawhub-root .wpo-couple-section .middle-couple-pic-inner img {
  width: 100%;
  aspect-ratio: 534 / 482;
  object-fit: cover;
}

.mawhub-root .wpo-couple-section-s2 .middle-couple-pic-inner img {
  width: 100%;
  aspect-ratio: 746 / 749;
  object-fit: cover;
}

.mawhub-root .wpo-couple-section-s3 .middle-couple-pic-inner img {
  width: 100%;
  aspect-ratio: 608 / 405;
  object-fit: cover;
}

.mawhub-root .wpo-team-img-inner img {
  width: 100%;
  aspect-ratio: 301 / 388;
  object-fit: cover;
}

.mawhub-root .wpo-event-img-inner img {
  width: 100%;
  aspect-ratio: 408 / 399;
  object-fit: cover;
}

.mawhub-root .wpo-blog-img img {
  width: 100%;
  aspect-ratio: 415 / 400;
  object-fit: cover;
}

.mawhub-root .widget.instagram ul li img {
  width: 100%;
  aspect-ratio: 100 / 150;
  object-fit: cover;
}

/* The split heroes frame a portrait; the shapes around it are sized for one. */
.mawhub-root .static-hero .static-hero-img-inner img {
  width: 100%;
  aspect-ratio: 560 / 700;
  object-fit: cover;
}

.mawhub-root .static-hero-s2 .static-hero-img-inner img {
  width: 100%;
  aspect-ratio: 785 / 817;
  object-fit: cover;
}

.mawhub-root .static-hero-s3 .static-hero-img-inner img {
  width: 100%;
  aspect-ratio: 601 / 754;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* Logo                                                                        */
/* -------------------------------------------------------------------------- */

/*
 * The theme's logo was the single word "Mawhub" at 45px; ours is a pair of
 * names, which at that size walks out of the header on a phone. Scale it down
 * and clip rather than let it push the row sideways.
 */
@media (max-width: 991px) {
  .mawhub-root .wpo-site-header .navigation .navbar-header .logo {
    display: inline-block;
    max-width: 100%;
    font-size: 28px;
    line-height: 1.3;
    white-space: nowrap;
  }
}

@media (max-width: 575px) {
  .mawhub-root .wpo-site-header .navigation .navbar-header .logo {
    font-size: 22px;
  }
}

/* -------------------------------------------------------------------------- */
/* Invitation card                                                             */
/* -------------------------------------------------------------------------- */

/*
 * The host's printed card. Shown whole, never cropped — the design of the card
 * is the reason it is on the page at all — so it is capped by height as well as
 * width and keeps whatever proportions it was made in.
 */
.mawhub-root .mawhub-invite-card {
  /* Centred explicitly rather than leaning on the parent's `text-align`: the
     image is the only block in here that is not full width, and inline
     centring left it off-axis from the heading above it. */
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.mawhub-root .mawhub-invite-card img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

/* -------------------------------------------------------------------------- */
/* Hero headline ornaments                                                      */
/* -------------------------------------------------------------------------- */

/*
 * The "save the date" card layout: a heart over interlocked rings above the
 * headline, the groom, a heart, "& Weds" between two rules, the bride, and a
 * rule–heart–rule under the subtitle. Colours fall back to the card's own
 * palette (red heart, gold rings, tan rules) when no skin is applied.
 */
.mawhub-root {
  --hero-heart: #d2505b;
  --hero-gold: #c9a24d;
  --hero-rule: #b9a28f;
  --hero-ink: #2f2a28;
}

.mawhub-root .hero-heart {
  width: 18px;
  height: 17px;
  color: var(--hero-heart);
  flex: none;
}

.mawhub-root .hero-rule {
  display: inline-block;
  width: 70px;
  height: 1px;
  background: var(--hero-rule);
  flex: none;
}

.mawhub-root .hero-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
}

.mawhub-root .hero-ornament__row,
.mawhub-root .hero-divider,
.mawhub-root .hero-names__weds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mawhub-root .hero-rings {
  width: 150px;
  height: 60px;
  color: var(--hero-gold);
  flex: none;
}

.mawhub-root .hero-rings__leaf {
  color: var(--hero-rule);
}

.mawhub-root .hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mawhub-root .hero-names__name {
  display: block;
}

.mawhub-root .hero-names__weds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0;
}

.mawhub-root .hero-names__weds-text {
  font-family: var(--sk-display, Georgia, 'Times New Roman', serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--hero-ink);
  white-space: nowrap;
}

/* The slider hero sets its text in white on a photo; keep "& Weds" legible. */
.mawhub-root .couple-text .hero-names__weds-text {
  color: #fff;
}

.mawhub-root .hero-divider {
  margin-top: 18px;
}

/* Slide-hero text sits left on wide screens in some designs; the ornaments
   follow the heading's own alignment. */
.mawhub-root .static-hero .slide-title,
.mawhub-root .static-hero .slide-title-2,
.mawhub-root .static-hero .slide-text {
  text-align: center;
}

@media (max-width: 767px) {
  .mawhub-root .hero-rule {
    width: 44px;
  }
  .mawhub-root .hero-rings {
    width: 120px;
    height: 48px;
  }
  .mawhub-root .hero-ornament__row,
  .mawhub-root .hero-divider,
  .mawhub-root .hero-names__weds-row {
    gap: 10px;
  }
}
