/* --- SITE GENERAL STYLES (MAINTAINED) --- */
body {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
ul.dash{
	list-style-type: "—  ";
	}
h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 0.5em;
}

header.hero {
  background: url('ELJ-Bosque-2022-burn-area.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
}

.title-bar {
  background-color: rgba(85, 98, 78, 0.5);
  width: 80%;
  max-width: 1600px;
  border-radius: 8px;
}

.title-bar h1 {
  font-size: 3rem;
  font-weight: 400;
  margin: 0;
}

header nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  width: fit-content;
  position: absolute;
  right: 30%;
  top: 55%;
  margin-top: 1rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
  text-align: left;
}

header nav a:hover {
  color: #fff;
  background-color: rgba(85, 98, 78, 0.8);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 4rem;
}

section h2 {
  text-align: center;
  background-color: #7b8472;
  color: #fff;
  padding: 0.75rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-content.alt {
  flex-direction: row-reverse;
}

.section-content img {
  flex: 1 1 300px;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
}

.section-content div {
  flex: 2 1 400px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

footer {
  text-align: center;
  background: #eee;
  padding: 1rem;
  font-size: 0.9rem;
  color: #555;
}

/* --- BOOK GALLERY --- */
.book-container {
  display: flex;
  gap: 15px; /* Reduced gap for better "peek" visibility */
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile */
  
  /* Restoration of Scrollbar for visibility */
  scrollbar-width: thin;
  scrollbar-color: #7b8472 #eee;
}

/* Styled Scrollbar for Chrome/Safari */
.book-container::-webkit-scrollbar {
  height: 6px;
}
.book-container::-webkit-scrollbar-thumb {
  background: #7b8472;
  border-radius: 10px;
}
.book-container::-webkit-scrollbar-track {
  background: #eee;
}

.book-card {
  flex: 0 0 70%; /* Shows 70%, leaving 15% on each side for peeking */
  scroll-snap-align: center;
  cursor: pointer;
}

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3; /* Forces uniform size */
  object-fit: cover;   /* Prevents stretching */
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  display: block;
}

/* Desktop: No scrolling, centered row */
@media (min-width: 768px) {
  .book-container {
    justify-content: center;
    overflow-x: hidden; /* No scrollbar on desktop */
    padding: 20px 0;
  }
  .book-card {
    flex: 0 1 375px;
  }
}
/* --- OVERLAY STYLES --- */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(5px);
}

.overlay-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}