/* ================================
   BASE STYLES
================================ */
* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background-image: url(images/Backgrounds/3.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.6;
  font: 500 100%/1.5 system-ui, Arial, sans-serif;
  color: #fff;
  padding: 12px; /* mobile padding */
}

/* Headings */
h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 16px 0 8px;
  text-align: left;
}

/* Image grids */
.row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.cell img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* Layout presets (MOBILE FIRST — unchanged) */
.three-up { grid-template-columns: 1fr; justify-items: center; }
.six-up   { grid-template-columns: 1fr 1fr; }
.two-up   { grid-template-columns: 1fr; justify-items: center; }

/* Videos: responsive */
.video-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}

/* ================================
   DESKTOP STYLES
================================ */
@media (min-width: 700px) {
  body {
    padding: 16px 24px;
  }

  /* Constrain overall content width */
  .row,
  .video-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  /* First section (Ciat Lonbarde): now two images side by side */
  .three-up {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: start;
    gap: 20px;
  }

  .three-up .cell img {
    width: 100%;
    height: auto;
    max-width: 460px; /* first image size */
  }

  /* Make the second Ciat photo a bit larger to line up better */
  .three-up .cell:nth-child(2) img {
    max-width: 520px;
  }

  /* Soundbook gallery: 3 across on medium screens */
  .six-up {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 14px;
  }

  .six-up .cell img {
    max-width: 320px;
  }

  /* Drawing box: 2 images side by side */
  .two-up {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 16px;
  }

  .two-up .cell img {
    max-width: 520px;
  }

  /* Videos: two across on desktop */
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Larger desktops */
@media (min-width: 1100px) {
  /* Make large gallery denser but keep caps */
  .six-up {
    grid-template-columns: repeat(6, 1fr);
  }

  .six-up .cell img {
    max-width: 200px;
  }

  /* Videos: 3 across if space allows */
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Optional: spacing between sections */
@media (min-width: 900px) {
  h1 { margin-top: 24px; }
}


