/* Case studies (/our-work/<project>/). Loaded after pages.css.
   The page body is a free layout: .cs-section > .cs-row > .cs-col > .cs-col-inner > .cs-block.
   Values follow the original theme and layout CSS; each page's own sizes, colours and spacing
   are generated into its <style> from the content file (src/content/work/<project>.json). */

.cs {
  --sg-color-text: #7a7a7a;
  --sg-color-secondary: #54595f;
  --sg-color-926fc4f: #191b1d99;
  --sg-color-211bd5f: #dddddd;
  --sg-typography-d047fbc-font-size: 1.4em;
  --sg-typography-d047fbc-line-height: 1.5em;
}

/* ---------- type: the theme's heading looks, on whichever element carries them ---------- */
.cs :is(.t-h1, .t-h2, .t-h3, .t-h4) { font-weight: 700; color: #fff; }
.cs .t-h1 { margin: 0.67em 0 1em; font-size: 48px; line-height: 65px; letter-spacing: -0.06em; }
.cs .t-h2 { margin: 0.83em 0 1em; font-size: 36px; line-height: 50px; letter-spacing: -0.06em; }
.cs .t-h3 { margin: 1em 0 1em -1px; font-size: 30px; line-height: 40px; letter-spacing: -0.75px; }
.cs .t-h4 { margin: 1.33em 0 1em -1px; font-size: 24px; line-height: 35px; letter-spacing: -0.75px; }
.cs .t-h5 { margin: 1.67em 0 1em -1px; font-size: 18px; line-height: 35px; font-weight: 400; color: #fff; }
.cs .t-h6 { margin: 0; font-size: 12px; line-height: 18px; font-weight: 700; color: #fff; }
.cs-meta p { margin: 14px 0 15px; line-height: 28px; }
.cs-meta strong, .cs-meta b { font-weight: 700; }
.cs-meta a { color: inherit; }
.tone-999 { color: #999; }
.tone-888 { color: #888; }
.tone-777 { color: #777; }

/* ---------- layout ---------- */
.cs-section { position: relative; }
/* The theme closed every section with a clearing table, so the row's bottom margin stays inside it. */
.cs-section::after { content: ""; display: table; clear: both; }
.cs-section.no-clear::after { content: none; }
.cs-row { position: relative; display: flex; margin-inline: auto; }
.cs-section.is-boxed > .cs-row { max-width: 1140px; }
.cs-section.items-middle > .cs-row { align-items: center; }
.cs-overlay { position: absolute; inset: 0; }
.cs-col { position: relative; display: flex; min-height: 1px; }
.cs-col-inner { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; width: 100%; }
.cs-col-inner > * { width: 100%; }
/* Column gaps, at the layout's own (low) specificity so each page's column padding wins. */
:where(.gap-default > .cs-row > .cs-col) > .cs-col-inner:not(:empty) { padding: 10px; }
:where(.gap-wider > .cs-row > .cs-col) > .cs-col-inner:not(:empty) { padding: 30px; }
.cs-block { position: relative; }
.cs-block:not(:last-child) { --block-spacing: 20px; margin-block-end: var(--block-spacing); }
@media (min-width: 768px) {
  .cs-col-16 { width: 16.666%; }
  .cs-col-25 { width: 25%; }
  .cs-col-33 { width: 33.333%; }
  .cs-col-50 { width: 50%; }
  .cs-col-66 { width: 66.666%; }
  .cs-col-100 { width: 100%; }
}
@media (max-width: 1024px) {
  .cs-row { flex-wrap: wrap; }
  .cs-section.is-boxed > .cs-row { max-width: 1024px; }
}
@media (max-width: 767px) {
  .cs-section.is-boxed > .cs-row { max-width: 767px; }
  .cs-col { width: 100%; }
}

/* Theme content widths ("wrapper" classes on the original sections). */
.wrapper-fuller { width: 100%; margin-bottom: 100px; }
.cs-section.wrapper-wide .cs-row,
.cs-section.wrapper-smaller .cs-row { width: 100%; margin-bottom: 100px; }
.cs-section.is-inner.wrapper-wide .cs-row,
.cs-section.is-inner.wrapper-smaller .cs-row { margin-bottom: 0; }
@media (min-width: 576px) {
  .cs-section.wrapper-wide .cs-row { max-width: 90% !important; }
  .cs-section.wrapper-smaller .cs-row { max-width: 90% !important; }
}
@media (min-width: 768px) {
  .cs-section.wrapper-smaller .cs-row { max-width: 88% !important; }
}
@media (min-width: 992px) {
  .cs-section.wrapper-wide .cs-row { max-width: 950px !important; }
  .cs-section.wrapper-smaller .cs-row { max-width: 790px !important; }
}
@media (min-width: 1200px) {
  .cs-section.wrapper-wide .cs-row { max-width: 1174px !important; }
  .cs-section.wrapper-smaller .cs-row { max-width: 850px !important; }
}
@media (min-width: 1450px) {
  .cs-section.wrapper-wide .cs-row { max-width: 1274px !important; }
  .cs-section.wrapper-smaller .cs-row { max-width: 950px !important; }
}
@media (min-width: 1600px) {
  .cs-section.wrapper-wide .cs-row { max-width: 1500px !important; }
  .cs-section.wrapper-smaller .cs-row { max-width: 1200px !important; }
}
@media (max-width: 576px) {
  .cs-section.wrapper-wide .cs-row { width: 95%; max-width: 100%; margin-bottom: 25px; }
  .cs-section.wrapper-smaller .cs-row { max-width: 90%; margin-bottom: 25px; }
}
@media (max-width: 450px) {
  .is-inner > .cs-row { margin-inline: 0 !important; }
}

/* ---------- blocks ---------- */
.cs .text-wrapper > .has-anim { width: 100%; }
/* Images without an entrance animation stayed inline in the theme (a line-height gap below each). */
.cs .single-image img:not(.has-anim) { display: inline; }
.cs .alioth-seperator { float: left; margin: 0; }
.cs .alioth-seperator.align-center { float: none; margin-inline: auto; }
.cs .alioth-seperator.align-right { float: right; }
.cs-spacer-inner { height: var(--spacer-size); }

.cs .ah-title .t-h1 { margin: 0.67em 0 1em; color: #fff; }

.cs-video-block,
.cs-vimeo { overflow: hidden; transform: translateZ(0); }
.cs-video { aspect-ratio: var(--video-aspect-ratio); }
.cs-video video,
.cs-video iframe { display: flex; width: 100%; height: 100%; border: 0; background: #000; }
.cs-video video { object-fit: cover; line-height: 1; }

/* Theme image carousel: drag to scroll a row of images. */
.alioth-image-carousel { position: relative; display: block; overflow: hidden; margin: 50px 0; }
.ai-wrapper { display: inline-flex; flex-flow: row nowrap; align-items: center; width: auto; padding-left: 30px; }
.ai-image { position: relative; display: block; flex-basis: 40vw; min-width: 40vw; margin-right: 30px; }
@media (min-width: 450px) and (max-width: 900px) {
  .ai-image { flex-basis: 70vw; min-width: 70vw; }
}
@media (max-width: 450px) {
  .ai-image { min-width: 100vw; }
}
.ai-image img { width: 100%; height: 100%; object-fit: cover; }

/* Slideshow (fading, captions, arrows and dots below). */
.cs-slideshow .swiper { position: static; padding-bottom: 30px; }
.cs-slideshow .swiper-slide { text-align: center; }
.cs-slideshow figure { margin: 0; line-height: inherit; }
.cs-slideshow img { width: 100%; height: auto; }
.slide-caption { text-align: center; }
.slideshow-button {
  position: absolute;
  top: calc(50% - 30px / 2);
  z-index: 1;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: hsla(0, 0%, 93%, 0.9);
  font-size: 25px;
  cursor: pointer;
  transform: translateY(-50%);
}
.slideshow-button svg { width: 1em; height: 1em; fill: currentColor; }
.slideshow-prev { left: 10px; }
.slideshow-next { right: 10px; }
/* Dots sit just under the slides, at the left, as the original rendered them. */
.cs-slideshow .swiper-pagination.swiper-pagination-bullets { position: absolute; inset: auto; width: auto; }
.cs-slideshow .swiper-pagination-bullets .swiper-pagination-bullet { margin: 0; }

/* Buttons. */
.cs-button-block.align-left { text-align: left; }
.cs-button-block.align-center { text-align: center; }
.cs-button-block.align-right { text-align: right; }
.cs-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  background-color: #69727d;
  color: #fff;
  fill: #fff;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  transition: all 0.3s;
}
.cs-button.grow { transition-duration: 0.3s; transition-property: transform; }
.cs-button.grow:hover,
.cs-button.grow:focus-visible,
.cs-button.grow:active { transform: scale(1.1); }
.cs-button-inner { display: flex; flex-direction: row; gap: 5px; justify-content: center; }
.cs-button-icon { display: flex; align-items: center; }
.cs-button-icon svg { width: 1em; height: 1em; fill: currentColor; }
.cs-button.cs-button,
.cs-button:hover { color: #fff; }

.alioth-button { display: block; }
.alioth-button .a-button { display: inline-block; position: relative; overflow: hidden; margin: 25px 0; }
.alioth-button .a-button a {
  display: block;
  float: left;
  position: relative;
  z-index: 1;
  padding: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
  transition: all 0.3s ease;
}
.alioth-button .a-button a:hover { color: #e8e8e8; }
.a-button-icon { display: inline-block; vertical-align: middle; margin-left: 20px; }

/* ---------- project header (theme "project page header", styles 1 and 2) ---------- */
.project-page-header { display: block; width: 100%; overflow: hidden; margin-bottom: 100px; }
.project-featured-image img,
.project-featured-video,
.project-featured-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-title { display: block; overflow: hidden; transform: translateY(-50%); }
.project-title .big-title {
  display: block;
  margin: 0;
  padding-right: 10px;
  color: #fff;
  font-size: 110px;
  font-weight: 700;
  line-height: 127px;
  letter-spacing: -0.06em;
}
.tt-line { overflow: hidden; padding-right: 5px; }
.project-cat {
  margin-bottom: 25px;
  overflow: hidden;
  color: hsla(0, 0%, 100%, 0.4);
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.06em;
}
.project-cat span { display: block; }
/* Once the entrance wraps the categories, they sit on one line separated by slashes. */
.project-cat span > span { display: inline-block; position: relative; }
.project-cat span > span::before { content: "/"; display: inline-block; margin: 0 5px; }
.project-cat span > span:first-child::before { display: none; }
.project-details { display: block; width: 75%; margin: auto; overflow: hidden; }
.project-metas { margin-top: -30px; overflow: hidden; }
.project-meta { display: block; float: left; box-sizing: border-box; padding-left: 9px; }
.project-meta.project-cats,
.project-page-header.style_2 .project-meta.project-other { width: 35%; }
.project-meta.meta-summary { width: 65%; }
.cs .project-meta .t-h5 { overflow: hidden; color: hsla(0, 0%, 100%, 0.4); }
.project-meta .t-h5 > span,
.summ_line span { display: block; }
.project-page-header .project-other .t-h5 > span,
.project-page-header .summ_line span,
.project-page-header .project-cat .cat-char,
.project-page-header .big-title .tt-char { transform: translateY(100%); }
.project-page-header[data-animate="false"] :is(.project-other .t-h5 > span, .summ_line span, .cat-char, .tt-char),
.reduced-motion .project-page-header :is(.project-other .t-h5 > span, .summ_line span, .cat-char, .tt-char) { transform: none; }

.project-page-header.style_1 .project-featured-image { width: 100%; height: 55vh; }
.project-page-header.style_1 .project-details { overflow: visible; }

.project-page-header.style_2 .project-featured-image { height: 100vh; margin-bottom: 50px; overflow: hidden; }
.project-page-header.style_2 .project-head { position: absolute; top: 50vh; left: 12.5%; transform: translateY(-50%); }
.project-page-header.style_2 .project-title { margin-bottom: 0; transform: none; }
.project-page-header.style_2 .project-cat { display: block; margin-left: 6px; font-size: 50px; line-height: 60px; }
.project-page-header.style_2 .project-metas { margin-top: 0; }

@media (max-width: 767px) {
  .project-title { font-size: 6rem; letter-spacing: -4.5px; }
}
@media (max-width: 450px) {
  .project-title { display: block; width: 100%; margin-bottom: 50px; white-space: normal; transform: translateY(-35%); }
  .project-title .big-title { font-size: 45px; line-height: 55px; }
  .project-metas .project-meta { width: 33%; }
  .project-metas .meta-summary { width: 100%; }
  .project-page-header.style_1 .project-featured-image { height: 65vh; }
  .project-page-header.style_1 .project-details { width: 84%; }
  .project-page-header.style_1 .project-meta.project-cats { width: 100%; }
  .project-page-header.style_1 .project-meta.project-cats .project-cat { display: inline-block; margin-right: 15px; font-size: 25px; }
  .project-page-header.style_1 .project-metas .project-meta { width: 100%; margin-bottom: 30px; padding-left: 3px; }
  .project-page-header.style_1 .project-metas .project-other,
  .project-page-header.style_1 .project-metas .meta-summary { padding-left: 8px; }
  .project-page-header.style_1 .project-title { margin-bottom: 15px; }
  .project-page-header.style_2 .project-cat { margin-left: 2px; font-size: 30px; line-height: 35px; }
  .project-page-header.style_2 .project-head { top: unset; right: 8.5%; bottom: 10%; left: 8.5%; transform: none; }
  .project-page-header.style_2 .project-title { max-width: 100%; }
  .project-page-header.style_2 .project-meta.project-other { width: 100%; }
  .project-page-header.style_2 .project-details { width: 84%; }
}

/* ---------- next project ---------- */
.next-project-section { position: relative; display: block; overflow: hidden; margin-bottom: 0; isolation: isolate; }
.next-project-section a { display: block; width: 100%; height: 100%; overflow: hidden; padding: 150px 0 40px; }
.next-project-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background: #101010;
  transition: height 0.8s cubic-bezier(0.25, 0.74, 0.22, 0.99);
}
.next-project-section:hover::after,
.next-project-section:focus-within::after { height: 0%; }
.next-project-image { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 100%; }
.next-project-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.next-project-image video { display: block; width: 100%; }
.next-project-inner { width: 100%; margin: 0 auto 100px; }
.next-project-inner::after { content: ""; display: table; clear: both; }
.next-project-wrap { float: left; box-sizing: border-box; width: 100%; margin-bottom: 30px; padding: 0 15px; color: #fff; }
.next-project-wrap span { display: block; margin-bottom: 20px; font-size: 16px; opacity: 0.6; }
.next-project-title {
  display: block;
  float: left;
  position: relative;
  width: 100%;
  margin: 0.67em 0 1em;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 65px;
  letter-spacing: -0.06em;
  transition: color 0.1s ease 0.1s;
}
.next-project-title::after {
  content: "→";
  display: block;
  float: right;
  font-family: Arial, sans-serif;
  font-size: 60px;
  font-weight: normal;
  text-align: right;
  transition: all 0.3s ease;
}
.next-project-section:hover .next-project-title::after { opacity: 0; transform: translateX(10px); }
/* Theme "wrapper-small", as overridden by the site's own stylesheet. */
@media (min-width: 576px) { .next-project-inner { max-width: 95%; } }
@media (min-width: 992px) { .next-project-inner { max-width: 960px; } }
@media (min-width: 1200px) { .next-project-inner { max-width: 1200px; } }
@media (min-width: 1600px) { .next-project-inner { max-width: 1500px; } }
@media (max-width: 576px) {
  .next-project-inner { max-width: 90%; margin-bottom: 25px; }
  .next-project-wrap { margin-bottom: 35px; }
}
@media (max-width: 450px) {
  .next-project-section a { padding-top: 70px; }
  .next-project-inner,
  .next-project-wrap { margin-bottom: 0; }
  .next-project-wrap span { margin-bottom: 0; }
  .next-project-title { font-size: 30px; }
  .next-project-title::after { font-size: 40px; }
}
