.rtpg-anps-gallery{position:relative;width:100%;margin:0 auto 30px}.rtpg-gallery-figure{margin:0;background:#f5f5f5;text-align:center;overflow:hidden}.rtpg-gallery-main-image{display:block;width:100%;max-height:620px;object-fit:contain;margin:auto;cursor:zoom-in}.rtpg-gallery-nav{position:absolute;right:10px;bottom:76px;z-index:5;display:flex;gap:2px}.rtpg-gallery-nav button{width:32px;height:32px;padding:0;border:0;background:rgba(0,0,0,.38);color:#fff;cursor:pointer;font-size:25px;line-height:30px}.rtpg-gallery-nav .rtpg-gallery-fullscreen{font-size:17px}.gallery-fs-thumbnails{width:100%;overflow:hidden;margin-top:10px;background:#fff}.gallery-fs-thumbnails .owl-stage-outer{overflow:hidden;width:100%;touch-action:pan-y;cursor:grab}.gallery-fs-thumbnails .owl-stage-outer:active{cursor:grabbing}.gallery-fs-thumbnails .owl-stage{display:flex;align-items:stretch;will-change:transform}.gallery-fs-thumbnails .owl-item{flex:0 0 auto;box-sizing:border-box;padding:0 4px}.gallery-fs-thumbnails .owl-item button{display:block;height:64px;border:2px solid transparent;overflow:hidden;background:#eee}.gallery-fs-thumbnails .owl-item button.selected{border-color:#777}.gallery-fs-thumbnails .owl-item img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.rtpg-anps-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:45px 75px}.rtpg-lb-image{max-width:92vw;max-height:84vh;object-fit:contain}.rtpg-lb-close,.rtpg-lb-prev,.rtpg-lb-next{position:absolute;border:0;background:transparent;color:#fff;cursor:pointer;line-height:1}.rtpg-lb-close{top:10px;right:20px;font-size:42px}.rtpg-lb-prev,.rtpg-lb-next{top:50%;transform:translateY(-50%);font-size:60px;padding:15px}.rtpg-lb-prev{left:12px}.rtpg-lb-next{right:12px}.rtpg-lb-counter{position:absolute;bottom:15px;color:#fff;font-size:13px}@media(max-width:600px){.rtpg-gallery-main-image{max-height:430px}.gallery-fs-thumbnails .owl-item button{height:54px}.rtpg-anps-lightbox{padding:45px 42px}.rtpg-lb-prev,.rtpg-lb-next{font-size:44px}}
.rtpg-auto-gallery{width:100%;margin:0 auto}.rtpg-auto-gallery .rtpg-anps-gallery{width:100%}

.rtpg-auto-gallery-wrapper{width:100%;max-width:1200px;margin:45px auto 60px;padding:0 15px;box-sizing:border-box}
.rtpg-auto-gallery-title{margin:0 0 24px;font-size:36px;line-height:1.2;font-weight:600}
.rtpg-auto-gallery-wrapper .rtpg-anps-gallery{width:100%;margin:0}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{max-height:650px}

/* v1.4.2 proportional image fitting */
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure{
  width:100%;
  aspect-ratio:16 / 9;
  min-height:280px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f5f5f5;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  object-position:center;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button{
  height:auto;
  min-height:0;
  display:block;
  padding:0;
  margin:0;
  background:transparent;
  line-height:0;
  overflow:hidden;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:initial;
  object-position:initial;
  background:transparent;
  margin:0;
  padding:0;
}
@media(max-width:700px){
 .rtpg-auto-gallery-wrapper .rtpg-gallery-figure{aspect-ratio:4 / 3;min-height:220px}
 .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button{height:auto}
}

/* v1.4.3: proportional thumbnails without artificial empty space */
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage{
  display:flex;
  align-items:flex-start;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item{
  display:block;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img{
  aspect-ratio:auto !important;
}

/* v1.4.4: compact thumbnails, preserving each image's proportions */
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails{
  width:100%;
  overflow:hidden;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage{
  display:flex;
  align-items:center;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item{
  width:auto !important;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-right:8px;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button{
  width:auto !important;
  height:58px !important;
  min-height:58px !important;
  max-width:92px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  padding:0 !important;
  margin:0 !important;
  line-height:0;
  overflow:hidden;
  background:#fff;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img{
  display:block !important;
  width:auto !important;
  height:58px !important;
  max-width:92px !important;
  max-height:58px !important;
  object-fit:contain !important;
  object-position:center;
  margin:0 !important;
  padding:0 !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item{
    margin-right:5px;
  }
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button,
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img{
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    max-width:76px !important;
  }
}

/* v1.4.5: adaptive thumbnail strip */
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-stage{
  width:100%;
  display:flex;
  align-items:center;
}
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item{
  flex:0 0 auto;
  box-sizing:border-box;
  padding:0 4px;
  margin:0;
  max-width:none !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button{
  width:100% !important;
  height:58px !important;
  min-height:58px !important;
  max-width:none !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  border:2px solid transparent;
  background:#eee;
}
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:58px !important;
  object-fit:contain !important;
}
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-stage{
  width:100% !important;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item{
  width:auto !important;
  max-width:92px !important;
  flex:0 0 auto;
  padding:0 4px;
  margin:0;
}
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button{
  width:auto !important;
  height:58px !important;
  min-height:58px !important;
  max-width:92px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  border:2px solid transparent;
  background:#eee;
}
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item img{
  width:auto !important;
  height:58px !important;
  max-width:88px !important;
  max-height:54px !important;
  object-fit:contain !important;
}
.rtpg-gallery-nav button:disabled{
  opacity:.35;
  cursor:not-allowed;
  pointer-events:none;
}
@media(max-width:700px){
 .rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button{height:48px !important;min-height:48px !important}
 .rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item img{max-height:48px !important}
 .rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button{height:48px !important;min-height:48px !important}
 .rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item img{height:48px !important;max-height:44px !important}
}

/* v1.4.8: robust thumbnail scrolling. Keep thumbnails proportional and use
   native horizontal scrolling instead of percentage transforms. */
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage-outer{
  overflow-x:hidden;
  overflow-y:hidden;
  width:100%;
  scrollbar-width:none;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage-outer::-webkit-scrollbar{display:none}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage{
  width:max-content !important;
  min-width:100%;
  display:flex !important;
  align-items:center;
  transform:none !important;
  transition:none !important;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item{
  width:auto !important;
  flex:0 0 auto !important;
  padding:0 4px !important;
  margin:0 !important;
  box-sizing:border-box;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button{
  width:auto !important;
  height:58px !important;
  min-height:58px !important;
  max-width:92px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#eee;
  border:2px solid transparent;
  line-height:0;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img{
  display:block !important;
  width:auto !important;
  height:58px !important;
  max-width:88px !important;
  max-height:54px !important;
  object-fit:contain !important;
  margin:0 !important;
  padding:0 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-stage{
  justify-content:flex-start;
}
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-stage{
  justify-content:flex-start;
}
.rtpg-gallery-nav button:disabled{
  opacity:.35;
  cursor:not-allowed;
  pointer-events:none;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button{height:48px !important;min-height:48px !important}
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img{height:48px !important;max-height:44px !important;max-width:76px !important}
}


/* v1.4.8.1: dedicated thumbnail navigation. These arrows control only the
   thumbnail strip; the main-image arrows continue to change the selected image. */
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails{
  position:relative;
  padding:0 0;
  box-sizing:border-box;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage-outer{
  width:100%;
  overflow-x:hidden;
  overflow-y:hidden;
  box-sizing:border-box;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-prev,
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:20;
  width:30px;
  height:38px;
  padding:0;
  border:0;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:28px;
  line-height:34px;
  cursor:pointer;
  display:none;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-prev{left:0}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-next{right:0}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-prev:disabled,
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-next:disabled{
  opacity:.35;
  cursor:not-allowed;
  pointer-events:none;
}
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .rtpg-thumb-prev,
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .rtpg-thumb-next{
  display:block;
}
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .rtpg-thumb-prev,
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .rtpg-thumb-next{
  display:none !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-prev,
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .rtpg-thumb-next{
    width:26px;
    height:34px;
    font-size:24px;
  }
}

/* v1.4.8.2: uniform thumbnails matching the reference gallery */
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails{
  box-sizing:border-box;
  padding:18px 24px;
  margin-top:0;
  background:#fff;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage-outer{
  box-sizing:border-box;
  width:100%;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-stage{
  align-items:center;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item,
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item,
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item{
  width:100px !important;
  min-width:100px !important;
  max-width:100px !important;
  height:78px !important;
  flex:0 0 100px !important;
  padding:0 !important;
  margin:0 20px 0 0 !important;
  box-sizing:border-box;
  display:block;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button,
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button,
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button{
  width:100px !important;
  min-width:100px !important;
  max-width:100px !important;
  height:78px !important;
  min-height:78px !important;
  max-height:78px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 solid transparent !important;
  border-radius:4px !important;
  overflow:hidden !important;
  background:#eee;
  display:block !important;
  line-height:0;
  box-sizing:border-box;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button.selected,
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button.selected,
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button.selected{
  border:3px solid #164f9c !important;
  border-radius:4px !important;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img,
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item img,
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item img{
  width:100px !important;
  height:78px !important;
  max-width:100px !important;
  max-height:78px !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:4px !important;
}
.rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button.selected img,
.rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button.selected img,
.rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button.selected img{
  width:94px !important;
  height:72px !important;
  max-width:94px !important;
  max-height:72px !important;
  margin:0 !important;
  border-radius:1px !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails{padding:12px 14px}
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item,
  .rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item,
  .rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item{
    width:82px !important;
    min-width:82px !important;
    max-width:82px !important;
    height:64px !important;
    flex-basis:82px !important;
    margin-right:12px !important;
  }
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button,
  .rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button,
  .rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button{
    width:82px !important;
    min-width:82px !important;
    max-width:82px !important;
    height:64px !important;
    min-height:64px !important;
    max-height:64px !important;
  }
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item img,
  .rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item img,
  .rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item img{
    width:82px !important;
    height:64px !important;
    max-width:82px !important;
    max-height:64px !important;
  }
  .rtpg-auto-gallery-wrapper .gallery-fs-thumbnails .owl-item button.selected img,
  .rtpg-auto-gallery-wrapper .rtpg-many-thumbnails .gallery-fs-thumbnails .owl-item button.selected img,
  .rtpg-auto-gallery-wrapper .rtpg-few-thumbnails .gallery-fs-thumbnails .owl-item button.selected img{
    width:76px !important;
    height:58px !important;
    max-width:76px !important;
    max-height:58px !important;
  }
}

/* v1.4.8.7: isolated thumbnail strip - no Owl/theme transform conflicts */
.rtpg-auto-gallery-wrapper .rtpg-thumbbar{position:relative;width:100%;box-sizing:border-box;padding:18px 44px;background:#fff;overflow:hidden}
.rtpg-auto-gallery-wrapper .rtpg-thumb-viewport{width:100%;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}
.rtpg-auto-gallery-wrapper .rtpg-thumb-viewport::-webkit-scrollbar{display:none}
.rtpg-auto-gallery-wrapper .rtpg-thumb-track{display:flex;flex-wrap:nowrap;align-items:center;width:max-content;min-width:100%;gap:20px}
.rtpg-auto-gallery-wrapper .rtpg-thumb{flex:0 0 100px;width:100px;height:78px;padding:0;margin:0;border:3px solid transparent;border-radius:4px;background:#eee;overflow:hidden;box-sizing:border-box;cursor:pointer;line-height:0}
.rtpg-auto-gallery-wrapper .rtpg-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;margin:0;padding:0;border-radius:2px;pointer-events:none}
.rtpg-auto-gallery-wrapper .rtpg-thumb.is-selected{border-color:#164f9c}
.rtpg-auto-gallery-wrapper .rtpg-thumb-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:32px;height:40px;padding:0;border:0;border-radius:2px;background:rgba(0,0,0,.55);color:#fff;font-size:28px;line-height:36px;cursor:pointer}
.rtpg-auto-gallery-wrapper .rtpg-thumb-prev{left:7px}.rtpg-auto-gallery-wrapper .rtpg-thumb-next{right:7px}
.rtpg-auto-gallery-wrapper .rtpg-thumb-nav[hidden]{display:none!important}
.rtpg-auto-gallery-wrapper .rtpg-thumb-nav:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:700px){.rtpg-auto-gallery-wrapper .rtpg-thumbbar{padding:12px 38px}.rtpg-auto-gallery-wrapper .rtpg-thumb-track{gap:12px}.rtpg-auto-gallery-wrapper .rtpg-thumb{flex-basis:82px;width:82px;height:64px}.rtpg-auto-gallery-wrapper .rtpg-thumb-nav{width:28px;height:34px;font-size:24px;line-height:30px}}

/* v1.4.8.8: isolated native thumbnail controls */
.rtpg-auto-gallery-wrapper .rtpg-thumbbar{position:relative;z-index:30;pointer-events:auto}
.rtpg-auto-gallery-wrapper .rtpg-thumb-viewport{position:relative;z-index:31;pointer-events:auto}
.rtpg-auto-gallery-wrapper .rtpg-thumb-track{position:relative;z-index:32}
.rtpg-auto-gallery-wrapper .rtpg-thumb{position:relative;z-index:33;pointer-events:auto;cursor:pointer}
.rtpg-auto-gallery-wrapper .rtpg-thumb-nav{z-index:34;pointer-events:auto}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{position:relative;z-index:2;pointer-events:auto}
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav{z-index:35;pointer-events:auto}

/* v1.4.10: hide original theme/Owl controls over the main image */
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .owl-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .owl-nav,
.rtpg-auto-gallery-wrapper .gallery-fs-main .fs-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .fs-button,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-prev,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-next,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-fullscreen {
  display:none !important;
}

/* v1.4.11: hide the three controls over the large image.
   Keep the separate thumbnail slider arrows visible. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav,
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav button,
.rtpg-auto-gallery-wrapper .rtpg-gallery-prev,
.rtpg-auto-gallery-wrapper .rtpg-gallery-next,
.rtpg-auto-gallery-wrapper .rtpg-gallery-fullscreen {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* v1.4.12: large image uses its natural aspect ratio with no artificial
   16:9 box or side padding, eliminating empty space around the image. */
.rtpg-auto-gallery-wrapper{
  padding-left:0 !important;
  padding-right:0 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure{
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  display:block !important;
  background:transparent !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:initial !important;
  object-position:initial !important;
  margin:0 !important;
}

/* v1.4.13: main-image navigation and popup behavior.
   Main arrows sit on the left/right edges of the large image.
   The old fullscreen button is intentionally hidden; clicking the image
   itself opens the lightbox, which has its own previous/next controls. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure{
  position:relative !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-nav{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:50% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  width:100% !important;
  height:0 !important;
  padding:0 !important;
  margin:0 !important;
  gap:0 !important;
  pointer-events:none !important;
  z-index:20 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-nav button{
  pointer-events:auto !important;
  width:42px !important;
  height:48px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:rgba(0,0,0,.48) !important;
  color:#fff !important;
  font-size:34px !important;
  line-height:44px !important;
  display:block !important;
  opacity:1 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-prev{
  order:0 !important;
  border-radius:0 3px 3px 0 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-next{
  order:2 !important;
  border-radius:3px 0 0 3px !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-fullscreen{
  display:none !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-prev:disabled,
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-next:disabled{
  opacity:.30 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .rtpg-gallery-figure .rtpg-gallery-nav button{
    width:34px !important;
    height:42px !important;
    font-size:29px !important;
    line-height:38px !important;
  }
}
/* Keep the existing lightbox arrows clearly visible above all page content. */
.rtpg-anps-lightbox{
  z-index:999999 !important;
}
.rtpg-anps-lightbox .rtpg-lb-prev,
.rtpg-anps-lightbox .rtpg-lb-next{
  z-index:1000001 !important;
  display:block !important;
  pointer-events:auto !important;
}

/* v1.4.14: uniform main-image height.
   All project images use the same 500px-high viewing area.
   Cover keeps the image proportional without white side space. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure{
  height:500px !important;
  min-height:500px !important;
  max-height:500px !important;
  overflow:hidden !important;
  background:#000 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{
  display:block !important;
  width:100% !important;
  height:500px !important;
  min-height:500px !important;
  max-height:500px !important;
  object-fit:cover !important;
  object-position:center center !important;
  margin:0 !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .rtpg-gallery-figure{
    height:360px !important;
    min-height:360px !important;
    max-height:360px !important;
  }
  .rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{
    height:360px !important;
    min-height:360px !important;
    max-height:360px !important;
  }
}


/* v1.4.15: restore main-image Previous/Next controls. The fullscreen button
   remains hidden. Add a dedicated, fully styled lightbox for the main image. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  pointer-events:none !important;
  z-index:50 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-prev,
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-next{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:46px !important;
  height:52px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:rgba(0,0,0,.48) !important;
  color:#fff !important;
  font-size:38px !important;
  line-height:52px !important;
  text-align:center !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  opacity:1 !important;
  visibility:visible !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-prev{left:12px !important}
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-next{right:12px !important}
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-prev:disabled,
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-next:disabled{
  opacity:.28 !important;
  cursor:not-allowed !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-fullscreen{
  display:none !important;
}

/* Override the old rule from v1.4.11 which hid the complete navigation. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav,
.rtpg-auto-gallery-wrapper .rtpg-gallery-nav button{
  visibility:visible !important;
}

/* Main image remains clickable for the lightbox. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{cursor:zoom-in !important}

/* Dedicated main-image lightbox */
.rtpg-anps-lightbox{
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(0,0,0,.94) !important;
  padding:30px 80px !important;
  box-sizing:border-box !important;
}
.rtpg-anps-lightbox .rtpg-lb-backdrop{
  position:absolute !important;
  inset:0 !important;
}
.rtpg-anps-lightbox .rtpg-lb-stage{
  position:relative !important;
  z-index:2 !important;
  width:min(92vw,1400px) !important;
  height:88vh !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.rtpg-anps-lightbox .rtpg-lb-image{
  display:block !important;
  max-width:100% !important;
  max-height:88vh !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  margin:0 auto !important;
}
.rtpg-anps-lightbox .rtpg-lb-close,
.rtpg-anps-lightbox .rtpg-lb-prev,
.rtpg-anps-lightbox .rtpg-lb-next{
  position:absolute !important;
  z-index:5 !important;
  border:0 !important;
  color:#fff !important;
  background:rgba(0,0,0,.55) !important;
  cursor:pointer !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  font-family:Arial,sans-serif !important;
}
.rtpg-anps-lightbox .rtpg-lb-close{
  top:18px !important;
  right:22px !important;
  width:48px !important;
  height:48px !important;
  font-size:36px !important;
}
.rtpg-anps-lightbox .rtpg-lb-prev,
.rtpg-anps-lightbox .rtpg-lb-next{
  top:50% !important;
  transform:translateY(-50%) !important;
  width:54px !important;
  height:70px !important;
  font-size:56px !important;
}
.rtpg-anps-lightbox .rtpg-lb-prev{left:20px !important}
.rtpg-anps-lightbox .rtpg-lb-next{right:20px !important}
.rtpg-anps-lightbox button:disabled{opacity:.25 !important;cursor:not-allowed !important}
.rtpg-anps-lightbox .rtpg-lb-counter{
  position:absolute !important;
  left:50% !important;
  bottom:8px !important;
  transform:translateX(-50%) !important;
  color:#fff !important;
  font-size:14px !important;
  z-index:6 !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-prev,
  .rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-next{
    width:38px !important;height:44px !important;font-size:32px !important;line-height:44px !important;
  }
  .rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-prev{left:6px !important}
  .rtpg-auto-gallery-wrapper .rtpg-gallery-nav .rtpg-gallery-next{right:6px !important}
  .rtpg-anps-lightbox{padding:20px 48px !important}
  .rtpg-anps-lightbox .rtpg-lb-prev,.rtpg-anps-lightbox .rtpg-lb-next{width:42px !important;height:56px !important;font-size:42px !important}
  .rtpg-anps-lightbox .rtpg-lb-prev{left:4px !important}.rtpg-anps-lightbox .rtpg-lb-next{right:4px !important}
}

/* v1.4.16: isolated main-image controls.
   These selectors are intentionally unique so the theme/Owl controls cannot
   overlap or intercept the gallery arrows. */
.rtpg-auto-gallery-wrapper .rtpg-main-nav{
  position:absolute !important;
  inset:0 !important;
  z-index:9990 !important;
  pointer-events:none !important;
  display:block !important;
}
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev,
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:48px !important;
  height:54px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:2px !important;
  background:rgba(0,0,0,.52) !important;
  color:#fff !important;
  font-family:Arial,sans-serif !important;
  font-size:38px !important;
  line-height:54px !important;
  text-align:center !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  visibility:visible !important;
  opacity:1 !important;
}
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev{left:10px !important}
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{right:10px !important}
.rtpg-auto-gallery-wrapper .rtpg-main-nav button:disabled{
  opacity:.25 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
}
/* Hide legacy RT/Owl controls wherever the theme has inserted them on the
   portfolio page. They are not used by this gallery. */
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .owl-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .owl-nav,
.rtpg-auto-gallery-wrapper .gallery-fs-main .owl-buttons,
.rtpg-auto-gallery-wrapper .gallery-fs-main .fs-controls,
.rtpg-auto-gallery-wrapper .gallery-fs-main .fs-button,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-prev,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-next,
.rtpg-auto-gallery-wrapper .gallery-fs-main .gallery-fs-fullscreen{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{
  cursor:zoom-in !important;
}
@media(max-width:700px){
  .rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev,
  .rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{
    width:38px !important;height:44px !important;font-size:32px !important;line-height:44px !important;
  }
  .rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev{left:5px !important}
  .rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{right:5px !important}
}

/* v1.4.17: dedicated image hit layer and isolated main controls.
   The hit layer opens the lightbox; arrows sit above it and change images. */
.rtpg-auto-gallery-wrapper .rtpg-gallery-figure{
  position:relative !important;
  isolation:isolate !important;
}
.rtpg-auto-gallery-wrapper .rtpg-main-image-hit{
  position:absolute !important;
  inset:0 !important;
  z-index:100 !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  cursor:zoom-in !important;
  pointer-events:auto !important;
}
.rtpg-auto-gallery-wrapper .rtpg-gallery-main-image{
  position:relative !important;
  z-index:1 !important;
  pointer-events:none !important;
}
.rtpg-auto-gallery-wrapper .rtpg-main-nav{
  position:absolute !important;
  inset:0 !important;
  z-index:200 !important;
  display:block !important;
  pointer-events:none !important;
}
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev,
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  z-index:201 !important;
  width:48px !important;
  height:54px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:2px !important;
  background:rgba(0,0,0,.55) !important;
  color:#fff !important;
  font:38px/54px Arial,sans-serif !important;
  text-align:center !important;
  pointer-events:auto !important;
  cursor:pointer !important;
}
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev{left:8px !important}
.rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{right:8px !important}
.rtpg-auto-gallery-wrapper .rtpg-main-nav button:disabled{
  opacity:.25 !important;
  pointer-events:none !important;
}
@media(max-width:700px){
 .rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-prev,
 .rtpg-auto-gallery-wrapper .rtpg-main-nav .rtpg-main-next{
   width:38px !important;height:44px !important;font-size:31px !important;line-height:44px !important;
 }
}
.rtpg-anps-lightbox{z-index:2147483000 !important;pointer-events:auto !important}
.rtpg-anps-lightbox .rtpg-lb-backdrop{position:absolute;inset:0;z-index:0}
.rtpg-anps-lightbox .rtpg-lb-stage{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;max-width:92vw;max-height:88vh}
.rtpg-anps-lightbox .rtpg-lb-image{position:relative;z-index:2;max-width:92vw;max-height:84vh;object-fit:contain;cursor:default}
.rtpg-anps-lightbox .rtpg-lb-prev,
.rtpg-anps-lightbox .rtpg-lb-next,
.rtpg-anps-lightbox .rtpg-lb-close{z-index:10 !important;pointer-events:auto !important}
