/* Section: hobbies. */

.hobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.hobby-grid > * { min-width: 0; }
.hobby-grid .mini p { color: var(--muted); margin-bottom: 14px; }

/* Photo album: album tabs, then the photos in columns at their own proportions. */
.hobby-photos { margin-top: 44px; }
.hp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.hp-head h3 { font-size: 1.25rem; margin: 0; }
.hp-note { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; min-height: 1.6em; }
.hp-grid { columns: 4; column-gap: 12px; }
.hp-tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #070b12; text-align: left; cursor: zoom-in; break-inside: avoid; transition: border-color .2s, transform .2s; }
.hp-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.hp-tile img { display: block; width: 100%; height: auto; }
.hp-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; font: 600 12.5px/1.25 var(--font); color: #e7ebf2; background: linear-gradient(transparent, rgba(7, 11, 18, .92)); }

/* A small album of tall photos fills the row better in three columns. */
@media (min-width: 961px) {
  .hp-grid[data-cols="3"] { columns: 3; }
}

@media (max-width: 960px) {
  .hobby-grid { grid-template-columns: 1fr 1fr; }
  .hp-grid { columns: 3; }
}

@media (max-width: 720px) {
  .hobby-grid { grid-template-columns: 1fr; }
  .hp-grid { columns: 2; column-gap: 8px; }
  .hp-tile { margin-bottom: 8px; }
  .hp-tile span { font-size: 11px; padding: 16px 7px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-tile { transition: none; }
}
