.base-gallery{display:grid;gap:.5rem;margin:0 auto 1rem;width:100%;max-width:38rem;color:#102b3b;text-align:center}.base-gallery .base-main{display:block;width:100%;height:auto;aspect-ratio:1.35;object-fit:contain}.base-gallery figcaption{font-size:.875rem}.base-thumbs{display:flex;justify-content:center;gap:.5rem}.base-thumbs a{display:grid;place-items:center;border:2px solid #c9d5da;border-radius:.25rem;width:3.5rem;height:3.5rem}.base-thumbs a[aria-current=true],.base-thumbs a:focus-visible{border-color:#005397;outline:1px solid #005397}.base-thumbs a img{width:100%;height:100%;object-fit:contain}.base-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1.5rem}.base-model-grid h3{text-align:center}.product-card .base-gallery{padding:.5rem;margin:0;box-sizing:border-box}.product-plate .base-thumbs img{width:100%;height:100%}

.product-card .base-gallery {
  grid-template-columns: minmax(0, 1fr);
}
.product-card .base-gallery figcaption {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.base-enlarge {
  position: relative;
  display: block;
  min-width: 0;
  cursor: zoom-in;
}
.base-enlarge::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: .5rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #cad5da;
  border-radius: .25rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102b3b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6m0-6-7 7M10 20H4v-6m0 6 7-7'/%3E%3C/svg%3E") center / 1.05rem no-repeat;
  pointer-events: none;
}
.base-enlarge:hover::after, .base-enlarge:focus-visible::after { border-color: #005397; }
.base-enlarge:focus-visible, .base-image-view button:focus-visible { outline: 3px solid #005397; outline-offset: 2px; }
#compPhoto > .base-enlarge, #compPhoto .base-main { width: 100%; height: 100%; object-fit: contain; }
.base-image-view {
  box-sizing: border-box;
  width: min(1500px, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #102b3b;
  background: #f5f7f8;
  border: 0;
  border-radius: .45rem;
  box-shadow: 0 12px 55px #081c2c55;
}
.base-image-view[open] { display: flex; flex-direction: column; }
.base-image-view::backdrop { background: rgb(7 20 31 / .84); }
.base-image-view header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .75rem;
  background: white;
  border-bottom: 1px solid #d4dde1;
}
.base-image-view h2 { margin: 0; font-size: clamp(.9rem, 2vw, 1.1rem); line-height: 1.3; color: inherit; }
.base-image-view button {
  flex: none;
  min-height: 44px;
  padding: .4rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #102b3b;
  background: white;
  border: 1px solid #9aadb6;
  border-radius: .25rem;
  cursor: pointer;
}
.base-image-view > img {
  display: block;
  align-self: center;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
html:has(.base-image-view[open]) { overflow: hidden; }
