@font-face {
        font-family: 'lazy_dog';
        src: url('/assets/lazy_dog.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
        font-display: swap;
      }
      
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background-color: var(--color-body-background);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--size-font);
}
.page {
  height: 100%;
  display: flex;
  flex-direction: column;
}
header, .site-width {
  max-width: var(--size-site-width);  
  margin: 0 auto;
  width: calc(100% - 40px);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  --size-site-width: 1500px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}
nav li {
  position: relative;
}
.nav-active {
  opacity: 1;
}
nav ul a {
  transition: opacity .2s ease-in-out;
  opacity: .6;
}
nav ul a:hover {
  opacity: .9;
}
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}
h1 {
  color: var(--primary-color);
}
a {
  color: inherit;
  text-decoration: none;
}
main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-basis: 100%;
}
img {
  width: 100%;
  height: auto;
}

main > div:not(.active) {
  display: none !important;
}
.justify-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.row {
  display: flex;
  gap: 1rem;
}
.row-1 {
flex-basis:8.33333%;
max-width:8.33333% 
}
.row-2 {
flex-basis:16.66667%;
max-width:16.66667% 
}
.row-3 {
flex-basis:25%;
max-width:25% 
}
.row-4 {
flex-basis:33.33333%;
max-width:33.33333% 
}
.row-5 {
flex-basis:41.66667%;
max-width:41.66667% 
}
.row-6 {
flex-basis:50%;
max-width:50% 
}
.row-7 {
flex-basis:58.33333%;
max-width:58.33333% 
}
.row-8 {
flex-basis:66.66667%;
max-width:66.66667%;
}
.row-9 {
flex-basis:75%;
max-width:75% 
}
.row-10 {
flex-basis:83.33333%;
max-width:83.33333% 
}
.row-11 {
flex-basis:91.66667%;
max-width:91.66667% 
}
.row-12 {
flex-basis:100%;
max-width:100% 
}
.row-centered {
margin-left:auto;
margin-right:auto 
}
.row-uncentered {
margin-left:0;
margin-right:0 
}
.row-last {
margin-left:auto 
}
.row-first {
margin-right:auto 
}
.row-notlast {
margin-left:0 
}
.row-grow {
flex:auto;
max-width:none 
}
.row-ungrow {
flex:initial;
max-width:none 
}
.carousel {
  position: relative;
}
.carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #560216;
  border: none;
  color: white;
  font-size: inherit;
  padding: .8rem;
  cursor: pointer;
}
.carousel .arrow.left {
  left: 0;
}
.carousel .arrow.right {
  right: 0;
}
.images {
  display: flex;
  gap: 1rem;
  height: 400px;
  scroll-snap-type: x mandatory;
  overflow-x: scroll;
  overflow-y: hidden;
  -ms-overflow-style: none;
  margin: 0 auto;
  scrollbar-width: none;
}
.images img {
  flex-basis: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: contain;
}
.images > div {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Editor */
[contentEditable] {
  outline: 2px dashed #0003;
  transition: outline .1s ease-in-out, background-color .1s ease-in-out;
}
[contentEditable]:hover {
    outline: 2px solid blue;
}
[contentEditable]:focus {
    outline: 2px solid blue;
}
.images button {
  display: none;
}
body.editing .images button {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.imagePopup {
  position: fixed;
  inset: 0;
  background-color: #0000001c;
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  display: none;
  z-index: 1;
}
.imagePopup > div { 
  max-width: 840px;
  width: 100%;
  background-color: white;
  padding: 0 1rem 1rem 1rem;
  border-radius: 10px;
}
.imagePopup .closeImagePopup {
  text-align: right; 
}
.imagePopup .closeImagePopup i {
  padding: 12px 0 12px 12px;
  cursor: pointer;
}
.editing .imagePopup.open {
  display: flex;
}
body:not(.editing) .showEdit {
  display: none;
}
.chamgeImages {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  outline: 2px dashed #0003;
  border-radius: 10px;
}
.chamgeImages > div {
  width: 150px;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: start;
}
.chamgeImages > div[onclick] {
  background-color: #0003;
  font-size: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 1rem;
  z-index: 1;
  width: 300px;
  flex-direction: column;
}
.progress-container > div {
  background-color: white;
  border-radius: 10px;
  color: #560216;
}
.progress-container span {
  padding: 1rem;
  display: block;
}
.progress-bar {
  background-color: #0003;
  height: 6px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
}
.progress-bar > div {
  background-color: blue;
  height: 100%;
  transition: width 0.3s ease;
  width: 0;
}
button {
  background-color: black;
  color: white;
  padding: .3rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: .8rem;
  display: inline-block;
  outline: 1px solid black;
  font-family: inherit;
}
.addBanner {
  text-align: center;
}
.deleteBanner {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
  background-color: red;
  outline: 1px solid red;
  z-index: 99;
  margin: 12px;
}
section {
  isolation: isolate;
}
section:hover .deleteBanner {
  visibility: visible;
  opacity: 1;
}


    body:not(.editing).overlay-visible {
      overflow: hidden;
    }
    .overlay-container {
      position: fixed;
      inset: 0;
      z-index: 999;
      background-color: white;
    }
    .overlay-video {
      width: 100vw;
      height: 100svh;
      object-fit: cover;
    }
    .overlay-container button:not(.overlay-button) {
      display: none;
    }
    .overlay-button {
      position: fixed;
      top: 55%;
      right: 0%;
      transform: translate(-50%, -50%);
      padding: 18px 90px;
      border-radius: 32px;
      border: 2px solid #791044;
      color: #791044;
      background-color: #faf9f5;
      font-weight: 600;
      font-family: "Roboto", serif;
      font-size: 28px;
      box-shadow: 10px 10px 10px #00000054;
      animation-name: fadeIn;
      animation-duration: 1s;
      animation-fill-mode: forwards;
      animation-delay: 6.2s;
      opacity: 0;
      cursor: pointer;
      z-index: 99;
    }
    .overlay-button-2 {
      border-radius: 15px;
  background-color: #ffc6a3;
  color: white;
  border-color: #643010;
  box-shadow: 8px 8px #cf7740;
  font-size: 32px;
  animation-delay: 3.2s;
    }

    .overlay-skip {
      position: fixed;
      top: 50px;
      right: 10px;
      background-color: transparent;
      color: white;
      outline: 1px solid white;
      padding: 10px 20px;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      z-index: 1000;
      display: block !important;
      font-family: "Roboto", serif;
    }


    body:not(.overlay-visible) .overlay-container {
  display: none;
}


body.editing .overlay-container {
  display: none;
}

.mobile-visible .overlay-button {
      top: 59%;
    left: 50%;
    right: unset;
    white-space: nowrap;
    padding: 13px 60px;
  font-size: 22px;
}


.password-modal {
  font-family: "Roboto", sans-serif;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.password-modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: calc(100% - 40px);
}
.password-modal-content > div {
  display: flex;
  gap: 1rem;
  margin-top: .4rem;
}
.password-modal input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}


    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

.deletePage {
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease-in-out, visibility .2s ease-in-out;
  display: flex;
    position: absolute;
    gap: 7px;
    transform: translate(-50%, -100%);
    left: 50%;
    top: 0;
}
li:hover .deletePage {
  visibility: visible;
  opacity: 1;
}
.card {
  border: 1px solid #bdbdbd75;
}
.card-content {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card-content p {
  text-align: justify;
}

.parallax img {
  height: 140%;
  margin-top: -20%;
}
.parallax-card { 
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-card > div {
  max-width: 70%;
  padding: 2rem 0;
}
.parallax-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}
.parallax-card p {
  font-size: 18px;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column !important;
  }
  .row > div {
    flex-basis: unset;
    max-width: unset;
  }
}


/* template1 */
#template1 .home, #template1 .home section, #template1 .home .row, #template1 .home .row-6 > .carousel, #template1 .home .row-6 > .carousel .images {
  height: 100%;
  min-height: 400px;
}
#template1 .home .row-8 .images {
  height: 450px;
}
#template1 .memories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  width: calc(100% - 40px);
}
#template1 .memories .images {
  height: 550px;
}
#template1 {
  font-family: "Libre Baskerville", serif;
}
#template1 h2 {
  font-size: 35px;
  color: var(--secondary-color);
  font-weight: normal;
}
#template1 h1 {
  font-size: 40px;
  font-weight: normal;
}
#template1 h3 {
  color: var(--secondary-color);
}
#template1 main {
  border-top: 1px solid #bdbdbd75;
}
#template1 .home .carousel:first-child {
  border-right: 1px solid #bdbdbd75;
}
#template1 footer {
  width: 50%;
  margin: 0 0 0 auto;
}
#template1 footer p {
  margin: 15px 0;
}
#template1 .page {
  height: 106%;
}
#template1 .home .row-8 {
  justify-content: space-evenly;
}
#template1 .home-card {
  display: flex;
      flex-direction: column;
      gap: 1rem;
}

/* template2 */
#template2 .home, #template2 .home .row, #template2 .home .carousel, #template2 .home .carousel .images {
  height: 100%;
}
#template2 .home section {
  height: 120%;
}
#template2 .home section {
  position: relative;
  color: white;
}
#template2 .home .carousel {
  padding: 0 2rem 2rem 2rem;
}
#template2 .home .images {
  position: relative;
}
#template2 .home .images button {
  top: 30px;
  z-index: 1;
}
#template2 .home .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -90%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
#template2 .home .overlay-bottom {
  position: absolute;
  bottom: 5%;
  right: 4%;
}
#template2 .images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: .5rem;
}
#template2 .images-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}
#template2 .card .images {
  height: unset;
  aspect-ratio: 3 / 4;
}
#template2 .memories {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 6rem;
  row-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 40px);
  align-items: start;
}
#template2 .memories section {
  grid-column: 1;
}
#template2 .gird-right {
  grid-column: 2 !important;
  grid-row: 1 / 10;
  z-index: 1;
}
#template2 h1 {
    font-size: 42px;
}
#template2 ul {
  font-size: 20px;
}
#template2 .home h2 {
  font-family: "Dancing Script", cursive;
  font-size: 80px;
}
#template2 .home h3 {
  font-size: 21px;
  text-transform: uppercase;
  font-weight: 300;
}
#template2 .home p {
  font-size: 20px;
}
#template2 {
  font-family: "Lato", sans-serif;
  font-weight: 300;
}

/* template3 */
#template3 .page {
  height: calc(100% + 60px);
}
#template3 .home {
  display: flex;
  flex-direction: column;
}
#template3 .home, #template3 .home section, #template3 .home section > .row:first-of-type {
  flex-basis: 100%;
}
#template3 .home section {
  display: flex;
  flex-direction: column;
}
#template3 .home .carousel, #template3 .home .images {
  height: 100%;
}
#template3 .memories img {
  object-fit: cover;
}
#template3 h1 {
  font-family: "Allison", cursive;
  font-size: 60px;
  font-weight: normal;
  line-height: 30px;
}
#template3 .home h2 {
  max-width: 33%;
  margin: 0 auto;
  background-color: var(--color-body-background);
  padding: 10px 0 0 0;
  font-weight: normal;
  font-size: 35px;
  color: var(--secondary-color);
}
#template3 .memories .row {
  gap: 0;
}
#template3 .memories section:nth-child(even) .row {
  flex-direction: row-reverse;
}
#template3 .carousel {
  height: 100%;
}
#template3 .memories .images {
  height: 800px;
}
#template3 ul {
  font-size: 18px;
}
#template3 footer p {
  margin: 22px 0;
}
.memories2 .images-grid {
  column-count: 4; 
  gap: 2rem;
    line-height: 4rem;
    padding: 3rem 4rem;
}
#template3 footer {
  color: var(--primary-color);
}
#template3 footer section {
  height: auto !important;
}
#template3 .transform30 {
  transform: translateY(-30px);
}


/* template4 */
#template4 .home.active + .memories {
    display: block !important;
}
#template4 header ul li:nth-child(2) {
    display: none;
}

#template4 .home section {
    position: relative;
    height: 730px;
    display: flex;
    justify-content: start;
    align-items: center;
}
#template4 .home .carousel {
    position: absolute;
    height: 730px;
    inset: 0;
    z-index: -1;
}
#template4 .home .images {
    height: 730px;
}
#template4 h1 {
    font-size: 50px;
}
#template4 h2 {
    font-size: 112px;
    line-height: 85px;
    margin-left: 50px;
    color: var(--primary-color);
    font-family: 'lazy_dog';
    text-shadow: 3px 3px 0 var(--color-body-background);
}
#template4 h3 {
    font-family: 'lazy_dog';
    font-size: 40px;
}
.revealUp {
    animation: revealUp;
    animation-duration: 1s;
    display: inline-block;
    opacity: 0;
    animation-fill-mode: forwards;
}
@keyframes revealUp {
  from {transform: translateY(30px); opacity: 0;}
  to {transform: translateY(0px); opacity: 1;}
}
#template4 .home .line1 {
    position: absolute;
    left: 1.5%;
    top: 0;
    width: 2px;
    height: 200px;
    background-color: var(--primary-color);
    z-index: 1;
}
#template4 .home .line2 {
    position: absolute;
    left: 70px;
    top: 650px;
    width: 2px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1;
}
.revealText {
        background-position: 100% center;
    background-size: 200% 100%;
    background-image: linear-gradient(to right, var(--revealText-color), var(--revealText-color) 50%, grey 50%);
        color: transparent;
            background-clip: text;
}
#template4 .memories > section > .row {
    margin-left: 90px;
}

#template4 .memories .row {
  gap: 0;
}
#template4 .memories > section {
    margin-bottom: 50px;
}
#template4 .memories p {
    padding: 18px;
    background-color: color-mix(in srgb, var(--primary-color), white 70%);
}
#template4 .memories section:nth-child(even) .row {
  flex-direction: row-reverse;
}
#template4 .memories section:nth-child(odd) .carousel::before {
      content: '';
    position: absolute;
    right: 0;
    z-index: 1;
    background-image: url(/assets/heart.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 50px;
    width: 50px;
    transform: translate(20px, -10px) rotate(21deg);
}
#template4 .memories .carousel {
  height: 100%;
}
#template4 .memories img {
  object-fit: cover;
}

/*
#template4 .home, #template4 .home .row, #template4 .home .carousel, #template4 .home .carousel .images {
  height: 100%;
}
#template4 .home section {
  height: 120%;
}
#template4 .home section {
  position: relative;
  color: white;
}
#template4 .home .carousel {
  padding: 0 2rem 2rem 2rem;
}
#template4 .home .images {
  position: relative;
}
#template4 .home .images button {
  top: 30px;
  z-index: 1;
}
#template4 .home .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -90%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
#template4 .home .overlay-bottom {
  position: absolute;
  bottom: 5%;
  right: 4%;
}

#template4 h1 {
    font-size: 42px;
}
#template4 ul {
  font-size: 20px;
}
#template4 .home h2 {
  font-family: "Dancing Script", cursive;
  font-size: 80px;
}
#template4 .home h3 {
  font-size: 21px;
  text-transform: uppercase;
  font-weight: 300;
}
#template4 .home p {
  font-size: 20px;
}
#template4 {
  font-family: "Lato", sans-serif;
  font-weight: 300;
}
*/
.images-grid img {
  transition: transform .2s ease-in-out;
}
.images-grid img:hover {
  transform: scale(1.03);
}

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

@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  header nav {
    position: fixed;
      top: 0;
      right: 0;
      background-color: color-mix(in srgb, var(--color-body-background) 75%, transparent);
      padding: 2rem;
      bottom: 0;
      z-index: 1;
      backdrop-filter: blur(3px);
      border-left: 1px solid var(--color-spacer);
      border-bottom: 1px solid var(--color-spacer);
      transform: translateX(100%); 
      transition: transform .3s ease-in-out;
              height: fit-content;
  }
  .nav-visible {
        transform: translateX(0);
    }
    header i {
      cursor: pointer;
    }
  header nav ul {
    gap: 1rem;
    padding: 0;
    font-size: 18px;
    flex-direction: column;
  }
  header {
    padding: 1rem 0;
  }
  .images > div {
    min-height: 400px;
  }
  

  #template1 h1 {
    font-size: 25px;
    line-height: 32px;
}
#template1 h2 {
  font-size: 28px;
}
#template1 .card {
  margin: 1rem;
}
#template1 .memories {
  grid-template-columns: 1fr;
}




  #template2 h1 {
      font-size: 25px;
    line-height: 32px;
  }
  #template2 .home .carousel {
    padding: 0;
}
#template2 .home .overlay {
  transform: unset;
        width: calc(100% - 2rem);
        top: 1.5rem;
        left: 1rem;
        bottom: 0;
        right: 0;
        gap: 1rem;
}
#template2 .home h2 {
  font-size: 48px;
}
#template2 .home h3 {
  font-size: 17px;
}
#template2 .home .overlay-bottom {
  bottom: 1rem;
  right: 1rem;
}
#template2 .home p {
  font-size: 18px;
}
#template2 .gird-right {
  order: 9999;
}
#template2 .memories {
          display: flex;
        flex-direction: column;
}
#template2 .images-grid {
  grid-template-columns: 1fr 1fr;
}


  #template3 h1 {
    font-size: 48px;
  }
  #template3 .transform30 {
    transform: translateY(0px);
  }
  #template3 .row-4.transform30 {
    flex-basis: 100% !important;
  }

  #template3 .home h2 {
    max-width: 100%;
  }
  #template3 .parallax-card {
    padding: 1rem 1.5rem;
    justify-content: left;
  }
  #template3 .parallax-card > div{
    max-width: 100%;
  }
  .memories2 .images-grid {
    column-count: 2; 
    gap: 1rem;
    line-height: 2rem;
    padding: 1rem 1rem;
  }
  #template3 .home .row-4:not(.transform30) {
    display: none;
  }

  #template3 .memories .images {
   height: 400px;
}


#template2 .editing .home .overlay {
  margin-top: 40px;
}
}
