.notebook.platform-gallery {
  padding: 1.5rem .75rem 0;
  transform: rotate(.65deg);
}
.gallery-bar, .gallery-controls, .gallery-buttons,
.platform-project figcaption {
  display: flex;
  align-items: center;
}
.gallery-bar {
  justify-content: space-between;
  gap: .55rem;
  padding: .12rem .32rem .52rem;
}
.gallery-bar h2 {
  margin: 0;
  color: var(--green);
  font: 500 .8rem/1.25 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.gallery-controls { gap: .6rem; }
.gallery-counter { white-space: nowrap; color: var(--muted); font: 500 .8rem var(--mono); }
.gallery-buttons { gap: .19rem; }
.gallery-buttons button {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  color: var(--ink);
}
.gallery-buttons button .icon { width: 1.08rem; height: 1.08rem; stroke-width: 1.8; }
.gallery-buttons button[data-rotation] { color: var(--green); background: var(--mint); }
.gallery-buttons button:hover { color: var(--green); background: var(--wash); }
.gallery-buttons button:focus-visible { outline-offset: 0; }
.gallery-track {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  border-radius: .29rem;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--wash);
}
.platform-gallery[data-ready] .gallery-track { scrollbar-width: none; }
.platform-gallery[data-ready] .gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.platform-project { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.platform-project .platform-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  background: #fafaf6;
  border: 1px solid var(--line);
  border-radius: .28rem;
  -webkit-user-drag: none;
}
.platform-project figcaption {
  min-height: 5.35rem;
  justify-content: space-between;
  gap: .45rem 1rem;
  padding: .72rem .36rem .9rem;
  color: var(--ink);
}
.project-caption h3 { margin: 0; font: 400 clamp(1.6rem, 2.4vw, 2.3rem)/1.04 var(--serif); letter-spacing: -.024em; }
.project-caption p { margin-top: .16rem; color: var(--muted); font-size: .92rem; line-height: 1.3; }
.project-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: .18rem .22rem;
  border-radius: .15rem;
  color: var(--green);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.project-link:focus-visible { outline-offset: 0; }
.gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 880px) {
  .gallery-bar { padding-inline: .14rem; }
  .gallery-bar h2 { font-size: .76rem; letter-spacing: .05em; }
  .gallery-controls { gap: .22rem; }
  .gallery-buttons { gap: 0; }
  .gallery-buttons button { width: 2.4rem; height: 2.4rem; }
  .platform-project figcaption { min-height: 4.6rem; padding-inline: .18rem; }
}
@media (max-width: 680px) {
  .notebook.platform-gallery { padding: 1.08rem .55rem 0; }
  .gallery-bar { padding-bottom: .35rem; }
  .project-caption p, .project-link { font-size: .875rem; }
  .platform-project figcaption { flex-wrap: wrap; padding-bottom: .72rem; gap: 0 .55rem; }
  .project-caption { min-width: 0; flex: 1 1 11rem; }
  .project-link { min-height: 2.5rem; }
}
@media (max-width: 370px) {
  .gallery-bar { gap: .3rem; }
  .gallery-counter { font-size: .75rem; }
  .gallery-buttons button { width: 2.1rem; height: 2.5rem; }
  .project-caption { flex-basis: 9.5rem; }
}
