/* Scope gallery controls separately from existing model badges and studio art. */
.catalog-model-card__image.product-gallery {
  position: relative;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.catalog-model-card__image.product-gallery > img.product-gallery__product[hidden],
.catalog-model-card__image.product-gallery > img.product-gallery__scene[hidden] { display: none !important; }
.catalog-model-card__image.product-gallery > img.product-gallery__scene {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center;
  transform: none !important;
  filter: none !important;
  -webkit-box-reflect: unset !important;
}
.catalog-model-card__image.product-gallery > img.product-gallery__scene--portrait { object-position: center top; }
.catalog-model-card__image.product-gallery > .product-gallery__model {
  z-index: 2;
  top: 10px;
  left: 10px;
  right: auto;
  bottom: auto;
  max-width: calc(100% - 20px);
  pointer-events: none;
}
.product-gallery .product-gallery__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(26, 35, 42, .15);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #202a33;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  cursor: pointer;
  touch-action: manipulation;
}
.product-gallery .product-gallery__arrow--prev { left: 8px; }
.product-gallery .product-gallery__arrow--next { right: 8px; }
.product-gallery .product-gallery__pagination {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
}
.product-gallery .product-gallery__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.product-gallery__dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #53606b;
  box-shadow: 0 1px 4px #0004;
}
.product-gallery__dot[aria-pressed="true"] i { background: #ad292c; border-color: #fff; }
.product-gallery .product-gallery__status {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  border-radius: 4px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, .94);
  color: #29313a;
  font-size: .75rem;
  line-height: 1.5;
  pointer-events: none;
}
.product-gallery .product-gallery__disclaimer {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #30363c;
  background: rgba(255, 255, 255, .88);
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 400;
  pointer-events: none;
}
.product-gallery:focus-visible,
.product-gallery button:focus-visible { outline: 3px solid #ad292c; outline-offset: -3px; }
@media (hover: hover) {
  .product-gallery .product-gallery__arrow:hover { background: #fff; color: #ad292c; }
}
/* Retain the entire new portrait in its primary editorial placement. */
:is(.product-gallery:has(> .product-gallery__scene:not([hidden])),
    .product-detail__main-image:has(> img[src="/editorial/outdoor-wind-20260916.webp"]))::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 10px;
  width: clamp(28px, 9%, 44px);
  aspect-ratio: 1;
  background: url("/brand/atami-round-20260916.png") center / contain no-repeat;
  pointer-events: none;
}
/* Use the supplied company mark on stove and range-hood simulations. */
.product-gallery:has(> .product-gallery__scene[src^="/editorial/model-scenes/"]:not([hidden]))::after {
  background-image: url("/brand/atami-company-round-20260916.png");
}
.product-detail__main-image:has(> img[src="/editorial/outdoor-wind-20260916.webp"]) {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1195 / 1316 !important;
  padding: 0 !important;
  overflow: hidden;
}
.product-detail__main-image > img[src="/editorial/outdoor-wind-20260916.webp"] {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  transform: none !important;
}
:is(.catalog-category-card__image, .product-card__media) > img[src="/editorial/outdoor-wind-20260916.webp"] {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: 50% 25% !important;
  transform: none !important;
}
