/* General reset */
body {
  margin: 0;
  padding: 4rem;
  font-family: Albert Sans, sans-serif;
  font-weight: 100;
  font-size: 1.5em;
  background: #0b0f14; /* dark steel-blue tone */
  color: #cfd8dc; /* silver-ish text */
}

h1 {
  text-align: center;
  font-family: Philosopher, sans-serif;
  font-weight: 100;
  font-size: 3rem;
  margin-bottom: 3rem;
  color: #e0e0e0; /* lighter silver */
}

a{
	font-family: "Albert Sans", sans-serif;
	font-weight: 100;
	font-size: 1em;
}

/* Grid layout for thumbnails */
.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100vw;
}

.thumb-grid li {
  flex: 0 1 calc(50% - 1rem);
  display: flex;
  justify-content: center;
}

/* Center last item on odd count */
.thumb-grid:has(li:nth-child(odd):last-child) li:last-child {
  margin-left: auto;
  margin-right: auto;
}

/* Thumbnail link style */
.thumb-grid li a {
  display: flex;
  width: 45vw;
  height: 45vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #37474f; /* steel grey border */
  border-radius: 4px;
  text-decoration: none;
  color: #cfd8dc;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  word-wrap: break-word;
  flex-shrink: 0;
  position: relative;
  filter: grayscale(100%) brightness(0.8);
}

.thumb-grid li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 30, 60, 0.4); /* subtle dark blue overlay */
  z-index: 1;
  transition: opacity 0.3s ease;
}

.thumb-grid li a:hover::before {
  opacity: 0;
}

.thumb-grid li a:hover {
  filter: none;
  background-color: #263238;
  color: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
  font-weight: 100;
  font-size: 2rem;
  font-family: "Albert Sans", sans-serif;
}

.thumb-grid li a span {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  body {
    padding: 2rem;
    font-size: 1em;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .thumb-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .thumb-grid li {
    flex: 1 1 100%;
  }

  .thumb-grid li a {
    width: 100%;
    height: 40vh;
    font-size: 1.5rem;
  }

  .thumb-grid li a:hover {
    font-size: 1.5rem;
  }
}
