body {
  display: flow-root;
}

.grid {
  display: block;
  column-count: 2;
  width: 100%;
  margin-bottom: calc(var(--gutter-width) * 2);
}

.text-caption {
  width: calc(100% - calc(var(--gutter-grid) * 4));
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 45% 10% 45%;
}

.text-caption div:last-child p {
  text-align: right;
}

.mid-col p {
  text-align: center !important;
  padding-right: 30px;
}

.year {
  text-align: center;
  padding: 0;
}

#button-random {
  font-family: "EuropaBold", sans-serif;
}

.modal {
  display: none;
  position: fixed;
  left: 0;
  top: -1;
  width: 100%;
  height: calc(100% + 1px);
  overflow: hidden;
  background-color: white;
  z-index: 99;
}

/* Modal Content */
.modal-content {
  position: relative;
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: var(--gutter-width);
  padding: calc(var(--gutter-width) * 2);
  box-sizing: border-box;
}

#toggle {
  display: none;
}

#back-button {
  cursor: pointer;
}

.arrow {
  height: 1em;
  width: 1em;
  background-repeat: no-repeat;
}

#next .arrow {
  height: 2em;
  background-image: url("../../imgs/next.png");
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: center;
}
#prev .arrow {
  height: 2em;
  background-image: url("../../imgs/prev.png");
  background-size: 75%;
  background-repeat: no-repeat;
  background-position: center;
}

#lightbox {
  display: none;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
}

#lightbox button:first-of-type {
  display: none;
}

.swiper {
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-column: 1 / span 6;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 70px 0 0 0;
  z-index: 1;
}

.swiper-slide {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  column-gap: var(--gutter-width);
  display: grid;
  justify-content: center;
  text-align: center;
  background-color: transparent;
}

.swiper-slide picture {
  grid-column: 2 / span 4;
  grid-row: 1 / span 5;
  height: 100%;
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  width: 100%;
  height: 100%;
}

.swiper-slide picture img,
.swiper-slide picture video {
  display: block;
  position: absolute;
  left: 0;
  max-height: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  object-fit: contain;
  object-position: center center;
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  height: 97%;
  top: 0;
  right: 0;
  width: 25%;
  margin: 0;
}

#prev,
#next {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.swiper-button-prev {
  left: 0;
  justify-content: left;
}

.swiper-button-next {
  justify-content: right;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  content: " ";
}

#prev p,
#next p {
  font-size: 30px;
}

#next {
  right: 0;
  justify-content: right;
}

.caption-container {
  position: fixed;
  left: 0;
  top: 0;
  width: calc(100% - 40px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-column-gap: var(--gutter-width);
  padding: var(--gutter-width);
  z-index: 90;
  min-height: 60px;
}

.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  height: calc(100vh - 40px);
  padding: var(--gutter-width);
  opacity: 1;
}

.caption {
  grid-column: 1 / span 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: var(--gutter-width);
  text-align: left;
}

.caption > * {
  display: flex;
  align-items: flex-end;
}

.caption h2:last-child {
  justify-content: flex-end;
}

.caption > a {
  justify-content: center;
}

#preload_inner {
  color: black;
}

.fancybox-active {
  overflow: hidden;
}

.hamburger-lightbox {
  visibility: visible;
  position: fixed;
  right: calc(var(--gutter-width) * 2);
  top: calc(var(--gutter-width) * 2);
  z-index: 999;
}

@media screen and (max-width: 800px) {
  .swiper {
    padding: 30px 0 0 0;
  }

  .swiper-slide picture {
    grid-column: 1 / span 6;
  }

  .caption {
    display: flex;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 0;
    text-align: center;
    flex-direction: column;
    justify-content: center;
  }

  .caption > * {
    align-items: flex-end;
    justify-content: center;
    flex-direction: row;
  }

  .caption h2:last-child {
    justify-content: center;
  }

  .number {
    margin-bottom: 3rem;
  }

  .grid {
    display: block;
    float: left;
    column-count: 1;
    width: 100%;
    margin-bottom: calc(var(--gutter-width) * 2);
  }
}
