body {
  font-family: sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: #222;
  margin: 0;
}

h1 {
    font-size: 3rem;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.2em;
}

.navbar {
  background: #333;
  padding: 1em;
  font-size: 1.2rem;
}

.navbar a {
  color: white;
  margin-right: 1em;
  text-decoration: none;
}

.navbar a:hover {
  text-decoration: underline;
}

.image-galerie {
  max-width: 500 px;
  width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}

.small-vignette {
  max-width: 100 px;
  width: 60%;
  height: auto;
  display: block;
  margin: 2em auto;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin: 0em 0;          /* spacing */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gallery grid */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2em 0;
}

/* Individual items (images or videos) */
.media-item img,
.media-item .video-container {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover; /* crop images nicely */
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2em 0;
  width: 100%;
}

.photo-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.photo-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops image to fill the box */
}

.audio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2em 0;
}

.audio-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.audio-card img {
  width: 100%;
  height: 220px;

  object-fit: contain;
  background: ghostwhite;

  padding: 12px;
  box-sizing: border-box;

  border-radius: 6px;
  display: block;
}

.audio-title {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  transform: translateY(50%);

  text-align: center;

  color: #111;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;

  background: rgba(255, 255, 255, 0.75);
  padding: 0.4em 0.4em;
  border-radius: 4px;
}

.audio-card.active .audio-title {
  display: none;
}

.audio-card iframe {
  display: none;
  width: 100%;
  height: 220px;
  border: none;
}

.audio-card.active img {
  display: none;
}

.audio-card.active iframe {
  display: block;
}

main img {
    max-width: 500 px;
    width: 100%;
    height: auto;
}

main {
  max-width: 500 px;
  margin: 0 auto;
  padding: 2em 1em;
}

main h1,
main h2,
main h3 {
    text-align: left;
}

main p,
main ul {
    text-align: left;
}
