@charset "utf-8";

/* BASE */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, "sans-serif";
  font-weight: 400;
  font-style: normal;
  color: #eeeeee;
  scroll-behavior: smooth;
  font-size: 15px;
  line-height: 1.4;
  background-color: black;
  transition: background-image 0.3s ease-in-out, background-size 0.3s ease-in-out;
}

/* SELECCIÓN */
::selection {
  background-color: #eeeeee;
  color: #141414;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BARRA DE SCROLL */
::-webkit-scrollbar {
  display: none;
}

/* LOADING SCREEN */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
#loading-screen img {
  width: 100%;
  height: auto;
  max-width: 300px;
  filter: blur(1px);
}

/* NAVIGATION */
nav a {
  text-decoration: none;
}
.info {
  margin: 0 auto;
  position: fixed;
  top: 50px;
  right: 3.5vw;
  z-index: 20;
  color: white;
  transition: color 0.3s ease;
  opacity: .7;
}
.home {
  margin: 0 auto;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 120;
  font-size: 1.2rem;
  filter: blur(0.3px);
  mix-blend-mode: difference;
}
.home:hover ~ .hover-text {
  opacity: 0.8;
  transform: translateY(0);
  transition-delay: 0s;
}
.home:not(:hover) ~ .hover-text {
  opacity: 0;
  transition-delay: 1s;
}
.home:hover {
  cursor: help;
}
.hover-text {
  margin: 0 auto;
  position: fixed;
  z-index: 45;
  font-size: 1.2rem;
  bottom: 20px;
  left: 20px;
  transform: none;
  color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out 0.3s, transform 1s ease-in-out;
}
.home h1 {
  display: inline-block;
  color: white;
  filter: grayscale(1);
  opacity: 0.9;
  font-size: 1.2rem;
  font-weight: 400;
}
@media (min-width: 700px) {
  .home:hover ~ .hover-text {
    opacity: 0.8;
    transform: translateY(0);
    transition-delay: 0s;
  }
}
@media (max-width: 699px) {
  .hover-text {
    display: none;
  }
}

/* FILTER MENU */
.filter-menu {
  position: fixed;
  top: 0px;
  right: 0px;
  padding: 20px;
  z-index: 120;
}
.filter-menu select {
  padding: 5px;
  font-size: 14px;
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}
.filter-item {
  font-size: 1.2rem;
  color: white;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-align: right;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}
.filter-item:hover {
  opacity: 1;
}
.filter-item.active {
  opacity: .3;
}
.filter-item[data-filter="all"] {
  font-weight: bold;
}
.filter-item[data-filter="archive"] {
  font-style: normal;
  opacity: 0.6;
}
.filter-item.active[data-filter="archive"] {
  font-style: italic;
}

/* GALLERY */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5px;
  padding: 5px 1vw;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  align-items: start;
}
.container.fade-out {
  opacity: 0;
}
.container.fade-in {
  opacity: 1;
}
.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.post {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
img {
  width: 100%;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.5s;
}
.post:hover .overlay {
  opacity: 0.95;
  cursor: pointer;
}
.gif {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: flex;
  position: absolute;
  z-index: -3;
}
.overlay h3 {
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
  opacity: 1;
  transition: 0.5s;
  color: white;
  z-index: 3;
}
.overlay .director {
  font-size: 0.9rem;
  color: white;
  opacity: 0;
  margin-bottom: 5px;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(10px);
  z-index: 3;
}
.overlay .category {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  top: 50%;
  z-index: 3;
}
.overlay .brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  z-index: 3;
}
.overlay .brand-year {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(10px);
  z-index: 3;
}
.overlay p {
  font-size: 1rem;
  position: absolute;
  opacity: .7;
  color: white;
  z-index: 3;
}
.overlay-images {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.overlay-images img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* MODAL */
.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  z-index: 40;
}
.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  padding-top: 10vh;
}
.close {
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
  position: fixed;
  top: 50px;
  right: 3.5vw;
  z-index: 20;
  color: white;
  transition: color 0.3s ease;
  opacity: .7;
}
.modal h2 {
  font-size: 1.5rem;
  margin: 0;
  opacity: .9;
}
.modal p {
  font-size: 1rem;
  margin: 0;
  opacity: .7;
}
.project-title {
  position: fixed;
  bottom: 50px;
  left: 3.5vw;
  display: flex;
  flex-direction: column;
}
.project-subtitle {
  position: fixed;
  bottom: 30px;
  left: 3.5vw;
  display: flex;
  flex-direction: column;
}
.project-technical-data {
  position: fixed;
  bottom: 30px;
  right: 3.5vw;
  display: flex;
  flex-direction: column;
  text-align: right;
}
.vimeo-player{
  position: relative;
  padding-top: 70%;
  height: 0;
  overflow: hidden;
  display: block;
  flex-grow: 3;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}
.vimeo-player iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.9;
  padding: 20px;
  z-index: 120;
  background: linear-gradient(to top, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.footer a {
  text-decoration: none;
  position: relative;
  color: white;
  opacity: 0.8;
  font-size: 1.2rem;
  transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0;
  padding: 0;
  line-height: 1;
  pointer-events: auto;
}
.footer a:hover {
  opacity: 1;
}

/* PROJECT PAGE */
.project-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: black;
  color: white;
  overflow: hidden;
}
.video-container {
  width: 90vw;
  height: 80vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  padding: 0;
  z-index: 20;
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
.project-info {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-align: center;
}
.project-info h1 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  opacity: 0.9;
  text-align: left;
  width: 100%;
}
.project-info p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  opacity: 0.7;
  text-align: left;
  width: 100%;
}
.project-info .back-link {
  position: fixed;
  bottom: 20px;
  font-size: 0.9rem;
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  text-align: center;
}
.project-info .back-link:hover {
  opacity: 1;
}

/* FADE-IN ANIMATION */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-fade-in {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

/* ARCHIVE TABLE */
.archive-table {
  background-color: transparent;
  border-spacing: 0;
  margin-top: 50px;
  width: 95%;
  font-size: 1rem;
  border-collapse: separate;
  text-transform: uppercase;
  table-layout: auto;
  margin-left: 20px;
  margin-right: 20px;
  z-index: 2;
  counter-reset: rowNumber;
    filter: blur(0.1px);

}
.archive-table th,
.archive-table td {
  margin: 0px 10px;
  text-align: left;
  word-wrap: break-word;
  overflow:scroll;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}
.archive-table tr {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.5s ease;
  cursor: pointer;
  counter-increment: rowNumber;
}
.archive-table tr.row-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 3s ease, transform 2s ease;
}
.archive-table tr:hover {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.archive-table:hover tr:not(:hover) {
  opacity: 0.5;
  transform: translateY(0);
  transition: opacity 0.5s ease; transform: 0.5s ease;
}
.row-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 5s ease, transform 5s ease;
}
.archive-table tr td:first-child::before {
  content: "0" counter(rowNumber);
  display: inline-block;
  text-align: left;
  margin-right: 10px;
  color: #ffffff;
}
.archive-table tr:nth-child(n+10) td:first-child::before {
  content: counter(rowNumber);
}
@media (max-width: 600px) {
  .archive-table {
    display: flex;
    flex-direction: column;
  }
  .archive-table tr {
    display: flex;
    flex-direction: row;
  }
  .archive-table td:nth-child(4) {
    order: 1;
  }
  .archive-table td:nth-child(2) {
    order: 2;
  }
  .archive-table td:nth-child(5),
  .archive-table td:nth-child(3),
  .archive-table td:nth-child(1) {
    display: none;
  }
  .archive-table td {
    display: table-cell;
    text-align: left;
    font-size: 1rem;
  }
}
@media (max-width: 900px) and (min-width: 601px) {
  .archive-table {
    display: flex;
    flex-direction: column;
  }
  .archive-table tr {
    display: flex;
    flex-direction: row;
  }
  .archive-table td:nth-child(4) {
    order: 1 !important;
  }
  .archive-table td:nth-child(2) {
    order: 2 !important;
    width: 240px;
  }
  .archive-table td:nth-child(5) {
    order: 3 !important;
  }
  .archive-table td:nth-child(3),
  .archive-table td:nth-child(1) {
    display: none !important;
  }
  .archive-table td {
    display: table-cell !important;
    text-align: left;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease,0.5s ease;
  }
  .overlay .gif {
    z-index: 2;
  }
  .overlay h3,
  .overlay p {
    display: block;
    z-index: 3;
  }
}

/* LAZY IMAGE */
.lazy-image {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lazy-image.fade-in {
  opacity: 1;
  transform: scale(1);
}


