/* ============================================================
   MIMI CROSS — About Page Styles
   ============================================================ */

/* ---- Bio ---- */
.bio-section { background: var(--off-white); }

.bio-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.bio-portrait {
  position: sticky;
  top: 84px;
  position: -webkit-sticky;
}
.bio-portrait img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}
.bio-photo-credit {
  font-size: 0.72rem;
  color: var(--slate-lt);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}
.bio-text h2 { color: var(--navy); margin-bottom: 1rem; }
.bio-text p { color: var(--slate); line-height: 1.8; }

.bio-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ---- Gallery ---- */
.gallery-section {
  background: var(--ivory);
}
.gallery-section h2 {
  color: var(--navy);
  margin-bottom: 2.5rem;
}

/* Mosaic / masonry-like grid with irregular sizes */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: var(--charcoal);
}

/* Size variants */
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* Pseudo-random sizing via nth-child */
.gallery-item:nth-child(3n) { grid-row: span 2; }
.gallery-item:nth-child(5n) { grid-column: span 2; }

/* Slight rotation for handcrafted feel */
.gallery-item:nth-child(4n+1) { transform: rotate(-0.3deg); }
.gallery-item:nth-child(4n+3) { transform: rotate(0.2deg); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.88) contrast(1.05) saturate(0.9);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.7) contrast(1.08) saturate(1.0);
}

/* Caption overlay */
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, transparent 100%);
  color: var(--ivory);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 2rem 0.85rem 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-item figcaption small {
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  margin-top: 0.2rem;
}
.gallery-item:hover figcaption {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .bio-inner { grid-template-columns: 1fr; }
  .bio-portrait {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(5n) { grid-column: span 1; }
}

@media (max-width: 520px) {
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item:nth-child(n) { transform: none; }
  .gallery-item--tall,
  .gallery-item:nth-child(3n) { grid-row: span 1; }
  .gallery-item--wide,
  .gallery-item:nth-child(5n) { grid-column: span 2; }
}
