html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Global styles */
body {
  font-family: 'Merriweather', serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Container layout */
.container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem 1.5rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Header */
h1 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.dates {
  font-style: italic;
  font-size: 1.05rem;
  color: #999;
  margin-bottom: 2rem;
}


::after, ::before {
  color: white
}
/* Swiper slideshow styles */
.swiper {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  background-color: #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #222;
  border-radius: 8px;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #222;
  display: block;
  margin: auto;
}

/* Video and obituary image */
#my-video,
.obituary img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Content sections */
.content-section {
  margin: 2.5rem 0;
  padding-bottom: 2rem;
  position: relative;
}

.content-section:not(:last-child)::after {
  content: "";
  display: block;
  width: 80%;
  margin: 2rem auto 0 auto;
  border-bottom: 1.5px solid #e0e0e0;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  width: 100%;
  background: #f7f7fa;
  color: #888;
  text-align: center;
  padding: 1.2rem 0 1.1rem 0;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

/* Responsive Fixes */
@media (max-width: 850px) {
  .container {
    margin: 2rem 1rem;
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .swiper {
    aspect-ratio: 4 / 3;
  }
}
