/* ============================================
   Gallery — Humain & Architecture
   ============================================ */

.gallery-embed { margin-top: 72px; }
.gallery-intertitle {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.gi-rule { flex: 0 1 120px; height: 1px; background: rgba(11, 18, 36, 0.15); }
.gallery-section {
  background: var(--surface-2);
  color: var(--ink);
  padding: var(--section-y) 0;
  overflow: hidden;
}

.gallery-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.gallery-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 16px 0 0;
}
.gallery-head h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.gallery-head p {
  font-size: 16px; line-height: 1.6;
  color: var(--muted-2);
  max-width: 460px; margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 16px;
}
.gtile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}
.gtile .photo-ph { height: 100%; border-radius: 0; }
.gtile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.gtile:hover > img { transform: scale(1.05); }
.gtile .photo-ph svg { transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.gtile:hover .photo-ph svg { transform: scale(1.05); }

.gtile-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent 30%, rgba(11,18,36,0.92) 100%);
  color: #F2EBDA;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.gtile:hover .gtile-overlay { opacity: 1; }
.gtile-overlay .eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: #E2C58A;
  margin-bottom: 6px;
}
.gtile-overlay h4 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 18px;
  margin: 0; letter-spacing: -0.01em;
}

/* Sizes — 5 tiles */
.g-1 { grid-column: span 7; grid-row: span 4; }
.g-2 { grid-column: span 5; grid-row: span 2; }
.g-4 { grid-column: span 5; grid-row: span 2; }
.g-3 { grid-column: span 4; grid-row: span 4; }
.g-5 { grid-column: span 8; grid-row: span 4; }

/* Quote tile */
.gtile.quote {
  background: var(--bg);
  color: var(--on-bg);
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.gtile.quote .mark {
  font-family: var(--font-display); font-style: italic;
  font-size: 56px; line-height: 0.6;
  color: var(--accent); font-weight: 400;
}
.gtile.quote p {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0;
}
.gtile.quote .by {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: rgba(var(--on-bg-rgb),0.66);
  text-transform: uppercase;
  border-top: 1px solid rgba(var(--on-bg-rgb), 0.14);
  padding-top: 16px;
}

@media (max-width: 1100px) {
  .gallery-grid { grid-auto-rows: 90px; }
  .g-1 { grid-column: span 12; grid-row: span 4; }
  .g-2, .g-4 { grid-column: span 6; grid-row: span 2; }
  .g-3, .g-5 { grid-column: span 6; grid-row: span 4; }
}
@media (max-width: 720px) {
  .gallery-head { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid > div { grid-column: span 12 !important; grid-row: span 3 !important; }
}
