/* Wedding invite patches — one section at a time. Active: HERO only */

/* Hide main invite until Tilda preloader ends (~6s) */
body:not(.uz-ready) [id^="uz-"] {
  display: none !important;
}

body:not(.uz-ready) #rec1157779821 .t396__artboard > .t396__elem {
  visibility: hidden !important;
}

body:not(.uz-ready) #rec1157779821 .t396__artboard > .t396__elem.preloader-shape,
body:not(.uz-ready) #rec1157779821 .t396__artboard > .t396__elem.number,
body:not(.uz-ready) #rec1157779821 .t396__artboard > .t396__elem.fl,
body:not(.uz-ready) #rec1157779821 .t396__artboard > [data-elem-id="1752226285063"],
body:not(.uz-ready) #rec1157779821 .t396__artboard > [data-elem-id="1752226322303"] {
  visibility: visible !important;
}

.t-sociallinks {
  display: none !important;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  background: #111;
}

#allrecords,
.t-records {
  margin: 0 auto;
}

#rec1157779821 {
  margin: 0 auto;
}

#rec1157779821 .t396__artboard {
  position: relative;
  margin: 0 auto;
}

/* Uzbek overlays — centered in artboard (desktop + mobile) */
[id^="uz-"] {
  position: absolute;
  left: 50%;
  box-sizing: border-box;
}

#uz-hero-names {
  top: 0;
  width: 100%;
  max-width: 320px;
  transform: translateX(-50%);
  z-index: 90;
  pointer-events: none;
}

#uz-date,
#uz-guest,
#uz-calendar,
#uz-location,
#uz-venue-gallery,
#uz-tilaklar,
#uz-finale {
  transform: translateX(-50%);
}

#uz-location,
#uz-venue-gallery {
  transform: translateX(calc(-50% + 4px));
}

/* --- SECTION 1: HERO --- */
/* Hide template name images (AZAM / FARIDA graphics) */
[data-elem-id="1752226870634"],
[data-elem-id="1752227104989"] {
  visibility: hidden !important;
}

/* Uzbek names — same slots as official, larger */
.couple-fix {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 90;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1.08;
}

.couple-fix--1 { top: 97px; }
.couple-fix--2 { top: 159px; }

/* Do NOT move/crop Tilda hands, flower, or Seriy — defaults only */

/* --- SECTION 2: GUEST (tilak) --- */
[data-elem-id="1752227553298"],
[data-elem-id="1752227755170"],
[data-elem-id="1752227468411"],
[data-elem-id="1752227503378"],
[data-elem-id="1752227768162"] {
  display: none !important;
}

/* Block layout = real margin between title & body */
#uz-guest {
  top: 750px;
  z-index: 95;
  width: 92%;
  max-width: 300px;
  text-align: center;
  pointer-events: none;
}

#uz-guest .uz-fix--guest-title {
  display: block;
  margin: 0 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #1a1a1a;
}

#uz-guest .uz-fix--guest-body {
  display: block;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 2.45;
}

/* --- SECTION 3: DATE --- */
#uz-date {
  top: 590px;
  z-index: 88;
  text-align: center;
  pointer-events: none;
}

#uz-date .uz-fix--date {
  display: block;
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  letter-spacing: 0.12em;
  color: #1a1a1a;
}

/* --- SECTION 4: CALENDAR --- */
/* Russian Июль image above calendar (11.png) */
#rec1157779821 .tn-elem__11577798211752227925962,
#rec1157779821 [data-elem-id="1752227925962"],
#rec1157779821 .tn-elem__11577798211752227955441,
#rec1157779821 [data-elem-id="1752227955441"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

[data-elem-id="1752228012634"],
[data-elem-id="1752228471841"],
[data-elem-id="1752233535614"] {
  display: none !important;
}

#uz-calendar {
  top: 1100px;
  z-index: 95;
  width: 280px;
  pointer-events: none;
  text-align: center;
  color: #fff;
}

#uz-calendar .cal-month {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

#uz-calendar .cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

#uz-calendar .cal-week span {
  padding-bottom: 12px;
}

#uz-calendar .cal-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 0 16px;
}

#uz-calendar .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

#uz-calendar .cal-d {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#uz-calendar .cal-d--empty {
  visibility: hidden;
}

#uz-calendar .cal-d--on {
  color: #fff;
  border: 1px solid #fff;
  box-sizing: border-box;
}

#uz-calendar .cal-note {
  margin: 26px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* --- SECTION 5: LOCATION --- */
#rec1157779821 [data-elem-id="1752228494475"],
#rec1157779821 [data-elem-id="1752227874993"],
#rec1157779821 [data-elem-id="1752228858335"],
#rec1157779821 [data-elem-id="1752228562997"],
#rec1157779821 [data-elem-id="1752228603876"],
#rec1157779821 [data-elem-id="1752235573721"],
#rec1157779821 [data-elem-id="1752228778637"],
#rec1157779821 [data-elem-id="1752231755965"],
#rec1157779821 [data-elem-id="1752228941720"] {
  display: none !important;
}

#uz-location {
  top: 1555px;
  z-index: 96;
  width: 88%;
  max-width: 272px;
  text-align: center;
  pointer-events: auto;
}

#uz-location .loc-label {
  margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #8a9aa8;
}

#uz-location .loc-photo-frame {
  position: relative;
  margin: 0 auto 22px;
  max-width: 248px;
  padding: 4px;
  border: 1px solid #c9a86c;
  border-radius: 22px;
  background: #faf8f4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

#uz-location .loc-photo-hook {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 10px;
  border: 1px solid #c9a86c;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: #faf8f4;
  z-index: 2;
}

#uz-location .loc-photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 168px;
  max-height: 210px;
  object-fit: cover;
  border-radius: 18px;
}

#uz-location .loc-venue {
  margin: 32px 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2f4f5f;
  line-height: 1.35;
}

#uz-location .loc-city {
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #2f4f5f;
}

#uz-location .loc-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  padding: 12px 22px;
  border: 1px solid #c9a86c;
  border-radius: 999px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: #b8956c;
  transition: background 0.2s ease, color 0.2s ease;
}

#uz-location .loc-map-btn:hover {
  background: rgba(201, 168, 108, 0.12);
  color: #9a7d4f;
}

#uz-location .loc-map-pin {
  flex-shrink: 0;
}

/* --- SECTION 6: VENUE GALLERY (fills gap after Russian timeline removed) --- */
#rec1157779821 [data-elem-id="1752229342303"],
#rec1157779821 [data-elem-id="1752229179616"],
#rec1157779821 [data-elem-id="1752229059872"],
#rec1157779821 [data-elem-id="1752229031476"],
#rec1157779821 [data-elem-id="1752229079536"],
#rec1157779821 [data-elem-id="1752228996076"],
#rec1157779821 [data-elem-id="1752229210131"],
#rec1157779821 [data-elem-id="1752229116809"],
#rec1157779821 [data-elem-id="1752229010316"],
#rec1157779821 [data-elem-id="1752229219046"],
#rec1157779821 [data-elem-id="1752228705700"],
#rec1157779821 [data-elem-id="1752229223173"],
#rec1157779821 [data-elem-id="1752228974195"],
#rec1157779821 [data-elem-id="1752229229494"],
#rec1157779821 [data-elem-id="1752234874462"],
#rec1157779821 [data-elem-id="1752231892660"],
#rec1157779821 [data-elem-id="1752234823652"] {
  display: none !important;
}

#uz-venue-gallery {
  top: 2375px;
  z-index: 94;
  width: 92%;
  max-width: 310px;
  pointer-events: auto;
}

#uz-venue-gallery .vg-label {
  margin: 0 0 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-align: center;
  color: #8a9aa8;
}

#uz-venue-gallery .vg-title {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  color: #1a1a1a;
}

#uz-venue-gallery .vg-intro {
  margin: 0 0 16px;
  padding: 0 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 2.1;
  text-align: center;
  text-transform: uppercase;
  color: #4a4a4a;
}

#uz-venue-gallery .vg-cards {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

#uz-venue-gallery .vg-cards::-webkit-scrollbar {
  display: none;
}

#uz-venue-gallery .vg-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(201, 168, 108, 0.55);
  border-radius: 4px;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.06);
}

#uz-venue-gallery .vg-card--alt {
  border-color: rgba(138, 154, 168, 0.45);
}

#uz-venue-gallery .vg-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  line-height: 0;
}

#uz-venue-gallery .vg-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 108, 0.35);
  pointer-events: none;
}

#uz-venue-gallery .vg-photo {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

#uz-venue-gallery .vg-copy {
  text-align: center;
}

#uz-venue-gallery .vg-card-title {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b8956c;
}

#uz-venue-gallery .vg-card-text {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 2;
  text-transform: uppercase;
  color: #333;
}

/* --- SECTION 7: FINALE (wishes + names + countdown label, dress removed) --- */
#rec1157779821 [data-elem-id="1752231813991"],
#rec1157779821 [data-elem-id="1752231854264"],
#rec1157779821 [data-elem-id="1752231951874"],
#rec1157779821 [data-elem-id="1752232083882"],
#rec1157779821 [data-elem-id="1752232160049"],
#rec1157779821 [data-elem-id="1752232128895"],
#rec1157779821 [data-elem-id="1752232726027"],
#rec1157779821 [data-elem-id="1752232702783"] {
  display: none !important;
}

/* Tilaklar on white (below gallery slider) — dark text */
#uz-tilaklar {
  top: 2988px;
  z-index: 95;
  width: 88%;
  max-width: 300px;
  text-align: center;
  pointer-events: none;
}

#uz-tilaklar .tilaklar-title {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

#uz-tilaklar .tilaklar-body {
  margin: 0;
  padding: 0 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.11em;
  line-height: 2.2;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.9);
}

#uz-tilaklar .tilaklar-flower {
  display: block;
  width: 56px;
  height: auto;
  margin: 16px auto 0;
  opacity: 0.85;
}

/* Names + countdown label on dark footer — light text */
#uz-finale {
  top: 3288px;
  z-index: 96;
  width: 88%;
  max-width: 300px;
  text-align: center;
  pointer-events: none;
  color: #f5f2ec;
}

#uz-finale .finale-names {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: #ffffff;
}

#uz-finale .finale-names__amp {
  display: inline-block;
  margin: 0 0.18em;
  font-size: 0.7em;
  font-style: italic;
  color: #c9a86c;
}

#uz-finale .finale-countdown-label {
  margin: 0;
  padding-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(201, 168, 108, 0.95);
}

#rec1157779821 .t-numeric__title,
#rec1157779821 .t-digit,
#rec1157779821 [class*="t-countdown"] {
  color: #f5f2ec !important;
}

/* White strips (DevTools): shape masks + footer #fbfcff block */
[data-elem-id="1752232579144"],
[data-elem-id="1752232466848"] {
  display: none !important;
}

/* ── PHONE (primary) — site is mobile-first ── */
@media screen and (max-width: 480px) {
  #rec1157779821 .t396__artboard {
    overflow-x: hidden;
  }

  /* Layers that break mobile layout */
  [data-elem-id="1752226893239"],
  [data-elem-id="1752227066351"],
  [data-elem-id="1752228523230"],
  [data-elem-id="1752232128895"],
  [data-elem-id="1752232361917"] {
    display: none !important;
  }

  .couple-fix {
    font-size: 40px;
  }

  .couple-fix--1 { top: 88px; }
  .couple-fix--2 { top: 148px; }

  #uz-date { top: 565px !important; }
  #uz-guest {
    top: 920px !important;
    z-index: 96;
  }

  #uz-guest .uz-fix--guest-title,
  #uz-guest .uz-fix--guest-body {
    color: #1a1a1a;
  }

  #uz-calendar { top: 1140px !important; }

  #uz-location {
    top: 1540px !important;
    z-index: 97;
  }

  #uz-venue-gallery {
    top: 2380px !important;
    z-index: 94;
  }

  #uz-finale {
    top: 2710px !important;
    z-index: 98;
  }

  #uz-tilaklar {
    top: 3280px !important;
    z-index: 95;
  }

  #uz-finale .finale-names {
    display: none;
  }

  #uz-finale .finale-countdown-label {
    margin-bottom: 8px;
  }
}

/* Desktop — keep Tilda spacing */
@media screen and (min-width: 481px) {
  [id^="uz-"] {
    zoom: 1 !important;
  }
}

#rec1158240696 {
  display: none !important;
}

#rec1158240706,
#rec1158240731 {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

#rec1158240706 .t123,
#rec1158240706 .t-container_100,
#rec1158240706 .t-width {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
