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

@font-face {
  font-family: 'afronaut';
  src: url('AfronautTest-Regular.otf') format('embedded-opentype'),
    /* Internet Explorer */
    url('AfronautTest-Regular.otf') format('woff2'),
    /* Super Modern Browsers */
    url('AfronautTest-Regular.otf') format('woff'),
    /* Pretty Modern Browsers */
    url('AfronautTest-Regular.otf') format('truetype'),
    /* Safari, Android, iOS */
    url('AfronautTest-Regular.otf') format('svg');
  /* Legacy iOS */
}

:root {
  font-size: 15px;
  margin: 0;
  position: relative;
  --color-text: #151A18;
  --color-text-alt: #787878;
  --color-bg: #fff;
  --color-link: #FF69B4;
  --color-link-hover: #ccc;
  --page-padding: 2rem;
  /* Stack and slideshow */
  --stack-margin: 10rem;
  --slide-gap: 2vh;
  --stack-width: 50vw;
  --stack-item-height: 12vh;
  --slide-width: 40vw;
  --slide-height: 50vh;
}

body {
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  position: relative
}

#footer {
  position: relative;
  bottom: 20px;
  width: 100%;
  justify-items: center;
  margin: 0 auto;
  display: grid;
  z-index: 9000;
}

body.homepage #footer {
  position: fixed;
}

#footer a {
  font-family: "Montserrat", sans-serif;
  color: var(--color-text);
  font-size: x-small;
}

.js .loading:before, .js .loading:after {
  content: "";
  z-index: 1000;
  position: fixed
}

.js .loading:before {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  top: 0;
  left: 0
}

.js .loading:after {
  width: 60px;
  height: 60px;
  opacity: .4;
  background: var(--color-link);
  border-radius: 50%;
  margin: -30px 0 0 -30px;
  animation: loaderAnim .7s linear infinite alternate forwards;
  top: 50%;
  left: 50%
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale(.5)
  }
}

a {
  color: var(--color-link);
  outline: none;
  text-decoration: none
}

a:hover {
  color: var(--color-link-hover);
  outline: none
}

a:focus {
  background: #d3d3d3;
  outline: none
}

a:focus:not(:focus-visible) {
  background: 0 0
}

a:focus-visible {
  background: 0 0;
  outline: 2px solid red
}

a.selected {
  color: var(--color-link-hover) !important;
}

a.logo {
  text-decoration: none !important;
  color: var(--color-text);
}

.oh {
  position: relative;
  overflow: hidden
}

.oh__inner {
  will-change: transform;
  display: inline-block
}

.unbutton {
  color: inherit;
  font: inherit;
  background: 0 0;
  border: 0;
  margin: 0;
  padding: 0
}

.unbutton:focus {
  outline: none
}

.frame {
  text-align: center;
  width: 100%;
  padding: 3rem 5vw;
  position: absolute
}

.frame__title {
  flex-wrap: wrap;
  justify-content: center;
  display: flex
}

.frame__title-main {
  margin: 0;
  font-size: 1rem;
  font-weight: 400
}

.frame__title-back {
  align-items: flex-end;
  display: flex;
  position: relative
}

.frame__title-back span {
  display: none
}

.frame__title-back svg {
  fill: #fff
}

.frame__title-prev {
  width: 100%
}

.frame__logo {
  line-height: 1.7
}

.frame__links {
  grid-area: 1 / 4;
  align-items: flex-end;
  display: inline-block;
  position: relative
}

.frame__links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.frame__links li {
  float: left;
}

.frame__links li a {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  padding: 30px 10px;
  text-decoration: none;
}

.frame__links li a:hover {
  color: var(--color-link-hover);
}

.frame__logo-title {
  margin: 0;
  font-family: afronaut, serif;
  font-size: 2.75rem;
  font-style: normal;
  font-weight: 100
}

.frame__logo-subtitle {
  margin-left: .75rem
}

body>main>div.slides>div>div.stack__item:nth-child(2).stack__item--current {
  background-image: url("images/holly-martin-charlotte-tilbury-portfolio-2.webp") !important;
}

body>main>div.slides>div>div.stack__item:nth-child(3).stack__item--current {
  background-image: url("images/holly-martin-topshop-portfolio.webp") !important;
}

body>main>div.slides>div>div.stack__item:nth-child(4).stack__item--current {
  background-image: url("images/holly-martin-production-portfolio.webp") !important;
}

body>main>div.slides>div>div.stack__item:nth-child(5).stack__item--current {
  background-image: url("images/holly-martin-editorial-portfolio-mobile.webp") !important;
}

body>main>div.slides>div>div.stack__item:nth-child(6).stack__item--current {
  background-image: url("images/holly-martin-next-portfolio.webp") !important;
}

.stack-wrap {
  width: 100%;
  position: absolute;
  top: 0
}

.stack {
  width: var(--stack-width);
  min-width: 300px;
  grid-gap: 3vh;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  display: grid
}

.stack__item {
  opacity: 1;
  width: 100%;
  height: var(--stack-item-height);
  cursor: pointer;
  will-change: width, height, transform, opacity;
  background-position: top;
  background-size: cover;
  transition: opacity .3s
}

.stack__item:nth-child(5).stack__item--current {
  background-position: center !important;
}

.stack__item:hover {
  opacity: .5
}

.stack__item--empty {
  pointer-events: none;
  height: var(--stack-margin)
}

.slides {
  width: 100%;
  background: var(--color-bg);
  position: relative
}

.slides .stack {
  width: 100%;
  margin-left: auto;
  margin-right: var(--slide-gap)
}

.slides .stack__item {
  pointer-events: none;
  opacity: .5;
  height: var(--slide-height)
}

.slides .stack__item--current {
  opacity: 1
}

.title {
  pointer-events: none;
  margin-bottom: 15vh;
  position: fixed;
  bottom: 0;
  left: 20vw
}

.title__main {
  margin: 0;
  font-family: afronaut, serif;
  font-size: 12.75vw;
  font-weight: 100;
}

.title__sub {
  margin-left: 65%;
  font-family: "Montserrat", sans-serif;
  font-size: max(1rem, min(1.5vw, 1.5rem));
  font-weight: 600;
  line-height: 1;
  display: block
}

.content {
  pointer-events: none;
  z-index: 100;
  height: 100vh;
  width: 100%;
  padding: var(--page-padding);
  grid-gap: var(--slide-gap);
  grid-template: "." "back" "slides" 1fr"." /1fr;
  display: grid;
  position: fixed;
  top: 0;
  left: 0
}

.content__item {
  height: 0;
  opacity: 0;
  line-height: 1.3;
  pointer-events: none;
  grid-area: slides;
  position: absolute;
  overflow: hidden
}

.content__item--current {
  pointer-events: auto;
  height: auto;
  opacity: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
  /* position: relative; */
  overflow: visible;
  margin-top: 25%;
}

.content__item-title {
  color: #FF69B4;
  margin: 0 0 2rem;
  font-family: afronaut, serif;
  font-size: max(2rem, min(9vw, 10rem));
  font-weight: 100;
  line-height: 1
}

.content__item-title>span {
  white-space: nowrap;
  line-height: 1;
  display: block
}

.content__item-title>span:not(:first-child) {
  margin-top: -1vw
}

.content__item-description {
  opacity: 0;
}

.content__back {
  cursor: pointer;
  opacity: 0;
  padding-top: 28px;
  pointer-events: none;
  grid-area: back;
  align-items: center;
  display: flex
}

.content__back svg {
  fill: #151A18;
  margin-right: .5rem
}

.content__nav-wrap {
  flex-direction: column;
  grid-area: 1/1/-1/-1;
  justify-content: space-between;
  display: flex;
  padding: 10% 0;
}

.content__nav {
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  height: calc((100vh - var(--slide-height) - var(--slide-gap)*4)/3);
  flex: none;
  align-self: center
}

.content__nav svg {
  stroke: #151A18;
  stroke-width: 6px;
  width: auto;
  height: 100%;
  opacity: .5;
  transition: opacity .3s
}

.content__nav:hover svg, .content__nav:focus-visible svg {
  opacity: 1
}

.content__nav--next svg {
  transform: scale(-1)
}

.content--open .content__back, .content--open .content__nav {
  opacity: 1;
  pointer-events: auto
}

/* About Page */
#header-wrap .container {
  max-width: none;
  padding: 2rem 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav#primary-menu {
  order: 2;
}

div#logo {
  position: relative;
  float: left;
}

.about-section h1 {
  font-size: max(2rem, min(15vw, 13.5rem));
  font-family: 'afronaut', sans-serif;
  color: #FF69B4;
}

.about-section {
  z-index: 1;
}

.client-section h1 {
  font-size: max(2rem, min(11vw, 9.5rem));
  font-family: 'afronaut', sans-serif;
  color: #FF69B4;
}

.client-section h2 {
  font-family: 'afronaut', sans-serif;
}

.section-spacing {
  padding: 10% 0 20% 0;
}

.contact-me {
  text-align: center;
  padding: 10%;
  font-size: 2rem;
}

.parallax-one {
  padding-top: 200px;
  padding-bottom: 200px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-image: url("images/holly-martin-portfolio-clients-collaborators-topshop.jpg");
  background-attachment: fixed;
  background-size: cover;
  -moz-background-size: cover;
  -webkit-background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  margin: auto;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  opacity: 1;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
  transition-duration: 500ms;
  -webkit-transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -webkit-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 9999;
  transition-delay: 0.65s;
}

.preloader .inner {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader:before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 200px 100vh 0;
  border-color: transparent #FF69B4 transparent transparent;
  position: absolute;
  left: -200px;
  top: 0;
}

.preloader:after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 100vh 0 0 200px;
  border-color: transparent transparent transparent #FF69B4;
  position: absolute;
  right: -200px;
  top: 0;
}

.preloader * {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
  transition-duration: 500ms;
  -webkit-transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -webkit-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
}

.transition-overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  right: calc(-100% - 200px);
  bottom: 0;
  background: #FF69B4;
  z-index: 999999;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
  transition-duration: 500ms;
  -webkit-transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  -webkit-transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
  visibility: hidden;
}

.preloader .inner .percentage {
  width: 100%;
  font-size: 20vw;
  line-height: 1;
  font-family: 'afronaut', sans-serif;
  color: #151A18;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  opacity: 1;
  transition-delay: 0.10s;
}

.navigation__transparent.navbar {
  visibility: hidden;
}

.page-loaded .preloader .percentage {
  margin-left: 100px;
  opacity: 0;
}

.page-loaded .preloader {
  left: calc(-100% - 200px);
  visibility: hidden;
}

@media (max-width: 767.98px) {
  #header-wrap .container {
    display: flow;
    padding: 2rem 0px !important;
  }

  div#logo, nav#primary-menu {
    margin: 0 auto;
    text-align: center;
    float: none;
  }

  div#wrapper {
    padding: 15px;
  }

  .frame {
    padding: 1.5rem 0;
    z-index: 999;
  }

  body.homepage.oh .frame {
    z-index: 0;
  }

  .about-section {
    text-align: center;
  }

  .contact-me {
    padding: 20% 0;
    font-size: 1.2rem;
  }

  #footer {
    bottom: 10px;
  }
}

@media (max-width: 382.98px) {
  .frame__links li a {
    padding: 30px 5px 30px 5px;
  }

  .contact-me {
    padding: 30% 0;
    font-size: 0.8rem;
  }
}

@media screen and (min-width:1200px) {
  body.homepage.oh {
    padding: 0 10% !important;
  }

  body.homepage.oh #footer {
    margin: 0 -10%;
  }

  .frame {
    padding: 2rem 10% !important;
  }

  .content {
    padding: 2rem 10% !important;
  }

  .slides {
    width: 30vw !important;
    margin-right: 13% !important;
  }
}

@media screen and (max-width:1600px) {
  .stack {
    width: 38vw;
    grid-gap: 2vh;
  }

  .stack__item {
    height: 8vh;
  }

  .stack__item--empty {
    height: var(--stack-margin)
  }
}

/* Remove this for when more slides are added in the future */
@media screen (min-width:600px) and (max-width:1600px) {
  .stack {
    overflow: hidden;
    height: 625px;
  }

  :root {
    /* --stack-margin: 50vh  Put this back if more slides are added and remove 22vh*/
    --stack-margin: 22vh
  }
}

@media screen and (min-width:53em) {
  .frame {
    text-align: left;
    z-index: 100;
    max-width: none;
    height: 100vh;
    z-index: 1000;
    padding: var(--page-padding);
    pointer-events: none;
    grid-template: "logo.sponsor" ". . ." "title title." /auto auto 1fr;
    align-content: space-between;
    display: grid;
    position: fixed;
    top: 0;
    left: 0
  }

  .frame__title {
    color: var(--color-text-alt);
    grid-area: title;
    justify-content: flex-start
  }

  /* .frame__links {
    padding: 16px;
  } */
  .frame__logo {
    grid-area: logo
  }

  .frame a {
    pointer-events: auto
  }

  .content {
    grid-column-gap: var(--page-padding);
    padding: var(--page-padding)var(--slide-gap)var(--page-padding)var(--page-padding);
    grid-template: "back slides" "title slides" 1fr".slides" 10vh/1fr 50vw
  }

  .content__item {
    text-align: left;
    grid-area: title;
    align-self: end;
    line-height: 1.3;
  }

  .title__main {
    font-size: 6.75vw;
  }

  .title {
    left: 50vw;
  }

  .content__item--current {
    margin-top: 0;
  }

  .content__item-title {
    flex-direction: column;
    display: inline-flex
  }

  .content__item-title>span:first-child {
    padding-right: 2rem
  }

  .content__item-title>span:last-child {
    margin-left: auto
  }

  .content__item-description {
    max-width: 500px;
    opacity: 1;
  }

  .content__back {
    grid-area: back;
    justify-self: end
  }

  .content__nav-wrap {
    grid-area: slides
  }

  .slides {
    width: 50vw;
    margin-left: auto;
    margin-right: var(--slide-gap);
    background: 0 0
  }

  .slides .stack__item--current {
    opacity: 1
  }

  body>main>div.slides>div>div.stack__item:nth-child(5).stack__item--current {
    background-image: url("images/holly-martin-editorial-portfolio-2.webp") !important;
  }
}