#jump {

  background-color: rgba(119, 106, 106, 0);
  border: 1px dotted;
  color: #181818;
  padding: 5px;
  top: 3px;
  left: 1063px;
  position: fixed;
  z-index: 99;
  visibility: show;
}

#jumpdown {
  background-color: rgba(255, 0, 0, 0);
  border: 1px dotted;
  color: #181818;
  padding: 5px;
  top: 3px;
  left: 1168px;
  position: fixed;
  z-index: 99;
  visibility: show;
}

#newold {
  top: 10px;
  left: 1099px;
  position: fixed;
  z-index: 99;
  visibility: show;


}


body {
  font: 14px ms gothic;
  min-height: 100%;
  background: rgb(172, 172, 172);
  background-image: url("../IMAGES/bg.png");
  display: flex;
  flex-direction: column;
}

#wrapper {
  overflow-y: hidden;
}

#NAVIGATION {
  width: 300px;
  background: rgba(150, 150, 150, 0);
  background-image: url("../IMAGES/bg.png");
  padding: 15px;
  padding-top: 0px;
  position: fixed;
  overflow-y: hidden;
  border-right: 1px dotted;
  float: left;
  font-size: 12px;
  height: 1205px;
}

/* LINKS */
a:link {
  color: #000000;
}

:link:hover {
  color: #c7c7c7;
  background-color: #757575;
  cursor: pointer;
}

a:visited {
  color: #252525;
}

/* DROPDWN */

.dropbtn {
  background-color: #555555;
  color: white;
  font: 14px ms gothic;
  border: none;
  cursor: pointer;
  border: 1px dotted;
  border-color: #000000;

}

.dropbtn:hover,
.dropbtn:focus {
  background-color: #242424;
  border: 1px dotted;
  border-color: #8f8f8f;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  background-color: #e0e0e07c;
  display: none;
  position: absolute;
  overflow: auto;
  z-index: 1;
}

.dropdown-content a {
  text-align: left;
  color: black;
  padding: 5px 60px 0px 0px;
  border-bottom: 1px dotted;
  display: block;
}

.dropdown a:hover {
  background-color: #494949;
  text-decoration: dotted;
}

.show {
  display: block;
}


/* GALLERY */

.scrolling-gallery {
  width: auto;
  overflow-y: clip;
  display: flex;
  overflow-x: scroll;
  gap: 2px;
  height: calc(100vh - 60px);
}

#GALLERY {
  overflow: hidden;
  text-align: center;
  margin-left: 300px;
  padding: 0px 0px 0px 40px;
}

/* GALLERY LAYOUT */

.gallery {
image-rendering: pixelated; 
image-rendering: crisp-edges;
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 10px 0;
  justify-items: center;

}

.gallery-thing {
  image-rendering: pixelated; 
image-rendering: crisp-edges;
    text-align: left;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}


.gallery-thing.hidden {
  display: none;

}

.thumbnail {
  height: 100%;
  border: 1px dotted #333;
  display: block;
  margin-right: 5px;

}

.thumbnail:hover {
  border-color: #bbbbbb;
  ;
  cursor: pointer;
}

/* LIGHTBOX OVLY */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.904);
  z-index: 1000;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* IMAGES + DESCS */
.lightbox-image {
  max-width: 95%;
  max-height: 90%;
  width: auto;
  height: auto;
}

.lightbox-description {
  color: white;
  text-align: left;
  overflow-y: auto;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 20px;
  max-width: 40%;
  width: 40%;
  max-height: calc(100vh - someOffset);
  padding: 10px;
}
/* LIGHTBOX NAV BUTTONS */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 50px;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  transform: translateY(-50%);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

.prev:hover,
.next:hover {
  color: #ccc;
}




/* TAG BUTTONS + STYLING */
.tag-filters {
  border-top: 1px dotted;
  text-align: left;
}

.tag-buttons {
  font: 12px ms gothic;
  color: #181818;
  background-color: #99999900;
  border: 1px dotted #d4d4d400;
  padding: 2px;
  margin-top: 5px;
}

.tag-buttons:hover {
  color: white;
  border: 1px dotted #d4d4d4;
  cursor: pointer;
}

.tag-buttons.active {
  background-color: #888;
  color: rgb(255, 255, 255);
}

.tag-buttons[tag="veneer"] {
  color: #ff9dab;
  background-color: #9b6671;
  font-size: 12px;
  padding: 2px;
  margin-top: 5px;

}


.tag-buttons:hover[tag="veneer"] {
  background-color: #853f4b;
  color: #dd9aa0;
  cursor: pointer;
}

.tag-buttons.active[tag="veneer"] {
  background-color: #ff0037;
  color: #ff9dab;
}


.tag-buttons[tag="dnd"] {
  color: #c9c9c9;
  background-color: #885e5a;
  font-size: 12px;
  padding: 2px;
  margin-top: 5px;

}

.tag-buttons:hover[tag="dnd"] {
  background-color: #888;
  color: #ccc;
  cursor: pointer;
}

.tag-buttons.active[tag="dnd"] {
  background-color: #333;
  color: rgb(255, 0, 0);
}

.tag-buttons[tag="princesses"] {
  color: #f5f5f5;
  background-color: #a8a8a8;
  border: 1px dotted #dddddd;
  font-size: 12px;
  padding: 2px;
  margin-top: 5px;
}

.tag-buttons:hover[tag="princesses"] {
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
}

.tag-buttons.active[tag="princesses"] {
  background-color: #888;
  color: rgb(255, 255, 255);
}






/* MOBILE I UFKCING IHATEEJKFS */
@media only screen and (max-width: 800px) {



  #jump {
    background-color: #88888881;
    border: 1px dotted;
    color: #ffffff;
    padding: 10px;
    top: 600px;
    left: 40px;
    position: fixed;
    z-index: 99;
    cursor: pointer;
  }

  #jumpdown {
    background-color: #88888883;
    border: 1px dotted;
    color: #ffffff;
    padding: 10px;
    top: 600px;
    left: 200px;
    position: fixed;
    z-index: 99;

  }

  #newold {
    top: 612px;
    left: 115px;
    position: fixed;
    z-index: 99;
    visibility: show;

  }


  body {image-rendering: pixelated; 
image-rendering: crisp-edges;
    text-align: center;
    background: rgb(172, 172, 172);
    background-image: url("../IMAGES/bg.png");

  }

  #NAVIGATION {
    position: static;
    border: none;
    height: auto;
    width: auto;
    float: none;
    margin-bottom: 20px;

  }

  #GALLERY {
    margin-left: 0;
    padding: 10px;

  }

  #NAVIGATION {
    display: block;
    border-bottom: 1px dotted;

  }


  .scrolling-gallery {
    flex-direction: column;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;

  }

  .gallery {
    text-align: center;
    flex-direction: column;

  }


  .navimgf {
    display: none;
  }

  .gallery-thing {image-rendering: pixelated; 
image-rendering: crisp-edges;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }


  .thumbnail {
    max-width: 100%;
    height: auto;
  }

  .lightbox-image {
    max-width: 75%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px dotted white;
  }

  .lightbox-description {
    color: white;
    font-size: 11px;
    margin-top: 5px;
    text-align: center;
    max-width: 80%;
  }

  .close {
    position: absolute;
    top: 5px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
  }

  .close:hover {
    color: #ccc;
  }

  .prev,
  .next {
    position: absolute;
    top: 90%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transform: translateY(-50%);
  }

  .prev {
    left: 30px;
  }

  .next {
    right: 30px;
  }

}