:root {
  --bp-clip-y: 0px;
  --bp-clip-x: 0px;
  --bp-stage-gap: 10px;
  --bp-thumb-gap: 5px;
  --bp-thumb-height: 70px;
  --bp-thumb-ratio: 1.25;
}

.bp-controls, .bp-iframe iframe,
.bp-iframe video,
.bp-iframe div,
.bp-video iframe,
.bp-video video,
.bp-video div, .bp-img img,
.bp-img div, .bp-img-wrap, .bp-overlay, .bp-wrap {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.bp-wrap {
  display: flex;
  position: fixed;
  flex-direction: column;
  z-index: 999;
  /* If you're mounting on a portion of the screen and need visible
  overflow on .bp-wrap, change contain to "layout" on that instance */
  contain: strict;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.bp-wrap:has(.bp-thumbs) {
  contain: layout size;
}
.bp-wrap.bp-inline {
  position: absolute;
  --bp-stage-gap: 0px;
}
.bp-wrap.bp-zoomed {
  --bp-stage-gap: 0px;
}
.bp-wrap.bp-zoomed .bp-img:not(.bp-drag) {
  cursor: grab;
}
.bp-wrap.bp-zoomed .bp-caption {
  animation: none !important;
  opacity: 0;
}
.bp-wrap.bp-noclose .bp-x {
  display: none;
}
.bp-wrap.bp-noclose:not(.bp-zoomed) {
  touch-action: pan-y;
}
.bp-wrap.bp-noclose:not(.bp-zoomed) .bp-img-wrap {
  cursor: zoom-in;
}

.bp-lock {
  overflow-y: hidden;
}
.bp-lock body {
  overflow: scroll;
}

.bp-overlay {
  background: rgba(0, 0, 0, 0.75);
}

.bp-stage {
  display: flex;
  position: relative;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  min-height: 0;
}

.bp-slide {
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inset: var(--bp-stage-gap);
}

.bp-inner {
  display: flex;
  position: relative;
  flex-grow: 1;
  width: 100%;
  min-height: 0;
}

.bp-ruler {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}

.bp-img {
  position: absolute;
  top: 50%;
  left: 50%;
  background: 50% 50%/contain no-repeat;
  user-select: none;
  clip-path: inset(var(--bp-clip-y) var(--bp-clip-x));
  will-change: clip-path;
}
.bp-img-wrap {
  contain: strict;
}
.bp-img-wrap .bp-canzoom {
  cursor: zoom-in;
}
.bp-img-wrap .bp-drag {
  cursor: grabbing;
}
.bp-img img,
.bp-img div {
  object-fit: contain;
}
.bp-img .bp-o {
  display: none;
}

.bp-iframe,
.bp-video {
  position: relative;
  margin: auto;
  background: #000 50% 50%/contain no-repeat;
  clip-path: inset(var(--bp-clip-y) var(--bp-clip-x));
  will-change: clip-path;
}
.bp-video audio {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: calc(100% - 28px);
  height: 50px;
}

.bp-html {
  display: contents;
}
.bp-html > :first-child {
  margin: auto;
}

.bp-controls {
  text-align: left;
  pointer-events: none;
}
.bp-controls button {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.1s;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.9;
  contain: content;
}
.bp-controls button:hover {
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.bp-count {
  position: absolute;
  width: 100px;
  height: 50px;
  margin: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.bp-prev,
.bp-next {
  top: 50%;
  right: 0;
  width: 58px;
  height: 64px;
  margin-top: -32px;
  border-radius: 3px 0 0 3px;
}
.bp-prev:hover:before,
.bp-next:hover:before {
  transform: translateX(-2px);
}
.bp-prev:before,
.bp-next:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z'/%3E%3C/svg%3E");
  position: absolute;
  top: 9px;
  left: 7px;
  width: 46px;
  transition: all 0.2s;
}

.bp-prev {
  right: auto;
  left: 0;
  transform: scalex(-1);
}

.bp-close {
  contain: layout size;
}

.bp-x {
  top: 0;
  right: 0;
  width: 58px;
  height: 55px;
  border-radius: 0 0 0 3px;
}
.bp-x:before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23fff'%3E%3Cpath d='M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z'/%3E%3C/svg%3E");
  position: absolute;
  top: 8px;
  right: 10px;
  width: 37px;
}

.bp-load {
  display: flex;
  overflow: hidden;
  background: 50% 50%/contain no-repeat;
  z-index: 1;
}

.bp-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: rgba(255, 255, 255, 0.9);
  animation: bp-bar 4s both;
  transform: translateX(-100%);
}

.bp-o {
  margin: auto;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.9);
  animation: bp-o 1s infinite linear;
}
.bp-o, .bp-o:after {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.bp-caption {
  position: absolute;
  bottom: calc(10px + var(--bp-stage-gap));
  left: 50%;
  max-width: 100%;
  max-height: 200px;
  padding: 10px 20px;
  border-radius: 5px;
  background: rgba(9, 9, 9, 0.8);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25rem;
  text-align: center;
  transition: opacity 0.25s;
  transform: translateX(-50%);
}
.bp-caption a {
  color: inherit;
}

.bp-thumbs {
  display: block;
  position: relative;
  overflow: hidden;
  flex-grow: 0;
  flex-shrink: 0;
  width: 100%;
  height: var(--bp-thumb-height);
  background: #12161a;
  z-index: 1;
}
.bp-thumbs-outer {
  display: table;
  height: 100%;
  margin: 0 auto;
}
.bp-thumbs-inner {
  display: flex;
  align-items: stretch;
  height: var(--bp-thumb-height);
  padding: var(--bp-thumb-gap) 0;
  touch-action: pan-y;
  gap: var(--bp-thumb-gap);
}
.bp-thumbs button {
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
  width: calc(var(--bp-thumb-ratio) * (var(--bp-thumb-height) - 10px));
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1) 50% 50%/cover no-repeat;
  transition: 0.15s;
  cursor: pointer;
  user-select: none;
  opacity: 0.5;
  filter: grayscale(25%);
}
.bp-thumbs button:hover, .bp-thumbs button:focus {
  outline-offset: -2px;
  opacity: 0.75;
  filter: grayscale(0%);
}
.bp-thumbs button.active {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 500px) {
  .bp-wrap.bp-zoomed .bp-controls {
    opacity: 0;
  }
  .bp-wrap.bp-zoomed .bp-controls button {
    pointer-events: none;
  }
  .bp-x {
    width: 47px;
    height: 47px;
  }
  .bp-x:before {
    top: 6px;
    right: 6px;
    width: 34px;
  }
  .bp-prev,
  .bp-next {
    width: 45px;
    height: 54px;
    margin-top: -27px;
  }
  .bp-prev:before,
  .bp-next:before {
    top: 7px;
    left: 2px;
    width: 43px;
  }
  .bp-o,
  .bp-o:after {
    width: 60px;
    height: 60px;
    border-width: 6px;
  }
  .bp-count {
    margin: 12px 10px;
  }
}
@media (prefers-reduced-motion) {
  .bp-wrap * {
    animation-duration: 0s !important;
  }
}
@keyframes bp-fadein {
  from {
    opacity: 0.01;
  }
  to {
    opacity: 1;
  }
}
@keyframes bp-bar {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes bp-o {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
