.not-selectable {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.carousel {
  position: relative;
  box-sizing: border-box;
}

.carousel *,
.carousel *:before,
.carousel *:after {
  box-sizing: inherit;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.carousel__track {
  display: flex;
}

.carousel__slide {
  flex: 0 0 60%;
  max-width: 100%;

  position: relative;
  padding: 1rem;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  /* https://github.com/andreszs/jquery.events.swipe#pointer-event-remarks */
  touch-action: pan-y;
}
.carousel--has-dots {
  margin-bottom: 30px;
}

.carousel__dots {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  list-style: none;
}

.carousel__dot {
  cursor: pointer;
  display: block;
  height: 30px;
  position: relative;
  width: 30px;
}

.carousel__dot:after {
  background-color: currentColor;
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 50%;
  opacity: 0.25;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  transition: opacity 0.2s ease-in-out;
}

.carousel__dot--active:after {
  opacity: 1;
}
body.compensate-for-scrollbar {
  overflow: hidden;
  touch-action: none;
}

.fancybox__container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  z-index: 1050;
  outline: none;
  transform-origin: top left;
}

.fancybox__container *,
.fancybox__container *:before,
.fancybox__container *:after {
  box-sizing: inherit;
}

.fancybox__container :focus {
  outline: thin dotted;
}

body.is-using-mouse .fancybox__container :focus {
  outline: none;
}

.fancybox__backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(30, 30, 30, 0.97);
}

.fancybox__carousel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;

  /* For Safari */
  height: 100%;

  z-index: 1051;
}

.fancybox__carousel .carousel__track {
  height: 100%;
}

.fancybox__carousel .carousel__viewport {
  overflow: visible;
  cursor: default;
}

.fancybox__carousel .carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 42px;

  display: flex;
  flex-direction: column;

  outline: 0;
}

.fancybox__carousel .carousel__slide {
  scrollbar-width: thin;
  scrollbar-color: #ccc rgba(255, 255, 255, 0.1);
}

.fancybox__carousel .carousel__slide::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.fancybox__carousel .carousel__slide::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.1);
}

.fancybox__carousel .carousel__slide::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.fancybox__carousel .carousel__slide::before {
  content: "";
  flex: 0 0 0;
  margin-bottom: auto;
}

.fancybox__carousel .carousel__slide::after {
  content: "";
  flex: 0 0 0;
  margin-top: auto;
}

.fancybox__content {
  position: relative;
  /* margin: 0 auto; */
  align-self: center;
  padding: 38px;

  width: intrinsic; /* Safari/WebKit uses a non-standard name */
  width: -moz-max-content; /* Firefox/Gecko */
  width: -webkit-max-content; /* Chrome */
  width: max-content;

  max-width: 100%;
  flex-shrink: 0;

  display: flex !important;
  flex-direction: column;

  background: #fff;
  z-index: 2;
}

.fancybox__carousel .carousel__slide.has-image {
  padding-bottom: 16px;
  overflow: visible;
  touch-action: none;
}

.fancybox__carousel .carousel__slide.has-image .fancybox__content {
  padding: 0;
  background: transparent;

  flex-shrink: 1;
  min-height: 1px;
  overflow: visible;

  height: intrinsic; /* Safari/WebKit uses a non-standard name */
  height: -moz-max-content; /* Firefox/Gecko */
  height: -webkit-max-content; /* Chrome */
  height: max-content;

  color: #fff;
}

.fancybox__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;

  align-self: center;
  flex-shrink: 0;

  vertical-align: top;
}

.carousel__slide.has-pdf .fancybox__content,
.carousel__slide.has-iframe .fancybox__content {
  width: 80%;
  height: 80%;
  overflow: visible;
}

.carousel__slide.has-pdf .fancybox__content {
  padding: 0;
  background: transparent;
  color: #fff;
}

.fancybox__iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.fancybox__caption {
  align-self: center;
  color: #fff;
  margin-top: 16px;
  max-width: 100%;
  line-height: 1.3;
  visibility: visible;
}

.is-loading .fancybox__caption {
  visibility: hidden;
}

.fancybox__loading {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);

  cursor: pointer;
  z-index: 1;
  mix-blend-mode: difference;
}

.fancybox__loading div {
  width: 100%;
  height: 100%;
  border-width: 4px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.2)
    rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
  border-radius: 50%;
  animation: 1.1s ease 0s infinite normal none running fancybox-rotate;
}

@keyframes fancybox-rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.fancybox__container .carousel__dots {
  color: #eee;
}

.fancybox__container .carousel__button {
  background: transparent;
  box-shadow: none;
  color: #eee;
  transition: all 0.2s;
  transform: translateZ(1px);
}

.fancybox__carousel .carousel__button::before {
  content: "";
  display: block;
  position: absolute;
  top: -80px;
  left: -10px;
  cursor: pointer;
  right: -10px;
  bottom: -80px;
  cursor: inherit;
}

.fancybox__carousel .carousel__button--next svg,
.fancybox__carousel .carousel__button--prev svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0px 1px 1px rgba(30, 30, 30, 0.4));
}

.fancybox__carousel .carousel__button--next {
  right: 0;
}

.fancybox__carousel .carousel__button--prev {
  left: 0;
}

.fancybox__close {
  box-sizing: content-box;
  margin: 0;
  padding: 0;
  border: 0;

  position: absolute;

  transform: translateZ(1px);

  background: transparent;
  color: #eee;
  cursor: pointer;
  z-index: 1052;
}

.fancybox__content > .fancybox__close {
  top: -28px;
  right: 0;
}

.fancybox__container > .fancybox__close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
}

.fancybox__container > .fancybox__close svg,
.fancybox__carousel .carousel__slide.has-image .fancybox__close svg {
  /* .fancybox__close svg { */
  filter: drop-shadow(0px 1px 1px rgba(30, 30, 30, 0.4));
}

@media (max-height: 414px) {
  .fancybox__content > .fancybox__close {
    top: 0px;
    right: 0px;
    padding: 9px;
    color: currentColor;
    filter: none;
  }

  .carousel__slide.has-pdf .fancybox__close,
  .carousel__slide.has-iframe .fancybox__close {
    right: -42px;
    color: #fff;
  }

  .carousel__slide.has-pdf .fancybox__content,
  .carousel__slide.has-iframe .fancybox__content {
    width: 100%;
    height: 100%;
  }
}

/*
  Cursor style
  =======
*/

.fancybox__carousel .carousel__slide.is-draggable {
  cursor: move;
  cursor: grab;
}

.fancybox__carousel .carousel__slide.is-dragging {
  cursor: grabbing;
}

.fancybox__carousel .carousel__slide.can-zoom_in .fancybox__content {
  cursor: zoom-in;
}

/*
  Animations
  =======
*/
.fancybox__container[aria-hidden="false"] .fancybox__backdrop,
.fancybox__container[aria-hidden="false"] .fancybox__caption,
.fancybox__container[aria-hidden="false"] .carousel__button:not([disabled]) {
  transition: opacity 0.3s;
  opacity: 1;
}

.fancybox__container[aria-hidden="true"] .fancybox__backdrop,
.fancybox__container[aria-hidden="true"] .fancybox__caption,
.fancybox__container[aria-hidden="true"] .carousel__button {
  transition: opacity 0.2s;
  opacity: 0;
}

.fadeIn {
  animation: fadeIn ease-out 0.3s both;
}

@keyframes fadeIn {
  from {
    opacity: 0.1;
  }

  to {
    opacity: 1;
  }
}

.fadeOut {
  animation: fadeOut ease-out 0.2s both;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

.slideInUp {
  animation: slideInUp 0.2s both;
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 50%, 0);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.slideInDown {
  animation: slideInDown 0.2s both;
}

@keyframes slideInDown {
  from {
    transform: translate3d(0, -50%, 0);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.slideOutUp {
  animation: slideOutUp 0.25s both;
}

@keyframes slideOutUp {
  to {
    transform: translate3d(0, -50%, 0);
    opacity: 0;
  }
}

.slideOutDown {
  animation: slideOutDown 0.25s both;
}

@keyframes slideOutDown {
  to {
    transform: translate3d(0, 50%, 0);
    opacity: 0;
  }
}
.carousel__button {
  box-sizing: content-box;
  padding: 10px 6px;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  color: #777;
  background: #fff;

  cursor: pointer;

  border: 0;
  border-radius: 2px;

  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
}

.carousel__button--prev {
  left: 10px;
}

.carousel__button--next {
  right: 10px;
}

.carousel__button[disabled] {
  cursor: default;
  opacity: 0.3;
}

.carousel__button svg {
  vertical-align: top;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panzoom {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  /* Disable default manipulations by a touchscreen user. For example, zooming features built into the browser */
  touch-action: none;
}

.panzoom__content {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  margin: auto;

  filter: none;
  -webkit-filter: blur(0px);

  /* for Edge */
  align-self: center;

  /* for IE11 */
  flex-shrink: 0;
}

.is-draggable {
  cursor: move;
  cursor: grab;
}

.is-dragging {
  cursor: grabbing;
}
.fancybox__thumbs {
  flex: 0 0 auto;
  min-height: 42px;

  padding: 0 8px 16px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.fancybox__thumbs .carousel__slide {
  flex: 0 0 86px;

  margin: 0;
  padding: 2px;

  box-sizing: content-box;

  cursor: pointer;
  overflow: visible;
}

.fancybox__thumbs .carousel__slide div {
  /* Keep aspect ratio */
  padding-bottom: calc(5 / 7 * 100%);

  background-size: cover;
  background-position: center center;
  background-color: rgba(128, 128, 128, 0.25);

  transition: all 0.1s;
}

.fancybox__thumbs .carousel__slide.is-nav-selected div {
  box-shadow: inset 0 0 0 3px #fff;
}

.fancybox__container[aria-hidden="false"] .fancybox__thumbs {
  animation: fadeIn 0.3s both;
}

.fancybox__container[aria-hidden="true"] .fancybox__thumbs {
  animation: fadeOut 0.25s both;
}
