/* =================================
   ABOUT ME PAGE (cohesive with main site)
   ================================= */

:root {
  --garnet: #73000a;
  --gray: #f9fafb;
  --card-bg: rgba(255, 255, 255, 0.25);
  --text-dark: #111;
  --accent-shadow: rgba(115, 0, 10, 0.15);
  --radius: 16px;
  --glass-blur: 8px;
}

body {
  margin: 0;
  background-color: #fdf6f0;
}

body.gamecock-theme {
  margin: 0;
  background:
    linear-gradient(rgba(115,0,10,0.06), rgba(115,0,10,0.06)),
    linear-gradient(rgba(253,246,240,0.92), rgba(253,246,240,0.92)),
    url('../images/tailfeathers.png') no-repeat fixed 65% center;
  background-blend-mode: multiply, lighten;
  background-color: #fdf6f0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(253,246,240,0.4), transparent 200px);
  z-index: -1;
}

.about-page {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--text-dark);
}

.about-section,
.photo-album {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--accent-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out forwards;
}

.about-section h2,
.photo-album h2 {
  font-size: 2rem;
  color: var(--garnet);
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.85);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 1.25rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  background: #000; /* Ensures no transparent gap */
}

.modal button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.modal-close {
  top: 20px;
  right: 30px;
}

.modal-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.modal button:hover {
  color: #aaa;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.025);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px black;
}

.modal img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.modal-close, .modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  z-index: 10000;
  border-radius: 8px;
}
.modal-close {
  top: 10%;
  right: 5%;
  transform: none;
}
.modal-prev {
  left: 2%;
}
.modal-next {
  right: 2%;
}

.footer-contact {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(115,0,10,0.1);
}

.footer-contact a {
  margin: 0 1rem;
  color: var(--garnet);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .about-page {
    padding: 0 1rem;
  }
  .about-section,
  .photo-album {
    padding: 1rem;
  }
  .about-section h2,
  .photo-album h2 {
    font-size: 1.5rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}