/* GP SOLUTION. Values match the former Adobe Portfolio theme. */

:root {
  --blue: #002aff;
  --gutter: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { margin: 0; background: #000; color: #fff; font-family: arial, helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

/* ---------- Header (fixed) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 100px;
  padding: 0 3%;
  background: #000;
}
.nav { width: 35%; }
.nav a, .responsive-nav a {
  display: inline-block;
  padding-right: 20px;
  font-size: 22px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav a:last-child { padding-right: 0; }
.nav a:hover, .nav a.active,
.responsive-nav a:hover, .responsive-nav a.active { color: var(--blue); }
.nav a.page-link:hover:not(.active) { font-weight: 400; }
.logo { width: 30%; display: flex; justify-content: center; }
.logo img { width: 270px; }
.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: #fff; }
.hamburger i:last-child { margin-bottom: 0; }

.responsive-nav {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  padding: 50px 5% 0;
  background: #000;
  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; 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: #fff;
  transform: rotate(45deg);
}
.close-nav::after { transform: rotate(-45deg); }
.show-nav { overflow: hidden; }
.show-nav .responsive-nav { opacity: 1; visibility: visible; transition: visibility 0s, opacity .2s ease; }

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

/* ---------- Project covers ---------- */
.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: var(--blue);
  opacity: 0;
  transition: opacity .2s ease;
}
.project-cover:hover .cover-image::after,
.project-cover:focus-visible .cover-image::after { opacity: .2; }
.project-cover .details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8%;
  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: 26px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }

/* ---------- Project modules ---------- */
.modules { overflow: hidden; }
.project-module { margin: 0 auto; word-break: break-word; }
/* One 8px gap between pictures, side by side or stacked (grid cells carry their own). */
.project-module.image, .project-module.embed { padding-bottom: 8px; }
.project-module.image a { display: block; margin: 0 auto; }
.project-module.image img { width: 100%; }

.media-collection { overflow: hidden; }
.grid { margin: 0 -4px; }
.grid-row { display: flex; }
.grid-item {
  position: relative;
  min-width: 0;
  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 { 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: var(--pt, 20px) 0 var(--pb, 40px); text-align: center; }
.project-module.text.to-left { margin-left: 0; }
.rich-text div, .rich-text p {
  margin: 0;
  padding: 10px 0;
  color: #eee;
  font-size: 18px;
  line-height: 24px;
}
.rich-text a { text-decoration: underline; }
.project-page .rich-text span[style*="font-size:3"],
.project-page .rich-text span[style*="font-size:4"] { line-height: 1.15; }
.rich-text .bold { font-weight: 700; }
.rich-text .italic { font-style: italic; }
.rich-text .underline { 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 .project-cover .title { font-size: 14px; line-height: 18px; font-weight: 600; }

/* ---------- 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: 18px; left: 18px; width: 24px; height: 24px; fill: #fff; opacity: .3; }
.back-to-top:hover svg { opacity: .5; }
.work-page .back-to-top { display: none; }

/* ---------- 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 arial; 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 { padding: 0 5%; }
  .nav, .header-right { display: none; }
  .logo { width: 100%; padding: 0 39px; }
  .logo img { width: 204px; }
  .hamburger { display: block; }
  .back-to-top { display: none; }
  /* narrow screens: same space at the page edges as between covers */
  :root { --gutter: 12px; }
  .site-content { margin: 0; width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }

  .work-grid .project-cover { width: calc((100% - var(--gutter)) / 2); margin-bottom: var(--gutter); }
  .project-cover .title { font-size: 19px; }
  .project-module.text { padding: var(--pt, 14px) 0 var(--pb, 20px); }
  .rich-text div, .rich-text p { padding: 8px 0; font-size: 14px; line-height: 19px; }
  .other-projects { padding: 20px 0; }
  .other-projects-title { 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; }
}

/* ---------- Phone ---------- */
@media (max-width: 540px) {
  .logo img { width: 144px; }
  .work-grid .project-cover { width: 100%; }
  .project-cover .title { font-size: 16px; }
  .project-module.text { padding-top: var(--pt, 13px); padding-bottom: var(--pb, 18px); }
  .grid.stack-phone .grid-row { display: block; }
  .rich-text div, .rich-text p { padding: 7px 0; }
  .rich-text div, .rich-text p, .rich-text span { font-size: 14px !important; line-height: 20px !important; }
  .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; }
}
.grid-item > a { position: absolute; inset: 0; }
