* { box-sizing: border-box; }

:root {
  --paper: #fffaf5;
  --ink: #806e63;
  --muted: #ad9a8d;
  --brown: #806d62;
  --gold: #c6a77e;
}

@font-face {
    font-family: "Times New Roman Custom";
    src: url("./assets/fonts/font-times-new-roman/times.ttf") format("truetype");
    font-family: "UTM ViceroyJF";
    src: url("./assets/fonts/UTMViceroyJF/UTMViceroyJF.ttf") format("truetype");
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Times New Roman Custom", serif;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255,255,255,.25), transparent 48%),
    linear-gradient(135deg, #f0e1d4, #e4cdbb);
  overflow-x: hidden;
}

.scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
  position: relative;
  isolation: isolate;
}

.groom-bride{
  font-family: "UTM ViceroyJF", cursive;
  font-size: 28px;
}

.groom-bride p {
  margin: 0;
}


/* Lớp chứa hiệu ứng hoa */
#flowerLayer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
}

/* Hoa rơi */
.falling-flower {
  position: absolute;
  top: -60px;

  width: var(--flower-size);
  height: var(--flower-size);

  object-fit: contain;

  transform: rotate(var(--rotation));

  animation: flowerFall linear infinite;

  will-change: transform;
}

/* Chuyển động rơi */
@keyframes flowerFall {
  0% {
    transform:
      translate3d(0, -10vh, 0)
      rotate(var(--rotation));
  }

  25% {
    transform:
      translate3d(35px, 25vh, 0)
      rotate(calc(var(--rotation) + 100deg));
  }

  50% {
    transform:
      translate3d(-25px, 50vh, 0)
      rotate(calc(var(--rotation) + 200deg));
  }

  75% {
    transform:
      translate3d(30px, 75vh, 0)
      rotate(calc(var(--rotation) + 280deg));
  }

  100% {
    transform:
      translate3d(-15px, 110vh, 0)
      rotate(calc(var(--rotation) + 360deg));
  }
}


.invitation-card {
  position: relative;
  width: min(680px, 100%);
  min-height: 400px;
  padding: 19px 30px 28px;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 8px;
  box-shadow: 0 22px 42px rgba(68, 48, 35, .32), 0 4px 12px rgba(68,48,35,.12);
  overflow: hidden;
  transition: min-height .65s ease, transform .65s ease;
  z-index: 1;
}

.heart-medallion {
  width: 52px;
  height: 52px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brown);
  font: 27px Arial, sans-serif;
  box-shadow: 0 7px 17px rgba(72, 52, 40, .25);
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #a18b7e;
}

h1, h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(27px, 5vw, 32px);
  line-height: 1.35;
  position: relative;
  z-index: 2;
}
h1 span, h2 span {
  display: block;
  font-size: 40px;
  font-family: "UTM ViceroyJF";
  line-height: 1.15;
  color: #b5a195; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 13px;
  color: #b59c88;
}
.ornament i { width: 34px; height: 1px; background: #bca797; }
.ornament b { font-size: 13px; font-weight: 400; }

.date { margin: 0; font-size: 18px; color: var(--muted); }
.invite-line { margin: 20px 0 22px; font-size: 20px; color: #a28e81; }

.open-button, .back-button {
  border: 0;
  border-radius: 30px;
  padding: 11px 29px;
  min-width: 128px;
  color: #fff;
  background: var(--brown);
  font: 22px "Times New Roman", serif;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(73, 53, 42, .2);
  transition: transform .2s ease, background .2s ease;
  position: relative;
  z-index: 3;
}
.open-button:hover, .back-button:hover { transform: translateY(-2px); background: #6e5c52; }
.open-button:focus-visible, .back-button:focus-visible { outline: 3px solid #c6a77e; outline-offset: 4px; }

.flower { position: absolute; top: 2px; width: 150px; height: 250px; opacity: .83; pointer-events: none; }
.flower-left { left: -5px; }
.flower-right { right: -5px; }
.flower svg { width: 100%; height: 100%; overflow: visible; }
.flower path { fill: none; stroke: #b99a70; stroke-width: 1.25; stroke-linecap: round; }
.blossoms { fill: #d6b98e; stroke: #c5a477; stroke-width: .5; }

.inside {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: max-height .75s ease, opacity .45s ease .1s, transform .5s ease;
}
.invitation-card.is-open { min-height: 590px; }
.invitation-card.is-open .inside { max-height: 420px; opacity: 1; transform: translateY(0); margin-top: 25px; }
.invitation-card.is-open .invite-line,
.invitation-card.is-open .open-button { display: none; }
.inside-rule { width: 75%; height: 1px; margin: 0 auto 18px; background: #e2d4c8; }
.inside h2 { font-size: 25px; margin-bottom: 12px; }
.inside-message { max-width: 370px; margin: 0 auto 20px; font-size: 17px; line-height: 1.45; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 auto 17px; max-width: 430px; }
.details div { padding: 12px 8px; border: 1px solid #eadfd6; border-radius: 5px; display: flex; flex-direction: column; gap: 5px; }
.details small { font: 600 10px Arial, sans-serif; letter-spacing: 1.5px; color: #b09b8d; }
.details strong { font-size: 17px; font-weight: 600; }
.details span { font-size: 14px; line-height: 1.25; color: #a18d80; }
.dress-code { margin: 0 0 15px; font-size: 15px; color: #9f8b7e; }
.back-button { padding: 8px 22px; min-width: auto; font-size: 15px; }

.leaf-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.leaf {
  position: absolute;
  top: -30px;
  width: 12px;
  height: 7px;
  border-radius: 100% 0 100% 0;
  background: rgba(171, 143, 111, .43);
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .7; }
  100% { transform: translate3d(70px, 110vh, 0) rotate(540deg); opacity: 0; }
}
.signature { position: absolute; bottom: 12px; margin: 0; font-size: 13px; letter-spacing: 2px; color: rgba(116,94,78,.48); }

@media (max-width: 520px) {
  .scene {
    padding: 30px 14px 48px; 
  }
  .invitation-card {
    padding: 18px 17px 25px;
    min-height: 443px;
    width: 310px;
  }
  .flower { width: 105px; height: 190px; opacity: .65; }
  .heart-medallion { width: 46px; height: 46px; margin-bottom: 14px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.7px; }
  .invite-line { margin: 17px 0 19px; }
  .invitation-card.is-open { min-height: 650px; }
  .details { grid-template-columns: 1fr; max-width: 300px; }
  .invitation-card.is-open .inside { max-height: 500px; }
}


/* Nút liên kết được tạo kiểu giống nút bấm trên thiệp */
a.open-button {
  display: inline-block;
  text-decoration: none;
}






/*-----------------------------------------------*/
/*----------- Chuyển cảnh mở thiệp --------------*/
/*-----------------------------------------------*/







.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  background:
    radial-gradient(ellipse at center, rgba(255,250,245,.96), rgba(232,214,198,.98) 68%),
    #ead8c7;
  opacity: 0;
  animation: overlayAppear .42s ease forwards;
}
.transition-caption {
  color: #8e796c;
  font: italic 19px "Cormorant Garamond", Georgia, serif;
  letter-spacing: 1px;
  opacity: 0;
  animation: captionAppear .55s ease .22s forwards;
}
.envelope-scene {
  width: min(390px, 82vw);
  height: 255px;
  position: relative;
  perspective: 1000px;
  animation: envelopeFloat 2.4s ease-in-out infinite;
}
.envelope {
  position: absolute;
  width: 100%;
  height: 190px;
  left: 0;
  bottom: 0;
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 18px rgba(89,65,49,.22));
}
.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: #d8c0a9;
}
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(145deg, #f7eee5, #e8d5c3);
  clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 5px 5px;
}
.envelope-flap {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 100%;
  background: linear-gradient(145deg, #e8d5c3, #d5bda7);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: 50% 0;
  transform: rotateX(0deg);
  backface-visibility: visible;
  animation: flapOpen .72s cubic-bezier(.2,.75,.25,1) .35s forwards;
}
.letter {
  position: absolute;
  z-index: 2;
  width: 84%;
  height: 172px;
  left: 8%;
  bottom: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #fffaf5;
  border: 1px solid #eaded3;
  box-shadow: 0 5px 14px rgba(83,61,47,.12);
  color: #806d62;
  transform: translateY(0) scale(.96);
  animation: letterRise .8s cubic-bezier(.16,.8,.25,1) .72s forwards;
}
.letter-heart { font: 22px Arial, sans-serif; color: #9a7e6b; }
.letter-names { font: 25px "Playfair Display", Georgia, serif; }
.letter-names i { font-size: 15px; color: #b39b88; }
.letter-small { font-size: 14px; letter-spacing: 1px; color: #aa9688; }
.envelope-seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 43%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fffaf5;
  background: #8a7466;
  box-shadow: 0 3px 9px rgba(65,46,34,.22);
  font: 17px Arial, sans-serif;
  animation: sealFade .25s ease .34s forwards;
}
body.is-transitioning > .scene,
body.is-transitioning > .details-scene,
body.is-transitioning > .signature {
  animation: pageSoftFade .35s ease forwards;
}
@keyframes overlayAppear { to { opacity: 1; } }
@keyframes captionAppear { to { opacity: 1; transform: translateY(-3px); } }
@keyframes flapOpen {
  0% { transform: rotateX(0deg); z-index: 4; }
  100% { transform: rotateX(180deg); z-index: 1; }
}
@keyframes letterRise {
  0% { transform: translateY(0) scale(.96); }
  100% { transform: translateY(-105px) scale(1); }
}
@keyframes sealFade { to { opacity: 0; transform: translate(-50%, -50%) scale(.55); } }
@keyframes envelopeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@keyframes pageSoftFade { to { opacity: .25; transform: scale(.985); } }

/* Trang nội dung xuất hiện nhẹ nhàng sau khi chuyển đến. */
.details-page {
  animation: detailsEnter .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes detailsEnter {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.heart-medallion {
  animation: heartPulse 1.65s ease-in-out infinite;
  transform-origin: center;
}
.heart-icon {
  display: block;
  width: 25px;
  height: 25px;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(70, 48, 36, .12));
  animation: heartIconPulse 1.65s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 7px 17px rgba(72, 52, 40, .25);
  }
  14% {
    transform: scale(1.09);
    box-shadow: 0 9px 22px rgba(72, 52, 40, .3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.06);
  }
  56% {
    transform: scale(1);
  }
}
@keyframes heartIconPulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.06); }
  28% { transform: scale(1); }
  42% { transform: scale(1.04); }
  56% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .heart-medallion, .heart-icon { animation: none !important; }
}


/* Branch ở hai bên thiệp */
.branch-image {
  position: absolute;
  z-index: 1;
  top: -30px;
  width: 104px;
  height: 265px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.branch-left { left: 0; }
.branch-right { right: 0; transform: scaleX(-1); }

.translate-left {
    translate: -40% 0;
}

.rotate-left {
    rotate: 22deg;
}

.translate-right {
    translate: 40% 0;
}

.rotate-right {
    rotate: -22deg;
}

@media (max-width: 520px) {
  .branch-image {
    width: 76px;
    height: 195px;
    top: -25px;
  }
  .bottom-right {
    bottom: -3%;
    top: auto;
  }
}







/*---------------------------------------------------------------------------*/
/*-------------------------- Trang nội dung thiệp cưới ----------------------*/
/*---------------------------------------------------------------------------*/


.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-days span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 35px;
}

.calendar-days .wedding-day {
    color: #fff;
    background: #a77d70;
    border-radius: 50%;
    font-weight: bold;
}



.details-scene {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
  position: relative;
  isolation: isolate;
}
.details-page {
  width: min(760px, 100%);
  padding: 34px clamp(20px, 6vw, 66px) 42px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 250, 245, .96);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  box-shadow: 0 22px 42px rgba(68, 48, 35, .25);
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #9a8577;
  text-decoration: none;
  font-size: 15px;
}
.back-link:hover { color: #6e5c52; text-decoration: underline; }
.details-flourish { color: #b59c88; font-size: 30px; margin-bottom: 8px; }
.couple-name { margin: 8px 0 5px; font: 400 clamp(30px, 6vw, 43px)/1.35 "Playfair Display", Georgia, serif; }
.couple-name span { display: block; font-size: 20px; color: #b5a195; }
.page-subtitle { margin: 8px 0 17px; color: #a18e81; font-size: 17px; }
.page-divider { display: flex; align-items: center; justify-content: center; gap: 13px; color: #b59c88; margin: 18px auto; }
.page-divider i { width: 70px; height: 1px; background: #d8c8bb; }
.announcement { margin: 22px 0 3px; color: #a18b7e; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.wedding-title { margin: 0; font: 400 clamp(27px, 5vw, 36px) "Playfair Display", Georgia, serif; }
.invitation-text { max-width: 530px; margin: 15px auto 25px; font-size: 19px; line-height: 1.5; color: #917d70; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-width: 590px; margin: 0 auto; }
.event-box { min-height: 155px; padding: 19px 12px; border: 1px solid #e8dcd1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.event-label { font: 600 11px Arial, sans-serif; letter-spacing: 1.7px; color: #b09b8d; }
.event-box strong { font-size: 22px; font-weight: 600; color: #806d62; }
.event-box span:not(.event-label) { font-size: 16px; color: #9e8b7e; }
.dress-code { margin: 23px 0 0; color: #9f8b7e; font-size: 16px; }
.closing { max-width: 500px; margin: 18px auto 8px; font-size: 18px; line-height: 1.5; }
.signature-page { margin: 0 0 22px; font: italic 21px "Playfair Display", Georgia, serif; color: #9b8577; }
.return-button { margin-top: 2px; }
@media (max-width: 560px) {
  .details-scene { padding: 20px 12px; }
  .details-page { padding: 25px 17px 32px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-box { min-height: 130px; }
  .invitation-text { font-size: 17px; }
}
.wedding-page {
  margin: 0;
  color: #806e63;
  background: #f4eee6;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.wedding-site {
  width: min(100%, 980px);
  margin: auto;
  overflow: hidden;
  background: #f4eee6;
  box-shadow: 0 0 30px #58443612;
}
.wedding-hero {
  min-height: 930px;
  padding: 54px 24px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  isolation: isolate;
  background: linear-gradient(#faf7f280, #faf7f2c9),
    repeating-linear-gradient(90deg, #8f7a6708 0 1px, transparent 1px 5px);
}
.hero-kicker {
  margin: 0 0 22px;
  letter-spacing: 4px;
  font: 500 12px Georgia, serif;
  color: #9c8a7f;
}


/*----------------------Tên cô dâu, chú rể------------------------*/



.hero-names {
  margin: 0;
  font: italic 500 clamp(30px,8.4vw,37pxx)/ 1.2 "Times New Roman",
    serif;
  color: #8a7b72;
}

@media (max-width: 600px) {
.hero-names {
  display: flex;
  margin: 0;
  font: italic 500 clamp(30px,8.4vw,37px)/ 1.2 "Times New Roman",
    serif;
  color: #8a7b72;
}
h1 span,h2 span{
  font-size: 28px;
  margin: 0 4px 0 4px;
}
}






/*------------------------------------------------------------*/
/*----------------------Khung ảnh cưới------------------------*/
/*------------------------------------------------------------*/







.polaroid {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    transform: rotate(356deg);
}

/* Ảnh cưới */
.couple-photo {
    position: absolute;
    top: 8%;
    left: 12%;
    width: 80%;
    height: 80%;
    object-fit: cover;
    z-index: 1;
}

/* Khung trang trí */
.polaroid-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 2;
    pointer-events: none;
}

.scroll-cue {
  margin-top: 24px;
  text-decoration: none;
  color: #9b897d;
  font: 32px Georgia, serif;
  animation: cueFloat 1.8s ease-in-out infinite;
}
@keyframes cueFloat {
  50% {
    transform: translateY(7px);
  }
}
.hero-botanical {
  position: absolute;
  z-index: -1;
  top: 70px;
  width: 170px;
  height: 740px;
  opacity: 0.16;
  background: url("assets/branch.png") center/contain no-repeat;
  pointer-events: none;
}
.botanical-left {
  left: -28px;
  transform: rotate(-9deg) scale(1.45);
}
.botanical-right {
  right: -28px;
  transform: scaleX(-1) rotate(-9deg) scale(1.45);
}

@media(max-width: 600px){
  .wedding-hero {
    min-height: 790px;
    padding-top: 42px;
  }
  .polaroid {
    margin-top: 65px;
    width: min(340px, 78vw);
    padding: 10px 10px 62px;
    transform: rotate(353deg);
  }
}


/*--------------------Ngày diễn ra-------------------------*/

.hero-date {
  font-family: 'Times New Roman', Times, serif;
  margin: 60px 0 0;
  letter-spacing: 4px;
  font-size: 15px;
  color: #a18e82;
}












/*--------------------------------------------------------------*/
/*--------------------Thông tin lễ cưới-------------------------*/
/*--------------------------------------------------------------*/






.branch-lecuoi{
  position: absolute;
  width: 100%;
  bottom: 15%;
  left: -48.8%;
}
.branch-lecuoi-top{
  position: absolute;
  width: 100%;
  top: -5%;
  left: -48.8%;
}


@media (max-width: 600px) {
  .branch-lecuoi{
    position: absolute;
    width: 100%;
    bottom: 22%;
    left: -50%;
  }
  .branch-lecuoi-top{
    position: absolute;
    width: 100%;
    top: -15%;
    left: -50%;
  }
}



.wedding-section {
  position: relative;
  padding: 75px clamp(18px, 6vw, 65px);
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.ceremony-section {
  background: linear-gradient(#f6efe5c7, #f6efe5e0),
    url("assets/branch.png") left 4% center/170px auto no-repeat, #f2e9dd;
}
.reception-section {
  background: linear-gradient(#f9f5e6cc, #f9f5e6e6),
    url("assets/branch.png") right 3% 18%/170px auto no-repeat, #f7f0e7;
}
.section-paper {
  width: min(560px, 100%);
  min-height: 780px;
  padding: 42px clamp(20px, 5vw, 54px);
  position: relative;
  text-align: center;
  background: repeating-linear-gradient(
      0deg,
      #80695506 0 1px,
      transparent 1px 4px
    ),
    #efe4d3ed;
  border-radius: 10px;
  box-shadow: 0 8px 20px #4f3c2c21;
}
.section-paper h2,
.location-content h2 {
  margin: 0 0 28px;
  font: 600 23px "Playfair Display", Georgia, serif;
  text-transform: uppercase;
}
.parents-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 390px;
  margin: 0 auto 28px;
}
.parents-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px;
}
.parents-row > div + div {
  border-left: 1px solid #cbb9a8;
}

.parents-row small {
  font-size: 12px;
  color: #9d8b7e;
}
.parents-row strong {
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.ceremony-intro {
  font-family: 'Times New Roman', Times, serif;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
}
.person-name {
  margin: 0;
  font: 400 clamp(30px, 5vw, 39px) "Playfair Display", Georgia, serif;
}
.person-role {
  margin: 9px 0 20px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #a99688;
}
.ampersand {
  margin: 5px 0 12px;
  font: italic 32px "Cormorant Garamond", serif;
}
.ceremony-copy {
  font-family: 'Times New Roman', Times, serif;
  margin: 26px 0 7px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
}
.large-time {
  margin: 12px 0 18px;
  font: 400 29px "Playfair Display", Georgia, serif;
}
.date-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  margin: 10px auto;
}
.date-line span {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;

}
.date-line b {
  padding: 0 17px;
  border-left: 1px solid #9d897a;
  border-right: 1px solid #9d897a;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
}
.year {
  font-family: 'Times New Roman', Times, serif;
  margin: 20px 0 8px;
  font-size: 21px;
}
.lunar-date {
  font-family: 'Times New Roman', Times, serif;
  margin: 16px 0 0;
  letter-spacing: 3px;
  font-size: 11px;
  color: #9e8b7d;
}








/*--------------------------------------------------------------*/
/*---------------------------Album Ảnh--------------------------*/
/*--------------------------------------------------------------*/










/* ALBUM SECTION */
.album-section {
    position: relative;
    width: 100%;
    padding: 55px 0 35px;
    overflow: hidden;
    text-align: center;
}

.album-title {
    margin: 0 0 40px;
    color: #806d60;
    font-family: "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* CAROUSEL */
.album-carousel {
    position: relative;
    width: 100%;
    height: 330px;
    perspective: 1000px;
    overflow: hidden;
}

.album-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.album-card {
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    border-radius: 16px;
    background: #eee5d9;
    box-shadow: 0 8px 20px rgba(80, 60, 40, 0.15);

    transform-origin: center;
    transition:
      transform 0.6s ease,
      opacity 0.6s ease,
      filter 0.6s ease;
}

.album-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ảnh dọc */
.album-card.portrait {
    width: 215px;
    height: 305px;
}

/* Ảnh vuông */
.album-card.square {
    width: 260px;
    height: 260px;
}

/* Ảnh ngang */
.album-card.landscape {
    width: 300px;
    height: 250px;
}

/* IMAGE COUNTER */
.album-counter {
    margin-top: 12px;
    color: #a99a8e;
    font-family: "Times New Roman", serif;
    font-size: 14px;
    letter-spacing: 2px;
}

/* CONTROLS */
.album-controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.album-controls button {
    width: 35px;
    height: 35px;
    border: 1px solid #c9b9a8;
    border-radius: 50%;
    background: transparent;
    color: #806d60;
    font-size: 23px;
    cursor: pointer;
    transition: 0.3s;
}

.album-controls button:hover {
    background: #c9b9a8;
    color: white;
}

@media (max-width: 480px) {
    .album-section {
        padding-top: 45px;
    }

    .album-title {
        margin-bottom: 38px;
    }

    .album-carousel {
        height: 310px;
    }

    .album-card {
        width: 215px;
        height: 305px;
    }
}


/*------------------------------------------------------------*/
/*----------------------section branch------------------------*/
/*------------------------------------------------------------*/

.section-branch {
  position: absolute;
  width: 98%;
  object-fit: contain;
  pointer-events: none;
}
.branch-one {
  right: -45px;
  bottom: -22px;
  transform: rotate(8deg);
}
.branch-two {
  left: -50px;
  bottom: -30px;
  transform: rotate(-10deg) scaleX(-1);
}

@media (max-width: 600px) {
  .section-branch {
    width: 100%;
    height: 270px;

  }
  .branch-one {
    right: -25px;
    bottom: -15px;
  }
  .branch-two {
    left: -25px;
    bottom: -20px;
  }
}





/*------------------------------------------------------------*/
/*-------------------Thông tin tiệc cưới----------------------*/
/*------------------------------------------------------------*/




.branch-tieccuoi{
  position: absolute;
  width: 100%;
  bottom: 15%;
  left: -48.8%;
}
.branch-tieccuoi-top{
  position: absolute;
  width: 100%;
  top: -8%;
  left: -48.8%;
}

@media (max-width: 600px) {
  .branch-tieccuoi{
    position: absolute;
    width: 100%;
    bottom: 25%;
    left: -50%;
  }
  .branch-tieccuoi-top{
    position: absolute;
    width: 100%;
    top: -20%;
    left: -50%;
  }
}




.reception-paper {
  min-height: 700px;
}
.section-lead {
  margin: 8px 0 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 19px;
  text-transform: uppercase;
}
.party-times {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin: 22px 0 28px;
}
.party-times div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.party-times small {
  font-size: 12px;
}
.party-times strong {
  font-family: 'Times New Roman', Times, serif;
  font-size: 19px;
  font-weight: 500;
}
.calendar-card {
  width: min(290px, 100%);
  margin: 0 auto;
  padding: 19px 14px 21px;
  border-radius: 9px;
  background: #806e63;
  color: #f9f2e9;
  box-shadow: 0 8px 18px #42312729;
}
.calendar-title {
  margin: 0 0 12px;
  font: italic 18px "Playfair Display", Georgia, serif;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
}
.calendar-week {
  padding: 8px 0;
  border-block: 1px solid #ffffff73;
  font: 10px Arial, sans-serif;
}
.calendar-days {
  row-gap: 9px;
  padding-top: 10px;
  font: 10px Arial, sans-serif;
}
.calendar-days span {
  min-height: 19px;
  display: grid;
  place-items: center;
}
.calendar-days .wedding-day {
  width: 24px;
  height: 24px;
  margin: auto;
  border-radius: 50%;
  background: #f8eee7;
  color: #806e63;
  font-weight: bold;
}
.calendar-link {
  display: block;
  margin: 24px auto 18px;
  width: fit-content;
  color: #806e63;
  font-size: 15px;
}
.rsvp-button {
  display: inline-block;
  padding: 11px 25px;
  border-radius: 30px;
  color: #fffaf5;
  background: #806e63;
  text-decoration: none;
  text-transform: uppercase;
  font: 12px Georgia, serif;
  transition: transform 0.2s;
}
.rsvp-button:hover {
  transform: translateY(-2px);
}





/*------------------------------------------*/
/*-----------------   Map  -----------------*/
/*------------------------------------------*/






.location-section {
  padding: 68px 20px 75px;
  text-align: center;
  background: linear-gradient(#f7f2ebe6, #f7f2ebf0),
    url("assets/branch.png") left bottom/190px auto no-repeat, #f4eee6;
}
.location-content {
  width: min(620px, 100%);
}
.location-content h2 {
  margin-bottom: 14px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 20px;
}
.location-content h3 {
  margin: 0 0 9px;
  font: 500 25px "Playfair Display", Georgia, serif;
}
.location-content > p:not(.section-kicker) {
  margin: 0 0 25px;
  font-size: 17px;
  line-height: 1.5;
}
.map-frame {
  width: 100%;
  height: 330px;
  overflow: hidden;
  border: 8px solid #fffaf4;
  box-shadow: 0 8px 20px #46352824;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.direction-link {
  display: inline-block;
  margin-top: 22px;
  color: #806e63;
  text-decoration: none;
  font-size: 17px;
}

.config-multiline{white-space:pre-line}.parents-row .config-multiline{line-height:1.45}
.map-container {
    width: 100%;
    max-width: 600px;
    margin: 25px auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(80, 60, 40, 0.12);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* Điện thoại */
@media (max-width: 600px) {
    .map-container iframe {
        height: 280px;
    }
}






/*------------------------------------------*/
/*---------------   Donate  ----------------*/
/*------------------------------------------*/

.donate{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.hopqua{
  width:300px;
  margin: 30px 0 60px 0;
}

/* SECTION HỘP QUÀ */
.gift-section {
  padding: 45px 15px;
  text-align: center;
}

.gift-title {
  color: #806d60;
  font-family: "Times New Roman", serif;
  font-size: 22px;
}

.gift-box {
  position: relative;
  display: flex;
  justify-content: center;
  width: 340px;
  height: 300px;
  max-width: 100%;
  margin: auto;
  border: none;
  background: transparent;
  cursor: pointer;
}

.gift-shadow {
    position: absolute;
    width: 65%;
    height: 25px;
    left: 17.5%;
    bottom: 1%;
    background: rgba(75, 57, 43, 0.25);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 1;
}

/* Hộp quà chính */
.gift-big {
  position: absolute;
  width: 65%;
  left: 18%;
  top: 20%;
  z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(75, 57, 43, 0.18));
}

/* Các hộp quà nhỏ */
.gift-small {
  position: absolute;
  width: 18%;
  transition: transform 0.3s ease;
}

.gift-1 {
  z-index: 1;
  width: 15%;
  top: 10%;
  left: 5%;
  transform: rotate(-15deg);
}

.gift-2 {
  z-index: 1;
  top: 5%;
  right: 5%;
  transform: rotate(15deg);
}

.gift-3 {
  z-index: 3;
  width: 10%;
  bottom: 40%;
  left: 5%;
  transform: rotate(10deg);
}

.gift-4 {    /*Hộp trắng*/
  z-index: 1;
  width: 8%;
  bottom: 40%;
  right: 10%;
  transform: rotate(10deg);
}

.gift-5 {
  z-index: 3;
  bottom: 10%;
  left: 7%;
  transform: rotate(-10deg);
}

.gift-6 {
  z-index: 3;
  width: 10%;
  bottom: 10%;
  left: 20%;
  transform: rotate(8deg);
}

.gift-7 {
  z-index: 3;
  width: 15%;
  bottom: 5%;
  right: 24%;
  transform: rotate(-10deg);
}

.gift-box:hover .gift-small {
    scale: 1.08;
}

.gift-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #a18d7e;
    font-size: 14px;
}

.gift-box:hover img {
    transform: scale(1.05);
}

.gift-box span {
    color: #a18d7e;
    font-size: 14px;
    margin-top: 5px;
}

/* MODAL */
.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gift-modal.active {
    display: flex;
    opacity: 1;
}

.gift-modal-content {
    width: 100%;
    max-width: 395px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff8f4;
    border: 2px solid #806d60;
    border-radius: 16px 16px 0 0;
    transform: translateY(25px);
    transition: transform 0.3s ease;
}

.gift-modal.active .gift-modal-content {
  scrollbar-width: none;      /* Firefox */
    transform: translateY(0);
}

/* HEADER */
.gift-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #806d60;
    color: white;
    z-index: 2;
}

.gift-modal-header h2 {
    margin: 0;
    font-family: "Times New Roman", serif;
    font-size: 20px;
}

.close-gift-modal {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: white;
    font-size: 27px;
    cursor: pointer;
}

/* BODY */
.gift-modal-body {
    padding: 15px 15px 25px;
    text-align: center;
}

.gift-person {
    margin-bottom: 18px;
}

.gift-person-name {
    color: #8b776b;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    margin: 0 0 24px;
}

.gift-person-name strong {
    font-weight: 600;
}

.qr-image {
    padding: 10px;
    margin: auto;
    background: white;
    border: 1px solid #e8e3df;
    border-radius: 13px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    color: #907e72;
    font-size: 11px;
    line-height: 1.4;
}

.bank-info strong {
    font-weight: 600;
}

.download-qr {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f2eae5;
    color: #88776b;
    font-size: 11px;
    text-decoration: none;
}

@media (max-width: 600px) {
  .hopqua{
    width: 200px;
    margin: 30px 0 60px 0;
  }
  .maqr{
    width: 100%;
  }
  .tieudehopqua{
    height: 30px;
    background-color: rgb(124, 106, 96);
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    align-content: center;
  }
}







/*------------------------------------*/
/*--------------- Footer -------------*/
/*------------------------------------*/









.wedding-footer {
  padding: 25px 15px 32px;
  text-align: center;
  color: #a18e82;
  background: #eee4d8;
}
.wedding-footer p {
  letter-spacing: 3px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 10px;
}
.wedding-footer a {
  color: inherit;
  font-size: 14px;
}
@media (max-width: 600px) {
  .hero-botanical {
    width: 110px;
    opacity: 0.12;
  }
  .wedding-section {
    padding: 45px 15px;
  }
  .section-paper {
    padding: 32px 18px;
  }
  .section-paper h2 {
    font-size: 20px;
  }
  .parents-row {
    margin-bottom: 22px;
  }
  .parents-row strong {
    font-size: 13px;
  }
  .person-name {
    font-size: 29px;
  }
  .party-times {
    gap: 28px;
  }
  .map-frame {
    height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}
