/* Zigzag / masonry gallery of real site photos */

.gal-sec { background: #F6F6F3; }
.gal-zig {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.gal-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #0B1F35;
  box-shadow: 0 10px 28px rgba(16, 42, 70, 0.08);
}
.gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 900ms var(--ease, cubic-bezier(.2, .8, .2, 1));
}
.gal-item:hover img,
.gal-item:focus-within img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 48px 18px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 24, 48, 0.82) 100%);
  pointer-events: none;
}
.gal-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  color: #102A46;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #F5A623;
  border-radius: 999px;
}
.gal-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.gal-item[hidden] { display: none !important; }

.gal-note { max-width: 52ch; margin: 28px 0 18px; font-size: 15px; line-height: 1.65; }
.gal-cta { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 640px) {
  .gal-zig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
  }
  .gal-item.is-wide { grid-column: span 2; }
  .gal-item.is-wide img { min-height: 320px; max-height: 420px; }
  .gal-item.is-tall img { min-height: 380px; }
  .gal-item.is-normal img { min-height: 280px; }
}

@media (min-width: 1024px) {
  /* Zigzag: alternate wide / tall / normal so rows feel left-right, not a flat grid */
  .gal-zig {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }
  .gal-item { grid-column: span 4; }
  .gal-item.is-wide { grid-column: span 8; }
  .gal-item.is-tall { grid-column: span 4; grid-row: span 2; }
  .gal-item.is-tall img { min-height: 100%; height: 100%; }
  .gal-item.is-wide img { min-height: 360px; max-height: 440px; }
  .gal-item.is-normal img { min-height: 300px; }

  /* Force zigzag rhythm on first rows when all are visible */
  .gal-item:nth-child(1) { grid-column: span 7; }
  .gal-item:nth-child(2) { grid-column: span 5; grid-row: span 2; }
  .gal-item:nth-child(2) img { min-height: 100%; height: 100%; }
  .gal-item:nth-child(3) { grid-column: span 5; }
  .gal-item:nth-child(4) { grid-column: span 7; }
  .gal-item:nth-child(5) { grid-column: span 4; }
  .gal-item:nth-child(6) { grid-column: span 8; }
  .gal-item:nth-child(7) { grid-column: span 5; }
  .gal-item:nth-child(8) { grid-column: span 7; }
}

@media (max-width: 767px) {
  .gal-item { border-radius: 18px; }
  .gal-item img { min-height: 220px; }
  .gal-item figcaption { padding: 36px 14px 14px; }
  .gal-item strong { font-size: 15px; }
  .gal-cta .btn { flex: 1 1 auto; }
}
