/* The work below, CSSBox, is released under the Creative Commons
   Attribution-ShareAlike 4.0 license and is available on
   https://github.com/TheLastProject/CSSBox. You are not required to add
   additional credit to your website, just leave the above text in this file */
div.cssbox {
  display: inline-block;
}

.preview-img-container {
  float: left;
  height: 160px;
  padding-top: 5px;
  padding-bottom: 1px;
  padding-left: 2px;
  padding-right 2px;
  margin-bottom: 8px;
}

.preview-img-container .caption {
  width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-img-container .caption:hover {
/*  width: 100%; */
  font-size: 80%;
  width: 120px;
  display: block;
  background-color: rgba(255, 255, 255, 1 );
  opacity: 1;
  white-space: normal;
  word-break: normal;
  overflow: visible;
  z-index: 1000;
}

span.cssbox_full {
  z-index: 999999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.95);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  cursor: default;
  transition: opacity 0.5s linear;
}

span.cssbox_full img {
  position: fixed;
  background-color: white;
  border: solid white;
  margin: 0;
  padding: 0;
  max-height: 90%;
  max-width: 90%;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  filter: brightness(120%);
  box-shadow: 0 0 20px black;
}

/* image thumbnail */
img.cssbox_thumb {
  max-height: 120px;
  z-index: 200;
}

#img_previewimg {
filter: brightness(130%);
zoom: 1.5; 
}

a.cssbox_close,
a.cssbox_prev,
a.cssbox_next {
  z-index: 999999;
  position: fixed;
  text-decoration: none;
  visibility: hidden;
  color: white;
  font-size: 36px;
}

a.cssbox_close {
  top: 1%;
  right: 1%
}

a.cssbox_close::after {
  content: '\00d7';
}

a.cssbox_prev,
a.cssbox_next {
  top: 50%;
  transform: translate(0%, -50%);
}

a.cssbox_prev {
  left: 5%;
  color: white;
}

a.cssbox_next {
  right: 5%;
  color: white;
}

a:target ~ a.cssbox_close,
a:target ~ a.cssbox_prev,
a:target ~ a.cssbox_next {
  visibility: visible;
}

a:target > img.cssbox_thumb + span.cssbox_full {
  visibility: visible;
  opacity: 1;
  pointer-events: initial;
}
/* This is the end of CSSBox */
