.template-film .site-main {
  padding-top: var(--page-padding);
}

.template-home .site-main {
  padding-bottom: 0;
}

.template-about .site-main {
  display: flex;
  align-items: center;
}

.template-about .site-main > .site-shell {
  width: min(100%, var(--shell-width));
}

.template-about .page-stack {
  min-height: 100%;
  justify-content: center;
}

.film-page {
  align-items: stretch;
  gap: var(--gap-section);
}

.template-film .hero-image {
  width: 100%;
  max-width: var(--detail-width);
  margin-inline: auto;
}

.film-page__details {
  width: 100%;
  max-width: var(--detail-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 500px) minmax(0, 1fr);
  column-gap: var(--gap-inline);
  row-gap: 0;
  align-items: baseline;
}

.film-page__title {
  grid-column: 1;
}

.film-page__copy {
  grid-column: 2;
  max-width: 500px;
  min-width: 0;
}

.film-page__details .film-metadata {
  grid-column: 3;
  align-self: baseline;
  justify-self: end;
  width: 100%;
  max-width: 450px;
  min-width: 0;
}

.template-film .film-page__title .section-title {
  font-size: var(--text-card);
}

@media (max-width: 1100px) {
  .filmography__head,
  .contact-layout,
  .film-page__details {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .film-page__details {
    row-gap: var(--gap-card);
  }

  .template-about .site-main {
    align-items: flex-start;
  }

  .template-about .page-stack {
    min-height: auto;
    justify-content: flex-start;
  }

  .film-page__title,
  .film-page__copy,
  .film-page__details .film-metadata {
    grid-column: 1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .about-layout {
    grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    column-gap: 32px;
    row-gap: 0;
    min-height: auto;
  }

  .about-layout .editorial-copy {
    width: 100%;
    max-width: none;
    gap: 20px;
    padding-top: 8px;
  }

  .about-layout .editorial-copy p:first-of-type {
    font-size: 20px;
    line-height: 1.16;
  }
}

@media (max-width: 640px) {
  .template-about .page-stack {
    gap: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    align-items: start;
    row-gap: 24px;
    min-height: auto;
  }

  .about-layout__portrait {
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }

  .about-layout__portrait img {
    object-position: center 28%;
  }

  .about-layout .editorial-copy {
    width: 100%;
    max-width: none;
    gap: 20px;
  }

  .about-layout .editorial-copy p:first-of-type {
    font-size: 20px;
    line-height: 1.16;
  }

  .about-layout .editorial-copy p:not(:first-of-type) {
    line-height: 1.35;
  }
}

@media (max-width: 720px) {
  .template-film .site-main {
    padding-top: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-image__button {
    width: 36px;
    height: 36px;
  }

  .film-metadata__row,
  .contact-details__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-details__links {
    gap: 12px;
  }
}
