/* Mackenzie & Tyler — aligned with mackandtyler.minted.us */

:root {
  --sage: #546d60;
  --sage-light: #92b3a2;
  --white: #ffffff;
  --bg-color: #FBF9F6;
  --accent-green: #8CA788;
  --accent-blue: #34507A;
  --accent-light-blue: #7B97B1;
  --max-w: 1140px;
  --header-h: 56px;
  --section-gap: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding-top: 0;
  background: var(--bg-color) !important;
  color: #34507A !important;
  font-family: "Brandon Grotesque Regular", "Brandon Grotesque", system-ui, sans-serif !important;
  font-size: 16.8px !important;
  line-height: 1.6 !important;
  letter-spacing: 2px !important;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

#root,
.designProvider {
  background: var(--bg-color) !important;
}

/* Hide duplicate Minted chrome (custom header replaces nav) */
.mintedArtistFooter,
.fancyclothes-1xn3edc,
.navbarContainer,
.navbarList,
.navbarDropdownWrapper,
.fancyclothes-pl8wj2,
[data-cy="morePagesDropdown"],
.fancyclothes-12umtkj .fancyclothes-hb7tjp:first-child {
  display: none !important;
}

/* ========== SITE HEADER ========== */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-color);
  border-bottom: none;
  box-shadow: none;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  display: none;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  position: absolute;
  right: 1rem;
  top: 0.75rem;
}

.site-nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem clamp(0.75rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-family: "Marisa Bold", "Marisa", serif !important;
  font-size: 18.2px !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-decoration: none;
  color: #5a7a9a !important;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: #34507A !important;
}

.site-nav__link::after {
  display: none;
}

.site-nav-backdrop {
  display: none;
}

/* ========== HOMEPAGE HERO ========== */
body.page-home .weddingHomeVerticalSingleHeader {
  background: var(--bg-color) !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-home .weddingHomeVerticalSingleHeader .fancyclothes-11w9db5-children-render {
  background-color: transparent !important;
  background-image: url("assets/hero-pattern.jpg") !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: cover !important;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 3rem) !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.page-home .weddingHomeVerticalSingleHeader .fancyclothes-5zxm1f-Wrapper {
  margin: 0 auto !important;
  max-width: var(--max-w) !important;
  padding: 0 !important;
}

body.page-home .coupleVerticalNames {
  padding: 0 !important;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.page-home .coupleVerticalNames .largeHeadline,
body.page-home .coupleVerticalNames h1 {
  font-family: "Cormorant SC", serif !important;
  font-size: clamp(3.5rem, 10vw, 6.6rem) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: none;
}

body.page-home .coupleVerticalNamesSeparator,
body.page-home .coupleVerticalNames .fancyclothes-faf5zs {
  font-family: "Cormorant SC", serif !important;
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  margin: 1.5rem auto !important;
  overflow: visible;
  text-align: center;
}

/* Subpage hero */
body.page-sub .weddingHomeVerticalSingleHeader {
  background: url("assets/hero-pattern.jpg") center top / cover no-repeat !important;
  padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 2rem) 1.5rem !important;
  margin-bottom: 0 !important;
  border-radius: 0;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.page-sub .weddingHomeVerticalSingleHeader > div {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

body.page-sub .coupleNamesWrapper {
  max-width: var(--max-w);
  margin: 0 auto !important;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center !important;
}

body.page-sub .coupleHorizontalNames,
body.page-sub .fancyclothes-uvi2pi-children-render {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 0.75rem 1.25rem;
  text-align: center;
  width: 100%;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

body.page-sub .coupleHorizontalNames > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-align: center;
}

body.page-sub .coupleHorizontalNames h1,
body.page-sub .coupleHorizontalNames .largeHeadline {
  font-family: "Cormorant SC", serif !important;
  font-size: clamp(2rem, 6vw, 3.5rem) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin: 0 !important;
  flex-shrink: 0;
}

body.page-sub .coupleHorizontalNames .smallGraphic,
body.page-sub .fancyclothes-8210cw {
  font-family: "Cormorant SC", serif !important;
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-sub .coupleHorizontalNames > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-align: center;
}

/* ========== MAIN CONTENT LAYOUT ========== */
.fancyclothes-1fslv8q-wrapper,
.fancyclothes-1fslv8q-wrapper > div,
[id^="page-"]:not(#page-home),
.fancyclothes-m82eoy-wrapperStyles {
  max-width: var(--max-w) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 4vw, 1.5rem) !important;
  padding-right: clamp(1rem, 4vw, 1.5rem) !important;
}

body.page-sub #page-events > div,
body.page-sub #page-wedding-party > div,
body.page-sub #page-accommodations > div,
body.page-sub #page-registry > div,
body.page-sub #page-faq > div {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

body.page-sub .weddingHomeVerticalSingleHeader {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-sub #page-events,
body.page-sub #page-wedding-party,
body.page-sub #page-accommodations,
body.page-sub #page-registry,
body.page-sub #page-faq {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.fancyclothes-1fslv8q-wrapper {
  padding-top: var(--section-gap) !important;
  padding-bottom: var(--section-gap) !important;
  overflow: visible !important;
}

.fancyclothes-1fslv8q-wrapper > div {
  overflow: visible !important;
}

.fancyclothes-ktrf42-alignmentStyles,
.fancyclothes-ktrf42-alignmentStyles + div {
  text-align: center;
}

h2.fancyclothes-d0hc3w,
.fancyclothes-d0hc3w {
  font-family: "Pinyon Script", cursive !important;
  font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
  font-weight: 400 !important;
  color: #34507A !important;
  letter-spacing: 1px !important;
  margin: 0 0 1rem !important;
  padding-bottom: 0 !important;
}

h2.fancyclothes-d0hc3w::after,
.fancyclothes-d0hc3w::after {
  display: none;
}

/* No card wrappers — flat layout like Minted */
.site-section,
.fancyclothes-0[data-cy^="website_displaySection"],
.fancyclothes-3qdqbd-wrapper {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 2rem !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========== TYPOGRAPHY ========== */
body.page-home h2.fancyclothes-tfanxq,
body.page-home .fancyclothes-tfanxq {
  font-family: "Pinyon Script", cursive !important;
  font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
  font-weight: 400 !important;
  color: #34507A !important;
  text-align: center !important;
  margin: 2rem 0 1.25rem !important;
  letter-spacing: 1px !important;
}

body.page-home h3.fancyclothes-b5ogrc,
body.page-home [data-cy="heading"] h3,
body.page-home h3[data-cy="heading"] {
  font-family: "Pinyon Script", cursive !important;
  font-size: clamp(1.75rem, 4vw, 2.6rem) !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  text-transform: lowercase !important;
  color: #34507A !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

body.page-home time.fancyclothes-1mc07tk,
body.page-home [data-cy="content"] time {
  font-family: "Marisa Bold", "Marisa", serif !important;
  font-size: clamp(1.75rem, 4vw, 2.7rem) !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #34507A !important;
  display: block !important;
  text-align: center !important;
  margin: 0.5rem 0 0 !important;
  line-height: 1.4 !important;
}

body.page-home .Linkify,
body.page-home p:not(.site-footer__credit),
body.page-home .introText {
  font-family: "Brandon Grotesque Regular", "Brandon Grotesque", sans-serif !important;
  font-size: 18.5px !important;
  line-height: 1.6 !important;
  letter-spacing: 2px !important;
  color: #34507A !important;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body.page-sub h3.fancyclothes-fvqimm {
  font-family: "Pinyon Script", cursive !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  color: #34507A !important;
  margin: 0 0 1rem !important;
  letter-spacing: 1px !important;
}

body.page-sub p:not(.site-footer__credit),
body.page-sub .fancyclothes-1h7flvt-getTextAlignStyles,
body.page-sub .Linkify,
body.page-sub li {
  font-family: "Brandon Grotesque Regular", "Brandon Grotesque", sans-serif !important;
  font-size: 18.5px !important;
  line-height: 1.6 !important;
  letter-spacing: 2px !important;
  color: #34507A !important;
}

[data-cy="website_displaySection_event"] h3,
[data-cy="website_displaySection_event"] .fancyclothes-fvqimm {
  font-family: "Pinyon Script", cursive !important;
  color: #34507A !important;
}

/* Floral divider between date and Our Story */
.home-floral-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem auto 2rem;
  padding: 0 1rem;
}

.home-floral-divider img {
  width: min(130px, 32vw);
  height: auto;
  display: block;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

/* Minted-style section divider — full bleed */
.largeDivider,
.fancyclothes-1kf34d6 {
  max-width: none !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-top: var(--section-gap) !important;
  margin-bottom: var(--section-gap) !important;
  height: 50px !important;
  background: url("assets/section-divider.png") center / cover no-repeat !important;
  border: none !important;
  overflow: visible !important;
}

.smallDivider,
.fancyclothes-lci7t1 {
  background: var(--sage-light) !important;
  opacity: 0.5;
}

/* ========== IMAGES ========== */
img[data-cy="mainImage"],
.fancyclothes-9c32l2,
.fancyclothes-1fslv8q-wrapper img,
[id^="page-"] img:not(.home-floral-divider img) {
  width: 100% !important;
  max-width: var(--max-w) !important;
  height: auto !important;
  display: block !important;
  margin: 2rem auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover !important;
}

/* Photo Gallery */
.photo-gallery {
  position: relative !important;
  cursor: pointer !important;
}

.gallery-container {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden !important;
}

.gallery-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transition: opacity 0.5s ease-in-out !important;
  margin: 0 !important;
}

.gallery-slide.active {
  opacity: 1 !important;
}

.gallery-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.gallery-dots .dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #ccc !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

.gallery-dots .dot.active {
  background-color: #7B97B1 !important;
}

.gallery-dots .dot:hover {
  background-color: #5a7a9a !important;
}

/* Links */
.fancyclothes-1fslv8q-wrapper a:not(.site-nav__link):not(.site-logo):not(.fancyclothes-1mo8vnp),
[id^="page-"] a.button,
a.fancyclothes-ytumd6 {
  color: #5a7a9a !important;
}

a:hover:not(.fancyclothes-1mo8vnp) {
  color: #34507A !important;
}

/* Scroll animations — subtle */
.wt-animate {
  opacity: 1;
  transform: none;
}

/* ========== FOOTER ========== */
.site-footer {
  margin-top: var(--section-gap);
  padding: 3rem clamp(1rem, 4vw, 2rem);
  background: var(--bg-color);
  color: #34507A;
  text-align: center;
  border-top: 1px solid rgba(146, 179, 162, 0.35);
}

.site-footer__pattern {
  display: none;
}

.site-footer__monogram {
  font-family: "Cormorant SC", serif;
  font-size: 0;
  letter-spacing: 0.15em;
  margin: 0 auto 1.5rem;
  color: transparent !important;
  width: 120px;
  height: 120px;
}

.site-footer__monogram img {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.5rem;
  display: block;
}

.site-footer__monogram span {
  display: none;
}

.site-footer__names {
  font-family: "Marisa Bold", "Marisa", serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: #34507A;
  display: none;
}

.site-footer__date {
  font-family: "Marisa Bold", "Marisa", serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a7a9a;
  margin: 0 0 1.5rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__nav a {
  font-family: "Marisa Bold", "Marisa", serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a7a9a !important;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: #34507A !important;
}

.site-footer__tagline {
  font-family: "Pinyon Script", cursive;
  font-size: 1.75rem;
  margin: 0;
  color: #34507A;
  letter-spacing: 1px;
}

.site-footer__credit {
  font-family: "Brandon Grotesque Regular", "Brandon Grotesque", sans-serif;
  font-size: 11px !important;
  color: rgba(52, 80, 122, 0.4);
  letter-spacing: 1px;
  margin: 2rem 0 0;
  text-transform: uppercase;
}

.site-footer__credit a {
  color: rgba(52, 80, 122, 0.4);
  text-decoration: none;
}

.site-footer__credit a:hover {
  color: rgba(52, 80, 122, 0.7);
}

/* Invitation block spacing */
body.page-home .fancyclothes-britoi-flex1-textAlignmentMap-render > div,
body.page-home .weddingDateWrapper {
  padding: 1.5rem 0 0;
  text-align: center;
}

body.page-home #page-home.fancyclothes-m82eoy-wrapperStyles:empty,
body.page-home #page-home.fancyclothes-m82eoy-wrapperStyles .fancyclothes-12f3k0j-wrapperStyles-textAlignmentMap-DisplayWrapper:empty {
  display: none !important;
}

/* Wedding party */
[data-cy="website_displaySection_wedding_party"],
[data-cy*="wedding_party"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

[data-cy*="wedding_party"] img {
  max-width: 280px !important;
  aspect-ratio: 3 / 4;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Role groupings for wedding party */
.wedding-party__role-group {
  margin-bottom: 3rem;
}

.wedding-party__role-title {
  font-family: "Marisa Bold", "Marisa", serif !important;
  font-size: 1.5rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue) !important;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-green);
}

/* Registry section spacing — uniform gaps */
.fancyclothes-0[data-cy="website_displaySection_registry"] {
  margin-bottom: 0 !important;
}

/* Registry layout — store name left, button right */
[data-cy="website_displaySection_registry"] .fancyclothes-1e3d4w9-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Registry descriptions */
.registry-description {
  font-family: "Brandon Grotesque Regular", "Brandon Grotesque", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  letter-spacing: 1px !important;
  color: #5a7a9a !important;
  margin: 0.5rem 0 0 !important;
  padding: 0 !important;
}

/* Registry buttons */
a.fancyclothes-1mo8vnp,
[data-cy="website_displaySection_registry"] a[href^="http"] {
  display: inline-block;
  margin-top: 0;
  padding: 0.65rem 1.5rem;
  font-family: "Marisa Bold", "Marisa", serif !important;
  font-size: 14px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #ffffff !important;
  background: var(--sage) !important;
  border-radius: 0;
  white-space: nowrap;
}

a.fancyclothes-1mo8vnp:hover,
[data-cy="website_displaySection_registry"] a[href^="http"]:hover {
  background: var(--sage-light) !important;
  color: #ffffff !important;
  transform: none;
}

/* ========== EVENTS MAP ========== */
.events-map {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto 0;
}

.events-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* ========== AOS ANIMATIONS ========== */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ========== COLOR DIVIDERS ========== */
.color-divider {
  height: 3px;
  width: 100%;
  max-width: 200px;
  margin: 2rem auto;
  border-radius: 2px;
}

.color-divider--green {
  background: var(--accent-green);
}

.color-divider--blue {
  background: var(--accent-blue);
}

.color-divider--light-blue {
  background: var(--accent-light-blue);
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .site-nav-toggle {
    display: flex;
    top: 1.25rem;
  }

  .site-header__inner {
    align-items: stretch;
    padding-top: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--bg-color);
    box-shadow: -4px 0 24px rgba(84, 109, 96, 0.12);
    padding: 4.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1001;
  }

  body.page-sub .weddingHomeVerticalSingleHeader {
    padding: clamp(2rem, 6vw, 3rem) 1.5rem 1.5rem !important;
  }

  body.page-sub .weddingHomeVerticalSingleHeader > div {
    padding-left: 0;
    padding-right: 0;
  }

  body.page-home .weddingHomeVerticalSingleHeader .fancyclothes-11w9db5-children-render {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  body.page-home .coupleVerticalNamesSeparator,
  body.page-home .coupleVerticalNames .fancyclothes-faf5zs {
    font-size: clamp(2rem, 6vw, 3rem) !important;
    margin: 1rem auto !important;
  }

  body.page-sub .coupleHorizontalNames .smallGraphic,
  body.page-sub .fancyclothes-8210cw {
    font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
  }

  .fancyclothes-1fslv8q-wrapper,
  .fancyclothes-1fslv8q-wrapper > div,
  [id^="page-"]:not(#page-home),
  .fancyclothes-m82eoy-wrapperStyles {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .fancyclothes-zm2f26-textAlignmentMap,
  .fancyclothes-ktrf42-alignmentStyles {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  [data-cy="website_displaySection_registry"] .fancyclothes-1e3d4w9-wrapper {
    max-width: 100%;
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .registry-description {
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
  }

  a.fancyclothes-1mo8vnp,
  [data-cy="website_displaySection_registry"] a[href^="http"] {
    padding: 0.5rem 1rem;
    font-size: 12px !important;
    letter-spacing: 1.5px;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.85rem 0;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(146, 179, 162, 0.25);
  }

  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(84, 109, 96, 0.25);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .site-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ========== GALLERY PAGE ========== */

.page-gallery .weddingHomeVerticalSingleHeader {
  padding-bottom: 0 !important;
}

.page-gallery .coupleVerticalNames h1 {
  font-size: clamp(2.5rem, 8vw, 4rem) !important;
  letter-spacing: 4px !important;
}

.gallery-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-description {
  font-family: 'Cormorant SC', serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #546d60;
  font-style: italic;
}

/* Photo Grid — Masonry */
.photo-gallery-grid {
  columns: 4;
  column-gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #FBF9F6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(52, 80, 122, 0);
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(52, 80, 122, 0.08);
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(84, 109, 96, 0.15);
  z-index: 2;
}

.gallery-item img {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  margin: 0 !important;
  display: block !important;
  transition: transform 0.4s ease;
  padding: 0.5rem;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  width: 100% !important;
  height: 100% !important;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain !important;
  margin: 0 !important;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #92b3a2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3.5rem;
  cursor: pointer;
  z-index: 10000;
  padding: 0;
  transition: color 0.3s ease;
  line-height: 1;
}

.lightbox-nav:hover {
  color: #92b3a2;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Mobile Gallery Adjustments */
@media (max-width: 900px) {
  .photo-gallery-grid {
    columns: 2;
    column-gap: 1px;
    padding: 0;
  }

  .gallery-item img {
    padding: 0.35rem;
  }

  .lightbox-nav {
    font-size: 2.5rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-close {
    font-size: 2.5rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-content img {
    max-height: 80vh;
  }
}

@media (max-width: 480px) {
  .photo-gallery-grid {
    columns: 2;
    column-gap: 1px;
    padding: 0;
  }

  .gallery-item img {
    padding: 0.25rem;
  }
}
