.product-gallery { position: relative; min-width: 0; }
.product-gallery.catalog-card-media { display: block; }
body .catalog-card-media.product-gallery { background: transparent; }
.catalog-card-media .gallery-track {
  mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}
.product-gallery.item-gallery { display: block; padding: 0; min-height: 0; align-self: start; }
.gallery-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; min-width: 0; display: block; scroll-snap-align: start; }
.product-gallery.item-gallery .gallery-slide { aspect-ratio: 4 / 3; }
.product-gallery .gallery-slide img { display: block; width: 100%; height: 100%; max-height: none; }
.gallery-arrow, .gallery-counter {
  position: absolute;
  z-index: 1;
  color: #fff;
  background: #151515dc;
  border: 0;
}
.gallery-arrow { top: 50%; translate: 0 -50%; width: 44px; height: 44px; font: 32px/1 var(--text); background: transparent; text-shadow: 0 1px 4px #000, 0 0 8px #000; cursor: pointer; }
.gallery-arrow:hover { color: var(--lime); }
.gallery-arrow-prev { left: 9px; }
.gallery-arrow-next { right: 9px; }
.gallery-counter { right: 9px; bottom: 9px; padding: 4px 8px; font: 12px var(--mono); pointer-events: none; }
.gallery-track:focus-visible, .gallery-arrow:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }

.item-page #item-root { min-height: 0; align-items: start; }
.item-media-column { min-width: 0; }
.item-media-column > .item-gallery:not(.product-gallery) { min-height: 0; aspect-ratio: 4 / 3; align-content: center; }
.item-resources { padding: clamp(18px, 3vw, 42px); }
.item-resources h2 { margin: 18px 0 8px; font: 800 30px/1 var(--display); }
.item-resources h2:first-child { margin-top: 0; }
.item-resources .item-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.item-resources dl { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.item-resources :is(dt, dd) { padding: 7px; margin: 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.item-resources a { display: block; margin-block: 6px; text-decoration: underline; }
.item-page .item-details h1 { font-size: clamp(41px, 5.2vw, 86px); overflow-wrap: anywhere; line-height: .9; }
.item-page .item-quote-form {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 12px;
}
.item-page .item-quote-form label { display: grid; gap: 7px; font: 600 16px/1.3 var(--text); letter-spacing: normal; }
.item-page .item-quote-form textarea {
  display: block;
  min-height: 95px;
  border: 0;
  border-bottom: 1px solid #87867d;
  background: #ebe9e1;
  resize: vertical;
}
.item-quote-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.item-quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.item-quote-actions small { max-width: 25ch; color: #55524a; }
.item-quote-actions a { text-decoration: underline; text-underline-offset: 2px; }
.item-quote-message { margin: 0; }
.item-quote-message:empty { display: none; }
.item-page #item-root.precision-product {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  max-width: 1660px;
  margin-inline: auto;
  padding: clamp(16px, 2.2vw, 36px);
  align-items: start;
}
.precision-product-media { min-width: 0; }
.precision-product-media .item-gallery { padding: 0; min-height: 0; background: #1c1b18; }
.precision-product-media .item-gallery.item-gallery-with-hotspots { background: transparent; }
.precision-product-media .project-gallery { position: relative; }
.precision-product-media .item-gallery-with-hotspots .project-photo .project-photo-viewport { background: #1c1b18; }
.precision-product-media .project-gallery-meta { border: 0; margin: 0; padding-inline: 0; }
.precision-product-media .project-gallery-rail { border: 0; padding: 8px 0 0; }
.precision-product-media .project-gallery-strip { padding-inline: 0; }
.precision-product-media .project-gallery-thumb { flex-basis: clamp(68px, 10vw, 150px); }
.precision-product .item-details { min-width: 0; padding: 0; }
.precision-product-back, .precision-product-category { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.precision-product-back { text-decoration: underline; text-underline-offset: 3px; }
.precision-product-title h1::before { content: ''; display: block; width: 13px; height: 24px; margin-bottom: 8px; background: var(--lime); transform: skewX(-28deg); }
.precision-product .precision-product-title h1 { margin: 18px 0 8px; font-size: clamp(44px, 6vw, 98px); }
.precision-product-category { margin: 0; }
.precision-product-highlights { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 0; list-style: none; border-bottom: 1px solid var(--line); }
.precision-product-highlights li { display: grid; gap: 4px; min-width: 0; }
.precision-product-highlights small { font: 600 10px var(--mono); text-transform: uppercase; }
.precision-product-highlights strong { font: 700 18px/1.1 var(--display); }
.precision-product .item-summary { margin: 16px 0; }
.precision-product-build { padding: clamp(14px, 1.6vw, 24px); background: #ebe8df; border-radius: 5px; }
.precision-product-build-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.precision-product .precision-product-build-header h2 { margin: 0; font: 800 30px/1 var(--display); text-transform: uppercase; }
.precision-product-build-header .item-price { margin: 0; font: 600 13px var(--mono); }
.precision-product .precision-configure-link { display: flex; width: 100%; margin-top: 14px; }
.precision-product .item-quote-form { margin: 14px 0 0; }
.precision-product .item-quote-form label { font-size: 13px; min-width: 0; }
.precision-product .item-quote-form textarea { width: 100%; min-width: 0; padding: 8px 10px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: 14px var(--text); }
.precision-product .item-quote-form textarea { min-height: 72px; }
.precision-product .item-quote-actions { display: grid; gap: 7px; }
.precision-product .item-quote-actions .button { width: 100%; }
.precision-product .item-quote-actions small { max-width: none; }
.precision-product .item-resources { padding: 24px 0 0; }
.item-downloads { margin-top: 24px; }
.item-downloads h3 { margin: 14px 0 4px; font: 700 15px var(--text); }
.item-downloads ul { list-style: none; padding: 0; margin: 0; }
.item-downloads li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.item-downloads small { flex: none; font: 11px var(--mono); }
@media (max-width: 850px) {
  .item-page #item-root.precision-product { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .item-page #item-root { display: flex; flex-direction: column; }
  .item-media-column { display: contents; }
  .item-media-column > .item-gallery { width: 100%; }
  .item-details { order: 1; width: 100%; }
  .item-resources { order: 2; width: 100%; }
}
