/* Exact 2027 Polygon Tambora 9 AXS gallery. Do not apply to other builds. */
.stock-template-lead.bpl-t9-lead{
  grid-template-columns:minmax(0,1fr) minmax(0,.96fr);
  gap:clamp(.9rem,2.45vw,2.15rem);
  align-items:center;
}
.bpl-t9-lead #stock-page-title{font-size:clamp(2.15rem,4.25vw,3.85rem);text-wrap:balance}
.bpl-t9-gallery{background:transparent}
.bpl-t9-gallery .bpl-t9-open{
  position:relative;display:block;width:100%;aspect-ratio:1.64;padding:0;border:0;
  background:#f3f7f9;overflow:hidden;cursor:zoom-in;text-align:left;
}
.bpl-t9-gallery .bpl-t9-open img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.bpl-t9-open-label{
  position:absolute;bottom:.7rem;right:.7rem;display:grid;place-items:center;width:44px;height:44px;padding:0;
  background:#22281f;color:#fff;font-family:inherit;
  font-size:1.55rem;font-weight:600;line-height:1;letter-spacing:0;
}
.bpl-t9-strip{
  position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:clamp(4rem,8vw,6rem);
  gap:.45rem;
  padding:.25rem .12rem .4rem;margin-top:.4rem;overflow-x:auto;
  scrollbar-width:thin;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;
}
.bpl-t9-strip .bpl-t9-thumb{
  width:100%;aspect-ratio:1.44;min-height:44px;display:block;padding:0;overflow:hidden;
  background:#f3f7f9;border:2px solid transparent;cursor:pointer;scroll-snap-align:start;
}
.bpl-t9-strip .bpl-t9-thumb[aria-pressed=true]{border-color:#334530}
.bpl-t9-strip .bpl-t9-thumb img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.bpl-t9-gallery button:focus-visible{outline:2px solid #526b27;outline-offset:2px}
.bpl-t9-strip .bpl-t9-thumb:focus-visible{outline-offset:-4px}
.bpl-t9-dialog{
  border:0;background:#f3f7f9;color:#192120;padding:0;max-width:none;max-height:none;
  width:min(92vw,82rem);overflow:visible;margin:auto;
}
.bpl-t9-dialog::backdrop{background:rgb(11 14 12 / .86)}
.bpl-t9-viewer{position:relative;isolation:isolate}
.bpl-t9-stage{height:min(74vh,54rem);display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.bpl-t9-viewer .bpl-t9-large{height:100%;width:100%;aspect-ratio:auto;object-fit:contain;min-height:0}
.bpl-t9-viewer button{
  position:absolute;display:grid;place-items:center;width:44px;height:44px;border:1px solid #343d31;
  color:#fff;background:#22281f;cursor:pointer;font-size:1.85rem;line-height:1;padding:0;
}
.bpl-t9-viewer button:hover{background:#394733}
.bpl-t9-viewer .bpl-t9-close{top:.55rem;right:.55rem}
.bpl-t9-viewer .bpl-t9-prev{top:44%;left:.55rem}
.bpl-t9-viewer .bpl-t9-next{top:44%;right:.55rem}
.bpl-t9-status{margin:0;padding:.75rem;text-align:center;font-size:.9rem}
html:has(.bpl-t9-dialog[open]){overflow:hidden}
@media(max-width:760px){
  .stock-template-lead.bpl-t9-lead{grid-template-columns:minmax(0,1fr);gap:1rem}
  .bpl-t9-lead #stock-page-title{font-size:clamp(2.1rem,8vw,3.5rem)}
  .bpl-t9-stage{height:min(66vh,34rem)}
}

.bpl-t9-inline{position:relative}
.bpl-t9-inline-controls button{
  position:absolute;top:50%;translate:0 -50%;z-index:1;display:grid;place-items:center;
  width:44px;height:44px;padding:0;line-height:1;font-size:1.65rem;cursor:pointer;
  background:#22281f;color:#fff;border:1px solid #ffffff73;
}
.bpl-t9-inline-controls button:hover{background:#394733}
.bpl-t9-inline-prev{left:.55rem}.bpl-t9-inline-next{right:.55rem}
.bpl-t9-gallery-count{position:absolute;bottom:.7rem;left:.7rem;color:#fff;background:#22281f;
  padding:.4rem .6rem;font-size:.875rem;line-height:1.25;font-weight:700;pointer-events:none}

.bpl-t9-gallery .bpl-t9-open[data-contain=true]{background:#fff}
.bpl-t9-gallery .bpl-t9-open[data-contain=true] img{object-fit:contain}
