
/* ========================================
   PORTFOLIO PAGES
======================================== */

.portfolio-page {
  background: #080808;
}

.portfolio-hero {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-height) + var(--progress-height));
  background: #080808;
}

.portfolio-hero__image {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.portfolio-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.72)),
    linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.08));
}

.portfolio-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  padding: clamp(7rem, 14vw, 12rem) clamp(1.5rem, 7vw, 7rem) 6rem;
  text-align: center;
}

.portfolio-hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.portfolio-landing {
	font-size: 1.5rem;
}

.portfolio-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 11vw, 9.5rem);
  line-height: .88;
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.portfolio-hero__intro {
  max-width: 640px;
  margin: 1.8rem auto 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.75;
}

.portfolio-index {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem) clamp(6rem, 10vw, 10rem);
}

.portfolio-index__grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.destination-card {
  position: relative;
  grid-column: span 6;
  min-height: clamp(320px, 46vw, 620px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background: #161616;
}

.destination-card:first-child {
  grid-column: 1 / -1;
  min-height: clamp(380px, 55vw, 720px);
}

.destination-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.22,1,.36,1);
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.7));
  transition: background 400ms ease;
}

.destination-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 4rem);
  transform: translateY(8px);
  transition: transform 450ms cubic-bezier(.22,1,.36,1);
}

.destination-card__kicker {
  display: block;
  margin-bottom: .65rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.destination-card h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .95;
  font-weight: 900;
  text-transform: uppercase;
}

.destination-card p {
  margin: 1rem 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
	font-size: 1.2rem;
	max-width: 90%;
}

.destination-card:hover img,
.destination-card:focus-visible img {
  transform: scale(1.045);
}

.destination-card:hover::after,
.destination-card:focus-visible::after {
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.78));
}

.destination-card:hover .destination-card__content,
.destination-card:focus-visible .destination-card__content {
  transform: translateY(0);
}

/* ========================================
   VIDEO PORTFOLIO
======================================== */

.video-portfolio {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 8vw, 8rem);
  background: radial-gradient(circle at 10% -7%, rgba(255, 153, 51, 0.1), transparent 40%), #000;
}

.video-portfolio__header {
  width: min(1400px, 100%);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.video-portfolio__eyebrow {
  margin: 0 0 .8rem;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.video-portfolio__header h2 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: .9;
  font-weight: 900;
  text-transform: uppercase;
}

.video-portfolio__header > p:last-child {
  max-width: 680px;
  margin: 1.25rem auto 0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.video-portfolio__grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.video-card {
  position: relative;
  min-height: clamp(300px, 50vw, 520px);
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  border: 0;
  background: #151515;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.7));
  transition: background 400ms ease;
}

.video-card > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(.22,1,.36,1), filter 350ms ease;
}

.video-card__subtitle {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
  font-family: "Mulish", sans-serif;
	font-size: 1.2rem;
    max-width: 100%;
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72));
  transition: background 350ms ease;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(66px, 7vw, 92px);
  height: clamp(66px, 7vw, 92px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(0,0,0,.34);
  transform: translate(-50%, -50%);
  transition: transform 350ms cubic-bezier(.22,1,.36,1), background 250ms ease, border-color 250ms ease;
}

.video-card__play svg {
  width: 36%;
  height: 36%;
  margin-left: 5%;
}

.video-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 3;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  transform: translateY(0);
  transition:
    transform 400ms cubic-bezier(.22, 1, .36, 1);
}

.video-card:hover .video-card__content,
.video-card:focus-visible .video-card__content {
  transform: translateY(-10px);
}

.video-card__kicker {
  display: block;
  margin-bottom: .55rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.video-card__content strong {
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .95;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card:hover > img,
.video-card:focus-visible > img {
  transform: scale(1.045);
  filter: brightness(.78);
}

.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play {
  border-color: var(--accent);
  background: rgba(255,153,51,.2);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0,0,0,.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.video-lightbox__frame {
  width: min(92vw, 1500px);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  box-shadow: 0 20px 70px rgba(0,0,0,.5);
}

.video-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
  color: var(--accent);
  transform: scale(1.08);
}

/*@media (max-width: 850px) {
  .video-portfolio__grid { grid-template-columns: 1fr; }
  .video-card { min-height: 56svh; }
}*/

@media (max-width: 520px) {
  .video-portfolio { padding-inline: .75rem; }
  .video-card { min-height: 45svh; }
  .video-lightbox { padding: .5rem; }
  .video-lightbox__frame { width: 100%; }
}

.gallery-section {
  padding: clamp(3rem, 7vw, 7rem) clamp(.75rem, 2vw, 2rem) clamp(7rem, 12vw, 12rem);
  background: #080808;
}

.gallery-grid {
  width: min(1700px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(.55rem, 1vw, 1rem);
}

.gallery-tile {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #151515;
  cursor: zoom-in;
}

.gallery-tile:nth-child(7n + 1),
.gallery-tile:nth-child(7n + 5) {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.gallery-tile:nth-child(9n + 3) {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms cubic-bezier(.22,1,.36,1),
    filter 350ms ease;
}

.gallery-tile::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f93;
  font-size: 2.2rem;
  font-weight: 200;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity 250ms ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.035);
  filter: brightness(.78);
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
  opacity: 1;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.66);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0,0,0,.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__figure {
  position: relative;

  display: grid;
  justify-items: center;
  gap: 0.75rem;

  width: min(92vw, 1600px);
  max-height: 88vh;

  margin: 0;
}

.lightbox__image {
  display: block;

  max-width: 100%;
  max-height: calc(88vh - 70px);

  object-fit: contain;

  opacity: 0;
  transform: scale(.985);

  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(.22, 1, .36, 1);
}

.lightbox__image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox__controls {
  display: grid;

  grid-template-columns:
    72px
    minmax(0, 1fr)
    72px;

  align-items: center;

  width: min(100%, 460px);
  min-height: 58px;

  margin: 0 auto;
}

.lightbox__counter {
  justify-self: center;

  color: rgba(255, 255, 255, .62);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
  text-align: center;
}

.lightbox__close,
.lightbox__previous,
.lightbox__next {
  border: 0;

  background: transparent;
  color: rgba(255, 255, 255, .76);

  cursor: pointer;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible,
.lightbox__previous:hover,
.lightbox__previous:focus-visible,
.lightbox__next:hover,
.lightbox__next:focus-visible {
  color: var(--accent);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 52px;
  height: 52px;

  font-size: 5rem;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  transform: scale(1.05);
}

.lightbox__previous,
.lightbox__next {
  position: static;

  display: grid;
  place-items: center;

  width: 72px;
  height: 58px;

  padding: 0;

  font-size: 4.5rem;
  font-weight: 200;
  line-height: 1;

  transform: none;
}

.lightbox__previous {
  justify-self: start;
}

.lightbox__next {
  justify-self: end;
}

.lightbox__previous:hover,
.lightbox__previous:focus-visible {
  transform: translateX(-4px);
}

.lightbox__next:hover,
.lightbox__next:focus-visible {
  transform: translateX(4px);
}

@media (max-width: 850px) {
  .portfolio-hero { min-height: 62svh; }
  .portfolio-index__grid { grid-template-columns: 1fr; }
  .destination-card,
  .destination-card:first-child {
    grid-column: 1;
    min-height: 30svh;
  }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-tile,
  .gallery-tile:nth-child(7n + 1),
  .gallery-tile:nth-child(7n + 5),
  .gallery-tile:nth-child(9n + 3) {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .gallery-tile:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .lightbox__previous,
  .lightbox__next { width: 48px; height: 70px; font-size: 5rem; }
  .video-card {
  min-height: clamp(300px, 50vw, 520px);
  }
  .video-portfolio__grid { grid-template-columns: 1fr; }
	
  .lightbox {
    padding:
      clamp(.75rem, 3vw, 1.5rem);
  }

  .lightbox__figure {
    width: 100%;
    max-width: 100%;
    max-height: calc(100svh - 2rem);
    gap: .65rem;
  }

  .lightbox__image {
    max-width: 100%;
    max-height: calc(100svh - 8rem);
  }

  /*
    Place the arrows and counter on one line
    directly beneath the image.
  */

  .lightbox__controls {
    display: grid;
    grid-template-columns:
      64px
      minmax(0, 1fr)
      64px;
    align-items: center;
    width: min(100%, 420px);
    min-height: 56px;
    margin: 0 auto;
  }

  .lightbox__previous,
  .lightbox__next {
    position: static;
    display: grid;
    place-items: center;
    width: 64px;
    height: 56px;
    padding: 0;
    font-size: 4rem;
    line-height: 1;
    transform: none;
  }

  .lightbox__previous {
    justify-self: start;
  }

  .lightbox__next {
    justify-self: end;
  }

  .lightbox__counter {
    justify-self: center;
    line-height: 1;
    text-align: center;
  }

  .lightbox__previous:hover,
  .lightbox__previous:focus-visible {
    transform: translateX(-4px);
  }

  .lightbox__next:hover,
  .lightbox__next:focus-visible {
    transform: translateX(4px);
  }
}

@media (max-width: 520px) {
  .gallery-section { padding-inline: .45rem; }
  .gallery-grid { gap: .45rem; }
  .gallery-tile,
  .gallery-tile:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .lightbox { padding: .75rem; }
  .video-card__subtitle { display: none; }
	
  .video-portfolio__header h2 {
	font-size: clamp(2rem, 8vw, 7rem);
  }
	
  .lightbox {
    padding: 0.75rem;
  }

  .lightbox__figure {
    width: 100%;
    max-height: calc(100svh - 1.5rem);
  }

  .lightbox__image {
    max-height: calc(100svh - 7rem);
  }

  .lightbox__controls {
    grid-template-columns:
      58px
      minmax(0, 1fr)
      58px;
    width: 100%;
    min-height: 52px;
  }

  .lightbox__previous,
  .lightbox__next {
    width: 58px;
    height: 52px;
    font-size: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-hero__image,
  .destination-card img,
  .gallery-tile img,
  .lightbox__image { transform: none !important; }
}


.video-portfolio--page {
  padding-top: clamp(4rem, 8vw, 8rem);
}
