@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');


/* Global reset-ish */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Courier Prime", monospace;
  background: #f4f4e7;
  color: #051839;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ===== Header layout ===== */

.page-header {
  margin-bottom: 2.5rem;
}

/* Logo + H1 on same row */
.header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* helps on very small screens */
}

.header-logo {
  height: 100px; /* adjust as needed */
  width: auto;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* horizontal offset, vertical offset, blur radius, color */

}

.header-top h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;

}

/* Intro paragraph under the row */
.header-intro {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  max-width: 800px; /* optional for readability */
}

/* Larger screens */
@media (min-width: 768px) {
  .header-top h1 {
    font-size: 4rem;
  }
}

/* ===== Issue sections ===== */

.bugle-issue {
  margin-bottom: 3rem;
}

.bugle-issue h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ===== Gallery layout (approx. 6 per row on laptop) ===== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;   /* tight spacing */
  justify-items: center;
}

.gallery-item {
  width: 180px;        /* consistent width */
  text-align: center;
}

/* Thumbnail styling */
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;  /* consistent proportions */
  object-fit: cover;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

.gallery-item figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #444;
}


/* ===== Lightbox styles ===== */

/* ===== Lightbox (scrollable + zoom) ===== */

#lightboxOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;      /* hidden by default */
  z-index: 9999;

  /* allow panning around a large image */
  overflow: auto;
  padding: 1rem;
}

#lightboxOverlay.active {
  display: block;
}

#lightboxContent {
  position: relative;
  margin: 0 auto;
  max-width: none;
  max-height: none;
}

/* toolbar with zoom controls + close button */
.lightbox-toolbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0,0,0,0.6);
  border-radius: 4px;
  backdrop-filter: blur(2px);
  z-index: 10000;
}

.lightbox-toolbar button {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  background: #f1f1f1;
  color: #222;
}

.lightbox-toolbar button:hover {
  background: #ddd;
}

/* Make the image wrapper scrollable if needed */
#lightboxImageWrapper {
  overflow: visible; /* overlay handles scrolling */
}

/* The zoomed image */
#lightboxImage {
  display: block;
  margin: 0 auto;

  /* we’ll set width/height via JS based on natural size + zoom */
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
