* {
  margin: 0;
  padding: 0;
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  list-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: var(--overscrollBehavior);
}

a,
button,
svg,
.navigation-icon {
  -webkit-tap-highlight-color: transparent;
}

img {
  border: none;
  all: unset;
  display: block;
}

@font-face {
  font-family: SuisseIntl Book;
  src: url("/assets/fonts/SuisseIntl-Book.otf");
}

@font-face {
  font-family: SuisseIntl Regular;
  src: url("/assets/fonts/SuisseIntl-Regular.otf");
}

@font-face {
  font-family: SuisseIntl Medium;
  src: url("/assets/fonts/SuisseIntl-Medium.otf");
}

:root {
  --white: #ffffff;
  --black: rgb(34, 34, 34);
  --darkenBlack: rgb(17, 17, 17);
  --grey: #777777;

  --book: "SuisseIntl Book";
  --regular: "SuisseIntl Regular";
  --medium: "SuisseIntl Medium";

  --small: 1rem;
  --normal: 1.25rem;
  --big: 1.75rem;

  --padding: 1.25rem;
  --sidePadding: 1.25rem;

  --overscrollBehavior: auto;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.transition-300 {
  transition: all 0.3s ease-in-out;
}

::selection {
  background-color: var(--black);
  color: var(--white);
}

.unselectable {
  user-select: none;
  pointer-events: none;
}

.invisible {
  opacity: 0;
}

.hidden {
  display: none !important;
}

.book {
  font-family: var(--book);
}

.regular {
  font-family: var(--regular);
}

.medium {
  font-family: var(--medium);
}

.white {
  color: var(--white);
}

.black {
  color: var(--black);
}

.grey {
  color: var(--grey);
}

.small {
  font-size: var(--small);
}

.normal {
  font-size: var(--normal);
  line-height: 125%;
}

.big {
  font-size: var(--big);
}

.column {
  width: 25%;
}

.column:last-child {
  display: flex;
  justify-content: flex-end;
}

.double-column {
  flex: 2;
}

.animated {
  opacity: 0;
  /* transition: opacity 0.25s ease-in-out; */
}

.animated.shown {
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.darken {
  background-color: var(--darkenBlack) !important;
}

/* ********************************** NAVIGATION **************************** */

.navigation {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 5;
  background-color: var(--white);
  transition: 0.25s ease-in-out;

}

.navigation-txt {
  padding: calc(var(--padding) * 0.75) var(--sidePadding);
}

.navigation-txt:hover {
  cursor: pointer;
}

.navigation-icon {
  width: 1rem;
  height: 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.navigation-arrow-icon {
  padding: var(--sidePadding);
}

.navigation-icon:hover {
  cursor: pointer;
}

.works-navigation .column:nth-child(2) {
  width: 50%;
}

.about-navigation .column:nth-child(1) {
  width: 50%;
}

.menu-list-item {
  text-align: center;
  display: flex;
  align-items: center;
  user-select: none;
}

nav {
  width: 100%;
}

ul {
  display: flex;
  justify-content: space-between;
  height: 100%;
}

a {
  cursor: pointer;
  text-decoration: none;
  font-style: normal;
  color: unset;
}

#toggle-button-about img {
  transform: rotate(45deg);
}


/* ********************************** FOOTER **************************** */

.footer {
  position: absolute;
  width: 100%;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: var(--padding) var(--sidePadding);
}

/* ********************************** HOME **************************** */

body {
  background-color: var(--white);
  transition: 0.25s ease-in-out;
}

.section {
  position: relative;
  display: flex;
  height: 100vh;
  background-color: var(--white);
  flex-direction: column;
}

.section-content {
  display: flex;
  height: 100%;
}

::-webkit-scrollbar {
  display: none !important;
}

.section-home {
  position: sticky;
  top: 0;

}

.bg-video {
  height: 100%;
  object-fit: cover;
  background-color: rgba(17, 17, 17) !important;

}

.title-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  transition: 0.25s ease-in-out;
}

.title {
  display: block;
  width: 100%;
  max-width: 100%;
}

.title-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-container picture {
  width: 20%;
}

/* ********************************** WORKS **************************** */

.work-card-inner {
  display: flex;
  width: 100%;
  align-items: center;
  cursor: pointer;
}

.work-card .column:nth-child(2) {
  width: 50%;
}

.work-card-txt:last-child {
  justify-content: flex-end;
}

.work-card-inner:hover>.work-card-txt {
  color: var(--black);
}

.work-card-txt {
  padding: 0 var(--sidePadding);
  display: flex;
}

.works-container-desktop {
  display: flex;
  flex-direction: column;
  gap: calc(var(--padding) / 2);
}

.works-container-mobile {
  display: flex;
  flex-direction: column;
  gap: calc(var(--padding) / 4);
}

.work-card-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.work-card-image {
  transition: filter 0.2s ease-in-out;
  display: block;
  width: 100%;
  height: auto;
}


.work-card-legend-container {
  position: absolute;
  top: 0;
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  padding: var(--padding);
  align-items: end;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 70%,
      rgba(0, 0, 0, 0.3) 100%);
}



.work-card-legend-container:hover {
  opacity: 1;
}


@media (hover: none) and (pointer: coarse) {

  .work-card-legend-container.hover {
    opacity: 1;
  }

  .work-card-legend-container:hover {
    opacity: 0;
  }
}




/* ********************************** THUMBNAIL **************************** */

.thumbnail-container {
  position: fixed;
  width: 40vw;
  aspect-ratio: 4 / 5;
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 5000;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-aspect-ratio: 1 / 1) {
  .thumbnail-container {
    width: unset;
    height: 50vh;
    max-height: 500px;
  }
}

.thumbnail-transition {
  transition: opacity 100ms ease-in-out;
}

/* ********************************** ABOUT **************************** */

.section-about {
  height: 100dvh;
}

.description-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between !important;
  padding-bottom: var(--padding);
}

.description-inner {
  display: flex;
  max-width: 1000px;
  flex-direction: column;
  padding: 0% var(--sidePadding);
  gap: var(--padding);
}

.social-container {
  padding: 0% var(--sidePadding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.social:hover {
  text-decoration: underline;
  cursor: pointer;
  color: var(--black);
}

/* ****************************** WORK PAGE **************************** */

.section-work {
  height: 100dvh;
}

.detail-container {
  display: flex;
  padding: var(--padding) 0;
}

.detail-group {
  padding: 0 var(--sidePadding);
  padding-bottom: var(--padding);
  display: flex;
  flex-direction: column;
}

.detail-inner-container:last-child .detail-group * {
  display: flex;
  justify-content: flex-end;
}

iframe {
  all: unset;
  width: 100%;
  height: 100%;
  position: absolute;
}

.block-video {
  position: relative;
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ****************************** GLIDER **************************** */

.media-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  height: 60%;
  gap: calc(var(--padding) / 4);
  padding: 0 var(--sidePadding);
  cursor: grab;
}

.media-container.grabbing {
  cursor: grabbing;
}

.glide__slide {
  height: 100%;
}

.glider-elt {
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.content-block {
  height: 100%;
}

.video,
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Large desktop: max 1536px */
@media (max-width: 1536px) {
  /* WORK PAGE */

  .media-container {
    height: 60%;
  }
}

/* Desktop: max 1280px */
@media (max-width: 1280px) {
  * {
    font-size: 15px;
  }

  /* ABOUT */

  .about-column:nth-child(1) {
    display: none;
  }

  .about-navigation .column:first-child {
    width: 25%;
  }

  .about-navigation .column:nth-child(2) {
    width: 50%;
  }

  /* WORK PAGE */

  .media-container {
    height: 50%;
  }
}

/* Laptop: max 1024px */
@media (max-width: 1024px) {
  * {
    font-size: 14px;
  }
}

/* Tablet: max 768px */
@media (max-width: 900px) {
  * {
    font-size: 13px;
  }

  .detail-container .column:last-child {
    display: none;
  }

  .detail-category-group-left {
    display: flex !important;
  }


}

@media (max-width: 600px), (max-aspect-ratio: 3 / 5) {
  :root {
    --normal: 0.85rem;
    --big: 1.2rem;
    --padding: 1rem;
    --sidePadding: 1rem;
  }

  * {
    font-size: 15px;
  }


  .works-navigation {
    position: fixed;
    top: 0;
    transform: translateY(-100%);
  }

  .works-navigation.translated-down {
    transform: translateY(0) !important;

  }

  .navigation * {
    font-family: var(--book) !important;
  }

  /* NAV */

  .navigation .column {
    width: auto !important;
  }

  .navigation .column:nth-child(2) {
    display: none;
  }

  .work-navigation .column:nth-child(2) {
    display: flex !important;
  }

  /* HOME */

  .section-home {
    height: 100lvh !important;
  }

  /* WORKS */

  .thumbnail-container {
    display: none;
  }

  .works-container-desktop {
    display: none;
  }

  .works-container-mobile {
    display: flex !important;
  }

  .navigation .column {
    white-space: nowrap;
    width: 50%;
  }

  .section-works {
    height: auto;
  }

  /* ABOUT */

  .section-about {
    position: relative;
    height: 100dvh;
  }

  .about-column:nth-child(2) {
    display: none;
  }

  .footer {
    display: none;
  }

  /* WORK PAGE */

  .section-work {
    height: auto;
  }

  .media-container-desktop {
    display: none;
  }

  .media-container-mobile {
    display: flex !important;
    flex-direction: column;
    padding-right: 0;
    padding-left: 0;
  }

  .glider-elt {
    width: 100%;
  }

  .detail-container-desktop {
    display: none;
  }

  .detail-container-mobile {
    display: flex !important;
    flex-direction: column;
  }

  .detail-container-mobile * {
    display: flex !important;
    justify-content: flex-start !important;
  }

  .detail-container-mobile .detail-inner-container:last-child .detail-group:last-child {
    padding-bottom: 0;
  }

  .detail-label {
    padding: 0 var(--sidePadding);
  }

  .navigation-txt {
    font-size: var(--big);
  }

  .work-navigation {
    position: sticky;
    top: 0;
  }

  .work-navigation .column:first-child {
    width: 25% !important;
  }
}

@media (max-height: 1000px) and (min-aspect-ratio: 3 / 5) {
  * {
    font-size: 15px;
  }
}

/* @media (max-height: 800px) and (min-aspect-ratio: 3 / 5) {
  * {
    font-size: 13px;
  }
} */

@media (max-width: 800px) {
  .title-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .title-container picture {
    width: 30%;
  }
}