body {
  margin: 0px;
  overflow: hidden;
}

/* avoid a white scrollbar background in Webkit */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #757981; 
  border-radius: 5px;
}
 
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.5); 
  border-radius: 5px;
}

/* container for one set of Juicebox shows; could embedd more than one gallery */
.gallery {
  background-color: #302B1D;
  font-family: 'Open Sans', sans-serif;
  font-size: 12pt;
  height: 100vh;
  position: relative; /* all content uses absolute position */
  transition-duration: 600ms;
  width: 100vw;
}

.gallery,
.gallery a {
  color: #D9CB84;
}

.gallery > * {
  position: absolute;  
}

.gallery > div,
.gallery .images .zoom { /* vertical/horizontal centering */
  align-items: center;
  display: flex;
  justify-content: center;
}

/* container for the menu of shows in the gallery */
.gallery .menu {
  background-color: #737D26;
  bottom: 0px;
  color: #302B1D;
  display: block;
  overflow: auto;
  text-align: left;
  top: 40px;
  bottom: 0px;
  z-index: 1;
}

/* menu item styling */
.gallery .menu .ui-widget-content {
  background: none;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
}
.gallery .menu .active-item {
  font-weight: bold;
}

/* container for the current shows's title */
.gallery .title {
  font-family: Rokkitt, serif;
  font-size: 200%;
  height: 40px;
  left: 0px;
  top: 0px;
  width: 100%;
}

/* container for the current shows's thumbnails */
.gallery .thumbs {
  box-sizing: border-box;
  height: 58%;
  padding: 45px 40px 5px 40px;
  top: 0px;
  width: 100%;
}

.gallery .thumbs > div { /* thumbnails scrolling area */
  align-items: center;
  cursor: ns-resize;
  display: inline-grid; 
  grid-template-columns: repeat(auto-fit, 110px);
  justify-content: center;
  margin: auto;
  max-height: 100%;
  overflow: auto;
  row-gap: 10px;
  vertical-align: middle;
  width: 100%;
}

/* center square of one thumbnail */
.gallery .thumb {
  background-position: center center;
  background-size: cover;
  display: inline-block !important;
  height: 100px;
  margin-right: 4px;
  width: 100px;
}

/* container for the current shows's description */
.gallery .blog {
  bottom: 0px;
  box-sizing: border-box;
  height: 38%;
  padding: 5px 0px 45px 0px;
  width: 100%;
}

.gallery .blog > div { /* text scrolling area */
  cursor: ns-resize;
  display: inline-block;
  margin: auto;
  max-height: 100%;
  max-width: 700px;
  overflow: auto;
  text-align: left;
  vertical-align: middle;
}

/* container for the current shows's slides */
.gallery .images {
  bottom: 40px;
  top: 40px;
  width: 100%;
}

.gallery .images .image { /* image display area */
  display: inline-block;
  max-height: 100%;
  vertical-align: middle;
}

/* container for zooming if any */
.gallery .images .zoom {
  height: 100%;
  position: absolute;
  width: 100%;
}

/* slide's image */
.gallery .images .image {
  background: lightgray url('rolling.gif') no-repeat fixed center;
  max-height: 98%;
  max-width: 98%;
}

/* slide's panorama container */
.gallery .images iframe {
  height: 100%;
  width: 100%;
}

/* container for the current slide's caption (if any) */
.gallery .caption {
  bottom: 0px;
  height: 40px;
  left: 70px;
  right: 70px;
}

/* buttons */
.gallery .menu-button,      /* show menu of show titles, always visible */
.gallery .zoom-in,          /* zoom into the image */
.gallery .zoom-out,         /* stop zooming */
.gallery .fullscreen,       /* open into full screen, initially not hidden */
.gallery .fullscreen-exit,  /* return to browser, initially hidden */
.gallery .first-page,       /* select (previous) show title page, initially hidden */
.gallery .previous,         /* select previous image, initially hidden */
.gallery .next,             /* select next image, initially hidden */
.gallery .last-page {       /* select next show title page, initially hidden */
  cursor: pointer;
  font-size: 36px;
  height: 40px;
  width: 40px;
}

/* menu button */
.gallery .menu-button {
  left: 0px;
  top: 0px;
}

/* zoom management buttons (if supported) */
.gallery .zoom-in,
.gallery .zoom-out {
  right: 40px;
  top: 0px;
}

/* fullscreen management buttons (if supported) */
.gallery .fullscreen,
.gallery .fullscreen-exit {
  right: 0px;
  top: 0px;
}

/* select (previous) show title page */
.gallery .first-page {
  bottom: 0px;
  left: 0px;
}

/* select previous image */
.gallery .previous {
  bottom: 0px;
  left: 40px;
}

/* select next picture */
.gallery .next {
  bottom: 0px;
  right: 40px;
}

/* select next show title page */
.gallery .last-page {
  bottom: 0px;
  right: 0px;
}

/* decorate YouTube links with trailing symbol only */
a[href*="youtu.be"] {
  text-decoration: none;
}
a[href*="youtu.be"]::after {
  content: '🎦';
}

/** layout debugging: close this comment here.

.gallery > * {
  border: thin solid red;
  visibility: visible !important;
}

.gallery .menu:after,
.gallery .title:after,
.gallery .thumbs > div:after,
.gallery .images:after,
.gallery .blog > div:after,
.gallery .caption:after {
  content: 'class: ' attr(class);
}

.gallery .thumbs > div {
  border: thin solid blue;
}

.gallery .images {
  border: thin solid yellow;
}

.gallery .blog > div {
  border: thin solid green;
}

/** end of layout debugging */