/* General Styles */
body {
  margin: 0;
  /* Use a serif font to evoke a more gothic, old‑world feel */
  font-family: 'Georgia', serif;
  background-color: #0e0e0e;
  color: #e6e6e6;
  line-height: 1.6;
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.25rem;
}
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close {
  top: 2rem;
  right: 2rem;
}

header.site-header {
  background-color: #111111;
  color: #f5f5f5;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

nav.nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav.nav ul li {
  margin: 0 0.75rem;
}

nav.nav a {
  color: #d3d3d3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav.nav a:hover,
nav.nav a.active {
  color: #b50039;
}

/* Header image styling remains unchanged; dark theme works well with imagery */
.header-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-top: 1rem;
  border-radius: 8px;
}

/* Hero banner styles for a dramatic gothic header on the home page */
.hero-banner {
  /* Use the new gothic header image with a darker overlay for readability */
  /* Lighten the overlay so the red crystals in the header image are more visible */
  /* Reduce the darkness of the overlay even further to allow the red crystals to shine through */
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/header.jpg') no-repeat center/cover;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 8px;
  margin-top: 1rem;
}
.hero-banner h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: #e6e6e6;
}
.hero-banner p {
  margin: 0;
  font-size: 1.1rem;
  color: #c4c4c4;
}

.content {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  color: #f5f5f5;
  margin-top: 0;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  width: calc(50% - 1.5rem);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background-color: #1d1d1d;
}

.gallery-img {
  width: 100%;
  display: block;
}

.gallery-item figcaption {
  padding: 0.5rem;
  background-color: #2a2a2a;
  font-size: 0.9rem;
  text-align: center;
  color: #e6e6e6;
}

.warning {
  color: #b50039;
  font-weight: bold;
  margin-bottom: 1rem;
}

.story {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #1d1d1d;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.bio-list {
  margin-top: 1rem;
}

.bio-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #1d1d1d;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Bio image styling */
.bio-img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.site-footer {
  background-color: #111111;
  color: #dcdcdc;
  text-align: center;
  padding: 1rem;
}

/* Category list styles */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  display: inline-block;
  color: #e6e6e6;
  background-color: #292929;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.category-list a:hover {
  background-color: #1f1f1f;
}

/* About section styles */
.about {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #1d1d1d;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Latest updates grid */
.latest-updates {
  margin-top: 2rem;
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.update-item {
  background-color: #1d1d1d;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  overflow: hidden;
  padding-bottom: 1rem;
  text-align: center;
}
.update-item .update-img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.update-item h3 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.1rem;
}
.update-item h3 a {
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.3s ease;
}
.update-item h3 a:hover {
  color: #b50039;
}
.update-item p {
  margin: 0 0.5rem;
  font-size: 0.9rem;
  color: #c4c4c4;
}

/* Call-to-action buttons */
.cta-buttons {
  margin-top: 2rem;
  text-align: center;
}
.cta-buttons .button {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #b50039;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.cta-buttons .button:hover {
  background-color: #8c002c;
}

/* Decorative divider */
.decorative-divider {
  width: 80%;
  height: 2px;
  margin: 2rem auto;
  /* A subtle gradient line with crimson center fading to transparent */
  background: linear-gradient(to right, transparent, #b50039, transparent);
  border-radius: 1px;
}

/* Social links */
.social-links {
  margin-top: 1rem;
  text-align: center;
}
.social-links .social-link {
  margin: 0 0.5rem;
  color: #c4c4c4;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.social-links .social-link:hover {
  color: #b50039;
}

/* About section with avatar */
.about {
  margin-top: 2rem;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}
.about-img {
  width: 200px;
  max-width: 40%;
  border-radius: 8px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}
.about-content p {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  color: #dcdcdc;
}
@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-img {
    margin-right: 0;
  }
}