/* ---- Series Scroll ---- */

/* Container: full width — matches the page/nav margins via .series-gallery */
#lightGallery{
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

.project-item{
  text-align: center;
  min-width: 0;
}

/* Placeholder frame: light grey box sized to the artwork's aspect ratio,
   so there's something to see (and no layout jump) while the image loads. */
.img-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* safety-net default in case an item's own ratio is invalid/missing */
  background-color: #E8E9EB; /* grey while loading */
  overflow: hidden;
}

/* Once the image inside has finished loading, drop back to white */
.img-frame:has(.full-image.is-loaded){
  background-color: #fff;
}

/* Image fills the frame, keeps its proportions, and fades in on load
   (the .fade-image / .is-loaded classes are toggled in layouts/base.liquid) */
.full-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Captions / lightbox caption harmony */
.caption,
div.lg-sub-html p{
  font-size: .9rem;
  line-height: 1.35;
  color: #000;
}
.caption{ margin-top: .75rem; }

/* Page wrapper: let content center without fighting your global layout */
.project-page {
  width: 60%;
  margin: 0 auto;
  padding-top: 45px;
}


.content{
  width: min(100%, 70rem);
  margin: 0 auto;
  text-align: left;
  padding-bottom: 3rem;
}

/* ---- Homepage project-card image strip ---- */
.project-image-strip{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.project-image-strip-item{
  display: block;
}

/* Small tweaks on phones */
@media (max-width: 800px){
  #lightGallery{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .caption{ font-size: 1rem; }

  .project-page {
    width: 100%;
    margin: 0;
  }
}
