#foto_container {
  position: absolute;
  margin-top: 2em;
  width: 90%;
  left: 5%;
  column-width: 300px;
  column-gap: 1rem;
  column-fill: balance;
}

#foto_container img {
  background-color: var(--backcol);
  width: 100%;
  min-height: 10rem;
  transition: transform .2s;
  break-inside: avoid;
}

#foto_container img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#search_bar_container {
  display: flex;
  flex-direction: row;
  position: sticky;
  width: 90%;
  height: 40px;
  left: 5%;
  padding-bottom: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 20px;
  font-size: large;
  padding: 0;
  font-size: 20px;
}

.indicator {
  background-color: var(--backcol);
  text-align: center;
  border-radius: 20px 0px 0px 20px;
  border: none;
  height: 93%;
  width: 5%;
  padding-inline: 20px;
  padding-top: 5px;
}

.top_button {
  background-color: var(--backcol);
  color: var(--textcol);
  padding-inline: 20px;
  padding-top: 5px;
  border: none;
  border-radius: 20px;
  margin-right: 10px;
  text-decoration: none;
}

#search_bar {
  background-color: var(--backcol_b);
  opacity: 90%;
  width: 95%;
  height: 100%;
  border-color: var(--frontcol);
  border-radius: 0px 3px 3px 0px;
  padding-inline: 20px;

}


#modal_viewer {
  z-index: 1;
  display: none;
  position: fixed;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.img_viewer_container {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 80%;
  perspective: 3000px;
}

/* img_viewer Content (image) */
.img_viewer-content {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Caption of img_viewer Image */
#caption {
  position: absolute;
  width: 100%;
  height: 10%;
  bottom: 0px;
  text-align: center;
}

/* Add Animation */
.img_viewer-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

.next_img {
  background: linear-gradient(rgb(0, 0, 0, 0), rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0));
  position: absolute;
  top: 10%;
  height: 80%;
  width: 5%;
  right: 0px;
  font-size: 40px;
  font-weight: bold;
  transition: all 0.15s;
  align-content: center;
  text-align: center;
  user-select: none;
}


.prev_img {
  background: linear-gradient(rgb(0, 0, 0, 0), rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0));
  position: absolute;
  top: 10%;
  height: 80%;
  width: 5%;
  left: 0px;
  font-size: 40px;
  font-weight: bold;
  transition: all 0.15s;
  align-content: center;
  text-align: center;
  user-select: none;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 40px;
  font-weight: bold;
  transition: 0.15s;
  user-select: none;
}

/* The download Button */
#download {
  color: var(--textcol);
  background-color: var(--backcol);
  padding: 12px;
  border-radius: 20px;
  margin-right: 10px;
  text-decoration: none;
  position: absolute;
  top: 15px;
  left: 35px;
  font-size: 20px;
  font-weight: bold;
  transition: 0.15s;
  user-select: none;
}

#download:hover,
#download:focus,
.next_img:hover,
.next_img:focus,
.prev_img:focus,
.prev_img:hover,
.close:hover,
.close:focus {
  color: var(--h_textcol);
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(rgb(0, 0, 0, 0), rgb(0, 0, 0, 0.7), rgb(0, 0, 0, 0));
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .img_viewer-content {
    width: 100%;
  }
}
