/* ========================================
   MEDIA — the photographers' galleries
   Reuses the .xp-page/.xp-hero/.xp-section shell from experiencia.css
======================================== */

/* The whole page is centred: heading and cards. */
.md-hero { text-align: center; }

.md-section { padding-top: 16px; }

/* Capped columns keep a single card from stretching to the page width; at 360px
   the three photographers fit one row in the 1152px column. */
.md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: 24px;
}
.md-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--surface-card-border);
  border-radius: var(--radius-lg);
  background: var(--surface-card-bg);
}
/* Every Experience photo is black and white; the photographers' portraits follow suit. */
.md-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1);
}
.md-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 24px;
  text-align: center;
}
.md-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.md-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Instagram handles have no spaces: let a long one break instead of widening the card. */
  overflow-wrap: anywhere;
  color: var(--gray-light);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.md-social:hover { color: var(--white); }
.md-social i { font-size: 1.15rem; }
/* Not every photographer has an Instagram line: the button sits at the card's foot so
   the three line up in a row, and whatever comes above it (handle or name) keeps 22px. */
.md-body .btn { margin-top: auto; }
.md-body > :nth-last-child(2) { margin-bottom: 12px; }
