body {
  color: rgb(243, 243, 243);
  font-family: 'Alpino-Regular';
}

html {
  background-position: center;
  background-position-x: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-image: url("../bg_img/mandelbulb_bg.webp");
  background-size: cover;
  background-color: black;
}

.border_light {
  border-radius: 4px;
  border-width: 2px;
  border-style: solid;
  /* border-color: rgba(50, 50, 50, 0.4); */
  border-color: rgba(184, 184, 184, 0.1) rgba(117, 117, 117, 0.1) rgba(72, 72, 72, 0.1) rgba(117, 117, 117, 0.1);
}

.page_container {
  margin: auto;
  margin-top: 16px;
  width: 100%;
}

.gallery_category {
  width: 90%;
  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;
}

.category_vid_grid_container {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  gap: 2px;

  margin: auto;
  margin-top: 32px;
  margin-bottom: 32px;
}

.vid_iframe {
  width: 100%;
  height: 100%;
  padding: 64px;
  box-sizing: border-box;
  border-style: none;
}

.category_title {
  margin: auto;
  text-align: center;

  text-shadow: 1px 1px 2px #00000071;
  background-color: rgba(41, 41, 41, 0.8);

  padding: 8px;

  /* 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%);

}

/* Gallery thumbnails */

.thumbnail_container {
  position: relative;
  width: 100%;
  height: 256px;
  transition: 0.2s;
}

.thumbnail_container:hover {
  width: 120%;
  justify-self: center;
}

.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;
  padding: 8px;
  filter: brightness(1.0);
  transition: 0.2s;
}

.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_subtitle {
  position: absolute;
  top: 0; right: 0;
  box-sizing: border-box;
  margin: 16px;
  margin-right: 16px;
  opacity: 0;
  transition: opacity 0.2s, margin-right 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_window {
  display: flex;
  flex-direction: column;
  visibility: hidden;
  position: fixed;

  min-width: min-content;
  width: 90%;
  height: 80%;
  
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  z-index: 3;
  
  background-color: hsl(0, 0%, 5%);

  box-shadow: 0px 2px 16px hsla(0, 0%, 0%, 0.75);
}

.full_window_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_vid {
  max-width: 100%;
  max-height: 100%;
}

.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;
}

.close_btn:hover {
  text-decoration: none;
  width: 40px;
  height: 40px;
}

.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;
}

/* 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;
}

/* 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); 
}

@media only screen and (max-width: 800px) {
  .thumbnail_container:hover {
    width: 100%;
  }
}