@import url('https://fonts.googleapis.com/css2?family=Crimson+Text&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background-color: #000;
  color: #f5f5f5;
  font-family: 'Crimson Text', serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* HEADER + NAV */
header {
  text-align: center;
  margin-top: 2rem;
}

.site-title {
  letter-spacing: 0.15em;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

nav {
  margin-bottom: 2rem;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  margin: 0 1.2rem;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a.active {
  border-color: #f5f5f5;
  color: #fff;
}

/* MAIN */
main {
  width: 100%;
  max-width: 1000px;
  padding: 1rem;
}

.center-block {
  margin: 0 auto;
}

/* TEXT BLOCKS */
.text-block {
  text-align: left;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.text-block p {
  margin-bottom: 2em;
}

/* IMAGE + TEXT BLOCK */
.image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  margin: 3rem 0;
  gap: 2rem;
}

.image-side img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 6px;
}

.text-side {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

/* THUMBNAILS */
.thumbnail-gallery {
  margin: 2rem auto;
  text-align: center;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.thumbs img {
  width: 100px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 4px;
}

.thumbs img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.text-side p {
  margin-bottom: 1.5em;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .image-text-block {
    flex-direction: column;
  }

  .image-side img {
    max-width: 100%;
  }

  nav a {
    display: inline-block;
    margin: 0 0.5rem;
  }

  .thumbs img {
    width: 150px;
  }

  /* EXTRA RESPONSIVE — for phones and very small screens */
@media (max-width: 500px) {
  .thumbs img {
    width: 90px;   /* smaller thumbnails for phones */
    margin: 4px;
  }

  .image-side img {
    max-width: 100%;
  }

  .text-side {
    padding: 0 1rem;
  }
}
}