*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  font-family: "Space Mono", sans-serif;
}

:root {
  --charcoal: #111;
  --red: #ff4136;
  --white: #ffffff;
}

html,
body {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
  -webkit-text-size-adjust: 100%;
}

.site-wrapper {
  width: 100%;
  overflow-x: hidden;
  opacity: 0;
  background-color: transparent;
  transition: opacity 400ms ease, background-color 800ms ease;
}

.site-wrapper.revealed {
  opacity: 1;
  background-color: var(--white);
}

.decoration {
  height: 100vh;
  width: 100%;
  background: url("../images/showfilm-bckg.png") no-repeat 50% 50% / cover;
  position: absolute;
  inset: 0;
  z-index: -1;
}

@media screen and (min-width: 1025px) {
  .site-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
  }
}

/*-----------------------
    Typography
-----------------------*/
h1,
h2,
h3,
h4 {
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

@media screen and (min-width: 1025px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}
/*-----------------------
    About
-----------------------*/
.about {
  padding: 1rem;
}

.about .tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about .tabs button {
  padding: 0;
  text-transform: uppercase;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: color 300ms ease;
  font-size: 1rem;
  line-height: 1.25;
  word-spacing: -0.2rem;
  color: var(--charcoal);
}

.about .tabs .active button {
  color: var(--red);
}

.about .tabs button:hover {
  text-decoration: underline;
}

.about .categories-content .content {
  display: none;
}

.about .categories-content .content.active {
  display: block;
}

.about .categories-content .content > * + * {
  font-size: 1rem;
  margin-top: 1rem;
}

.about .filters {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.about .filters button {
  cursor: pointer;
  font-weight: 400;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.125rem 0;
  transition: color 300ms ease;
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--charcoal);
}

.about .filters button.active {
  color: var(--red);
}

.about .filters button:hover {
  color: var(--red);
}

@media screen and (min-width: 1025px) {
  .about {
    width: 450px;
    max-width: 450px;
    flex: 0 0 450px;
    order: 2;
    height: 100vh;
    overflow-y: auto;
  }

  .about .tabs button {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 1600px) {
  .about {
    width: 600px;
    max-width: 600px;
    flex: 0 0 600px;
  }
}

/*-----------------------
    ShowCase
-----------------------*/
.showcase {
  padding: 1rem;
}

.showcase h1 {
  font-size: 1.25rem;
  line-height: 1.25;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.showcase section {
  position: relative;
  margin-bottom: 2rem;
}

.showcase-gallery {
  margin-bottom: 1rem;
}

.showcase-item {
  position: relative;
  aspect-ratio: 16 / 9;
}

.showcase-item img {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-gallery {
  position: relative;
}

.gallery-commands {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% - 80px);
  cursor: none;
}

.gallery-commands .command {
  width: 40%;
  max-width: 40%;
  flex: 0 0 40%;
  font-size: 2rem;
  line-height: 1.25;
  padding: 0.25rem;
  color: var(--charcoal);
  position: relative;
  opacity: 0;
}

.gallery-commands .command.reveal {
  opacity: 1;
}

.gallery-commands .command span {
  display: inline-flex;
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.gallery-commands .no-command {
  width: 20%;
  max-width: 20%;
  flex: 0 0 20%;
}

.showcase h1 button {
  display: none;
  text-transform: uppercase;
  background-color: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
}

@media screen and (min-width: 1025px) {
  .showcase {
    width: calc(100% - 450px);
    max-width: calc(100% - 450px);
    flex: 0 0 calc(100% - 450px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 57px;
    position: relative;
  }

  .showcase h1 {
    padding: 1rem 0;
    position: absolute;
    top: 0;
    left: auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  .showcase h1.revealed {
    position: fixed;
    width: calc(100% - 450px - 2rem);
    z-index: 10;
    background-color: white;
    animation: reveal 250ms linear 1;
  }

  .showcase h1.revealed button {
    display: inline-block;
    margin-left: auto;
    margin-right: 0.5rem;
  }
}

@media screen and (min-width: 1600px) {
  .showcase {
    width: calc(100% - 600px);
    max-width: calc(100% - 600px);
    flex: 0 0 calc(100% - 600px);
  }

  .showcase h1.revealed {
    width: calc(100% - 600px - 2rem);
  }
}

/*-----------------------
    Wistia
-----------------------*/
.wistia_responsive_padding {
  padding: 56.25% 0 0 0;
  position: relative;
}

.wistia_responsive_wrapper {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.wistia_embed {
  height: 100%;
  position: relative;
  width: 100%;
}

/*-----------------------
    Scrollbars
-----------------------*/
@media screen and (min-width: 1025px) {
  .has-scroll-bar::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 4px;
    transition: background-color 300ms ease;
  }

  .has-scroll-bar::-webkit-scrollbar-track {
    background-color: #fff;
  }

  .has-scroll-bar::-webkit-scrollbar {
    width: 8px;
  }

  .has-scroll-bar:hover::-webkit-scrollbar-thumb {
    background: var(--charcoal);
  }
}

/*-----------------------
    Helpers / Resets
-----------------------*/
button {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

a {
  color: var(--charcoal);
}

a:hover {
  text-decoration: underline;
}

p {
  color: var(--charcoal);
}

@keyframes reveal {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0%);
  }
}
