:root {
  --base-font-size: 18;
  --transition-duration: 0.3s;
  --transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  --zoom-icon-background: #3e3e3e;
  --zoom-icon-color: #fff;
  --lightbox-background: hsla(0, 0%, 10%, 0.90);
  --caption-background: rgba(255, 255, 255, 0.94);
  --caption-color: hsl(210, 38%, 16%);
  --counter-background: transparent;
  --counter-color: #fff;
  --button-background: transparent;
  --button-color: #fff;
  --loader-color: #fff;
  --slide-max-height: 85vh;
  --slide-max-width: 85vw; }

/**
 * Lightbox link
 *
 */
.tobii-zoom {
  border: 0;
  box-shadow: none;
  display: inline-block;
  position: relative;
  text-decoration: none; }
  .tobii-zoom img {
    display: block; }
  .tobii-zoom__icon {
    align-items: center;
    background-color: #3e3e3e;
    background-color: var(--zoom-icon-background);
    top: 1em;
    color: #fff;
    color: var(--zoom-icon-color);
    display: flex;
    height: 1.77778em;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 0.44444em;
    width: 1.77778em; }
    .tobii-zoom__icon svg {
      fill: none;
      height: 1.33333em;
      pointer-events: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.5;
      stroke: currentColor;
      width: 1.33333em; }

.tobii-is-open {
  overflow-y: hidden; }

/**
 * Lightbox
 *
 */
.tobii {
  background-color: hsla(0, 0%, 10%, 0.90);
  background-color: var(--lightbox-background);
  bottom: 0;
  box-sizing: border-box;
  contain: strict;
  font-size: 18 px;
  font-size: var(--base-font-size) px;
  left: 0;
  line-height: 1.5;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 6em;
  z-index: 1337; }
  .tobii[aria-hidden='true'] {
    display: none; }
  .tobii *,
  .tobii *::before,
  .tobii *::after {
    box-sizing: inherit; }


/**
 * Slider
 *
 */
.tobii__slider {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  will-change: transform; }
  .tobii__slider[aria-hidden='true'] {
    display: none; }
  @media screen and (prefers-reduced-motion: no-preference) {
    .tobii__slider--animate:not(.tobii__slider--is-dragging) {
      transition-duration: 0.3s;
      transition-duration: var(--transition-duration);
      transition-property: transform;
      transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
      transition-timing-function: var(--transition-timing-function); } }
  .tobii__slider--is-draggable [data-type] {
    cursor: grab; }
  .tobii__slider--is-dragging [data-type] {
    cursor: grabbing; }

/**
 * Slide
 *
 */
.tobii__slide {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%; }
  .tobii__slide:not(.tobii__slide--is-active) {
    visibility: hidden; }
    @media screen and (prefers-reduced-motion: no-preference) {
      .tobii__slide:not(.tobii__slide--is-active) {
        transition-duration: 0.3s;
        transition-duration: var(--transition-duration);
        transition-property: visibility;
        transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
        transition-timing-function: var(--transition-timing-function); } }
  .tobii__slide [data-type] {
    max-height: 85vh;
    max-height: var(--slide-max-height);
    max-width: 85vw;
    max-width: var(--slide-max-width);
    overflow: hidden;
    overflow-y: auto;
    -ms-scroll-chaining: none;
        overscroll-behavior: contain; }
  .tobii__slide iframe,
  .tobii__slide video {
    display: block; }
  .tobii__slide figure {
    margin: 0;
    position: relative; }
    .tobii__slide figure > img {
      display: block;
      height: auto;
      max-height: 85vh;
      max-height: var(--slide-max-height);
      max-width: 85vw;
      max-width: var(--slide-max-width);
      width: auto; }
    .tobii__slide figure > figcaption {
      display: none;
      background-color: rgba(255, 255, 255, 0.94);
      background-color: var(--caption-background);
      bottom: 0;
      color: hsl(210, 38%, 16%);
      color: var(--caption-color);
      padding: 0.22222em 0.44444em;
      position: absolute;
      white-space: pre-wrap;
      width: 100%; }
  .tobii__slide [data-type='html'] video {
    cursor: auto;
    max-height: 85vh;
    max-height: var(--slide-max-height);
    max-width: 85vw;
    max-width: var(--slide-max-width); }
  .tobii__slide [data-type='iframe'] {
    /* Fix iframe scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0); }
    .tobii__slide [data-type='iframe'] iframe {
      height: 85vh;
      height: var(--slide-max-height);
      width: 85vw;
      width: var(--slide-max-width); }

/**
 * Buttons
 *
 */
.tobii__btn {
  outline: none;
  width: 4em;
  height: 4em;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: transparent;
  background-color: var(--button-background);
  border: 0.05556em solid transparent;
  color: #fff;
  color: var(--button-color);
  cursor: pointer;
  font: inherit;
  margin: 0;
  opacity: 1;
  padding: 0;
  position: absolute;
  touch-action: manipulation;
  will-change: opacity;
  z-index: 1; }
  @media screen and (prefers-reduced-motion: no-preference) {
    .tobii__btn {
      transition-duration: 0.3s;
      transition-duration: var(--transition-duration);
      transition-property: opacity, transform;
      transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
      transition-timing-function: var(--transition-timing-function);
      will-change: opacity, transform; } }
  .tobii__btn svg {
    fill: none;
    height: 3.33333em;
    pointer-events: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1;
    stroke: currentColor;
    width: 3.33333em; }
  .tobii__btn:active, .tobii__btn:focus, .tobii__btn:hover {
    opacity: 1; }
  .tobii__btn--previous, .tobii__btn--next {
    top: 50%;
    transform: translateY(-50%); }
  .tobii__btn--previous {
    left: 0.88889em; }
  .tobii__btn--next {
    right: 0.88889em; }
  .tobii__btn--close {
    right: 0.88889em;
    top: 0.88889em; }
  .tobii__btn:disabled, .tobii__btn[aria-hidden='true'] {
    display: none; }

    .tobii__btn:hover {
      background-color: #848484;
    }
    
    .tobii__btn:active {
      background-color: #646464;
    }

/**
 * Counter
 *
 */
.tobii__counter {
  background-color: transparent;
  background-color: var(--counter-background);
  color: #fff;
  color: var(--counter-color);
  font-size: 1.11111em;
  left: 1em;
  line-height: 1;
  position: absolute;
  top: 1.4em;
  z-index: 1; }
  .tobii__counter[aria-hidden='true'] {
    display: none; }

/**
 * Loader
 *
 */
.tobii__loader {
  display: inline-block;
  height: 5.55556em;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5.55556em; }
  .tobii__loader::before {
    animation: spin 1s infinite;
    border-radius: 100%;
    border: 0.22222em solid #949ba3;
    border-top-color: #fff;
    border-top-color: var(--loader-color);
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1; }

@keyframes spin {
  to {
    transform: rotate(360deg); } }


@media screen and (max-width: 980px) {
  .tobii {
    top: 0;
  }
  
  .tobii__counter {
    top: 4em;
  }

  .tobii__btn--close {
    top: 4em;
  }
}
