@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* --black: #141414; */
  --black: #0c0c0c;
  --blackSecond: #141414;
  --white: #e5e5e5;
  --whiteSecond: #949494;
  --strokeThick: 1px;
  --strokeThin: 0.25px;
  --sidePanelWidth: 65px;
  --topRightBorderRadius: 0px;
  --gridGap: 10px;
  --gridGapHalf: 5px;
}
* {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--white);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--black);
}
body {
  display: flex;
}

::-webkit-scrollbar {
  width: 15px;
  /* height: 10px; */
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  /* background: var(--whiteSecond); */
  /* border: 2px solid var(--black);  */
  background: var(--black);
  border: solid var(--strokeThin) var(--whiteSecond);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--white);
  border: solid var(--strokeThin) var(--white);
  cursor: pointer;
}

a {
  text-decoration: none;
}

.spacer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 8vh;
  position: relative;
}

.spacer::before {
  content: none;
}

.spacer.short::before,
.spacer.mid::before,
.spacer.long::before {
  content: "";
  width: var(--strokeThick);
  background-color: var(--white);
  border-radius: 999px;
}

.spacer.short::before {
  height: 10vh;
}
.spacer.mid::before {
  height: 20vh;
}
.spacer.long::before {
  height: 30vh;
}

/* Side Panel */
.sidePanel {
  width: var(--sidePanelWidth);
  height: 100%;
  position: fixed;
  border-right: solid var(--strokeThin) var(--whiteSecond);
  background-color: var(--black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sideTop {
  width: 100%;
}

.logo {
  width: 100%;
}
.logo a {
  letter-spacing: -0.05em;
  display: block;
  width: 100%;
  height: var(--sidePanelWidth);
  /* aspect-ratio: 1 / 1; */
  padding: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-bottom: solid var(--strokeThick) var(--white);
  transition: all 0.5s ease;
  background-color: var(--white);
  overflow-y: hidden;
}
.logo a:hover {
  height: fit-content;
  padding: 5px;
}
.logo a img {
  width: 100%;
  /* padding: 5px; */
  background-color: transparent;
}
.logo a:hover img {
  display: none;
}
.logo a:hover .logoDetails {
  display: block;
}
.logo a .logoDetails {
  display: none;
  font-family: "Jost", sans-serif;
  margin: auto;
  margin-bottom: 10px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform-origin: 50% 50%;
  transform: rotate(180deg);
  background-color: transparent;
  color: var(--black);
}

.navBox {
  width: 100%;
  /* height: 200px; */
}
.navBox a {
  display: block;
  width: 100%;
  height: var(--sidePanelWidth);
  /* aspect-ratio: 1 / 1; */
  padding: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-bottom: solid 0 var(--black);
  /* border-bottom: solid var(--strokeThick) var(--whiteSecond); */
  transition: all 0.1s ease;
  background-color: var(--black);
  overflow-y: hidden;
}
.navBox a:hover {
  padding: 5px;
  height: fit-content;
  border-bottom: solid var(--strokeThick) var(--whiteSecond);
}
.navBox a img {
  width: 100%;
  padding: 5px;
  background-color: var(--black);
}

/* .navBox a:hover img {
  display: none;
} */

.navDetails {
  margin: auto;
  margin-bottom: 20px;
  font-size: 1em;
  margin-top: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform-origin: 50% 50%;
  transform: rotate(180deg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.sectionIndicator {
  font-size: 1em;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 30px;
}

.sideBot {
  width: 100%;
}

.paginationBox {
  width: 100%;
}

.paginationBox a {
  display: block;
  width: 100%;
  height: var(--sidePanelWidth);
  /* aspect-ratio: 1 / 1; */
  padding: 20px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-bottom: solid var(--strokeThick) var(--whiteSecond);
  transition: all 0.5s ease;
  background-color: var(--black);
  overflow-y: hidden;
}
.paginationBox a:hover {
  padding: 15px;
}
.paginationBox a img {
  width: 100%;
  padding: 5px;
  background-color: var(--black);
}
.paginationBox a.bottom {
  border-bottom: none;
  border-top: solid var(--strokeThick) var(--whiteSecond);
}

/* -------------------------------------------------------- */
/* -------------------------------------------------------- */
/* Index styles */
.homeIntro {
  width: 100%;
  margin-top: 35vh;
  margin-bottom: 10vh;
}
.homeIntroGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 50px;
}
.homeIntroFirst {
  margin-bottom: 8vh;
}

.homeIntroFirst h1 {
  font-family: "Jost", sans-serif;
  letter-spacing: -0.05em;
  font-size: 6em;
  color: var(--white);
  margin-bottom: 0px;
  margin-block-start: 0em;
  margin-block-end: -0.2em;
}
.homeIntroFirst h2 {
  margin-top: 0;
  font-family: "Jost", sans-serif;
  font-size: 1.4em;
  font-weight: 400;
  color: var(--whiteSecond);
  line-height: 1em;
  background-color: transparent;
}
.homeIntroFirst h2 strong {
  font-weight: 600;
  color: var(--white);
  background-color: transparent;
}

.homeIntroSecond p {
  font-style: italic;
  text-align: right;
  font-weight: 100;
  font-size: 1em;
  color: var(--whiteSecond);
  line-height: 1.2em;
}

.homeIntroSecond strong {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--white);
}

/* Work Collection Page styles */
.workSection {
  /* width: 100%; */
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 3vh;
  /* padding-top: 2vh;
  padding: 2vh 0; */
}
.workPreviewCollection {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20vh;
  padding-bottom: 10vh;
  /* border-bottom: solid var(--strokeThin) var(--whiteSecond); */
  gap: var(--gridGap);
  /* gap: 16px; */
}

.personal,
.personalWrapper {
  display: none;
}
body.personalOpen .personalWrapper {
  display: block;
  font-size: 2em;
  margin-bottom: 50px;
}

body.personalOpen .personal {
  display: grid;
  gap: var(--gridGap);
  grid-template-columns: repeat(4, 1fr);
}

.onIndex {
  margin-bottom: 5vh;
  padding-bottom: 0vh;
}
.workPreviewCollection a {
  text-decoration: none;
}

.previewImgBox {
  width: 100%;
  /* aspect-ratio: 2/1; */
  /* aspect-ratio: 3/2; */
  aspect-ratio: 16/9;
  border: solid var(--strokeThick) var(--black);
  /* border: solid var(--strokeThick) var(--white); */
  overflow: hidden;
  transition: all 0.5s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}

.previewImgBox video,
.previewImgBox img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.workPreviewCollection a:hover .previewImgBox {
  /* border: solid var(--strokeThick) var(--white); */
  border: solid 3px var(--white);
}
.workPreviewCollection a:hover .previewTextBox {
  border: solid var(--strokeThin) var(--white);
  margin-top: 0px;
  margin-bottom: 20px;
  padding: 10px 10px;
}

.previewTextBox {
  margin-top: 5px;
  margin-bottom: 15px;
  width: 100%;
  height: fit-content;
  border: solid var(--strokeThin) var(--black);
  /* border: solid var(--strokeThin) var(--whiteSecond); */
  padding: 10px 0;
  transition: all 0.5s ease;
}
.previewTextBox h1 {
  font-size: 1em;
  font-weight: 600;
  color: var(--white);
}
.previewTextBox p {
  margin-top: 5px;
  font-size: 0.9em;
  font-weight: 400;
  color: var(--whiteSecond);
  /* text-align: right; */
}
.previewTextBox .tagLine {
  text-align: right;
  font-style: italic;
  margin-top: 5px;
}

/* Selected work adjustment */
.selectedWorks {
  width: 100%;
  margin-top: 10vh;
}

.moreWorks {
  display: flex;
  justify-content: center;
  align-items: center;
}
.moreWorks a {
  text-decoration: none;
}
.moreWorks p {
  border: solid var(--strokeThick) var(--whiteSecond);
  /* background-color: var(--black); */
  background-color: transparent;
  color: var(--whiteSecond);
  padding: 10px;
  transition: all 0.5s ease;
}
.moreWorks a:hover p {
  /* padding: 10px 15px; */
  border: solid var(--strokeThick) var(--whiteSecond);
  background-color: var(--white);
  color: var(--black);
}
/* -------------------------------------------------------- */
/* -------------------------------------------------------- */

/* Main contents Side */
.contentWrapper {
  margin-left: var(--sidePanelWidth);
  width: calc(100% - var(--sidePanelWidth));
  padding: 17.5vh 12.5vw;
  padding-bottom: 5vh;
}

/* -------------------------------------------------------- */
/* -------------------------------------------------------- */

/* footer  */
.footer {
  width: 100%;
  height: 50px;
  margin-top: 15vh;
  display: flex;
  justify-content: space-between;
}
.footer p {
  font-size: 1.2em;
  font-weight: 700;
  color: #363636;
}

.footer strong {
  font-weight: 700;
  font-size: 1.2em;
  font-family: "Jost", sans-serif;
  letter-spacing: -0.05em;
  color: #363636;
}
/* Project Preview - Thumbnail, infos */
.previewBox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gridGap);
}
.previewThumbnail {
  grid-column: span 2;
  width: 100%;
  border: solid var(--strokeThick) var(--white);
  height: fit-content;
  /* max-height: 85vh; */
  overflow: hidden;
}

.previewThumbnail img {
  width: 100%;
  height: 100%;
  max-height: 85vh;
  display: block;
  object-fit: cover;
  object-position: center;
}
.previewThumbnail iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
  object-position: center;
}
.previewInfo {
  grid-column: span 1;
  width: 100%;
  margin: 0;
}
.previewTitle {
  background-color: var(--white);
  color: var(--black);
  padding: 15px 10px;
  font-weight: bold;
  font-size: 1.5em;
  border-top-right-radius: var(--topRightBorderRadius);
}
.previewDetailBox {
  width: 100%;
  margin-top: 10px;
  border: solid var(--strokeThin) var(--whiteSecond);
}
.previewDetails {
  width: 100%;
  padding: 10px;

  justify-content: space-between;

  /* border: solid var(--strokeThin) var(--whiteSecond); */
}
.previewDetails h1 {
  font-size: 1em;
  font-weight: 700;
}
.previewDetails p {
  font-size: 1em;
  margin-top: 5px;
  margin-left: 50px;
  color: var(--whiteSecond);
  text-align: right;
}

/* Main content box - Description, main contents */
.mainBox {
  width: 100%;
  /* display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gridGap); */
}
.mainBox h1 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
}
.mainBox h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
}
.mainBox h3 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 10px;
}

.mainBox p {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  color: var(--whiteSecond);
}
.mainBox a {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  /* color: var(--whiteSecond); */
}

.mainBox strong {
  font-weight: 400;
  color: var(--white);
}

.mainBox li {
  margin-left: 25px;
  color: var(--whiteSecond);
}

/* Description box */
.descriptionBox {
  width: 100%;
}

/* MainContent */
.mainContent {
  width: 100%;
  height: fit-content;
}
.mediaAuto,
.mainContent video,
.mainContent img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  display: block;
  object-fit: cover;
  object-position: center;
  border: solid var(--strokeThin) var(--whiteSecond);
  background-color: transparent;
}

.mainContent iframe {
  width: 100%;
  aspect-ratio: 2/1;
  display: block;
  /* object-fit: cover;
  object-position: center; */
  border: solid var(--strokeThin) var(--whiteSecond);
  background-color: transparent;
  margin: 10px 0;
}
.contentBox {
  width: 100%;
  padding: 10px;
}
.linkBox {
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  transition: all 0.3s ease;
  color: var(--whiteSecond);
}
.linkBox:hover {
  background-color: var(--white);
  color: var(--black);
}

.one {
  display: grid;
  gap: var(--gridGap);
  margin: var(--gridGap) 0;
  grid-template-columns: repeat(1, 1fr);
  padding: 0px;
}
.two {
  display: grid;
  gap: var(--gridGap);
  margin: calc(var(--gridGap) / 2) 0;
  grid-template-columns: repeat(2, 1fr);
  padding: 0px;
}

.three {
  display: grid;
  gap: var(--gridGap);
  margin: var(--gridGap) 0;
  grid-template-columns: repeat(3, 1fr);
  padding: 0px;
}
.double {
  grid-column: span 2;
}
.border {
  border: solid var(--strokeThin) var(--whiteSecond);
}
.noPad {
  padding: 0;
}
.twoRatio {
  grid-template-columns: 1fr 2fr;
}
.twoRatioSec {
  grid-template-columns: 2fr 1fr;
}

.contactBox {
  width: 100%;
  display: grid;
  gap: var(--gridGap);
  margin: var(--gridGap) 0;
  grid-template-columns: repeat(3, 1fr);
  padding: 0px;
}
.aboutBox {
  width: 100%;
  display: grid;
  gap: var(--gridGap);
  margin: var(--gridGap) 0;
  grid-template-columns: repeat(3, 1fr);
  padding: 0px;
}
.aboutBox h1 {
  font-size: 3em;
}

/* ===== Lightbox ===== */
.imgModal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background-color: transparent;
  cursor: pointer;
}
.imgModal.is-open {
  display: block;
}

.imgModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  /* background-color: transparent; */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.imgModal__panel {
  position: absolute;
  inset: 10vh 10vw;
  margin: 0;
  /* padding: 5vh 5vw; */
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgModal__img {
  /* max-width: 100%;
  max-height: 100%; */
  /* border: solid var(--strokeThick) var(--white); */
  background-color: transparent;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* border-radius: 10px; */
  /* cursor: zoom-out; */
  /* cursor:pointer; */
}

.imgModal__close {
  display: none;
  position: absolute;
  top: -10px;
  right: -10px;
  width: var(--sidePanelWidth);
  height: var(--sidePanelWidth);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 50px;
  line-height: 1;
  cursor: pointer;
}

.previewThumbnail img,
.lb-zoomable {
  /* cursor: zoom-in; */
  cursor: pointer;
}

/* -------------------------------------------------- */
/* -------------------------------------------------- */

/* Loading screen style */
.loadingOverlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 120vh;
  margin-bottom: -10vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  /* transition: opacity 200ms ease; */
}

.loadingOverlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loadingOverlay img {
  width: 120px;
  height: auto;
  display: block;
}

/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* -------------------------------------------------- */
/* Responsive style */

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menuToggle {
  display: none;
}

.menuOverlay {
  display: none;
}

@media only screen and (max-width: 900px) {
  .homeIntroFirst h1 {
    font-size: 4em;
  }
  .homeIntroFirst h2 {
    font-size: 1em;
  }
  .homeIntroSecond {
    width: 75%;
    display: block;
    margin: auto;
    margin-right: 0;
  }
  .homeIntroSecond p {
    font-size: 0.8em;
  }

  .workPreviewCollection {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 20vh;
    padding-bottom: 0vh;
  }

  .contentWrapper {
    margin-left: 0;
    width: 100%;
    padding: 14vh 5vw;
    padding-bottom: 3vh;
  }
  .workSection {
    font-size: 2em;
  }
  .onIndex {
    margin-bottom: 5vh;
  }

  .aboutBox {
    grid-template-columns: repeat(1, 1fr);
    gap: 0;
  }
  .aboutBox .double {
    padding: 0;
  }
  .aboutBox h1 {
    margin-top: 30px;
  }
  /* .previewThumbnail{
    max-height: 50vh;
  }
  .previewThumbnail img{
    max-height: 50vh;
  } */

  .previewBox {
    display: block;
    /* grid-template-columns: repeat(1, 1fr); */
  }
  .previewTitle {
    margin-top: 10px;
  }
  .previewDetails {
    display: flex;
  }
  .previewDetails h1 {
    font-size: 0.8em;
  }

  .previewDetails p {
    font-size: 0.8em;
    margin-top: 0px;
    margin-left: 0px;
    width: 200px;
  }

  .mainBox h1 {
    font-size: 1.5em;
  }
  .mainBox h2 {
    font-size: 1.2em;
  }
  .mainBox h3 {
    font-size: 1em;
  }

  .contentBox.three {
    grid-template-columns: repeat(1, 1fr);
  }
  .contentBox.mobileOne {
    grid-template-columns: repeat(1, 1fr);
  }
  .contentBox.mobileTwo {
    grid-template-columns: repeat(2, 1fr);
  }
  .contactBox {
    grid-template-columns: repeat(1, 1fr);
    /* gap: 100px; */
  }
  .contactBox .two {
    grid-template-columns: 1fr 2fr;
  }
  .contactBox h3 {
    font-size: 1em;
  }
  .contactBox p {
    font-size: 0.8em;
  }

  .menuToggle {
    display: inline-flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10003;

    width: 44px;
    height: 44px;

    border: solid var(--strokeThick) var(--whiteSecond);
    background: var(--black);
    color: var(--white);

    align-items: center;
    justify-content: center;

    cursor: pointer;
  }

  .menuIcon {
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--whiteSecond);
    display: block;
  }
  .menuIcon::before,
  .menuIcon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--whiteSecond);
  }
  .menuIcon::before {
    top: -7px;
  }
  .menuIcon::after {
    top: 7px;
  }

  .sidePanel {
    z-index: 10002;
    /* width: min(82vw, 360px); */
    width: 100%;
    height: 100dvh;

    transform: translateX(-110%);
    transition: transform 250ms ease;
    display: flex;
    justify-content: space-between;
  }
  .sideTop {
    display: block;
    margin-top: 20vh;
  }
  .logo a {
    display: flex;
    height: fit-content;
  }
  .logo a img {
    height: 50px;
    width: auto;
    padding: 5px;
  }
  .logo a .logoDetails {
    margin-left: 10px;
    display: block;
    font-size: 1.5em;
    writing-mode: initial;
    text-orientation: inherit;
    transform: rotate(0deg);
    margin-block-start: 0em;
    margin-block-end: -0.1em;
  }
  .logo a:hover {
    padding: 15px;
  }
  .logo a:hover img {
    display: block;
  }

  .navBox a {
    display: flex;
    height: fit-content;
    border: solid var(--strokeThin) var(--white);
  }
  .navBox a img {
    height: 50px;
    width: auto;
    padding: 5px;
  }
  .navBox a:hover {
    padding: 15px;
  }

  .navDetails {
    font-size: 1em;
    margin-left: 10px;
    writing-mode: initial;
    text-orientation: inherit;

    transform: rotate(0deg);
    margin-block-start: 0em;
    margin-block-end: -0.1em;
  }

  .paginationBox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .sectionIndicator {
    grid-column: span 3;
    margin: auto;
    margin-bottom: 20px;
    font-size: 1.2em;
  }

  .paginationBox a {
    display: flex;
    height: 75px;
    border: solid var(--strokeThick) var(--whiteSecond);
  }
  .paginationBox a.bottom {
    border-bottom: solid var(--strokeThick) var(--whiteSecond);
  }

  .paginationBox a img {
    padding: 5px;
    height: 100%;
    width: auto;
  }

  .menuOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 200ms ease;
  }

  body.menuOpen .sidePanel {
    transform: translateX(0);
  }
  body.menuOpen .menuOverlay {
    opacity: 1;
  }

  body.menuOpen {
    overflow: hidden;
  }

  body.personalOpen .personal {
    grid-template-columns: repeat(2, 1fr);
  }
  body.personalOpen .personalWrapper {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .footer {
    margin-top: 5vh;
  }
  .footer p {
    font-size: 1em;
  }

  .footer strong {
    font-size: 1em;
  }
}
