:root {
  --global-font: "Sans", Helvetica, sans-serif;
  --header-color: gray;
  --primary-color:black;
  --secondary-color: gray;
  --border-radius: 0;
}

* {
  padding: 0;
  margin: 0;
  user-select: none;
  box-sizing: border-box;
  font-family: var(--global-font);
  -webkit-user-select: none;
}

dialog[open] {
  all: unset;
  display: flex;
  inset: 0; position: fixed; width: 100dvw; height: 100dvh;justify-content: center; align-items: center; background: none;
  border: none;
}

::backdrop {
  background: none;
}

legend {
  -webkit-user-select: all;
  user-select: all;
}

@font-face {
    font-family: 'Sans';
    src: 
         url('font.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

html, body {
  color: var(--primary-color);
  line-height: 1.3;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: initial;
  font-family:var(--global-font);
  font-weight: normal;
  font-size: 0.9rem; 
  -webkit-text-size-adjust: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav {
  align-items: center;
  z-index: 10;
  gap: 0.5rem;
  padding: 1rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.btn-back {
  gap: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  transition: background 250ms cubic-bezier(.4,0,.2,1);
}

@media (hover: hover) {
.btn-back:hover {
    background: #f8f8f8;
}
}

h1, h3 {
  font-size: 0.9rem;
  font-weight: normal;
}

[no-event] {
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.flex-v {
  display: flex;
  flex-direction: column;
}

button {
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary-color);
}

.no-scroll {
  overflow: hidden;
}

.link {
  /* color: #0000ae; */
  text-decoration: underline;
  pointer-events: all;
  text-underline-offset: 0.1rem;
}

.brick {
  white-space: nowrap;
  user-select: none;
  width: fit-content;
  padding:  0.3rem;
  background: #f6f6f6;
}

img {
  pointer-events: none;
  user-select: none;
}

.img.loaded {
  opacity: 100;
}

.img {
  opacity: 0;
  transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1) 250ms;
}

.flex-h {
  flex-wrap: wrap;
  display: flex;
  gap: 0.5rem;
}

ul {
  list-style: none;
}

main {
  padding: 5.5rem 1rem 0rem 1rem;
}

.card {
  gap: 0.5rem;
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) {
  .button:hover {
    background: var(--secondary-color);
  }
}

.button {
  gap: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  transition: background 250ms cubic-bezier(.4, 0, .2, 1);
}

  /* .info > p { */
  /*   width: 18rem; */
  /* } */

.info-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 1rem 1rem 2rem; 
  row-gap: 1.5rem;
  column-gap: 0.5rem;
  color: black; 
}

main {
  padding: 5.5rem 1rem 0rem 1rem;
}

@media screen and (max-width: 1000px) {
  .body-content {
    grid-column: 1;
  }
  .info-header {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact {
    grid-column: 1 / 2;
  }
  .info {
    grid-column: 1 / 3;
    gap: 2rem;
  }
  .socials {
    grid-column: 1 / 2;
  }

  .grid.col-3 {
    grid-template-columns: repeat(1, 1fr);
  }

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

  .media-container {
    display: flex;
    height: 80dvh;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .content-container.duo {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .content.size-1 {
    width: 100%;
  }
  .content.size-2 {
    width: 100%;
  }
}

@media screen and (min-width: 1000px) {
  .project-info > div {
    grid-column: span 2;
  }
  .body-content {
    grid-column: 2 /6;
  }
.about {
  grid-column: 1 / 3;
}

.capas {
  grid-column: 5 / 7;
}

.socials {
  grid-column: 6;
}

.contact {
  grid-column: 4;
}

  .grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
  }

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

  .media-container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .content-container.duo {
    height: 80dvh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .content.size-1 {
    width: 40rem;
  }

  .content.size-2 {
    width: 50rem;
  }
}

.content-container.solo {
  width: 100%;
  display: flex;
  height: 80dvh;
}

.content.size-3 {
  width: 100%;
}
