div.cssbox {
  display: inline-block;

}

div.csstext {
padding-top:1%;
position:relative;
color: white;
font-size: 18px;
font-family: inherit;
font-weight:bold;
text-shadow: 1px 1px 2px #000000;
}

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

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

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

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

a.cssbox_close::after {
  font-size: 64px;
  content: '\00d7';
}

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

a.cssbox_prev {
  left: 1%;
}

a.cssbox_next {
  right: 1%;
}

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

.cssbox_thumb {
 border-radius: 12px;
 box-shadow: 3px 5px 10px #000;
}

.cssbox_thumb2 {

}
 

a:target > img.cssbox_thumb + span.cssbox_full {
  visibility: visible; 
  opacity: 1.0;
  pointer-events: initial;
}

a:target > img.cssbox_thumb2 + span.cssbox_full {
  visibility: visible; 
  opacity: 1.0;
  pointer-events: initial;
}
