/* PDP-only controls; approved hero viewport and two-column feature rail stay intact. */
body.features-v093 #main-content .pdp-gallery-v098 { min-width: 0; max-width: 100%; }
body.features-v093 #main-content .pdp-gallery-v098 .pdp-main-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: pan-y pinch-zoom;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-main-image > img.pdp-gallery-photo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: min(100%, var(--gallery-native-width)) !important;
  max-height: min(100%, var(--gallery-native-height), 560px) !important;
  object-fit: contain !important;
  transform: none !important;
  user-select: none;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-controls {
  display: grid; gap: 10px; width: 100%; min-width: 0; padding: 4px 12px 12px; box-sizing: border-box;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-navigation {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  flex: 0 0 44px; padding: 0; border: 1px solid #d9e5e3; border-radius: 50%;
  background: #fff; color: #176c5c; font: 500 23px/1 system-ui, sans-serif; cursor: pointer;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-status {
  color: #566561; font-size: 13px; line-height: 1.5; text-align: center;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-thumbnails {
  display: flex; gap: 8px; width: 100%; min-width: 0; max-width: 100%;
  overflow-x: auto; overscroll-behavior-x: contain; padding: 4px; box-sizing: border-box;
  scrollbar-width: thin; scroll-padding-inline: 4px;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-thumb {
  display: flex; align-items: center; justify-content: center; flex: 0 0 64px;
  width: 64px; height: 72px; padding: 5px; border: 1px solid #d9e5e3; border-radius: 8px;
  background: #fff; cursor: pointer; box-sizing: border-box;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-thumb img {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-thumb.active { border: 2px solid #176c5c; padding: 4px; }
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-thumb:disabled { opacity: .4; cursor: default; }
body.features-v093 #main-content .pdp-gallery-v098 :is(.pdp-gallery-thumb,.pdp-gallery-arrow,.pdp-main-image,.pdp-gallery-original):focus-visible {
  outline: 3px solid #237f8b; outline-offset: 3px;
}
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-caption { margin: 0; color: #566561; font-size: 12px; line-height: 1.5; }
body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-original {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; width: fit-content;
  color: #176c5c; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
body.features-v093 #main-content .pdp-gallery-v098 [hidden] { display: none !important; }
@media (max-width: 560px) {
  body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-controls { padding: 4px 8px 8px; }
  body.features-v093 #main-content .pdp-gallery-v098 .pdp-gallery-thumb { flex-basis: 56px; width: 56px; height: 64px; }
}
