body {
  color: rgb(243, 243, 243);
  font-family: 'Alpino-Regular';  
}

html {
  /*background-image: url('mandelbulb_bg.png');*/
  background-position: center;
  background-position-x: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: rgb(34, 34, 34);
  background-image: url("../bg_img/mandelbulb_bg.webp");
  background-size: cover;
}

.page_container {
  margin-top: 16px;
  width: 100%;
}

.gallery_category {
  width: 95%;
  height: 100%;
  top: 0; left: 0; bottom: 0; right: 0;
  margin: auto;
  margin-top: 16px;
  margin-bottom: 16px;

  background-color: hsla(0, 0%, 8%, 0.9);
  box-sizing: border-box;
  padding: 16px;

  border-radius: 4px;
  border-width: 2px;
  border-color: rgba(50, 50, 50, 0.4);
  border-style: solid;
  border-color: #b8b8b842 #75757542 #48484842 #75757542;
}

.category_image_grid_container {
  display: grid;

  /* grid-template-rows: 100px; */
  /* grid-auto-rows: 100px; */
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  /* grid-template-rows: repeat(auto-fit, minmax(100px, 1fr)); */
  gap: 2px;
}

.category_title {
  margin: auto;
  text-align: center;

  text-shadow: 1px 1px 2px #00000071;
  background-color: rgba(41, 41, 41, 0.8);

  padding: 8px;
  margin-bottom: 16px;

  /* box-shadow: 0px 4px 8px hsla(0, 0%, 0%, 0.5); */
  position: sticky;
  top: 16px;
  z-index: 2;

  font-size: 24px;
  background: linear-gradient(90deg, rgba(41, 41, 41, 0.0) 0%, rgba(41, 41, 41, 0.7) 55%, rgba(41, 41, 41, 0.0) 100%);
}

.thumbnail_container {
  position: relative;
  width: 100%;
  height: 256px;
  transition: 0.2s;
}

.thumbnail_container:hover {
  z-index: 1;
  cursor: pointer;
  scale: 1.02;
  filter: brightness(1.1) drop-shadow(0px 16px 14px rgba(0, 0, 0, 0.53));
  transition: 0.2s;
}

.thumbnail_img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  background-color: rgb(33, 33, 33);

  box-sizing: border-box;
  filter: brightness(1.0);
  transition: 0.2s;
}

.img_thumb_cover {
  pointer-events: none;
  width: 256px;
  height: 256px;
  background-color: rgba(99, 99, 99, 0.915);
  /* background: (90deg,rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%); */
  /* background-blend-mode: multiply; */
}

.thumbnail_title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  box-sizing: border-box;
  margin: 16px;
  margin-left: 16px;
  opacity: 0;
  transition: opacity 0.2s, margin-left 0.2s;
  font-style: italic;
  text-shadow: 1px 1px 2px #000000;
  z-index: 1;
}

.thumbnail_cover {
  pointer-events: none;
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.2s;
  /* z-index: 16; */
}

/* ---------------------------- */

.full_image_window {
  display: flex;
  flex-direction: column;
  visibility: hidden;
  position: fixed;

  min-width: min-content;
  width: 80%;
  height: 90%;
  
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  z-index: 3;
  
  background-color: hsl(0, 0%, 5%);
  border-color: #b8b8b842 #75757542 #48484842 #75757542;
  border-width: 2px;
  border-style: solid;

  box-shadow: 0px 2px 16px hsla(0, 0%, 0%, 0.75);
}

.full_image_container {
  position: absolute;
  /* width: 100%; */
  /* height: auto; */
  z-index: 3;
  text-align: center;
  align-content: center;
  height: calc(100% - 128px);
  /* margin: auto; */
  left: 0; right: 0;
  /* box-sizing: border-box; */
  /* padding-bottom: 256px; */

  /* padding-bottom: 128px; */
  /* margin-bottom: 96px; */
}

.full_image {
  max-width: 100%;
  max-height: 100%;
}

.full_image_bottom_panel {
  position: absolute;
  width: 100%;
  height: 128px;
  bottom: 0;
  /* box-sizing: border-box; */
  background-color: rgb(23, 23, 23);
}

.full_image_info_container {
  position: relative;
  width: 32%;
  height: calc(100% - 32px);
  padding: 0;
  z-index: 4;
  top: 0;
  margin: 16px;
}

.full_image_info_title {
  color: rgb(225, 225, 225);
  margin: 0;
}

.full_image_info_description {
  color: rgb(181, 181, 181);
  margin: 0;
  /* width: 30%; */
}

.full_image_date {
  position: absolute;
  z-index: 4;
  width: max-content;
  bottom: 0; left: 0;

  color: rgb(136, 136, 136);
  margin: 16px;
}

.full_image_btn, .close_btn {
  position: absolute;
  cursor: pointer;
  align-content: center;
  text-align: center;
  
  text-decoration: none;
  user-select: none;
  background-color: rgba(35, 35, 35, 0.4);
  font-size: 24px;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  margin: 8px;

  top: 0;
  
  align-self: flex-end;
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(125, 125, 125, 0.448);

  transition: background-color 0.2s, width 0.2s, height 0.2s, border-color 0.2s;
}

.full_image_btn:hover, .close_btn:hover {
  text-decoration: none;
  background-color:rgba(33, 33, 33, 0.5);
  border-color: rgba(172, 172, 172, 0.5);
  width: 32px;
  height: 32px;
}

.close_btn {
  right: 0;
  width: 48px;
  height: 48px;
}

.close_btn:hover {
  text-decoration: none;
  width: 40px;
  height: 40px;
}

.full_image_btn_container {
  position: absolute;
  text-align: center;
  margin: auto;

  width: 256px;
  height: max-content;
  left: 0;
  right: 0;
  bottom: 16px;

  padding: 8px;
  box-sizing: border-box;
}

.nav_hint {
  position: relative;
  text-align: center;
  margin: auto;
  color: #c7c7c771;
  text-shadow: 2px 2px #00000071;
  z-index: 3;
  user-select: none;
  margin: 12px;
}

.next_btn, .prev_btn {
  position: relative;
  cursor: pointer;
  align-content: center;
  text-align: center;
  
  text-decoration: none;

  user-select: none;
  background-color: rgb(46, 46, 46);
  font-size: 16px;
  
  border-radius: 2px;
  margin: 8px;

  padding: 4px;
  padding-left: 38px;
  padding-right: 38px;

  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #2929295f;

  left: 0;
  transition: background-color 0.1s;
}

.next_btn {
  right: 0;
}

.next_btn:hover, .prev_btn:hover {
  text-decoration: none;
  background-color:rgba(79, 79, 79, 0.553);
  transition: background-color 0.1s;
}

.mobile_full_image_btn_container {
  display: none;
  position: absolute;

  top: 0; bottom: 0; left: 0; right: 0;
  margin: auto;
  
  height: 64px;
  width: 100%;
}

.mobile_next_btn, .mobile_prev_btn {
  position: absolute;
  cursor: pointer;
  align-content: center;
  text-align: center;
  
  text-decoration: none;

  user-select: none;
  background-color: rgb(46, 46, 46);
  font-size: 24px;

  height: 64px;
  
  border-radius: 4px;
  margin: 8px;

  padding: 4px;
  padding-left: 16px;
  padding-right: 16px;

  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-color: #2929295f;

  box-shadow: -4px 3px 8px #0000006c;

  left: 0;
  transition: background-color 0.1s;
}

.mobile_next_btn {
  right: 0; left: auto;
  box-shadow: 4px 3px 8px #0000006c;
}

.mobile_next_btn:hover, .mobile_prev_btn:hover {
  text-decoration: none;
}

.image_desc {
  position: absolute;
  width: 75%;
  height: 23%;
  background-color:rgb(43, 43, 43);
  bottom: 0;
  box-sizing: border-box;
  padding: 0px;
}

.image_desc h3 {
  position: absolute;
  left: 15px;
}

/* Scroll bar */
::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: rgb(28, 28, 28); 
}
 
::-webkit-scrollbar-thumb {
  background: rgb(88, 88, 88); 
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(96, 96, 96); 
}

/* Links */
a:link {
  color: rgb(150, 150, 150);
  text-decoration: none;
}

a:visited {
  color: rgb(150, 150, 150);
  text-decoration: none;
}

a:hover {
  color: rgb(234, 234, 234);
  text-decoration: underline;
}

a:active {
  color: rgb(234, 234, 234);
  text-decoration: underline;
}

.screen_dim {
  position: fixed;
  background-color: #00000042;
  width: 100%;
  height: 100%;
  margin: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1;
  pointer-events: all;
}

@media only screen and (max-width: 800px) {
  .full_image_window {
    height: 80%;
  }

  .full_image_container {
    position: relative;
    /* height: 512px; */
    margin-bottom: 196px;
  }

  .category_image_grid_container {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }
  
  .full_image_bottom_panel {
    height: 192px;
  }

  .full_image_info_container {
    width: auto;
    height: min-content;
    z-index: 4;
    bottom: 128px;
  }

  .image_info_description {
    width: 100%;
  }

  .full_image_date {
    top: 0; left: auto; right: 0;
  }

  .close_btn {
    right: 0;
    width: 48px;
    height: 48px;
  }

  .nav_hint {
    display: none;
  }

  .full_image_btn_container {
    padding: 16px;
  }

  .next_btn, .prev_btn {
    padding-top: 14px;
    padding-bottom: 14px;
    border-radius: 16px;
    user-select: none;
    pointer-events: fill;
  }

}

@media only screen and (max-height: 700px) {
  .category_image_grid_container {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

  .full_image_btn_container {
    display: none;
  }

  .mobile_full_image_btn_container {
    display: block;
  }

  .full_image_window {
    display: flex;
    border-radius: 16px;
  }

  .full_image_info_container {
    width: 100%;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
  }

  .full_image_container {
    position: relative;
    flex-grow: 1;
  }

  .full_image_bottom_panel {
    display: flex;
    position: relative;
    height: min-content;
    flex-shrink: 1;
    border-radius: 0px 0px 16px 16px;
  }

  .full_image_date {
    position: relative;
  }

  .category_title {
    position: sticky;
    top: 20px;
    z-index: 2;
  }

}