/** PawGallery 0.1.2 – all rules scoped to Skyrise product layout 4. **/
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .tv-product-page-image .images-container {
  position: relative;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .tv-product-page-image .tvvertical-slider {
  padding-left: 0;
  padding-right: 0;
  float: none;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .tv-product-page-image .tvvertical-slider .product-images {
  border-radius: 5px;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .tv-product-page-image .tvvertical-slider .arrows {
  display: none !important;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .tv-product-page-image .tvcmsVerticalSlider {
  margin-bottom: 0;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .tv-product-page-image .tvcmsVerticalSlider img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-controls {
  width: 100%;
  clear: both;
  padding: 8px 0 0;
  color: #333;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1px 10px;
  min-height: 40px;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: #777;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-open {
  border: 1px solid #dedede;
  background: #fff;
  color: #333;
  border-radius: 6px;
  min-width: 38px;
  min-height: 32px;
  font-size: 23px;
  cursor: pointer;
  line-height: 1;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-open:hover,
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-open:focus-visible {
  border-color: #99632f;
  outline-color: #99632f;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-rail {
  width: 100%;
  overflow: hidden;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d2d2d2 transparent;
  padding: 2px 2px 8px;
  box-sizing: border-box;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb {
  position: relative;
  display: block;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f8f8f8;
  padding: 2px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  min-width: 0;
  box-sizing: border-box;
  flex: 0 0 calc((100% - 4 * 9px) / 5);
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb.is-active {
  border-color: #99632f;
  background: #fff;
}
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb:hover,
#main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb:focus-visible {
  border-color: #a7a7a7;
  outline-offset: 1px;
}
@media (max-width: 1100px) {
  #main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb {
    flex-basis: calc((100% - 3 * 8px) / 4);
  }
}
@media (max-width: 600px) {
  #main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumb {
    flex-basis: calc((100% - 3 * 7px) / 4);
  }
}
@media (max-width: 1100px) {
  #main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumbs {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  #main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumbs {
    gap: 7px;
  }
}
html.pawgallery-no-scroll,
html.pawgallery-no-scroll body {
  overflow: hidden !important;
}
.pawgallery-dialog[hidden] { display: none !important; }
.pawgallery-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(17, 17, 17, .96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.pawgallery-dialog-shade { position: absolute; inset: 0; }
.pawgallery-dialog-frame {
  position: relative;
  width: calc(100vw - 120px);
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 60px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: auto;
  touch-action: pan-y;
}
.pawgallery-dialog-frame img {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  user-select: none;
  cursor: zoom-in;
  transition: transform .18s ease;
  transform-origin: center;
}
.pawgallery-dialog.is-zoomed .pawgallery-dialog-frame img {
  transform: scale(2);
  cursor: zoom-out;
}
.pawgallery-dialog button {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(35,35,35,.72);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  line-height: 1;
}
.pawgallery-dialog button:hover,
.pawgallery-dialog button:focus-visible {
  background: #fff;
  color: #171717;
  outline: 2px solid #fff;
}
.pawgallery-dialog-close {
  top: 16px;
  right: 20px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 32px;
}
.pawgallery-dialog-prev,
.pawgallery-dialog-next {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 58px;
  border-radius: 8px;
  font-size: 38px;
}
.pawgallery-dialog-prev { left: 16px; }
.pawgallery-dialog-next { right: 16px; }
/* Fullscreen filmstrip: independent horizontal scrolling, no theme styles. */
.pawgallery-dialog-footer {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100vw - 32px));
  padding: 0 0 16px;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.pawgallery-dialog-count {
  font-size: 13px;
  color: #f5f5f5;
  background: rgba(0, 0, 0, .4);
  border-radius: 30px;
  padding: 5px 12px;
  font-variant-numeric: tabular-nums;
}
.pawgallery-dialog-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  padding: 3px 3px 8px;
  scrollbar-width: thin;
  scrollbar-color: #777 transparent;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.pawgallery-dialog-thumbs[hidden] { display: none !important; }
.pawgallery-dialog .pawgallery-dialog-thumb {
  position: relative;
  z-index: 1;
  flex: 0 0 74px;
  width: 74px;
  height: 70px;
  padding: 3px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
  scroll-snap-align: start;
}
.pawgallery-dialog .pawgallery-dialog-thumb.is-active {
  border-color: #e5b27c;
  background: rgba(255, 255, 255, .18);
}
.pawgallery-dialog .pawgallery-dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  pointer-events: none;
}
@media (max-width: 650px) {
  .pawgallery-dialog-frame {
    width: calc(100vw - 24px);
    margin-top: 56px;
    margin-bottom: 8px;
  }
  .pawgallery-dialog-footer {
    width: calc(100vw - 16px);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 7px;
  }
  .pawgallery-dialog-thumbs { gap: 6px; }
  .pawgallery-dialog .pawgallery-dialog-thumb {
    flex-basis: 62px;
    width: 62px;
    height: 60px;
  }
  .pawgallery-dialog-close { top: 12px; right: 12px; }
  .pawgallery-dialog-prev,
  .pawgallery-dialog-next {
    width: 35px;
    height: 48px;
    background: rgba(0,0,0,.5) !important;
    border-radius: 5px;
  }
  .pawgallery-dialog-prev { left: 4px; }
  .pawgallery-dialog-next { right: 4px; }
}

/* Desktop mouse/trackpad only: make the full-screen photograph use the
   available height rather than remaining at its original pixel dimensions.
   Touch devices (phones/tablets) keep the exact 0.1.1 presentation. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .pawgallery-dialog-frame {
    margin-top: 40px;
    margin-bottom: 8px;
  }
  .pawgallery-dialog-frame img {
    height: 100%;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pawgallery-dialog-frame img,
  .pawgallery-dialog-thumbs,
  #main .tvprduct-image-info-wrapper.product-4.pawgallery-active .pawgallery-thumbs {
    transition: none;
    scroll-behavior: auto;
  }
}
