/* Import fonts */
@font-face {
  font-family: "Rules";
  src: url("../fonts/Rules-Medium.eot");
  src: url("../fonts/Rules-Medium.eot?#iefix") format("embedded-opentype"),
    url("../fonts/Rules-Medium.woff2") format("woff2"),
    url("../fonts/Rules-Medium.woff") format("woff"),
    url("../fonts/Rules-Medium.ttf") format("truetype"),
    url("../fonts/Rules-Medium.svg#Rules-Medium") format("svg");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Mini Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: none;
  text-decoration: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 400;
  color: inherit;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.wp-post-image {
  width: auto !important;
  height: auto !important;
}

textarea,
input {
  -webkit-appearance: none;
  border-radius: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Rules", sans-serif;
}
body {
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

.locked {
  overflow: hidden;
}

::selection {
  color: #e3e3e3;
  background-color: #747474;
}

.locked {
  overflow: hidden;
}

.sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

.object-cover {
  object-fit: cover;
}

.pointer {
  cursor: crosshair !important;
}

.grey {
  background: #f4f3f3;
}

.bg-red {
  background: #ff0000 !important;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.events-none {
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  font-size: var(--main-size);
}

/* menu */
.header-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: flex-end;
}

.site-header {
  z-index: 99999999;
}

.main-navigation {
  width: 75%;
}

/* home */
.bg-content {
  height: calc(100vh - 2rem);
}

.bg-content img {
  vertical-align: bottom;
}

/* .logo-home {
  bottom: 168px;
} */
.logo-home svg g {
  fill: #000;
  transition: fill 0.3s ease;
  -webkit-transition: fill 0.3s ease;
}

.logo-home:hover svg g {
  fill: #ed2024;
}

.popup {
  border: 1px solid transparent;
  display: none;
}

.popup img {
  height: fit-content;
}

.popup:hover {
  color: #ff0000;
  border: 1px solid #ff0000;
}

.popup:hover img {
  opacity: 0.4;
}

/* home video */
/* .video-wrapper {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: calc(100vh - 2rem);
   z-index: -1;
   pointer-events: none;
   overflow: hidden;
   background: yellow;
}

.video-wrapper iframe {
   width: 100vw;
   height: 100vh;
   min-height: 100vh;
   position: absolute;
   object-fit: cover;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
} */
.work-thumb {
  vertical-align: bottom;
}

.vimeo-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.vimeo-wrapper iframe {
  width: 100vw;
  height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
  min-height: 100vh;
  min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.show-wrapper {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999999;
  /* z-index: -1; */
  /* pointer-events: none; */
}
/*
.show-container {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: auto;
    top: 2rem;
}

.show-container iframe,
.show-container object,
.show-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} */

.show-container {
  position: fixed;
  top: 0rem;
  left: 0;
  width: 100%;
  height: 100%;
  /* pointer-events: none; */
}
.show-container iframe {
  width: 100vw;
  height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
  max-height: 80vh;
  min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.close-show {
  z-index: 999999999999;
  /* z-index: -1; */
  /* pointer-events: none; */
}

.show-wrapper > div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.plyr {
  width: 74vw;
  cursor: pointer;
  /*  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);*/
}

.plyr--video .plyr__controls {
  background: none !important;
}

.plyr__controls .plyr__controls__item:first-child {
  margin-left: auto;
  margin-right: 0 !important;
}

.plyr__volume {
  display: flex;
  flex-direction: column-reverse;
  width: 33px;
}

.plyr__volume input[type="range"] {
  position: absolute !important;
  bottom: 70px !important;
}

.plyr__volume input[type="range"] {
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  width: auto !important;
  color: white !important;
  cursor: pointer;
  margin-right: calc(var(--plyr-control-spacing, 60px) / 2) !important;
}

:root {
  --plyr-range-track-height: 1px;
}

.plyr input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important; /* Override default look */
  appearance: none !important;
  margin-top: -7.4px !important;
  background-color: white !important;
  height: 1rem !important;
  width: 1px !important;
}

.plyr--video .plyr__control:focus-visible,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded="true"] {
  background: none !important;
}

.plyr__control {
  font-size: 9px !important;
  white-space: nowrap;
}

.plyr__volume .plyr__control::after {
  content: "VOICE (ON)";
  display: inline-block;
  font-family: inherit !important;
  padding-right: 34px;
}

.plyr__volume .plyr__control--pressed::after {
  content: "VOICE (OFF)";
  display: inline-block;
  font-family: inherit !important;
  padding-right: 34px;
}

.plyr__controls__item.plyr__control::after {
  content: "⛶";
  display: inline-block;
  font-family: inherit !important;
  font-size: 12px;
}

.plyr__volume .plyr__control svg,
button.plyr__controls__item.plyr__control svg {
  display: none !important;
}

/* .plyr__controls__item.plyr__control {
  position: relative;
  top: 9.5px;
} */

/* works */

/* manifesto video */
.bio-video {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}

.bio-video iframe,
.bio-video object,
.bio-video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.work-text em {
  font-style: normal;
  padding-left: 36%;
  display: block;
}

/* works */
.work-item {
  padding-left: 6rem;
}

.work-info h2::before,
.work h2::before,
.interview-title::before,
.archive-item h2::before {
  float: right;
  width: calc(100% - 5.6em);
  height: 1em;
  content: "";
}

.vertical img,
.horizontal img {
  height: 95%;
  object-fit: cover;
}
/* interviews */
.embed-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* pointer-events: none; */
}
.embed-container iframe {
  width: 100vw;
  height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
  max-height: 70vh;
  min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

/* lightbox */
/* .sl-wrapper .sl-navigation button {
    position: fixed;
    top: 0!important;
    margin-top: 0!important;
    height: auto!important;
    width: fit-content!important;
    line-height: auto!important;
    font-family: inherit!important;
    font-size: inherit!important;
}

.sl-wrapper .sl-navigation button.sl-prev {
    left: 74%!important
}

.sl-wrapper .sl-close {
    position: fixed;
    right: auto!important;
    left: 0;
    top: 0!important;
    margin-top: 0!important;
    margin-right: 0!important;
    height: auto!important;
    width: 400px!important;
    line-height: auto!important;
    font-family:inherit!important;
    font-size:inherit!important;
    color: #fff!important;
    background: #FF0000;
    text-align: right;
    padding-right: 0.25rem;
}

.sl-wrapper .sl-counter {
    top: auto!important;
    left: 0!important;
    bottom: 0;
    font-family:inherit!important;
    font-size:inherit!important;
    padding: 1rem;
}

.sl-wrapper .sl-image .sl-caption {
    padding: 0!important;
    color: #000!important;
    background: transparent!important;
    font-family:inherit!important;
    font-size:inherit!important;
    position: fixed!important;
    bottom: 0;
    left: auto!important;
    right: 0;
} */
.mfp-bg,
.mfp-wrap {
  z-index: 9999999999999999999999 !important;
}

.mfp-bg {
  background: #fff !important;
  opacity: 0.94 !important;
}

.gallery-popup {
  background: #fff;
  width: auto;
  max-width: 500px;
  margin: 0 auto;
}

.mfp-content {
  position: relative;
  height: 100%;
}

.gallery-popup img {
  top: 2rem;
  width: auto;
  left: calc(25% - 4px);
  max-height: calc(100vh - 2rem);
  max-width: -webkit-fill-available;
}

.gallery-desc {
  white-space: break-spaces;
}

.mfp-arrow,
.mfp-close {
  display: none !important;
}

/* .horizontal .gallery-img {
  aspect-ratio: 5/3;
  object-fit: cover;
} */

/* about */
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee-content {
  height: 800px;
  position: relative;
  overflow: hidden;
  min-width: 200vw;
  animation: marquee 30s linear infinite;
  display: block;
  white-space: nowrap;
  /*  display: flex;
  justify-content: space-between;*/
}

.marquee-item {
  display: inline-block;
  height: 100%;
  margin-left: -4px;
  /*  flex: 550px;*/
  /*  min-width: 550px;*/
  /*  flex-shrink: 0;*/
}

.marquee-image {
  height: 100%;
  vertical-align: bottom;
}

/* .marquee-content:hover {
  animation-play-state: paused;
} */

@keyframes marquee {
  0% {
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
}

/* hover */
a:hover {
  cursor: crosshair !important;
}

a:not(.close-gallery, .close-show) {
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
}

a:not(.close-gallery, .close-show):hover {
  color: #ff0000;
}

/* archive */
.archive-item {
  width: calc(100% / 6);
  padding-left: 0.25rem;
}

.archive-gap {
  width: calc(100% / 6);
  padding-left: 0.25rem;
  /* height: 100%; */
}

/* fade in content */
.fade-content {
  opacity: 0;

  animation: fadeContent 0.5s;
  -webkit-animation: fadeContent 0.5s;
  animation-fill-mode: forwards;
  animation-delay: 0.5s;
  -webkit-animation-delay: 0.5s;
  -webkit-animation-fill-mode: forwards;
}

@keyframes fadeContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-logo {
  opacity: 1;

  animation: fadeLogo 0.5s;
  -webkit-animation: fadeLogo 0.5s;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
  -webkit-animation-delay: 0.2s;
  -webkit-animation-fill-mode: forwards;
}

@keyframes fadeLogo {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-webkit-keyframes fadeLogo {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.img-overlay {
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
}

/* mobile */
@media screen and (max-width: 50rem) {
  .work-text em {
    padding-left: 16%;
  }

  .archive-item {
    width: calc(100% / 3);
    padding-left: 0.25rem;
  }

  .archive-gap {
    display: none !important;
  }

  .show-container {
    top: 4rem;
  }

  .header-wrapper {
    display: flex;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: flex-end;
  }

  .vertical img,
  .horizontal img {
    height: 100%;
    object-fit: contain;
  }

  .vimeo-wrapper {
    position: relative;
    top: 0;
    height: calc(100vh - 9rem);
    overflow: hidden;
  }

  .vimeo-wrapper iframe {
    width: 100vw;
    height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
    min-height: 100vh;
    min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
  }

  .popup {
    z-index: 99;
    bottom: calc(4rem + 16px);
  }

  .close-popup {
    width: fit-content;
  }

  /* show */
  .show-wrapper {
    top: 4rem;
    background: white;
    height: 100%;
  }

  .show-wrapper iframe {
    width: 100vw;
    min-height: auto;
    min-width: 100%; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
    top: auto;
    left: auto;
    transform: none;
    -webkit-transform: none;
  }

  .show-wrapper > div {
    display: block;
  }

  .plyr {
    width: 100%;
    /*  position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);*/
  }

  /* menu mobile */
  .menu-mobile {
    top: 4rem;
    height: 100%;
  }

  #mobile-navigation a {
    margin-bottom: 2rem;
  }

  #mobile-navigation a::before {
    display: inline-block;
    content: "►";
    padding-right: 2rem;
  }

  /* interviews */
  .mfp-bg {
    top: 4rem !important;
  }

  /* works */
  .work-item {
    padding-left: 0.25rem;
  }

  .open-popup-link {
    width: 100% !important;
  }

  /* about */
  /*  .marquee-item {
    flex: 250px;
    flex-shrink: 0;
  }*/
  .marquee-content {
    height: 500px;
  }
}
