/* ==============================
   GLOBAL RESET
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: rgb(27, 27, 27);
  color: white;
}

h1 {
  text-align: center;
}

h2 {
  margin: 0;
}

/* ==============================
   GALLERY SECTIONS (DESKTOP DEFAULT)
================================ */

.gallery-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 2px solid #fbb831;
}

.gallery-title h2 {
  font-family: "Cutive Mono", monospace;
  font-size: 14pt;
  line-height: 1.1;
}

/* ==============================
   MASONRY GALLERY
================================ */

.gallery {
  column-count: 4;
  column-gap: 1rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border: 2px solid #ababa9;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}



/* ==============================
   RESPONSIVE BREAKPOINTS
================================ */

/* Large tablets */
@media (max-width: 1200px) {
  .gallery {
    column-count: 3;
  }
}

/* Small tablets */
@media (max-width: 800px) {
  .gallery {
    column-count: 2;
  }
}

/* ==============================
   MOBILE (STACKED, 1 COLUMN)
================================ */

@media (max-width: 860px) {

  h2 {
    font-size: 10pt;
    margin-bottom: 0.5rem;

  }

  /* Stack title ABOVE gallery */
  .gallery-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .gallery-title {
    width: 100%;
  }

  /* Single-column gallery */
  .gallery {
    column-count: 1;
    column-gap: 0;
  }

  .gallery img {
    width: 100%;
    margin-bottom: 1rem;
  }
}
