/* General Body Styles */
body {
  margin: 0;
  padding: 2em;
  font-family: 'Alegreya Sans', sans-serif;
  background-color: #444444;
  color: #9B9B9B;
  text-align: center;
}

h1 a {
  color: rgba(243, 164, 34, 1); /* Now the bright color by default */
  text-decoration: none;
  transition: color 0.15s ease;
}
h1 a:hover {
  color: rgba(243, 164, 34, .6); /* Now the muted color on hover */
}

h1 {
  font-family: 'Alegreya Sans', sans-serif;
  letter-spacing: 0.72em;
  font-size: 2.5em;
  font-weight: 100;
  color: #df8d00;
  text-align: center;
  margin-bottom: 1.25em;
}
h2 {
  font-weight: normal;
  letter-spacing: 0.4em;
  font-size: 1em;
  margin-top: 2em;
  margin-bottom: 0.2em;
  text-transform: uppercase;
}

/* Gallery Styles */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.50em; /* Gap adjusted as per your request */
  max-width: 900px; /* Adjust max-width to control overall gallery size */
  margin: 2em auto;
}

.gallery a {
  position: relative;
  display: block;
  width: calc(25% - 1.50em); /* 4 items per row, accounting for new gap */
  max-width: 200px; /* Max size for each thumbnail */
  overflow: hidden;
  border: 1px solid black;
  box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.8); /* Subtle drop shadow */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  flex-grow: 1;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .gallery a {
    width: calc(33.33% - 1.50em); /* 3 items per row on medium screens */
  }
}

@media (max-width: 768px) {
  .gallery a {
    width: calc(50% - 1.50em); /* 2 items per row on tablets */
  }
}

@media (max-width: 480px) {
  .gallery a {
    width: 100%; /* 1 item per row on small phones */
    max-width: 300px; /* Limit single item width */
  }
}

.gallery a img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.gallery a:hover img {
  opacity: 0.8;
  transform: scale(1.03);
}

.gallery a::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5em 0;
  background-color: rgba(0, 0, 0, 0.0); /* Background color of the overlay, adjust last value (0.7) for desired initial opacity if needed */
  color: #fff; /* White text */
  font-size: 0.8em;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0; /* Start fully transparent */
  transition: opacity 0.8s ease-in-out; /* Smooth fade-in transition */
  /* Removed transform properties that caused slide-up */
}

.gallery a:hover::after {
  opacity: 0.8; /* Fade to 80% opacity on hover */
  /* Removed transform property */
}

/* Bio Section Styles */
.bio-section {
    text-align: center;
    margin-top: 4em;
    margin-bottom: 2em;
}

.bio-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid black;
    box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.8);
}

/* Copyright Styles */
.copyright {
  font-size: 0.85em;
  color: #777;
  margin-top: 2em;
  text-align: center;
}}