:root {
  --color-primary: #fe5226;
  --color-secondary: #9b9b9b;
  --color-accent: #9D7C7C;
  --color-shadow: #F4F4F3;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  font-family: 'Noto Serif TC', serif;
}

[data-en] {
  font-family: 'EB Garamond', serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
figure {
  margin: 0;
}

body {
  position: relative;
  margin: 0px;
  background: #000;
}

.focus-box {
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.238);
}

.focus {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.container {
  --cz-gutter-x: 2rem;
  --cz-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--cz-gutter-x) * .5);
  padding-left: calc(var(--cz-gutter-x) * .5);
  margin-left: auto;
  margin-right: auto;
}
/* header */
header {
  position: sticky;
  top: 10px;
  top: 0;
  padding: 10px;
  z-index: 999;
}

nav {
  text-align: center;
}
nav img {
  width: 80px;
}

.header-top-line,
.header-bottom-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.header-top-line img,
.header-bottom-line img {
  width: 20px;
  margin: 0 10px;
  position: relative;
}

.header-top-line::before,
.header-top-line::after,
.header-bottom-line::before,
.header-bottom-line::after {
  content: "";
  height: 1px;
  background-color: var(--color-primary);
}

.header-top-line::before,
.header-bottom-line::after {
  width: 20px;
}

.header-top-line::after {
  width: 100%;
}

.header-bottom-line::before {
  width: calc(100% - 40px);
}
/* End of header */

/* hero banner */
section.hero-banner {
  position: relative;
  height: 100vh;
  margin-top: -102.6px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/banner.webp");
  background-size: cover;
  background-position: top center;
  will-change: transform;
  /* 提升效能 */
  transform-origin: center center;
}

.name-img {
  width: 20vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

[data-spotlight] {
  /* display: inline-block; */
  /* --spotlight-x: 0px;
  --spotlight-y: 0px;
  --spotlight-radius: 150px;
  background-image: radial-gradient(circle 600px at -999px -999px, #fff 0%, rgba(255, 255, 255, 0) 80%), linear-gradient(#9b9b9b, #9b9b9b);
  background-repeat: no-repeat, repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: background-image; */
  color: var(--color-secondary);
}

#arrow-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate(0, 0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate(0, -30px);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate(0, -15px);
  }

  90% {
    transform: translate(0, -4px);
  }
}
/* End of hero banner */


/* getting-married */
#getting-married{
  height: 100vh;
  position: relative;
  padding: 102.6px 4% 0;
  background: linear-gradient(180deg, #fff, #fdf7f4);
  z-index: -1;
}
#getting-married > div{
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.getting-married-content{
  flex-basis: 50%;
  text-align: center;
}
.getting-married-content h2 {
  font-size: 36px;
  color: #404040;
  /* color: var(--color-secondary); */
  margin-bottom: 10px;
}

.getting-married-content h2 span {
  color: var(--color-primary);
  font-weight: bold;
}

.getting-married-date {
  font-family: 'EB Garamond', serif;
  font-size: 48px;
  color: var(--color-accent);
  margin: 20px 0;
}

.getting-married-sub {
  font-size: 18px;
  letter-spacing: 2px;
  color: #9d7c7c;
}
.getting-married-photo {
  height: 100%;
  flex-basis: 50%;
}
.getting-married-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* End of getting-married */

/* character section */
#character {
  height: 100vh;
  position: relative;
  padding: 102.6px 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(180deg, #fff, #fdf7f4);
  /* background: #000; */
  z-index: -1;
}

.character-img{
  flex-basis: 30%;
  height: 100%;
  aspect-ratio: 150 / 225;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.1);

}
.character-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.groom-part,
.bride-part {
  flex-basis: 35%;
  display: flex;
  justify-content: center;
}

.intro-text h2 {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  color: #9d7c7c;
  letter-spacing: 2px;
  text-align: center;
}

.intro-text h3 {
  font-size: 28px;
  color: #404040;
  margin: 10px 0;
}

.intro-text p {
  font-size: 16px;
  color: #777;
  line-height: 1.6;
  text-align: start;
}

/* End of character section */




/* photo-gallery section */

#photo-gallery{
  width: 100%;
  position: relative;
  padding: 60vh 4% 4%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#photo-gallery .bg{
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #000000;
}
.gallery-img{
  margin-bottom: 10vw;
  z-index: 1;
  width: 100%;
}
.gallery-img img{
  width: 40vw;
  height: 100%;
  object-fit: contain;
}
/*End of photo-gallery section */


/* wedding-info */
#wedding-info{
  display: flex;
}
#wedding-info .left-part,
#wedding-info .right-part{
  flex-basis: 50%;
}
#wedding-info .left-part img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* End ofwedding-info */

@media(min-width: 768px) {
  .mobile {
    display: none;
  }
}

@media(max-width: 767px) {
  .desktop {
    display: none;
  }
  /* hero section */
  .hero-bg {
    background-image: url("../img/banner-mobile.webp");
    background-position: center;
  }
  .name-img {
    width: 55vw;
    top: calc(50% - 40px);
  }
  #arrow-down {
    bottom: 70px;
  }
  /* End of hero section */

  /* getting-married */
  #getting-married{
    width: 100%;
    padding: 102.6px 4% 0;
    max-height: unset;
  }
  #getting-married > div{
    flex-wrap: wrap;
    gap: 20px;
  }
  .getting-married-photo,
  .getting-married-content{
    flex-basis: 100%;
  }
  .getting-married-photo img {
    object-position: top center;
  }
  .getting-married-content{
    order: -1;
  }
  /* End of getting-married */

  /* character section */
  #character{
    height: unset;
    flex-wrap: wrap;
  }
  .bride-part,
  .groom-part,
  .character-img{
    flex-basis: 100%;
  }
  .character-img{
    aspect-ratio: unset;
    text-align: center;
    box-shadow: unset;
  }

  .character-img img{
    width: 280px;
    height: 50vh;
    object-fit: cover;
    object-position: bottom center;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1);
  }
  .intro-text h2{
    text-align: start;
  }
  .intro-text p{
    margin: 0;
  }

  /* End of character section */

  

}


