/* Link */
a{text-decoration:none;}
.tobi-zoom {
  border: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  display:inline-block;
  position: relative;
  text-decoration: none;
  width:45%;
  min-width:280px;
  margin:0 auto;
}

.tobi-zoom img {
  display:inline-block;
  
  margin:0 auto;
}

.tobi-zoom__icon {
  display:none;
}

.tobi-zoom__icon svg {
  height: 1.111em;
  padding-bottom: .222em;
  padding-left: .222em;
  padding-right: .222em;
  padding-top: .222em;
  pointer-events: none;
  width: 1.111em;
}

/* Hide scrollbar if lightbox is displayed */
.tobi-is-open {
  overflow-y: hidden;
}

/* Lightbox */
.tobi {
  bottom: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  contain: strict;
  font-size: 18px;
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1337;
}

.tobi[aria-hidden="true"] {
  display: none;
}

.tobi *,
.tobi *::before,
.tobi *::after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

/* Overlay */
.tobi__overlay {
  background-color: rgba(87,119,51,.8);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

/* Slider */
.tobi__slider {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  transition: -webkit-transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), -webkit-transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

/* Slide */
.tobi__slider__slide {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 100%;
}

.tobi__slider__slide .tobi__slider__slide__content {
  max-height: 95vh;
  max-width: 95vw;
}

.tobi__slider__slide figure {
  margin: 0;
  max-width: 100%;
  position: relative;
}

.tobi__slider__slide img {
  display: block;
  height: auto;
  max-height: 95vh;
  max-width: 95vw;
  width: auto;
  box-shadow:#000 0 10px 30px;
}

.tobi__slider__slide iframe {
  height: 95vh;
  width: 95vw;
}

.tobi__slider__slide video {
  max-height: 95vh;
  max-width: 95vw;
}

.tobi__slider__slide figcaption {
  background-color: rgba(0, 0, 0, 0.8);
  bottom: 0;
  color: #fff;
  display: block;
  left: 0;
  padding-bottom: .222em;
  padding-left: .5em;
  padding-right: .5em;
  padding-top: .222em;
  position: absolute;
  white-space: pre-wrap;
  width: 100%;
}

/* Buttons */
.tobi button {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  border: .056em solid transparent;
  color: #fff;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font: inherit;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  line-height: 1;
  margin: 0;
  opacity: .5;
  padding-top: .222em;
  padding-left: .222em;
  padding-right: .222em;
  padding-bottom: .222em;
  position: absolute;
  -webkit-transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity;
}

.tobi button svg {
  pointer-events: none;
}

.tobi button:active, .tobi button:focus, .tobi button:hover {
  opacity: 1;
  -webkit-transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity;
}

.tobi button.tobi__prev, .tobi button.tobi__next {
  top: 50%;
  top: calc(50% - (4em / 2));
}

.tobi button.tobi__prev svg, .tobi button.tobi__next svg {
  height: 4em;
  width: 4em;
}

.tobi button.tobi__prev {
  left: 0;
}

.tobi button.tobi__next {
  right: 0;
}

.tobi button.tobi__close {
  right: 1em;
  top: 1em;
}

.tobi button.tobi__close svg {
  height: 2em;
  width: 2em;
}

.tobi button:disabled, .tobi button[aria-hidden="true"] {
  display: none;
}

/* Counter */
.tobi__counter {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: transparent;
  color: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1.111em;
  height: 2em;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  left: 1em;
  position: absolute;
  top: 1em;
}

.tobi__counter[aria-hidden="true"] {
  display: none;
}

/* Loader */
.tobi-loader {
  display: inline-block;
  height: 5em;
  left: 50%;
  margin-left: -2.5em;
  margin-top: -2.5em;
  position: absolute;
  top: 50%;
  width: 5em;
}

.tobi-loader::before {
  -webkit-animation: spin 1s infinite;
          animation: spin 1s infinite;
  border-radius: 100%;
  border: .5em solid #f2f2f2;
  border-top-color: #0437fd;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  will-change: transform;
  z-index: 1;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}


