/* Studio GourauPhong. Values match the former Adobe Portfolio theme. */

:root {
  --font: "obviously-wide", "Obviously Wide", "Helvetica Neue", Arial, sans-serif;
  --bg: #000;
  --fg: #fff;
  --muted: #888;
  --footer: #555;
  --cover-ink: #222;
  --gutter: 15px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-stretch: var(--font-stretch, 100%);
}
button { font-stretch: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
picture { display: contents; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 200px;
  padding: 0 3%;
}
.nav {
  width: 35.5%;
  text-align: left;
}
.nav a,
.responsive-nav a {
  display: inline-block;
  padding-right: 20px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  text-transform: uppercase;
}
.nav a:last-child { padding-right: 0; }
.nav a.active, .responsive-nav a.active { font-weight: 700; }
.logo {
  width: 29.5%;
  padding: 0 1.475%; /* Adobe: 5% of a 29.5%-wide wrapper */
  text-align: center;
}
.logo img { display: inline-block; width: auto; max-height: 200px; }
.header-right { width: 35%; }

.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  padding: 30px 5%;
  background: none;
  border: 0;
  cursor: pointer;
}
.hamburger i {
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 4px;
  background: var(--fg);
}
.hamburger i:last-child { margin-bottom: 0; }

.responsive-nav {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  padding: 50px 5% 0;
  background: var(--bg);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s ease .2s, opacity .2s ease;
}
.responsive-nav nav { margin: auto; width: 100%; }
.responsive-nav a {
  display: block;
  padding: 0 0 30px;
  font-size: 22px;
  line-height: 32px;
}
.close-nav {
  position: absolute;
  top: 30px;
  right: 5%;
  width: 30px;
  height: 30px;
  background: none;
  border: 0;
  cursor: pointer;
}
.close-nav::before, .close-nav::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transform: rotate(45deg);
}
.close-nav::after { transform: rotate(-45deg); }
.show-nav { overflow: hidden; }
.show-nav .responsive-nav {
  opacity: 1;
  visibility: visible;
  transition: visibility 0s ease 0s, opacity .2s ease 0s;
}

/* ---------- Layout ---------- */
.site-content {
  margin: 0 3%;
  width: 94%;
}
.page-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Project covers (work grid + "You may also like") ---------- */
.project-covers {
  display: flex;
  flex-wrap: wrap;
}
.project-cover {
  position: relative;
  display: block;
  overflow: hidden;
}
.work-grid { gap: 0 var(--gutter); }
.work-grid .project-cover {
  width: calc((100% - 2 * var(--gutter)) / 3);
  margin-bottom: 15px;
}
.cover-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.cover-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity .2s ease;
}
.project-cover:hover .cover-image::after,
.project-cover:focus-visible .cover-image::after { opacity: .9; }
.project-cover .details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8%;
  color: var(--cover-ink);
  text-align: center;
  opacity: 0;
  transition: opacity .15s ease;
}
.project-cover:hover .details,
.project-cover:focus-visible .details { opacity: 1; }
.project-cover .title {
  font-size: 17px;
  line-height: 22px;
  font-weight: 400;
  text-transform: uppercase;
}
.project-cover .date {
  padding-top: 12px;
  font-size: 14px;
  line-height: 18px;
}

/* ---------- Project modules ---------- */
.modules { overflow: hidden; }
.project-module {
  margin: 0 auto;
  word-break: break-word;
}
.project-module.image,
.project-module.media-collection,
.project-module.embed { padding-bottom: 20px; }
.project-module.image img,
.project-module.image video { margin: 0 auto; width: 100%; height: auto; }

.media-collection { overflow: hidden; }
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}
.grid-item {
  position: relative;
  box-sizing: content-box;
  border-bottom: 8px solid transparent;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.grid-filler { display: block; background: rgba(255, 255, 255, .03); }
.grid-item img,
.grid-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed-dimensions { margin: 0 auto; }
.embed-ratio { position: relative; height: 0; }
.embed-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-module.text {
  width: 100%;
  padding: 20px 0 40px;
  text-align: center;
}
/* Adobe's theme centred every text block regardless of its alignment setting. */
.rich-text > div {
  padding: 10px 0;
  font-size: 18px;
  line-height: 32px;
  font-weight: 400;
}
.rich-text .title {
  padding: 20px 0;
  font-size: 55px;
  line-height: 23px; /* as in the Adobe theme */
  font-weight: 600;
  text-transform: uppercase;
}
.rich-text .sub-title {
  padding: 20px 0;
  font-size: 24px;
  line-height: 25px;
  font-weight: 500;
}
.rich-text a { text-decoration: underline; }

/* ---------- You may also like ---------- */
.other-projects { padding: 40px 0; }
.other-projects-title {
  margin: 0 0 30px;
  color: #eee;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  text-transform: uppercase;
}
.other-projects .project-covers { gap: 0 5px; }
.other-projects .project-cover { width: calc((100% - 15px) / 4); }
.other-projects .project-cover:nth-child(n + 5) { display: none; }
.other-projects .cover-image:hover::after { opacity: .97; }
.other-projects .project-cover .title { font-size: 14px; line-height: 18px; font-weight: 600; padding-bottom: 3px; }
.other-projects .project-cover .date { font-size: 13px; line-height: 20px; font-weight: 600; padding-top: 3px; }

/* ---------- About / Contact ---------- */
.about-text {
  max-width: 1100px;
  margin: 0 auto;
  padding: 95px 0 91px;
  text-align: center;
}
.about-text p {
  margin: 0;
  padding: 10px 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.contact {
  padding: 95px 0;
  text-align: center;
}
.contact-email {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.contact-email:hover { opacity: .7; }
.social { margin: 0; padding: 0; list-style: none; }
.social li { display: inline-block; }
.social svg { width: 30px; height: 30px; fill: var(--fg); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 100px 0;
  color: var(--footer);
  font-size: 10px;
  line-height: 20px;
  text-align: center;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  background: rgba(255, 255, 255, .1);
}
.back-to-top:hover { background: rgba(255, 255, 255, .2); }
.back-to-top svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  fill: #fff;
  opacity: .3;
}
.back-to-top:hover svg { opacity: .5; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .95);
}
.lb img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; }
.lb button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font: 28px/1 var(--font);
  padding: 20px;
  cursor: pointer;
  opacity: .6;
}
.lb button:hover { opacity: 1; }
.lb .lb-close { top: 10px; right: 10px; }
.lb .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Tablet ---------- */
@media (max-width: 932px) {
  .site-header { height: 120px; padding: 0 5%; }
  .nav, .header-right { display: none; }
  .logo { width: 100%; padding: 0 39px; }
  .logo img { max-height: 60px; }
  .hamburger { display: block; }
  .back-to-top { display: none; }
  .site-content { margin: 0; width: 100%; }

  .work-grid .project-cover { width: calc(50% - 7.5px); margin-bottom: 11px; }
  .project-cover .title { font-size: 14px; line-height: 18px; }
  .project-cover .date { padding-top: 10px; font-size: 14px; line-height: 20px; }

  .project-module.image,
  .project-module.media-collection,
  .project-module.embed { padding-bottom: 14px; }
  .project-module.text { padding: 14px 5% 20px; }
  .rich-text > div { padding: 8px 0; font-size: 14px; line-height: 25px; }
  .rich-text .title { padding: 14px 0; font-size: 32px; line-height: 13px; }
  .rich-text .sub-title { padding: 14px 0; font-size: 18px; line-height: 19px; }

  .other-projects { padding: 20px 0; }
  .other-projects-title { padding: 0 5%; margin-bottom: 18px; font-size: 17px; line-height: 22px; }
  .other-projects .project-cover { width: calc(50% - 2.5px); }
  .other-projects .project-cover:nth-child(n + 3) { display: none; }

  .about-text, .contact { padding-left: 5%; padding-right: 5%; }
  .about-text p { font-size: 18px; line-height: 26px; }
  .site-footer { padding: 40px 5%; }
}

/* ---------- Phone ---------- */
@media (max-width: 540px) {
  .work-grid .project-cover { width: 100%; margin-bottom: 10px; }
  .project-cover .title { line-height: 20px; }

  .project-module.image,
  .project-module.media-collection,
  .project-module.embed { padding-bottom: 13px; }
  .project-module.text { padding-top: 13px; padding-bottom: 18px; }
  .rich-text > div { padding: 7px 0; font-size: 14px; line-height: 20px; }
  .rich-text .title { padding: 13px 0; font-size: 26px; line-height: 11px; }
  .rich-text .sub-title { padding: 13px 0; font-size: 15px; line-height: 16px; }

  .other-projects { padding: 18px 0; }
  .other-projects-title { margin-bottom: 16px; font-size: 14px; line-height: 18px; }
  .other-projects .project-cover { width: 100%; }
  .other-projects .project-cover:nth-child(n + 2) { display: none; }

  .about-text p { font-size: 16px; line-height: 24px; }
  .site-footer { padding: 34px 5%; }
}

.work-page .back-to-top { display: none; }
.contact .social svg { width: 96px; height: 77px; }
.film { width: 100%; height: auto; background: #000; }
