/* ================================
   ClubHeadArt Horizontal Scroll CSS
   Built in collaboration with Copilot
   ================================ */

/* --- Base Styles --- */
body {
  font-family: 'Arial', sans-serif;
  background: #111;
  color: #fff;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
  color: gold;
}

/* --- Scroll Container --- */
.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: gold #333;
}

.scroll-item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
  text-align: center;
  position: relative;
}

/* --- Image Effects --- */
.scroll-item img {
  width: 100%;
  height: auto;
  filter: blur(4px) brightness(0.7); /* fog effect */
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: 2px solid gold;
}

.scroll-item img:hover {
  filter: blur(0) brightness(1);
  transform: scale(1.05); /* zoom effect */
  box-shadow: 0 0 15px gold;
}

/* --- Caption Overlay --- */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: gold;
  padding: 5px;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-item:hover .caption {
  opacity: 1;
}

/* --- Modal Fullscreen View --- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0; /* shorthand for top/left/right/bottom */
  background: rgba(0,0,0,0.9);
  overflow-y: auto;      /* allow vertical scrolling inside modal */
  padding: 40px 20px;    /* breathing room around content */
}

.modal-content {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  max-height: 70vh;      /* image capped at 70% viewport height */
  height: auto;
  width: auto;
  border: 3px solid gold;
  border-radius: 6px;
  object-fit: contain;
}

.modal-caption {
  display: block;
  max-width: 90%;
  margin: 20px auto;       /* auto margins center it */
  color: #ddd;
  font-size: 1em;
  line-height: 1.4;
  text-align: center;      /* centers text inside the box */
  background: rgba(0,0,0,0.6);
  padding: 12px 16px;
  border-radius: 6px;
  overflow-y: auto;
  max-height: 25vh;
}

.close {
  position: absolute;
  top: 20px; right: 40px;
  color: gold;
  font-size: 40px;
  cursor: pointer;
}

/* --- Collaboration Credits --- */
.credits {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8em;
  color: #aaa;
}

.credits span {
  color: gold;
  font-weight: bold;
}
.page-title {
  text-align: center;
  color: gold; /* or dark yellow */
}

.page-subtitle {
  text-align: center;   /* centers the text */
  color: white;
  margin-top: 10px;     /* spacing below the title */
  font-size: 1.2em;     /* optional: adjust size */
}