@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Shadows+Into+Light+Two&family=Playfair+Display:wght@600&display=swap');

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Georgia', serif;
  background-color: #f5f5f5;
  background-image: linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
  background-size: 100% 32px;
  background-repeat: repeat;
  margin: 0;
  padding: 0;
  color: #222;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;s
  left: 50px;
  width: 2px;
  height: 100%;
  background: #e60000;
  z-index: 0;
}

/* HEADER */


.hero-header {
  position: relative;
  width: 100%;
  height: 115vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero-text h2 {
  font-family: 'Shadows Into Light Two', cursive;
  font-size: 1.6em;
  margin: 10px 0;
  color: #fff;
  font-weight: 400;
}

.hero-text h3 {
  font-family: 'Georgia', serif;
  font-size: 1.2em;
  font-style: italic;
  color: #f0f0f0;
  font-weight: 400;
}

.handwriting-effect {
  font-family: 'Shadows Into Light Two', cursive;
  font-size: 1.4em;
  white-space: normal;
  overflow: hidden;
  text-align: center;
}

/* PHOTO CREDIT */
.photo-credit {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.85em;
  color: rgba(255,255,255,0.85);
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;
  border-radius: 4px;
  font-family: Georgia, serif;
  z-index: 2;
}

/* MAIN TEXT */
.maintext {
  background: #ffffff;
  padding: 30px;
  margin: -200px auto 60px;
  max-width: 850px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
  position: relative;
  z-index: 3;
}

.maintext > p:first-of-type::first-letter {
  float: left;
  font-size: 3em;
  line-height: 1;
  padding-right: 8px;
  font-weight: bold;
}

/* FOOTER */
footer {
  background: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  color: #555;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
}

/* HEADER PHOTO BLOCK */
.header-photo-block {
  max-width: 800px;
  margin: 30px auto 10px;
  text-align: center;
}
.header-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* WRAPPED PHOTO */
.wrap-photo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 40px auto;
  max-width: 850px;
}

.wrap-photo img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.wrap-text {
  flex-grow: 1;
  display: block;
}

.wrap-text p {
  margin-top: 0;
  margin-bottom: 16px;
  font-family: 'Georgia', serif;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
}

.timeline-title-below {
  text-align: center;
  margin-top: 15px;
  font-family: 'Pacifico', cursive; /* Your handwritten font */
  font-size: 1rem;
}


/* COMPOSITION WALL */
.composition-wall {
  background: white;
  margin: 80px auto;
  max-width: 850px;
  text-align: center;
  position: relative;
}

.collage-fullwidth {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.timeline-title {
  text-align: center;
  margin-top: 10px; /* Adjust this value to reduce the top space */
  margin-bottom: -30px; /* Negative margin to reduce the gap */
}

iframe {
  display: block;
  margin: 0 auto;
  padding: 0;
}


/* AUDIO SECTION */
.audio-section {
  background: #fdfbf7;
  padding: 30px 40px;
  margin: 80px auto;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  font-family: 'Georgia', serif;
  font-size: 1.1em;
  color: #333;
  line-height: 1.6;
}

.audio-section p {
  margin-bottom: 20px;
}

.audio-section audio {
  width: 90%;
  max-width: 450px;
  margin-top: 10px;
}

/* AUTHOR SECTION */
.author-section {
  max-width: 850px;
  margin: 80px auto;
  border-radius: 8px;
}

.author-collage {
  width: 95%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
  .hero-header {
    height: 70vh;
  }

  .hero-text h1 {
    font-size: 2em;
  }

  .hero-text h2 {
    font-size: 1.2em;
  }

  .hero-text h3 {
    font-size: 1em;
  }

  .photo-credit {
    font-size: 0.75em;
    right: 10px;
    bottom: 8px;
    padding: 5px 8px;
  }

  .wrap-photo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wrap-photo img {
    width: 80%;
    max-width: 300px;
    margin-bottom: 20px;
  }

  .wrap-text {
    width: 100%;
    text-align: left;
  }

  .maintext {
    padding: 30px 20px;
    margin: -30px auto 40px;
  }

  .audio-section {
    padding: 20px;
  }

  .audio-section audio {
    width: 100%;
  }



  footer {
    padding: 20px;
    font-size: 0.9em;
  }
}
