@import url("/portfolio-works.css?v=1");

.reference-interior .case-page .case-heading {
  position: relative;
  isolation: isolate;
  align-items: center;
  min-height: clamp(210px, 23vw, 355px);
}
.reference-interior .case-heading-copy { max-width: min(760px, 67%); }
.reference-interior .case-heading-art {
  position: absolute;
  inset: 0 0 0 29%;
  z-index: -1;
  width: 71%;
  height: 100%;
  object-fit: cover;
  object-position: right 38%;
  opacity: .62;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 45%),
              linear-gradient(180deg, transparent, #000 21%, #000 69%, transparent);
  mask-composite: intersect;
}
.reference-interior .case-heading .case-summary { text-shadow: 0 1px 8px #0d1216; }

@media (max-width: 700px) {
  .reference-interior .case-page .case-heading { min-height: 205px; }
  .reference-interior .case-heading-copy { max-width: 100%; }
  .reference-interior .case-heading-art { inset-inline-start: 7%; width: 93%; opacity: .36; }
}

.halloween-sections {
  max-width: 70rem;
  margin: clamp(2rem, 5vw, 4.5rem) auto 0;
}
.halloween-block + .halloween-block {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.halloween-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.halloween-block p {
  margin: 0 0 .8rem;
  line-height: 1.6;
}
.halloween-text {
  max-width: 46rem;
}
.halloween-block .text-button {
  margin-top: .4rem;
}
.halloween-cards, .halloween-figures, .halloween-feature, .halloween-hugo {
  display: grid;
  gap: 1rem;
}
.halloween-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.halloween-card {
  min-width: 0;
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid #2a353d;
  background: #151b20;
}
.halloween-card h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.2;
}
.halloween-card p {
  margin: 0;
}
.halloween-card .halloween-figures {
  max-width: 19rem;
  margin: .8rem 0 0;
}
.halloween-character .halloween-figures {
  margin: 0 0 .75rem;
  max-width: 16.5rem;
}
.halloween-figures.halloween-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.halloween-hugo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  align-items: center;
  margin-top: 1rem;
}
.halloween-hugo p + p {
  margin-top: .5rem;
}
.halloween-hugo .halloween-figures {
  margin: 0;
}
.halloween-feature {
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  align-items: start;
  column-gap: 2rem;
}
.halloween-feature .halloween-figure {
  max-width: 21rem;
}
.halloween-stills {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.halloween-figure {
  margin: 0;
  min-width: 0;
}
.halloween-figure button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #303a42;
  background: #0b0f12;
  cursor: zoom-in;
}
.halloween-figure button:focus-visible {
  outline: 2px solid #50d5e2;
  outline-offset: 3px;
}
.halloween-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.halloween-character .halloween-figure img {
  aspect-ratio: 3 / 4;
}
.halloween-figure figcaption {
  margin-top: .35rem;
  color: #b8c2cc;
  font-size: .8rem;
  line-height: 1.3;
}
@media (max-width: 850px) {
  .halloween-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .halloween-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .halloween-cards, .halloween-hugo, .halloween-feature { grid-template-columns: minmax(0, 1fr); }
}

.portfolio-tile img[data-cover-crop] {
  object-position: var(--cover-crop-position, 50% 50%);
  transform-origin: var(--cover-crop-position, 50% 50%);
  scale: var(--cover-crop-zoom, 1);
}
