.isl-pg-video-slide {
  position: relative;
  overflow: hidden;
  background: #f3f3f1;
}

.woocommerce-product-gallery .flex-control-thumbs {
  display: none !important;
}

.isl-pg-video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.isl-pg-controls {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  direction: rtl;
}

.isl-pg-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(29, 29, 27, 0.4);
  box-shadow: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.isl-pg-button:not(:disabled):hover,
.isl-pg-button:focus-visible {
  background: rgba(29, 29, 27, 0.6);
}

.isl-pg-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.isl-pg-button .isl-pg-play,
.isl-pg-button .isl-pg-pause {
  fill: currentColor;
  stroke: none;
}

.isl-pg-button .isl-pg-muted,
.isl-pg-button .isl-pg-loud {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.isl-pg-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.isl-pg-playpause .isl-pg-pause,
.isl-pg-sound .isl-pg-loud {
  display: none;
}

.isl-pg-playpause.is-playing .isl-pg-play,
.isl-pg-sound:not(.is-muted) .isl-pg-muted {
  display: none;
}

.isl-pg-playpause.is-playing .isl-pg-pause,
.isl-pg-sound:not(.is-muted) .isl-pg-loud {
  display: inline;
}

.isl-pg-sound[hidden] {
  display: none !important;
}

.woocommerce-product-gallery {
  position: relative;
}

.isl-pg-gallery-nav {
  position: absolute;
  z-index: 8;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  direction: ltr;
}

.isl-pg-arrow {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(29, 29, 27, 0.4);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.isl-pg-arrow:not(:disabled):hover,
.isl-pg-arrow:focus-visible {
  background: rgba(29, 29, 27, 0.6);
}

.isl-pg-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.isl-pg-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.isl-pg-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.isl-pg-pagination {
  position: absolute;
  z-index: 8;
  bottom: 29px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.isl-pg-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  box-shadow: 0 0 10px #0f182612;
}

.isl-pg-dot.is-active {
  width: 14px;
  height: 14px;
  background: #fff;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  width: 40px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 50% !important;
  opacity: 0;
  background-color: rgba(29, 29, 27, 0.4) !important;
  background-image: none !important;
  backdrop-filter: blur(5px);
  transition: opacity 160ms ease, background-color 160ms ease;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger svg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  color: #fff;
  fill: none;
  stroke: currentColor;
}

.woocommerce-product-gallery:hover .woocommerce-product-gallery__trigger,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger:focus-visible {
  opacity: 1;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger:focus-visible {
  background-color: rgba(29, 29, 27, 0.6) !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger::before,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger::after {
  display: none !important;
}

/* ISL Product Gallery lightbox. PhotoSwipe remains the navigation engine. */
.pswp.isl-pg-lightbox .pswp__bg {
  background: #000;
}

.pswp.isl-pg-lightbox .pswp__caption {
  display: none !important;
}

.pswp.isl-pg-lightbox .pswp__top-bar,
.pswp.isl-pg-lightbox .pswp__caption {
  background: transparent;
}

.pswp.isl-pg-lightbox .pswp__top-bar {
  z-index: 1700;
  display: block;
  height: auto;
  direction: ltr;
}

.pswp.isl-pg-lightbox .pswp__button--close,
.pswp.isl-pg-lightbox .pswp__button--zoom {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background-color: rgba(29, 29, 27, 0.4) !important;
  background-image: none !important;
  opacity: 1;
  backdrop-filter: blur(5px);
}

.pswp.isl-pg-lightbox .pswp__button--close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  left: auto;
}

.pswp.isl-pg-lightbox:not(.pswp--zoom-allowed) .pswp__button--zoom {
  display: none;
}

.pswp.isl-pg-lightbox .pswp__button--zoom {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 56px;
  left: auto;
}

.pswp.isl-pg-lightbox .pswp__counter {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: auto;
  left: 12px;
  height: 40px;
  margin: 0;
  font-family: "Almoni Neue", sans-serif;
  line-height: 40px;
}

.pswp.isl-pg-lightbox .pswp__preloader {
  position: absolute;
  top: 8px;
  right: auto;
  left: 50%;
  margin: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.pswp.isl-pg-lightbox .pswp__button--close:hover,
.pswp.isl-pg-lightbox .pswp__button--close:focus-visible,
.pswp.isl-pg-lightbox .pswp__button--zoom:hover,
.pswp.isl-pg-lightbox .pswp__button--zoom:focus-visible {
  background-color: rgba(29, 29, 27, 0.6) !important;
}

.pswp.isl-pg-lightbox .pswp__button--close:focus-visible,
.pswp.isl-pg-lightbox .pswp__button--zoom:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pswp.isl-pg-lightbox .pswp__button--close svg,
.pswp.isl-pg-lightbox .pswp__button--zoom svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.pswp.isl-pg-lightbox .pswp__button--arrow--left,
.pswp.isl-pg-lightbox .pswp__button--arrow--right {
  display: none !important;
}

.pswp.isl-pg-lightbox .pswp__img,
.pswp.isl-pg-lightbox .isl-pg-lightbox-video {
  border-radius: 0;
}

.isl-pg-lightbox-video-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.isl-pg-lightbox-video-frame {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  max-width: none;
}

.isl-pg-lightbox-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: #000;
}

.isl-pg-controls.isl-pg-lightbox-controls {
  z-index: 1650;
  right: auto;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
}

.isl-pg-lightbox-navigation {
  position: absolute;
  z-index: 1550;
  inset: 50% 0 auto;
  pointer-events: none;
}

.isl-pg-lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(29, 29, 27, 0.4);
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(5px);
  transform: translateY(-50%);
}

.isl-pg-lightbox-next {
  left: 18px;
}

.isl-pg-lightbox-prev {
  right: 18px;
}

.isl-pg-lightbox-arrow:not(:disabled):hover,
.isl-pg-lightbox-arrow:focus-visible {
  background: rgba(29, 29, 27, 0.6);
}

.isl-pg-lightbox-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.isl-pg-lightbox-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.isl-pg-lightbox-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.isl-pg-lightbox-thumbnails {
  position: absolute;
  z-index: 1600;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 16px 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  direction: rtl;
  pointer-events: none;
}

.isl-pg-lightbox-thumbnails::-webkit-scrollbar {
  display: none;
}

.isl-pg-lightbox-thumbnail {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  background: rgba(29, 29, 27, 0.4);
  box-shadow: none;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: 0.64;
  pointer-events: auto;
  transition: opacity 160ms ease, outline-color 160ms ease;
}

.isl-pg-lightbox-thumbnail:hover,
.isl-pg-lightbox-thumbnail:focus-visible,
.isl-pg-lightbox-thumbnail.is-active {
  opacity: 1;
}

.isl-pg-lightbox-thumbnail:focus-visible,
.isl-pg-lightbox-thumbnail.is-active {
  outline-color: #fff;
}

.isl-pg-lightbox-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isl-pg-lightbox-thumbnail-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: rgba(29, 29, 27, 0.4);
  backdrop-filter: blur(5px);
  transform: translate(-50%, -50%);
}

.isl-pg-lightbox-thumbnail-play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

@media (prefers-reduced-motion: reduce) {
  .isl-pg-lightbox-thumbnail {
    transition: none;
  }
}

@media (min-width: 1025px) {
  .woocommerce-product-gallery .flex-viewport {
    border-radius: 40px;
    overflow: hidden;
  }

  .woocommerce-product-gallery .flex-viewport,
  .woocommerce-product-gallery__wrapper,
  .woocommerce-product-gallery__image {
    height: 720px !important;
  }

  .woocommerce-product-gallery__image img,
  .isl-pg-video {
    width: 100%;
    height: 720px !important;
    object-fit: cover;
  }
}

/* Tablet gallery height - change 720px here when refining tablet. */
@media (min-width: 768px) and (max-width: 1024px) {
  .pswp.isl-pg-lightbox .pswp__img,
  .pswp.isl-pg-lightbox .isl-pg-lightbox-video {
    border-radius: 0;
  }

  .woocommerce-product-gallery .flex-viewport {
    border-radius: 24px;
    overflow: hidden;
  }

  .woocommerce-product-gallery .flex-viewport,
  .woocommerce-product-gallery__wrapper,
  .woocommerce-product-gallery__image,
  .woocommerce-product-gallery__image img,
  .isl-pg-video {
    height: 720px !important;
  }

  .woocommerce-product-gallery__image img,
  .isl-pg-video {
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .pswp.isl-pg-lightbox .pswp__img,
  .pswp.isl-pg-lightbox .isl-pg-lightbox-video {
    border-radius: 0;
  }

  .isl-pg-lightbox-video-frame {
    width: 100vw;
    height: 100vh;
  }

  .isl-pg-lightbox-thumbnail {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .isl-pg-lightbox-thumbnails {
    gap: 8px;
    padding: 10px 10px 12px;
  }

  .isl-pg-controls.isl-pg-lightbox-controls {
    right: auto;
    bottom: 115px;
    left: 50%;
  }

  .isl-pg-lightbox-arrow {
    width: 38px;
    height: 38px;
  }

  .isl-pg-lightbox-next {
    left: 10px;
  }

  .isl-pg-lightbox-prev {
    right: 10px;
  }

  /* Mobile gallery height - change 720px here when refining mobile. */
  .woocommerce-product-gallery .flex-viewport {
    border-radius: 16px;
    overflow: hidden;
  }

  .woocommerce-product-gallery .flex-viewport,
  .woocommerce-product-gallery__wrapper,
  .woocommerce-product-gallery__image,
  .woocommerce-product-gallery__image img,
  .isl-pg-video {
    height: 720px !important;
  }

  .woocommerce-product-gallery__image img,
  .isl-pg-video {
    width: 100%;
    object-fit: cover;
  }

  .isl-pg-controls {
    bottom: 12px;
    right: 12px;
  }

  .isl-pg-gallery-nav {
    left: 12px;
    bottom: 12px;
  }

  .isl-pg-pagination {
    bottom: 24px;
  }

  .isl-pg-button {
    width: 36px;
    height: 36px;
  }
}
