/* General Body Styles */
body {
    margin: 0; 
    padding: 2em; 
    font-family: 'Alegreya Sans', sans-serif;
    background-color: #34353c; 
    color: #9B9B9B; 
    text-align: center;
}
h1 a {
    color: rgba(243, 164, 34, 100); 
    text-decoration: none;
    transition: color 0.15s ease;
}
h1 a:hover {
    color: rgba(243, 164, 34, .60); 
}
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: 0.20em;
}
h2 {
    font-weight: normal;
    letter-spacing: 0.4em;
    font-size: 1em;
    margin-top: 3em;
    margin-bottom: -.5em;
    text-transform: uppercase;
    color: #d2c0ad;
    text-align: center;
}
nav a {
    font-family: 'Alegreya Sans', sans-serif;
    margin: 0 0.75em;
    letter-spacing: 0.55em;
    text-decoration: none;
    color: #d2c0ad;
    font-weight: 500;
    margin-bottom: 5em;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: color 0.25s ease;
}
nav a:hover {
    color: #a4815b;
}

/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 20px;
  padding: 20px;
  max-width: 860px; 
  margin: 0 auto;
}

/* FIX 1: Gallery Tiles (EXTREME DARK Shadow to fix #7) */
.gallery a {
  display: block;
  width: 200px;
  height: 200px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  /* CHANGED: Set opacity to 1 (pure black) for maximum visibility on #7 */
  filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 1)); 
  transition: all 0.2s ease-in-out;
  border: 1px solid black; 
}

/* Hover effects for the gallery */
.gallery a:hover {
  filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 1)); 
}
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}
.gallery a:hover img {
  transform: scale(1.05);
}

.gallery a::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background-color: rgba(136, 132, 132, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    opacity: 0;
    font-size: 0.75em;
    letter-spacing: 0.6em;
    transition: opacity .8s ease, color 1.9s ease;
}
.gallery a:hover::after {
    color: #fff;
    opacity: 1;
}

/* Footer styles */
footer {
  margin-top: 3em;
  font-size: 0.85em;
  color: #d2c0ad;
  letter-spacing: 0.60em;
}

/* Portrait Container (Spacing is handled by <br> in HTML) */
.bio-image-container {
  text-align: center;
}

/* FIX 3: Portrait Wrapper (NO SHADOW, as requested, but keep size rules) */
.bio-image-container a {
  display: inline-block;
  width: 200px; 
  height: 200px; 
  overflow: hidden;
  position: relative;
  text-decoration: none;
  /* NO SHADOW HERE - SET TO NONE */
  filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 1));
  transition: all 0.2s ease-in-out;
  border: 1px solid black; 
}

/* Remove hover effect for portrait */
.bio-image-container a:hover {
    filter: none; 
}

.bio-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}
.bio-image-container a:hover img {
    transform: scale(1.05);
}