/* Gallery page — editorial mosaic with thin frames and hover zoom. */

.gallery-page {
  background: var(--paper-050);
  padding-block: var(--space-section);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-300);
  border: var(--border-strong);
}

.gallery-cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-100);
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}
/* every third cell (0,3) spans wider for editorial rhythm */
.gallery-cell--wide { grid-column: span 4; aspect-ratio: 2 / 1; }

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.gallery-cell:hover img { transform: scale(1.04); }

/* thin brand line reveal on hover */
.gallery-cell::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 3px;
  background: var(--green-600);
  transition: right var(--duration-base) var(--ease-out);
}
.gallery-cell:hover::after { right: 0; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-cell,
  .gallery-cell--wide { grid-column: span 1; aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-cell,
  .gallery-cell--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}
