/* j_litebox */
   
/* DONT THINK I NEED THIS 
   
div.j_litebox {
  display: inline-block;
}

span.j_litebox_full {
  z-index: 999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgb(50, 50, 50);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s linear;
}

span.j_litebox_full img {
  position: fixed;
  background-color: white;
  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;
}
div.j_litebox_full {
  z-index: 999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgb(50, 50, 50);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s linear;
}

div.j_litebox_full img {
  position: fixed;
  background-color: white;
  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;
}
figure.j_litebox_full {
  z-index: 999;
  position: fixed;
  height: 100%;
  width: 100%;
  background-color: rgb(50, 50, 50);
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s linear;
}

figure.j_litebox_full img {
  position: fixed;
  background-color: white;
  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;
}
 */

figcaption.j_litebox_caption { display: block; position: relative; font-size: 1rem; /* color: darkgray; */ top: 10px; max-width: 85vw; /* white-space: pre */;}

.SeriesEdition {
  font-size: 0.9rem;
  margin: 1px;
  text-align: center;
  letter-spacing: .07rem;
  position: relative;
  top: -5px;
  font-style: italic;
}

.thumbSeries {
  display: inline-block; /* ** NEW ** */
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  /* top: -5px; */
  font-style: italic;
  white-space: preserve;
  }
  
/* Buttons */
a.j_litebox_prev,
a.j_litebox_next,
a.j_litebox_close {
  position: relative;
  display: block;
  text-decoration: none;
  z-index: 999;
}

a.j_litebox_close::after {
  width: 2rem;
  height: 2rem;
  position: relative;
  display: inline-flex;
  z-index: 1;
  justify-content: space-evenly;
  background-color: rgba(89, 89, 97, 0.67);
  border-radius: 50%;
  color: white;
  content: '\00d7';
  cursor: pointer;
  border: rgba(201, 201, 212, 0.83) 2px solid;
}

a.j_litebox_prev::after {
  width: 2rem;
  height: 2rem;
  position: relative;
  display: inline-flex;
  content: '<';
  justify-content: space-evenly;
  background-color: rgba(89, 89, 97, 0.67);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  border: rgba(201, 201, 212, 0.83) 2px solid;
}

a.j_litebox_next::after {
  width: 2rem;
  height: 2rem;
  position: relative;
  display: inline-flex;
  content: '>';
  z-index: 1;
  justify-content: space-evenly;
  background-color: rgba(89, 89, 97, 0.67);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  border: rgba(201, 201, 212, 0.83) 2px solid;
}

a#firstlink.j_litebox_prev::after { color: rgb(96, 96, 96) }
a#lastlink.j_litebox_next::after { color: rgb(96, 96, 96); }

a:target ~ a.j_litebox_close,
a:target ~ a.j_litebox_prev,
a:target ~ a.j_litebox_next {
  visibility: visible;
}

a:target > img.j_litebox_thumb + span.j_litebox_full {
  visibility: visible;
  opacity: 1;
  pointer-events: initial;
}

span.j_litebox_full {
  cursor: initial;
}

/* FORMERLY INLINE */

/* Unopened j_litebox */
.j_litebox {
  display: none;
}

/* Opened j_litebox */
.j_litebox:target {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  /* display: flex; */
  display: inline-flex;
  z-index: 1001;
  align-items: center;
  justify-content: center;
 /*  background-color: #2b2b2b; */
  background-color: #f4f5f8;;
  overflow: scroll;
}

.j_litebox figure {
/*     border: thin #c0c0c0 solid; */
    display: flex;
    flex-flow: column;
    padding: 10px;
    max-width: 90vw;
    margin: auto;
   /*  min-width: 600px; */ /* ***** ADJUST FOR MOBILE ***** */
}

.j_litebox figure img { /* width: 100%; */ height: 100%; max-width: 85vw; max-height: 85vh; } /* ***** NO WIDTH EXPERIMENT ***** */

.jlitebox_nav {display: flex; border: #f9f9f9 1px solid; }

.jlitebox_nav {
  display: inline-flex;
  justify-content: space-between;
  width: 8rem;
  height: 2.2rem;
  padding: 4px;
  border: rgba(201, 201, 212, 0.83) 1px solid;
  border-radius: 50px;
  font-size: 1.5rem;
  float: right;
  margin-top: 10px;
  margin-bottom: 5px;
}

@media screen and (max-width:767px) and (orientation:portrait){
.j_litebox figure { min-width: unset; }
.j_litebox figure img { width: unset; height: unset; margin-top: -5vh !important;max-height: 70vh; /* max-height: unset; max-width: 250px; */ }
/* .jlitebox_nav {position: fixed; top: 90vh;left: 58vw;} */
}

/* RESPECT DARK MODE */
@media (prefers-color-scheme: dark) {

  .j_litebox:target {
    background-color: #2b2b2b;
  }
  
  figcaption.j_litebox_caption {
    color: darkgray;
  }

}

/* This is the end of j_litebox */
