/* Gallery layout copied from Cold Guava, including fixed rows and frames. */
.works { padding: 20px 0 5vw; }

.prints-gallery{--gallery-width:min(calc(100vw - 48px),1440px);--gallery-gap:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:calc((var(--gallery-width) - 3 * var(--gallery-gap)) / 3);grid-auto-flow:dense;gap:var(--gallery-gap);width:var(--gallery-width);margin:0 auto;align-items:stretch}
.artwork{min-width:0;min-height:0}
.artwork img{display:block;border-radius:0;box-shadow:none;padding:0}
.prints-gallery .artwork{position:relative;width:auto;height:100%;aspect-ratio:auto;overflow:hidden;border:8px solid #fff;background:#fff}
.prints-gallery .artwork--tall{grid-column:1;grid-row:1 / span 2;aspect-ratio:auto}
.prints-gallery .artwork img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.works-title {
  width: min(100%, 1100px);
  margin: 0 auto 32px;
  padding-inline: 16px;
  font-size: clamp(22px, 6.5vw, 96px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-align: center;
}

.about-hero img { height: auto; object-fit: contain; }

@media (max-width: 900px) {
 .prints-gallery{--gallery-width:calc(100vw - 32px);--gallery-gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:calc((var(--gallery-width) - var(--gallery-gap)) * 2 / 3)}
  .works-title { font-size: clamp(20px, 7.5vw, 52px); }
}


/* Two continuous artwork rows, matching Cold Guava's homepage. */
.artworks-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0;
}
.artworks-track {
  --artwork-gap: 16px;
  --marquee-shift: calc(-50% - var(--artwork-gap) / 2);
  display: flex;
  align-items: stretch;
  gap: var(--artwork-gap);
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}
.artworks-marquee-reverse .artworks-track { animation-direction: reverse; }
.artworks-track .artwork { flex: 0 0 auto; width: auto; height: 360px; }
.artworks-track .artwork img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border: 8px solid #fff;
  background: #fff;
}
.surreal-artworks-marquee:focus-within .artworks-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-shift), 0, 0); }
}
@media (max-width: 800px) {
  .artworks-track { --artwork-gap: 12px; }
  .artworks-track .artwork { height: 300px; }
}
@media (max-width: 500px) {
  .artworks-track .artwork { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .surreal-artworks-marquee { overflow-x: auto; overscroll-behavior-x: contain; }
  .artworks-track { animation: none; transform: none; }
  .surreal-artworks-marquee [aria-hidden="true"] { display: none; }
}


/* Collection introductions share the personal site's gallery typography. */
.collection-page { padding-top: 20px; }
.collection-page .artworks-heading { margin-bottom: 32px; text-align: center; }
.collection-page .works-title { margin-bottom: 14px; }
.collection-page .artworks-description {
  max-width: 680px;
  margin: 0 auto;
  padding-inline: 16px;
  font-size: 16px;
  line-height: 1.7;
}
