html {
  font-family: 'Titillium Web';
  font-size: 1.0em;
  font-weight: 300;
  line-height: 1.4rem;
}

body {
  box-sizing: border-box;
  max-width: none;
}

.camgallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px,1fr));
  grid-auto-rows: 1fr;
  grid-gap: 1em;
  grid-auto-flow: dense;
}

.thumb {
  cursor: pointer;
}

.camgallery > figure {
  break-inside: avoid;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #424242;
  box-shadow: 1px 3px 8px rgba(var(--color-shadow),0.5);
}
.camgallery figcaption {
}
.camgallery img {
  flex: 1;
  object-fit: cover;
  max-width: 100%;
}
.camfooter {
    margin: 20px 20px 20px 0px;
    font-size: 0.8rem;
    text-align: right;
}

.modal {
  display: none;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(var(--color-shadow),0.8);
}

/* Dark mode in all cases */
.modal-body {
  position: fixed;
  top: 2em;
  bottom: 2em;
  right: 10vw;
  left: 10vw;
  padding: 0;
  background-color: black;
  /* overflow: auto; */
  border-radius: 0.5em;
  border: 1px solid #9e9e9e;
  box-shadow: 1px 3px 8px rgba(150,150,150,0.5);
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0.3em;
  cursor: pointer;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  background-color: black;
}

.modal-close:hover,
.modal-close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.camimage {
  object-fit: contain;
  padding-top: 2em;
  width: 100%;
  max-height: calc(100vh - 8em);
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.caption {
  text-align: center;
  color: white;
  height: 2em;
  padding-top: 0.5em;
}



#camselector {
  display: none;
}
#menu {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(325px,1fr));
  grid-auto-rows: 1fr;
  grid-gap: 1em;
  grid-auto-flow; dense;
}
.selector {
  display: flex;
  flex-direction: column;
  border: 1px solid #424242;
}
.image img {
  max-width: 100%;
  object-fit: cover;
}
.pushbtn {
  font-family: inherit;
  font-size: 1rem;
  padding: 0 5px 0 5px;
  border-radius: 5px;
}

#btnpanel {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

#footerpanel {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}