body {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  height: 100vh;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  width: 100%;
  height: calc(100% - 40px);
  box-sizing: border-box;
  padding-top: 40px;
}

#archive {
  width: 250px;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

#main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #fff;
  margin-left: 40px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2C3E50;
  text-align: center;
}

h2 {
  color: #2C3E50;
}

p {
  color: #555;
  line-height: 1.6;
  font-size: 1.1rem;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

li:last-child {
  border-bottom: none;
}

a {
  color: black;
  text-decoration: none;
}

/* Image Styling */
figure {
  margin: 2rem auto;
  text-align: center;
}

figure img.thumbnail {
  width: 280px;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
  display: block;
}

figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.align-left.thumbnail {
  float: left;
  margin-right: 1rem;
}

.align-right.thumbnail {
  float: right;
  margin-left: 1rem;
}

.side-by-side {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.side-by-side img {
  max-width: 100%;
  width: 48%;
  height: auto;
}

.album-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.album-cover {
  width: 180px;
  max-width: 40vw;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.08);
  object-fit: cover;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .album-layout {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .album-cover {
    width: 70vw;
    max-width: 220px;
  }
}


/* Minimalist Video Styling */
video.minimal-video {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 2rem auto;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding-top: 10px;
  }

  #main {
    order: 1;
    width: 100%;
    margin: 0;
    margin-bottom: 20px;
    box-shadow: none;
    padding: 1.5rem;
  }

  #archive {
    display: none;      /* ← hides it initially */
    order: 2;
    width: 100%;
    margin: 0;
    box-shadow: none;
    padding: 1.5rem;
    background: #fff;
    border-top: 1px solid #ccc;
  }

  #archive.open {
    display: block;
  }

  h1, h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1.1rem;
    line-height: 1.75;
  }

  li {
    padding: 14px 0;
    font-size: 1.1rem;
  }

  a {
    display: inline-block;
    padding: 4px 0;
  }

  .align-left.thumbnail,
  .align-right.thumbnail {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }

  figcaption {
    font-size: 0.95rem;
    margin-top: 0.3rem;
  }
}


/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 1px solid #fff;
}

/* Image gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  justify-items: center;
}

.gallery img.thumbnail {
  width: 100%;
  max-width: 160px;
  height: auto;
  cursor: zoom-in;
}
