:root {
  /* Font families and styles */
  font-family: "IBM Plex Mono", monospace;
  --plex: "IBM Plex Mono", monospace;
  --regular: 300;
  font-weight: var(--regular);
  --bold: 500;
  --italic: italic;

  /* font sizes: 1.125, Major Second */
  html {
    font-size: 112.5%;
  }
  h1 {
    font-size: 1.802rem;
    font-weight: var(--regular);
  }
  h2 {
    font-size: 1.602rem;
  }
  h3 {
    font-size: 1.424rem;
  }
  h4 {
    font-size: 1.266rem;
  }
  h5 {
    font-size: 1.125rem;
  }
  small,
  .text_small,
  .caption,
  label {
    font-size: 0.889rem;
  }

  --h1: 1.802rem;
  --h2: 1.602rem;
  --h3: 1.424rem;
  --h4: 1.266rem;
  --h5: 1.125rem;
  --body: 1rem;
  --caption: 0.889rem;

  /* Rem spaces */
  --xs: 0.5rem;
  --sm: 1rem;
  --smm: 1.5rem;
  --mdd: 1.75rem;
  --md: 2rem;
  --lg: 4rem;
  --llg: 6rem;
  --xl: 8rem;
}

/* paleta de colores */

:root {
  color-scheme: yoze;
}

:root,
:root.yoze_light {
  /* Colors - Light */
  --bg: #e5e3e0;
  --txt: #161616;
  --box: #ffffff;
  --fade: rgba(255, 255, 255, 0.5);
  --fade_light: rgba(255, 255, 255, 0.25);
  --in: #16161650;
  --highlight: #b0304e;
  --light_box: #474544;
}

:root.yoze_dark {
  /* Colors - Dark */
  --bg: #161616;
  --txt: #ffffff;
  --box: #e5e3e0;
  --fade: rgba(255, 255, 255, 0.6);
  --highlight: #b0304e;
}

/* general */

* {
  -webkit-font-smoothing: antialiased;
}

/* Apply box-sizing to the elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-y: scroll;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: var(--bg);
  color: var(--txt);
  margin: 0;
  padding: 0;
}

button {
  display: grid;
  place-items: center;
  padding: var(--sm) var(--sm);
  border-radius: 20px;
  box-sizing: border-box;
  background-color: var(--fade);
  appearance: auto;
  font-size: 16px;
  text-transform: uppercase;
  font-family: var(--plex);
  letter-spacing: 0.02em;
  border: none;
}

button:hover {
  background-color: rgba(255, 255, 255, 1);
}

figure {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.wrapper {
  width: calc(100% - var(--lg));
  max-width: 86rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--md);
  min-width: 0;
}

.strong {
  font-weight: var(--bold) !important;
}

/* menu */

.menu-container {
  display: flex;
  flex-direction: row;
  padding: 0 var(--md);
  margin: var(--sm) auto 0 auto;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 86rem;
  height: var(--lg);
}

.site-title {
  position: relative;
  display: grid;
  place-content: center;
  /* background-color: var(--box); */
  padding-right: var(--sm);
  margin: 0;
  font-size: var(--body);
  font-weight: var(--bold);
  color: var(--txt);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.nav-menu {
  display: flex;
  flex-flow: row;
  gap: var(--smm);
  align-items: baseline;
}

.first-nav,
.second-nav {
  display: flex;
  align-items: baseline;
  flex-grow: 0;
  margin: 0;
}

nav ul {
  display: flex;
  gap: var(--md);
}

.menu-item {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

.menu-item a {
  font-size: var(--body);
  text-decoration: none;
  color: var(--txt);
}

.menu-item a:hover {
  color: var(--box);
}

/* Language menu */

.languages {
  margin: 0 var(--sm);
}

.languages ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--sm);
}

.languages ul li a {
  text-decoration: none;
  color: var(--txt);
}

.languages ul li a {
  text-decoration: none;
  color: var(--txt);
}

.menu-container .active {
  border-bottom: 1px solid var(--txt);
}

/* stickers */

.sticker-lg {
  background-color: var(--box);
  padding: var(--sm);
  font-size: var(--h2);
  display: block;
  margin: 0;
  flex-basis: content;
  width: fit-content;
}

.sticker-md {
  background-color: var(--box);
  padding: var(--sm);
  font-size: var(--body);
  display: block;
  margin: 0;
  flex-basis: content;
  width: fit-content;
}

.sticker-sm {
  background-color: var(--box);
  padding: var(--xs);
  font-size: var(--caption);
  display: block;
  margin: 0;
  flex-basis: content;
  width: fit-content;
}

/* Home */

section.work-home {
  padding: var(--xl) var(--md);
  height: 61.8vh; /* Set the height to 61.8vh */
}

.work-home {
  position: relative;
}

.work-home .work_home-img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 61.8svh;
  opacity: 0;
  transition: opacity 1s;
}

.home-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-home .work_home-img.active {
  opacity: 1;
}

.work-home .work_home-img {
  opacity: 0;
  transition: opacity 3s;
}

.work-home .work_home-img.active {
  opacity: 1;
}

/* Works */

.filters {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: baseline;
}

.work-filters {
  margin: var(--xl) 0 var(--md);
  display: flex;
  flex-flow: row wrap;
  gap: var(--sm);
}

.work-filters a {
  text-decoration: none;
}

.work-filters a button {
  font-weight: var(--regular);
}

.work-filters a button {
  font-weight: var(--regular);
}

/* .active-btn {
  border: 1px solid var(--txt);
} */

.works-container {
  border-top: var(--box) solid 1px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  gap: var(--sm);
  list-style: none;
  padding: var(--md);
  margin: 0;
  justify-items: center;
  align-items: baseline;
}

.work-item a {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  gap: var(--xs);
  text-decoration: none;
  color: var(--txt);
  padding: var(--sm) var(--md);
  background-color: #ffffff40;
}

.work-item a .sticker-md {
  transform: translate(1rem, -3rem);
}

.work-item figure img {
  object-fit: contain;
  width: 100%;
  /* border: 2px solid var(--box); */
}

.pagination {
  display: flex;
  justify-content: space-between;
}

/* A Work */

.work-nav {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding: 0 var(--md);

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: calc(100% - var(--lg));
  z-index: 999;
}

.work-nav a,
.nav-pages {
  text-decoration: none;
  color: var(--txt);
  font-size: 30px;
  font-family: var(--plex);
  /* background-color: var(--fade_light); */
  height: var(--sm);
  line-height: 0;
  padding: 0.2rem 0.25rem 0.3rem 0.25rem;
}

.work-nav a:hover {
  color: var(--box);
}

.work-nav .inactive {
  color: var(--in);
}

/* Arrows */

.arrow {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  /*   border:solid 1px white; */
  transition: 0.5s;
  overflow: hidden;
}

.arrow:hover {
  /*  animation:borderAni 5s cubic-bezier(0, 0.6, 1, 0.4); */
  border: solid 2px white;
  border-radius: 50%;
}
.arrow:after {
  position: absolute;
  display: block;
  content: "";
  color: white;
  width: 20px;
  height: 15px;
  /*   border:solid 1px;  */
  top: -1px;
  border-bottom: solid 2px;
  transform: translatex(4px);
}

.arrow:before {
  position: absolute;
  display: block;
  content: "";
  color: white;
  width: 8px;
  height: 8px;
  /*   border:solid 1px;  */
  border-top: solid 2px;
  border-left: solid 2px;
  top: 50%;
  left: 2px;
  transform-origin: 0% 0%;
  transform: rotatez(-45deg);
}
.arrow:hover:before {
  animation: aniArrow01 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}

.arrow:hover:after {
  animation: aniArrow02 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}

@keyframes aniArrow01 {
  0% {
    transform: rotatez(-45deg) translateY(30px) translateX(30px);
  }
  100% {
    transform: rotatez(-45deg) translateY(-35px) translateX(-35px);
  }
}

@keyframes aniArrow02 {
  0% {
    transform: translateX(45px);
  }
  100% {
    transform: translateX(-44px);
  }
}

@keyframes borderAni {
  0% {
    border: solid 2px white;
  }
  100% {
    border: solid 2px white;
    border-radius: 50%;
  }
}

.work-header {
  display: flex;
  margin: 0;
  height: 100svh;
  max-height: calc(100svh - var(--lg));
  align-items: center;
}

.work-main-container {
  flex-basis: 100%;
  max-height: 80vh;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: baseline;
  align-content: center;
  margin: 0;
  gap: var(--md);
}

.main-img {
  width: 100%;
  max-height: 61.8vh;
  -webkit-filter: drop-shadow(0px 0px 60px rgba(255, 255, 255, 0.8));
  filter: drop-shadow(0px 0px 60px rgba(255, 255, 255, 0.8));
}

.main-img-link {
  cursor: zoom-in;
}

.work-main-stickers {
  display: flex;
  flex-flow: column;
  gap: var(--xs);
}

.work-details {
  display: flex;
  flex-flow: column nowrap;
  gap: var(--lg);
}

.details-img-container {
  background-color: var(--fade);
  list-style: none;
  width: 100%;
  margin: var(--md) 0;
  padding: var(--lg) var(--lg);
  display: grid;
  grid-template-columns: repeat(2, minmax(calc(50vw - var(--xl)), 1fr));
  gap: var(--xs);
}

.detailwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 38.2vh;
}

.video-container {
  padding: var(--sm);
  background-color: var(--box);
  text-align: center;
  margin: var(--md) auto;
  width: clamp(50%, 300px, 80%);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  padding-top: 0;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

iframe {
  border-width: 0;
  border-style: none;
  border-color: none;
  border-image: none;
}

.work-info {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--xs);
  margin: var(--md) 0 var(--lg) 0;
}

.work-details-block {
  display: flex;
  flex-flow: column;
  gap: var(--xs);
}

.work-info-details,
.btn-group {
  display: flex;
  flex-flow: row wrap;
  gap: var(--xs);
}

.btn-group {
  margin: var(--sm) 0;
}

/* Bio & Contact */

.bio-p {
  margin-top: var(--xl);
}

.bio-p p {
  max-width: min(80ch, 100%);
  line-height: var(--mdd);
  margin: 0 0 var(--mdd) 0;
}

/* Responsive rules */
.nav-toggle {
  display: none;
  transition: 0.3 ease;
}

.toggle-overlay {
  display: none;
}

@media screen and (max-width: 1024px) {
  .nav-toggle {
    display: block;
    cursor: pointer;
    z-index: 9999;
    padding: var(--sm) 0;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: none;
    font-weight: var(--bold);
  }

  .nav-toggle:hover {
    background-color: transparent;
  }

  .nav-menu {
    display: none;
    transition: 0.3 ease;
  }

  .nav-showing {
    display: flex;
    flex-flow: column;
    position: absolute;
    gap: var(--md);
    top: 0;
    right: 0;
    padding: var(--lg) var(--md);
    background-color: var(--box);
    height: 100dvh;
    z-index: 9998;
    align-items: end;
  }

  nav ul {
    display: flex;
    flex-flow: column nowrap;
    text-align: right;
    gap: var(--md);
    list-style-type: none;
    z-index: 998;
    margin: var(--md) 0;
  }

  .languages {
    margin: 0;
  }

  ul.language-menu {
    display: flex;
    gap: var(--md);
  }

  .language-menu {
    list-style: none;
    display: block;
    margin: var(--lg) 0;
    padding: 0;
    color: var(--txt);
  }

  /* Work */
}
