/* ------------------------------------------------------------ */
/* Variables                                                    */
/* ------------------------------------------------------------ */
body {
  --color_slideshow_light: #cad200;
  --color_slideshow_black: #3f4118;
  --color_slideshow_counter: #dbf0db;
}

/* ------------------------------------------------------------ */
/* Reset / Init CSS                                             */
/* ------------------------------------------------------------ */

/* use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* remove default margin */
* {
  margin: 0;
}

/* typographic tweaks - Add accessible line-height, Improve text rendering */
body {
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  font-family: sans-serif;
}

/* remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}

/* ------------------------------------------------------------ */
/* Default Settings                                             */
/* ------------------------------------------------------------ */
ul.nav {
  list-style: none;
  padding-left: 0;
}

ul.nav li a {
  display: block;
}

.img_wrap {
  position: relative;
}

.img_wrap img {
  max-width: 100%;
  height: auto;
}

figure .copyright {
  position: absolute;
  right: 0.5em;
  bottom: 0.5em;
  color: white;
  text-shadow: 0.1em 0.1em 0.5em #000, -0.1em -0.1em 0.5em #000;
}

figure .copyright a,
figure .copyright a:visited,
figure .copyright a:hover,
figure .copyright a:scope {
  color: white;
}

/* ------------------------------------------------------------ */
/* Popup                                                        */
/* ------------------------------------------------------------ */

#popup_slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

#popup_slideshow img {
  border: var(--content_padding_horiz) solid white;
  box-shadow: 10px 10px 10px black;
  max-height: 85vh;
  max-width: 90vw;
  cursor: pointer;
}

#popup_slideshow figure {
  transform-style: preserve-3d;
  animation-duration: 4s;
  transition: transform 3s ease;
  /* transition: all 0.8s ease; */
  /* backface-visibility: hidden; */
}

#popup_slideshow figcaption {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
}

#slideshow_button_next,
#slideshow_button_previous,
#slideshow_button_close {
  display: none;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  overflow: hidden;
  z-index: 200;
  position: absolute;
  font-size: 4em;
  cursor: pointer;
  border-radius: 50%;
  color: var(--color_slideshow_black);
  background-color: var(--color_slideshow_light);
  opacity: 0.5;
  user-select: none;
}

#popup_slideshow.has_previous #slideshow_button_previous,
#popup_slideshow.has_next #slideshow_button_next,
#slideshow_button_close {
  display: grid;
  align-self: center;
}

#slideshow_button_next::before,
#slideshow_button_previous::before,
#slideshow_button_close::before {
  width: 1em;
  line-height: 1em;
  height: 1em;
  display: grid;
  align-self: center;
}

#slideshow_button_next {
  top: 50%;
  right: 0.5em;
  transform: translateY(-50%);
}

#slideshow_button_next::before,
#slideshow_button_previous::before {
  content: url("../images/general/arrow.svg");
}

#slideshow_button_previous {
  top: 50%;
  left: 0.5em;
  transform: translateY(-50%);
}

#slideshow_button_previous::before {
  transform: rotate(180deg);
}

#slideshow_button_close {
  top: 0.5em;
  right: 0.5em;
}

#slideshow_button_close::before {
  content: url("../images/general/close.svg");
}

#slideshow_button_next:hover,
#slideshow_button_previous:hover,
#slideshow_button_close:hover,
#slideshow_button_next:active,
#slideshow_button_previous:active,
#slideshow_button_close:active {
  opacity: 1 !important;
}

#slideshow_counter {
  position: absolute;
  bottom: 0px;
  left: 0px;
  text-align: center;
  padding: 0.2em;
  width: 100%;
  color: var(--color_slideshow_counter);
}
