/* rorystone.com/daily — rides on rorystone.com's site.css (tokens, type, nav).
   Only what the day roll needs lives here. */

.days { display: flex; flex-direction: column; }

.day {
  padding: var(--s-xl, 2rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.day:first-child { border-top: 0; padding-top: 0; }

.day__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--s-sm) var(--s-lg); margin-bottom: var(--s-md);
}
.day__link { color: var(--text); text-decoration: none; }
.day__link:hover .day__date { text-decoration: underline; text-underline-offset: 0.2em; }
.day__date {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2;
}
.day__place { color: var(--text-2); }

/* One photo reads big; two or three share the row. Every image keeps its own
   aspect ratio (width/height attributes), so a portrait never gets cropped. */
.day__photos { display: grid; gap: var(--s-sm); align-items: start; }
.day__photos[data-n="1"] { grid-template-columns: minmax(0, 52rem); }
.day__photos[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.day__photos[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.day__photo { display: block; background: var(--gallery-black); }
.day__photo img { display: block; width: 100%; height: auto; }
.day__photo:hover img { opacity: 0.92; }

.day__text {
  max-width: 64ch; margin: var(--s-md) 0 0;
  color: var(--text); line-height: 1.65;
}
.day__text + .day__text { margin-top: var(--s-sm); }

@media (max-width: 640px) {
  .day__photos[data-n="2"],
  .day__photos[data-n="3"] { grid-template-columns: minmax(0, 1fr); }
}
