/* IB EL BEDEWY — album presentation v3.
   Grid reads horizontally (01, 02, 03) instead of CSS multi-columns.
   Mobile goes straight to the selected photographs with a compact title.
   All source imagery, captions, language data and lightbox behavior remain intact. */

.gallery {
  columns: initial !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 17px !important;
  row-gap: 17px !important;
  align-items: start !important;
}

.gallery > .tile {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  break-inside: auto !important;
}

.gallery > .tile img {
  width: 100%;
  height: auto;
}

@media (max-width: 840px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 740px) {
  /* The editorial cover and extended story remain on desktop. On phones,
     the event title appears once, immediately followed by the real photos. */
  .hero { display: none !important; }
  .gallery-wrap { padding: 14px 0 49px !important; }
  .gallery-wrap .section-head {
    display: block !important;
    margin: 0 0 12px !important;
  }
  .gallery-wrap .section-head .eyebrow,
  .gallery-wrap .section-head p { display: none !important; }
  .gallery-wrap .section-head h2 {
    font-size: clamp(16px, 4.9vw, 22px) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }
  .gallery { gap: 9px !important; }
}
