:root {
  --color-accent: #237194;
  --lightbox-buttons-color: hsl(0, 0%, 0%);
  --lightbox-background-color: hsla(0, 0%, 100%, 0.5);
  --lightbox-buttons-size: 3rem;
  --lightbox-spacing: 4rem;
}

/* Gallery */

.gallery .inner_container {
  margin-left: auto;
  margin-right: auto;
  width: 75%;
  position: relative;
}
.gallery .slider {
  max-height: 512px;
  /* ToDo review sizing */
  display: flex;
  flex-flow: row nowrap;
  overflow: hidden;
  position: relative;
}
.gallery .img_single_box {
  position: relative;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  transition: all 0.5s cubic-bezier(.56, .2, .23, .89);
}
.gallery .gallery-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Next & previous buttons */

.gallery .prev,
.gallery .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -24px;
  padding: 8px 12px 12px;
  color: white;
  font-size: 2rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--color-accent);
}
.gallery .next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.opacity {
  opacity: 0;
}

/* Thumbnails */

.gallery .slider_thumbnails {
  margin-top: 1em;
  gap: 1em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  max-height: 75px;
  /* ToDo review sizing */
}
.gallery .img_thumb {
  transition: all 0.5s cubic-bezier(.56, .2, .23, .89);
  flex: 1;
  cursor: pointer;
}
.overlay {
  opacity: .5;
}

/* Lightbox */

.aa-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: var(--lightbox-background-color);
}
.aa-lightbox.closed {
  width: 0;
  height: 0;
  background-color: transparent;
  display: none;
}
.aa-lightbox.closed>* {
  opacity: 0;
}
.aa-lightbox button {
  border: 0 none;
  background: transparent;
  font-size: var(--lightbox-buttons-size);
  padding: 0;
  cursor: pointer;
  color: var(--lightbox-buttons-color);
}
.aa-close {
  position: fixed;
  right: var(--lightbox-spacing);
  top: var(--lightbox-spacing);
}
.aa-navigation {
  width: 100%;
}
.aa-lightbox .aa-navigation button {
  position: fixed;
  top: calc(50% - (var(--lightbox-buttons-size) / 2));
  text-align: center;
  display: block;
  z-index: 10060;
  color: var(--lightbox-buttons-color);
  font-size: var(--lightbox-buttons-size);
  width: var(--lightbox-buttons-size);
  height: var(--lightbox-buttons-size);
  line-height: var(--lightbox-buttons-size);
}
.aa-lightbox .aa-navigation button.aa-prev {
  left: var(--lightbox-spacing);
}
.aa-lightbox .aa-navigation button.aa-next {
  right: var(--lightbox-spacing);
}
.aa-counter {
  position: fixed;
  bottom: var(--lightbox-spacing);
  color: var(--lightbox-buttons-color);
}
.aa-image {
  position: relative;
  /* max-width: calc(100vw - (var(--lightbox-spacing) * 8)); */
  margin: calc(var(--lightbox-spacing) * 4);
  width: initial;
  height: initial;
  opacity: 1;
  max-width: 100%;
  max-height: 100%;
}
.aa-image img {
  width: auto;
  height: auto;
  transition: all 0.2s ease-in-out;
}
.aa-lightbox.closed .aa-image img {
  width: 0;
  height: 0;
}

/* ToDo: Review responsive */

@media screen and (max-width: 981px) {
  :root {
    --lightbox-spacing: 1rem;
  }
}