/* Additions on top of the Galery template (kept separate so the original CSS stays untouched). */

/* Template bug: its font variable says "Overused Grotesk" but the font is registered as
   "Overusedgrotesk", so most text was falling back to the browser's default serif. */
@font-face {
  font-family: "Overused Grotesk";
  src: url("../fonts/OverusedGrotesk-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* Project galleries: show full images at their natural shape instead of cropping */
.workdetail-gallery_image.workdetail-gallery_image-full {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
.workdetail-gallery_image.workdetail-gallery_image-twocol {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Square and portrait images: don't blow them up to full width */
.workdetail-gallery_image.workdetail-gallery_image-full.is-tall {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  margin: 0 auto;
}

/* Vimeo embeds */
.workdetail-video_frame {
  position: relative;
  width: 100%;
  height: 0;
  background: var(--_brand---brand-light-gray);
}
.workdetail-video_frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Inline links that should look like the surrounding text */
.workdetail-link,
.about-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .3s ease;
}
.workdetail-link:hover,
.about-link:hover { opacity: .55; }

/* Next project */
.section_workdetail-next {
  padding: 6rem 2.5rem 2rem;
}
.workdetail-next_link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 2rem;
  align-items: end;
  color: inherit;
  text-decoration: none;
}
.workdetail-next_link .workdetail_section-label { grid-column: 1; }
.workdetail-next_title {
  grid-column: 1;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  transition: opacity .4s ease;
}
.workdetail-next_img {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: clamp(8rem, 18vw, 16rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.workdetail-next_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.workdetail-next_link:hover .workdetail-next_title { opacity: .55; }
.workdetail-next_link:hover .workdetail-next_img img { transform: scale(1.05); }

/* Contact: socials column */
.contact-socials .contact-content_info-group { display: flex; flex-direction: column; gap: .5rem; }

/* Footer contact email sits on its own line */
.footer_text .footer_link { display: block; margin-bottom: .25rem; }

@media screen and (max-width: 991px) {
  .section_workdetail-next { padding: 4rem 2rem 2rem; }
}
@media screen and (max-width: 767px) {
  .section_workdetail-next { padding: 3rem 1.25rem 1.5rem; }
  .workdetail-next_link { grid-template-columns: 1fr; }
  .workdetail-next_img { grid-column: 1; grid-row: auto; width: 100%; margin-top: 1.5rem; }
}

/* Journal */
.journal-card_meta { margin: .35rem 0 0; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--_brand---brand-gray); }
.blogpost_rich-text img { width: 100%; height: auto; display: block; margin: 2rem 0; }
.blogpost_rich-text figure { margin: 2rem 0; }
.blogpost_rich-text iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 2rem 0; }
