/* Shared project layout, adapted from the supplied Settanta7 project pages. */
.project-page {
  font-family: 'Bastardo Groteskish', Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.work-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: 110px;
  min-height: calc(100svh - 110px);
}
.work-information {
  position: sticky;
  top: 110px;
  min-width: 0;
  padding: 64px 4% 40px;
  overflow: visible;
}
.work-layout :where(h1, h2, p, a, span, time) {
  font-family: inherit;
  font-weight: 400;
}
.work-title {
  margin: 0 0 30px;
  font-size: calc(clamp(24px, 4.8vw, 96px) * var(--work-title-scale, 1));
  line-height: 1.05;
  letter-spacing: -.025em;
  white-space: nowrap;
  text-transform: uppercase;
}
.work-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}
.work-meta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
.work-description { margin-top: 36px; }
.work-description p + p { margin-top: 1em; }
.work-description p {
  margin: 0;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.22;
  overflow-wrap: break-word;
}
.work-gallery {
  min-width: 0;
  padding: 0 2% 20px 8%;
}
.work-image { margin: 0 0 4px; }
.work-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .8rem;
}
.work-image.artwork-frame,
.work-image.work-image--crop {
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: .8rem;
}
/* Full source height is retained; only the sides of the wide stills are cropped. */
.work-image.work-image--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.work-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 30px 0 20px;
  font-size: 16px;
  line-height: 1.4;
}
.work-navigation a:hover { color: #ccff00; text-decoration: none; }

/* Let a short window scroll the complete text instead of pinning it off-screen. */
@media (min-width: 901px) and (max-height: 760px) {
  .work-information { position: static; padding-top: 40px; }
}
@media (max-width: 900px) {
  .work-layout { grid-template-columns: 1fr; }
  .work-information { position: static; padding: 42px 22px 40px; }
  .work-title { font-size: calc(clamp(24px, 9vw, 84px) * var(--work-title-scale, 1)); }
  .work-meta { margin-top: 28px; }
  .work-description { max-width: 720px; margin-top: 30px; }
  .work-description p { font-size: 22px; line-height: 1.3; }
  .work-gallery { padding: 0 22px 20px; }
}
@media (max-width: 600px) {
  .work-layout { margin-top: 135px; min-height: calc(100svh - 135px); }
  .work-information { padding: 32px 20px 36px; }
  .work-title { margin-bottom: 28px; }
  .work-meta { gap: 16px; }
  .work-meta p { font-size: 14px; }
  .work-description { margin-top: 28px; }
  .work-description p { font-size: 20px; }
  .work-gallery { padding: 0 20px 20px; }
  .work-image { margin-bottom: 6px; }
  .work-image img { border-radius: 12px; }
}

/* Monsters keeps the shared 7:4 format with individual portrait focal points. */
.work-image.monsters-frame { position: relative; aspect-ratio: 7 / 4; overflow: hidden; border-radius: .8rem; }
.work-image.monsters-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Boredom Ravers: shared landscape format, focal point selected per image. */
.work-image.boredom-frame { position: relative; aspect-ratio: 7 / 4; overflow: hidden; border-radius: .8rem; }
.work-image.boredom-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.work-image.pratiche-frame { position: relative; aspect-ratio: 7 / 4; overflow: hidden; border-radius: .8rem; }
.work-image.pratiche-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
