/**
* ========================================
 * // all
 * ========================================
 */

#works {
  margin-bottom: 200px;
}

/**
 * ========================================
 * // thumbnail
 * ========================================
 */

.wbox {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.witem {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.witem.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.witem.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.wimg {
  max-width: 260px;
  width: 100%;
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .wbox {
    gap: 30px;
    padding-bottom: 15px;
  }

  .witem {
    max-width: 30%;
    width: 100%;
  }

  .wimg {
    max-width: none;
    width: 100%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .wbox {
    gap: 20px;
    padding-bottom: 30px;
  }

  .witem {
    max-width: 48%;
    width: 100%;
  }

  .wimg {
    max-width: none;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #wrap-works {
    padding-top: 120px !important;
  }

  .wbox {
    gap: 10px;
    padding-bottom: 20px;
  }

  .witem {
    max-width: 46%;
    width: 100%;
  }

  .wimg {
    max-width: none;
    width: 100%;
  }
}

/**
 * ========================================
 * // navigation
 * ========================================
 */

/* .coverall {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 250px;
  pointer-events: none; 
  z-index: 40; 
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
} */

/* .wnav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
} */

.coverall {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  display: flex;
  align-items: flex-end; /* ensures wnav is always at the bottom of .coverall */
}

.wnav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 50;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 35px;
}

.coverall,
.wnav,
footer {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

.fade-in {
  opacity: 1 !important;
  pointer-events: auto;
}

.wtext {
  font-family: Montserrat;
  color: #e6e6e6;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

#wul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#wul li {
  font-size: 16px;
  color: #808080;
  background: transparent;
  border: solid 2px #808080;
  border-radius: 50px;
  padding: 5px 35px;
  list-style: none;
  cursor: url("https://joevisualstudio.com/wp-content/themes/joe-visual/images/cursor/white.cur") 8 8, pointer;
}

.selected {
  border: solid 2px #ef5323 !important;
  color: #e6e6e6 !important;
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .wnav {
    max-width: 70vw;
    padding-bottom: 25px;
  }

  #wul {
    justify-content: center;
  }

  #wul li {
    font-size: 14px;
    padding: 5px 25px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .wnav {
    max-width: 70vw;
    padding-bottom: 25px;
  }

  #wul {
    justify-content: center;
  }

  #wul li {
    font-size: 14px;
    padding: 5px 25px;
  }
}

@media screen and (max-width: 767px) {
  .wnav {
    max-width: 100vw;
    padding-bottom: 15px;
  }
  .wtext {
    font-size: 14px;
    margin: 0;
  }

  #wul {
    justify-content: center;
    gap: 10px;
  }

  #wul li {
    font-size: 12px;
    padding: 5px 15px;
  }
}
