@font-face {
  font-family: "Lora";
  src: url(../fonts/lora-regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lora";
  src: url(../fonts/lora-semibold.ttf);
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Ergisa";
  src: url(../fonts/ergisa-regular.otf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "High Spirited";
  src: url(../fonts/high-spirited.otf);
}

/* ==========================================================================
   BASE & FONT CLASSES (body = Lora, các font khác ăn theo Class)
   ========================================================================== */
body {
  margin: 0;
  background-color: #333;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  --color-primary: rgb(146, 131, 98);
  --color-primary-raw: 146, 131, 98;
  --text-color-primary: rgb(146, 131, 98);
}

body a {
  text-decoration: none;
  color: inherit;
}

body .btn-link {
  text-decoration: none;
  color: #3f51b5;
}

body img {
  max-width: 100%;
}

.font1 {
  font-family: "High Spirited", "DancingScript", cursive;
}

.font2 {
  font-family: "Ergisa", "Lora", serif;
}

.font-milton {
  font-family: "Ftv Milton One", "Lora", serif;
}

.font-edwardian {
  font-family: "UTM Edwardian", "Lora", serif;
}

.font-bodega {
  font-family: "VL Bodega Script", "Lora", serif;
}

/* ==========================================================================
   CARD WRAPPER & THEME VARIANTS
   ========================================================================== */
.card-wrapper {
  max-width: 480px;
  margin: auto;
  background-color: #fff;
  overflow: hidden;
}

.card-wrapper.lesser-angle #card-countdown .card-countdown-inner h2 span span {
  transform: rotate(3deg);
  top: 35%;
}

.card-wrapper.theme-pink {
  --color-primary: rgb(254, 130, 140);
  --color-primary-raw: 254, 130, 140;
  --text-color-primary: #333;
}

.card-wrapper.theme-pink img.img-themeable {
  filter: brightness(0) saturate(100%) invert(78%) sepia(26%) saturate(5007%) hue-rotate(304deg) brightness(99%) contrast(101%);
}

.card-wrapper.theme-pink div.div-themeable {
  background: rgb(254, 130, 140) !important;
}

.card-wrapper.theme-red {
  --color-primary: rgb(131, 4, 13);
  --color-primary-raw: 131, 4, 13;
  --text-color-primary: rgb(131, 4, 13);
}

.card-wrapper.theme-red img.img-themeable {
  filter: brightness(0) saturate(100%) invert(12%) sepia(20%) saturate(7291%) hue-rotate(335deg) brightness(123%) contrast(121%);
}

.card-wrapper.theme-red div.div-themeable {
  background: var(--color-primary) !important;
}

.card-wrapper.theme-lightgreen {
  --color-primary: rgb(105, 122, 80);
  --color-primary-raw: 105, 122, 80;
  --text-color-primary: rgb(105, 122, 80);
}

.card-wrapper.theme-lightgreen img.img-themeable {
  filter: brightness(0) saturate(100%) invert(48%) sepia(19%) saturate(657%) hue-rotate(42deg) brightness(90%) contrast(89%);
}

.card-wrapper.theme-lightgreen div.div-themeable {
  background: var(--color-primary) !important;
}

#card-opening-sides.default.theme-lightgreen {
  --open-hint-color: #fff8ed;
}

#card-opening-sides.default.theme-lightgreen .card-side {
  --slide-card-color: #697a50;
}

.card-section {
  position: relative;
  padding: 50px 0;
}

/* ==========================================================================
   MỞ THIỆP SLIDE 2 CÁNH
   ========================================================================== */
#card-opening-sides.is-done {
  display: none;
}

#card-opening-sides.is-opening {
  pointer-events: none;
}

#card-opening-sides.is-opening .card-side.left,
#card-opening-sides.is-opening .card-side.right {
  animation-play-state: running !important;
}

/* ==========================================================================
   1. BANNER
   ========================================================================== */
#card-banner {
  aspect-ratio: 420 / 652;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  padding: 0;
}

#card-banner .card-banner-inner {
  padding: 50px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  color: #fff;
  z-index: 1;
}

#card-banner::after {
  height: 260px;
  width: 100%;
  display: block;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(253, 251, 251, 0), rgba(1, 1, 1, 0.5));
}

#card-banner .wedding-text {
  font-size: 70px;
  line-height: 1;
  text-shadow: rgba(0, 0, 0, 0.2) 1px 2px 3px;
}

#card-banner .wedding-text.smaller {
  font-size: 50px;
}

#card-banner .wedding-name {
  font-size: 21px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#card-banner .wedding-date {
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 3px;
}

/* ==========================================================================
   2. COUNTDOWN & ENVELOPE
   ========================================================================== */
#card-countdown {
  background-image: url(../images/bg-0.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: contain;
  position: relative;
  overflow: hidden;
}

#card-countdown::before,
#card-countdown::after {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  z-index: 0;
  left: 0;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  background-attachment: scroll;
  background-origin: content-box;
  pointer-events: none;
}

#card-countdown::before {
  background-image: url(../images/bg-1.jpg);
  top: 0;
  height: 420px;
}

#card-countdown::after {
  background-image: url(../images/bg-2.jpg);
  bottom: -80px;
  height: 420px;
}

#card-countdown .card-countdown-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-color-primary);
  padding: 30px 16px;
}

#card-countdown .card-countdown-inner h2 {
  text-transform: uppercase;
  margin-top: 32px;
  margin-bottom: 45px;
  font-size: 90px;
  line-height: 1;
  color: var(--color-primary);
}

#card-countdown .card-countdown-inner h2.logo {
  text-align: center;
  margin-bottom: 32px;
}

#card-countdown .card-countdown-inner h2.logo img {
  height: 110px;
}

#card-countdown .card-countdown-inner h2 span {
  display: inline-block;
  position: relative;
  margin-left: -10%;
}

#card-countdown .card-countdown-inner h2 span span {
  transform: rotate(25deg);
  position: absolute;
  left: 40%;
  top: 22%;
}

#card-countdown .card-countdown-inner h3 {
  text-transform: uppercase;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 1px;
  font-weight: 400;
}

#card-countdown .card-countdown-inner .img {
  margin-top: 24px;
  padding: 0 16px;
}

#countdown .countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

#countdown .box,
#countdown .colon {
  font-size: 33px;
  color: var(--text-color-primary);
}

#countdown .colon {
  padding: 0 12px;
}

#countdown .box {
  min-width: 45px;
}

#envelop-photo {
  position: relative;
}

#envelop-photo .pt1 {
  width: 50%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  bottom: 36%;
  right: 6%;
  transform: rotate(10deg);
  transform-origin: center center;
  z-index: 1;
}

#envelop-photo .pt2 {
  background-image: url(../images/env-pt2.jpg);
  width: 46%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: absolute;
  bottom: 23%;
  left: 8%;
  transform: rotate(-2deg);
  z-index: 2;
  background-color: #fff;
  border: 5px solid #fff;
}

#envelop-photo > img {
  width: 100%;
}

#envelop-photo > img.front {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
}

/* ==========================================================================
   3. SAVE THE DATE
   ========================================================================== */
#card-save-the-date {
  height: 330px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#card-save-the-date::before {
  content: "";
  background-color: rgba(1, 1, 1, 0.3);
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}

#card-save-the-date h2 {
  position: absolute;
  z-index: 1;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  bottom: 0;
  left: 0;
  padding-left: 24px;
  padding-bottom: 10px;
  margin-bottom: 0;
  font-weight: 400;
}

#card-save-the-date h2 .font1 {
  text-transform: none;
  font-size: 84px;
  line-height: 1;
}

/* ==========================================================================
   4. CARD INFO
   ========================================================================== */
#card-info {
  background-image: url(../images/bg-0.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: contain;
  position: relative;
  overflow: hidden;
}

#card-info::before,
#card-info::after {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  background-attachment: scroll;
  background-origin: content-box;
  pointer-events: none;
}

#card-info::before {
  background-image: url(../images/bg-4.jpg);
  top: -20px;
  left: -20px;
  height: 420px;
}

#card-info::after {
  background-image: url(../images/bg-5.jpg);
  bottom: -70px;
  height: 210px;
  background-repeat: repeat-x;
}

#card-info .card-info-inner {
  color: var(--text-color-primary);
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px 30px;
}

#card-info .parents {
  margin-top: 50px;
  margin-bottom: 36px;
  display: flex;
  align-items: start;
  justify-content: center;
}

#card-info .parents .parent {
  text-align: center;
  font-size: 14px;
  flex: 1 1 0%;
}

#card-info .parents .parent .label {
  text-transform: uppercase;
}

#card-info .parents .v-divider {
  height: 90px;
  background-color: var(--color-primary);
  width: 2px;
  margin: 0 20px;
}

#card-info .parents.hide-titles .name-title {
  display: none;
}

#card-info .text {
  font-size: 14px;
}

#card-info .names {
  margin-top: 24px;
  margin-bottom: 10px;
}

#card-info .names .name {
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#card-info .names .and {
  font-size: 59px;
  line-height: 45px;
  letter-spacing: 1px;
  margin-top: -8px;
  margin-bottom: 5px;
}

#card-info .date-and-time {
  margin: 16px 0;
}

#card-info .date-and-time .date-and-time-inner {
  display: inline-block;
  border-top: 2px solid;
  border-bottom: 2px solid;
  padding: 8px 0;
}

#card-info .date-and-time .date-and-time-inner .time {
  font-size: 30px;
  line-height: 1.3;
  text-transform: uppercase;
}

#card-info .date-and-time .date-and-time-inner .date {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#card-info .date-and-time .lunar-date {
  margin-top: 12px;
}

#card-info .hotel {
  font-size: 23px;
  text-transform: uppercase;
}

#card-info .address {
  font-size: 16px;
  font-style: italic;
}

#card-info .btn {
  margin: 16px auto auto;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-primary);
  font-size: 110%;
}

#card-info .event-separator {
  margin: 24px auto;
}

#card-info .event-separator img {
  width: 180px;
  opacity: 0.5;
}

#card-info .multiple-events .names {
  margin-bottom: 16px;
}

#card-info .multiple-events .date-and-time {
  margin-top: 5px;
}

#card-info .multiple-events .date-and-time .date-and-time-inner {
  border-top: 0;
  border-bottom: 0;
}

#card-info .multiple-events .date-and-time .lunar-date {
  margin-top: 0;
}

#card-info .multiple-events .event-title {
  display: inline-block;
  padding: 8px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 24px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

#card-info .multiple-events .horizontal-divider {
  border-top: 2px dashed var(--color-primary);
  opacity: 0.5;
  margin: 30px 24px;
}

#card-info .both-sides .names {
  margin-bottom: 24px;
}

#card-info .both-sides .date-and-time {
  margin-top: 5px;
}

#card-info .both-sides .date-and-time .date-and-time-inner {
  border-top: 0;
  border-bottom: 0;
}

#card-info .both-sides .date-and-time .lunar-date {
  margin-top: 0;
}

#card-info .both-sides .side-event-title {
  display: inline-block;
  padding: 8px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 24px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

#card-info .both-sides .horizontal-divider {
  border-top: 2px dashed var(--color-primary);
  opacity: 0.5;
  margin: 30px 24px;
}

/* ==========================================================================
   5. LOVE STORY
   ========================================================================== */
#card-love-story {
  background-image: url(../images/bg-0.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: contain;
  position: relative;
  overflow: hidden;
}

#card-love-story .card-love-story-inner {
  position: relative;
  z-index: 1;
}

#card-love-story h2 {
  margin-bottom: 50px;
  font-size: 30px;
  text-align: center;
  color: var(--color-primary);
  text-transform: uppercase;
}

#card-love-story h2 .font1 {
  text-transform: none;
  font-size: 60px;
}

#card-love-story div.sub-title {
  margin-bottom: 50px;
  color: var(--text-color-primary);
  text-align: center;
  margin-top: -44px;
  padding: 0 16px;
}

#card-love-story .groom-bride {
  color: var(--text-color-primary);
}

#card-love-story .groom-bride .groom,
#card-love-story .groom-bride .bride {
  display: flex;
}

#card-love-story .groom-bride .groom .img,
#card-love-story .groom-bride .groom .info,
#card-love-story .groom-bride .bride .img,
#card-love-story .groom-bride .bride .info {
  width: 50%;
}

#card-love-story .groom-bride .groom .info > div {
  top: 40px;
  left: 45%;
  transform: translateX(-50%);
  width: 100%;
}

#card-love-story .groom-bride .groom .img .img-inner {
  width: calc(100% + 24px);
  transform: rotate(-10deg) translateX(-10px);
}

#card-love-story .groom-bride .bride .info > div {
  top: 16px;
  left: 52%;
  transform: translateX(-50%);
  width: 100%;
}

#card-love-story .groom-bride .info {
  position: relative;
}

#card-love-story .groom-bride .info > div {
  position: absolute;
  text-align: center;
}

#card-love-story .groom-bride .info > div .label {
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
}

#card-love-story .groom-bride .info > div .name {
  font-size: 24px;
  text-transform: uppercase;
}

#card-love-story .groom-bride .info > div .dob {
  font-size: 20px;
}

#card-love-story .groom-bride .img {
  position: relative;
  flex: 1 1 0%;
  text-align: center;
  z-index: 1;
}

#card-love-story .groom-bride .img .img-inner {
  text-align: center;
  position: relative;
  margin: auto;
  width: 100%;
  background: #fff;
  padding: 12px;
  box-shadow: rgb(182, 182, 182) 1px 3px 1px 0;
  border-radius: 2px;
  transform: rotate(-15deg);
}

#card-love-story .groom-bride .img .img-inner img {
  position: relative;
}

#card-love-story .groom-bride .img:last-child {
  transform: rotate(20deg) translate(-15%, -15%);
  z-index: 0;
}

#card-love-story .timeline {
  margin-top: 50px;
  padding: 0 20px;
  color: var(--text-color-primary);
  position: relative;
}

#card-love-story .timeline.paragraph {
  margin-top: 30px;
}

#card-love-story .timeline::before {
  content: "";
  display: block;
  width: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 20px;
  top: 12px;
  height: calc(100% - 12px);
}

#card-love-story .timeline.paragraph::before {
  content: none;
}

#card-love-story .timeline .timeline-event {
  padding-left: 20px;
  margin-bottom: 28px;
}

#card-love-story .timeline.paragraph .timeline-event {
  padding-left: 0;
  text-align: justify;
}

#card-love-story .timeline .timeline-event .name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.6;
  position: relative;
}

#card-love-story .timeline .timeline-event .name::before {
  content: "";
  position: absolute;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--color-primary);
  top: 50%;
  left: -23px;
  z-index: 1;
  transform: translateY(-50%);
}

#card-love-story .timeline .timeline-event .text {
  margin-top: 4px;
  font-size: 15px;
}

#card-love-story .timeline.paragraph .timeline-event .text {
  margin-top: 0;
  font-size: 16px;
}

#card-love-story .timeline .timeline-event:last-child {
  margin-bottom: 0;
}

#card-love-story .timeline .timeline-event .name:empty::before {
  transform: none;
  top: 10px;
}

#card-love-story .video-wrapper {
  padding: 20px 20px 0;
}

/* ==========================================================================
   6. FILMSTRIP & PHOTO GALLERY
   ========================================================================== */
#card-gallery {
  background-image: url(../images/bg-0.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: contain;
  position: relative;
  padding: 0;
  background-color: rgb(63, 92, 132);
  color: #fff;
}

#card-gallery-film-frame {
  position: relative;
}

#card-gallery-film-frame > img {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
}

#card-gallery-film-frame .fill-frame-inner {
  aspect-ratio: 575 / 153;
  width: 100%;
  padding: 0;
}

#card-gallery-film-frame .fill-frame-inner > div {
  padding: 4% 0;
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: -18.5%;
  gap: 1.5px;
}

#card-gallery-film-frame .fill-frame-inner .img {
  aspect-ratio: 314 / 216;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-origin: content-box;
  background-position: center center;
  background-repeat: repeat;
  background-attachment: scroll;
}

#card-gallery .card-gallery-header {
  color: var(--text-color-primary);
  padding: 20px;
}

#card-gallery .card-gallery-header .groom {
  display: flex;
}

#card-gallery .card-gallery-header .groom .info {
  width: 50%;
}

#card-gallery .card-gallery-header .groom .info > div {
  top: 20px;
  left: -5px;
}

#card-gallery .card-gallery-header .groom .info > div .name {
  margin-top: -16px;
  padding-left: 24px;
}

#card-gallery .card-gallery-header .groom .info > div .font1 {
  font-size: 70px;
}

#card-gallery .card-gallery-header .groom .img {
  width: 50%;
}

#card-gallery .card-gallery-header .groom .img .img-inner {
  width: calc(100% + 60px);
  transform: rotate(-5deg) translateX(-10px);
}

#card-gallery .card-gallery-header .bride {
  margin-top: -80px;
  display: flex;
}

#card-gallery .card-gallery-header .bride .info {
  width: 45%;
}

#card-gallery .card-gallery-header .bride .info > div {
  bottom: 20%;
  left: 15%;
}

#card-gallery .card-gallery-header .bride .img {
  padding-left: 15px;
  width: 55%;
}

#card-gallery .card-gallery-header .info {
  position: relative;
}

#card-gallery .card-gallery-header .info > div {
  position: absolute;
}

#card-gallery .card-gallery-header .info > div .label {
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
}

#card-gallery .card-gallery-header .info > div .name {
  font-size: 24px;
  text-transform: uppercase;
}

#card-gallery .card-gallery-header .info > div .dob {
  font-size: 20px;
}

#card-gallery .card-gallery-header .img {
  position: relative;
  flex: 1 1 0%;
  text-align: center;
  z-index: 1;
}

#card-gallery .card-gallery-header .img .img-inner {
  text-align: center;
  position: relative;
  margin: auto;
  width: 100%;
  background: #fff;
  padding: 12px;
  box-shadow: rgb(182, 182, 182) 1px 3px 1px 0;
  border-radius: 2px;
  transform: rotate(-8deg);
}

#card-gallery .card-gallery-header .img .img-inner img {
  position: relative;
}

#card-gallery .card-gallery-header .img:last-child {
  transform: rotate(20deg) translate(-15%, -15%);
  z-index: 0;
}

#card-gallery .card-gallery-header-background {
  background-image: url(../images/bg-6.jpg);
  height: 300px;
  background-size: 100% auto;
  background-position: left bottom;
  margin-top: -180px;
}

.photo-grid {
  column-count: 2;
  column-gap: 5px;
}

.photo-grid .photo {
  width: 100%;
  display: block;
  margin-bottom: 5px;
}

.photo-grid .photo img {
  width: 100%;
  display: block;
}

.photo-grid + .view-more {
  margin-top: 50px;
}

.photo-grid[data-masonry] {
  column-gap: unset;
  column-count: unset;
  margin: 0 -3px;
}

.photo-grid[data-masonry] .photo {
  padding: 3px;
  width: 50%;
  margin-bottom: 0;
}

.photo-grid[data-masonry] .photo img {
  height: auto;
}

/* ==========================================================================
   7. MINI CALENDAR
   ========================================================================== */
#card-calendar {
  border-bottom: 2px solid var(--color-primary);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-image: url(../images/bg-0.jpg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#card-calendar::before {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  background-attachment: scroll;
  background-origin: content-box;
  background-image: url(../images/bg-4.jpg);
  top: -20px;
  left: -20px;
  height: 420px;
  pointer-events: none;
}

#card-calendar > .inner {
  position: relative;
  z-index: 1;
  padding: 36px 16px;
}

#card-calendar .calendar-header {
  margin-bottom: 30px;
}

#card-calendar .calendar-header .year {
  font-size: 95.22px;
  line-height: 1;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: -45px;
}

#card-calendar .calendar-header .month {
  font-size: 80.69px;
  line-height: 1;
  color: var(--color-primary);
  text-align: center;
}

#card-calendar .mini_calendar {
  --tb-border-color: transparent;
  --tb-color: var(--text-color-primary);
  --tb-day-color: var(--text-color-primary);
  --tb-header-color: var(--text-color-primary);
  --tb-color-wedding-day: var(--color-primary);
  --tb-color-wedding-day-text: #fff;
}

#card-calendar .mini_calendar th {
  text-transform: uppercase;
}

#card-calendar .mini_calendar table tr td {
  height: 35px;
}

.mini_calendar table .today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.mini_calendar table .today .heart {
  visibility: visible;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
}

.mini_calendar table .today .heart.started i {
  color: #d43f4a;
}

.mini_calendar table .today .heart.started + span.day {
  color: #fff;
  z-index: 1;
}

/* ==========================================================================
   8. TIMELINE & DRESSCODE
   ========================================================================== */
#card-timeline {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 55px 16px;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#card-timeline .timeline-title {
  font-size: 40px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: center;
  font-weight: 400;
  margin-bottom: 24px;
}

#card-timeline::before {
  content: "";
  background-color: rgba(1, 1, 1, 0.4);
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}

#card-timeline .timeline-inner {
  position: relative;
  text-align: center;
  color: #fff;
}

#card-timeline .timeline-items {
  display: flex;
  justify-content: center;
  position: relative;
  color: #fff;
}

#card-timeline .timeline-items::before {
  content: "";
  position: absolute;
  display: block;
  height: 1px;
  background-color: #fff;
  width: 100%;
  top: 46px;
}

#card-timeline .timeline-items .timeline-item {
  position: relative;
  text-align: center;
  flex: 1 1 0%;
  min-width: 85px;
}

#card-timeline .timeline-items .timeline-item .timeline-item-icon {
  position: relative;
  display: inline-block;
  height: 36px;
  margin-bottom: 16px;
}

#card-timeline .timeline-items .timeline-item .timeline-item-icon img {
  max-height: 100%;
}

#card-timeline .timeline-items .timeline-item .timeline-item-icon::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  position: absolute;
  background-color: #fff;
  border-radius: 5px;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}

#card-timeline .timeline-items .timeline-item .timeline-item-content {
  margin-top: 12px;
  position: relative;
}

#card-timeline .timeline-items .timeline-item .timeline-item-content .time {
  font-size: 17px;
  line-height: 1.1;
  margin-bottom: 4px;
}

#card-timeline .timeline-items .timeline-item .timeline-item-content .title {
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-wrapper img.img-themeable-default {
  filter: brightness(0) invert(1);
}

.card-wrapper #card-timeline .timeline-items .timeline-item .timeline-item-icon {
  height: auto;
}

.card-wrapper #card-timeline .timeline-items .timeline-item .timeline-item-icon img {
  display: block;
  max-height: 36px;
}

#card-dresscode {
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-image: url(../images/bg-0.jpg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#card-dresscode .dresscode-inner {
  position: relative;
  padding: 40px 12px;
  text-align: center;
}

#card-dresscode .dresscode-title {
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: center;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--color-primary);
}

#card-dresscode .dresscode-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card-dresscode .dresscode-wrapper .code-box {
  position: relative;
  width: 40px;
  height: 40px;
  box-shadow: rgb(0, 0, 0) 0 15px 20px -15px;
  background-color: var(--color);
  border-radius: 40px;
  margin-left: -8px;
}

/* ==========================================================================
   9. GIFT, BANKS, COMMENTS & FOOTER
   ========================================================================== */
#card-gift {
  background-image: url(../images/bg-0.jpg);
  background-position: center center;
  background-size: contain;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--color-primary);
}

#card-gift .inner {
  position: relative;
  padding: 0 20px;
  z-index: 1;
}

#card-gift .card-section-title {
  font-size: 60px;
  margin-bottom: 0;
  color: var(--color-primary);
  text-align: center;
}

#card-gift .card-section-subtitle {
  margin-bottom: 24px;
  color: var(--color-primary);
  text-align: center;
}

#card-gift .present-box {
  text-align: center;
}

#card-gift .present-box .present-box-inner {
  color: var(--color-primary);
  border: 2px solid;
  padding: 16px;
  border-radius: 8px;
  display: inline-block;
  margin: auto;
  cursor: pointer;
}

#card-gift .present-box .present-box-inner img {
  width: 200px;
}

#card-banks {
  background-image: url(../images/bg-0.jpg);
  background-position: center center;
  background-size: contain;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--color-primary);
}

#card-banks .inner {
  position: relative;
  padding: 0 24px;
  z-index: 1;
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bank-list .bank-box {
  flex: 1 1 0%;
  padding: 16px;
  border: 2px dashed var(--color-primary);
  border-radius: 12px;
  text-align: center;
  color: var(--color-primary);
}

.bank-list .bank-box.single {
  border: 0;
}

.bank-list .bank-box .title {
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.bank-list .bank-box .qr-code img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  margin: auto;
  max-width: 300px;
}

.bank-list .bank-box.single .qr-code img {
  max-width: 85%;
}

.bank-list .bank-box .info > div {
  margin: 10px 0;
}

.bank-list .bank-box .info > div:last-child {
  margin-bottom: 0;
}

#card-comments {
  background-image: url(../images/bg-0.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: contain;
  position: relative;
  overflow: hidden;
}

#card-comments::after {
  content: none;
}

#card-comments .inner {
  position: relative;
  padding: 0 20px;
  z-index: 1;
}

#card-comments .card-section-title,
#card-banks .card-section-title {
  font-size: 60px;
  margin-bottom: 0;
  color: var(--color-primary);
  text-align: center;
}

#card-comments .card-section-subtitle,
#card-banks .card-section-subtitle {
  margin-bottom: 24px;
  color: var(--text-color-primary);
  text-align: center;
}

#card-comments .comment-form {
  background-color: rgba(var(--color-primary-raw), 0.25);
  padding: 16px;
}

#card-comments .comment-list .comment-box {
  padding: 12px 0;
  color: var(--text-color-primary, #333);
}

#card-comments .comment-list .comment-box .fullname {
  font-weight: 500;
  color: var(--color-primary);
}

#card-comments .thankyou {
  font-size: 65px;
  color: var(--color-primary);
  text-align: center;
  margin-top: 32px;
  margin-bottom: 100px;
}

.footer-text {
  color: var(--color-primary);
  text-align: center;
  font-size: 14px;
  margin-top: -90px;
  margin-bottom: 30px;
}

#card-footer {
  background-image: url(../images/bg-0.jpg);
  background-repeat: repeat-y;
  background-position: center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

#card-footer .inner {
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

#card-footer::before {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  z-index: 0;
  left: 0;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  background-attachment: scroll;
  background-origin: content-box;
  background-image: url(../images/bg-7.jpg);
  bottom: 0;
  height: 420px;
  pointer-events: none;
}

#card-footer .thankyou-title {
  font-size: 65px;
  color: var(--color-primary);
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
}

#card-footer .thankyou-text {
  color: var(--color-primary);
  text-align: center;
  font-size: 14px;
  margin-top: -20px;
  margin-bottom: 60px;
}

.shuttle-register-wrapper {
  text-align: center;
  margin-bottom: 80px;
}

.shuttle-register-wrapper .title {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 23px;
}

.shuttle-register-wrapper .link-qr {
  margin: 16px 0;
}

.shuttle-register-wrapper .link-qr img {
  width: 240px;
}

.shuttle-register-wrapper .btn {
  min-width: 140px;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media screen and (max-width: 480px) {
  #card-love-story .groom-bride.smaller .info > div .name {
    font-size: 22px;
  }

  #card-love-story .groom-bride.smaller .img:last-child {
    transform: rotate(20deg) translate(-10%, -15%);
  }
}

@media screen and (min-width: 400px) {
  #card-banner .wedding-text {
    font-size: 75px;
  }
}

@media screen and (min-width: 500px) {
  #card-timeline .timeline-items .timeline-item {
    min-width: 120px;
  }

  #card-banner .wedding-text.smaller {
    font-size: 65px;
  }
}

@media screen and (min-width: 600px) {
  #card-info::after {
    bottom: -120px;
    width: 100%;
    height: 300px;
  }

  #card-love-story .groom-bride .bride .info > div {
    top: 16px;
    transform: scale(1.15) translateX(-50%);
  }

  #card-love-story .groom-bride .groom .info > div {
    top: 80px;
    transform: scale(1.15) translateX(-50%);
  }

  #envelop-photo .pt2 {
    border: 12px solid #fff;
  }
}

/* ==========================================================================
   LIGHTBOX & TOAST
   ========================================================================== */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}

.lb-btn {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
}

.lb-close {
  top: 18px;
  right: 18px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.wedding-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 26, 22, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  transition: opacity 0.25s, transform 0.25s;
}

.wedding-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
