@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 89%; ascent-override: 98%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 88%; }
/* ideasofaman.com - "working on lately" reel row. Four portrait videos, autoplay muted, poster first. */
.lately { padding: 96px 0; }
.lately .lately-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.lately h2 {
  font: 300 clamp(28px, 3.4vw, 48px) / 1.08 Archivo, "Archivo Fallback", sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.lately h2 em { font-family: "Instrument Serif", "Serif Fallback", Georgia, serif; font-style: italic; font-weight: 400; opacity: .72; }
.lately .lately-sub { font: 300 18px/1.5 Archivo, "Archivo Fallback", sans-serif; margin: 0; opacity: .85; }
.lately .lately-all {
  font: 400 15px/1 Archivo, "Archivo Fallback", sans-serif;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.lately .lately-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lately .reel {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(158 68 51 / .08);
  text-decoration: none;
  color: #fff;
}
.lately .reel video,
.lately .reel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.lately .reel .cap {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center;
  font: 400 clamp(14px, 1.3vw, 20px) / 1.2 "Instrument Serif", "Serif Fallback", Georgia, serif;
  text-shadow: 0 1px 12px rgb(0 0 0 / .45);
  padding: 0 16px;
  pointer-events: none;
}
.lately .reel .who {
  position: absolute; left: 14px; top: 12px;
  font: 400 11px/1 Archivo, "Archivo Fallback", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  opacity: .9; text-shadow: 0 1px 8px rgb(0 0 0 / .5);
}
@media (max-width: 1023px) {
  .lately { padding: 64px 0; }
  .lately .lately-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lately .lately-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 599px) {
  .lately .lately-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px; scrollbar-width: none;
  }
  .lately .lately-grid::-webkit-scrollbar { display: none; }
  .lately .reel { flex: 0 0 72vw; scroll-snap-align: start; }
}

/* Full gallery: six per row, no heading override */
.lately.reels-all { background: var(--merlot, #9E4433); color: var(--ice-light, #FDF3E4); padding-top: 72px; }
.lately.reels-all h2 { color: var(--ice-light, #FDF3E4); }
.lately.reels-all .lately-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lately.reels-all .reel { border-radius: 12px; }
@media (max-width: 1023px) { .lately.reels-all .lately-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { .lately.reels-all .lately-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; overflow: visible; } .lately.reels-all .reel { flex: none; } }

/* Gallery grouped by client */
.lately.reels-all .reels-group { margin-bottom: 48px; }
.lately.reels-all .reels-group h3 { font: 400 12px/1 Archivo, "Archivo Fallback", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ice, #D8A38F); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid rgb(216 163 143 / .25); }
.lately.reels-all > .container > .lately-grid:empty { display: none; }

/* Click-to-sound player (shared with projects page) */
.reel.has-player { cursor: pointer; }
.reel .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .9); color: var(--merlot, #9E4433);
  display: grid; place-items: center; opacity: 0; transition: opacity .2s;
}
.reel .play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.reel:hover .play, .reel:focus-within .play { opacity: 1; }
.reel.is-sound .play, .reel.is-sound .cap, .reel.is-sound .who { display: none; }
.reel.is-sound video { object-fit: contain; background: #000; }
.lately .reel .who { text-decoration: none; color: #fff; }
.lately .reel .who:hover { text-decoration: underline; }
@media (hover: none) { .reel .play { opacity: 1; } }

@media (max-width: 767px) {
  .lately .lately-all { display: inline-flex; align-items: center; min-height: 44px; }
  .lately .reel .who { left: 2px; top: 0; padding: 12px; }
}
.reel .cap, .reel .who, .reel .play { z-index: 2; }
