body {
  margin: 0;
  font-family: 'Roboto', sans-serif; font-weight: 300;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
}

/* Header with thin blue line */
header {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1.5rem 1rem;
  position: relative;
}

header::after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background-color: #0057b7; /* Thin blue line */
}

header h1 {
  font-size: 3.0rem;
  font-family: 'Oswald', sans-serif; font-weight: 2000;
  margin-bottom: 0.2rem;
  letter-spacing: 0.3px;
}

header h2 {
  font-weight: normal;
  font-family: 'Roboto', sans-serif; font-weight: 300;
  font-size: 1.5rem;
  color: #ccc;
  margin-top: 0;
}

/* Main content now wider */
main {
  max-width: 1100px; /* was 800px */
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Image gallery */
.gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery img {
  border-radius: 6px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  object-fit: cover;
  height: auto;
}

/* Natural sizes, but guided widths */
.gallery img:nth-child(1),
.gallery img:nth-child(2),
.gallery img:nth-child(3) {
  width: 340px;
}

.gallery img:hover {
  filter: grayscale(0%);
}

/* Bio and memorial info */
.bio {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.bio p {
  text-align: justify;
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.memorial-details {
  background-color: #f7f7f7;
  padding: 1.5rem;
  border-left: 4px solid #000;
  font-size: 1.2rem;
}

.memorial-details h3 {
  margin-top: 0;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif; font-weight: 2000;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.donations {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.donations p {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
}

/* Responsive layout adjustments */
@media (max-width: 900px) {
  main {
    max-width: 90%;
    padding: 0 1rem;
  }

  .gallery img:nth-child(1),
  .gallery img:nth-child(3) {
    width: 220px;
  }

  .gallery img:nth-child(2) {
    width: 300px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }

  header h2 {
    font-size: 1rem;
  }

  /* Stack images vertically on small screens */
  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .gallery img {
    width: 90%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .gallery img {
    width: 100%;
  }

  .memorial-details {
    padding: 1rem;
  }
}

/* QR Upload Section */
.qr-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    max-width: 900px;
    /*border-top: 3px solid #1f3a93; /* thin blue line accent */
    /*padding-top: 3rem;*/
}

.qr-text h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 2rem;
}

.qr-text p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    font-size: 1.5rem;
}

.qr-image img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    border: 3px solid black;
    padding: 10px;
    border-radius: 10px;
    background: white;
}

/* Mobile stacking */
@media (max-width: 700px) {
    .qr-section {
        flex-direction: column;
        text-align: center;
    }

    .qr-image img {
        width: 220px;
        height: 220px;
    }
}
