/* Product galleries: scoped to the two English product pages. */
.yd-1688-catalogue{margin-top:16px}
.yd-1688-heading{max-width:880px}
.yd-1688-heading p{max-width:830px}
.yd-photo-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}
.yd-photo-jumps a{padding:8px 12px;border:1px solid #d6e0e7;border-radius:22px;text-decoration:none;font-size:.8rem;background:#fff}
.yd-photo-group{margin:24px 0 34px;scroll-margin-top:96px}
.yd-photo-group-head{display:flex;gap:12px;align-items:baseline;justify-content:space-between;border-bottom:1px solid #dce3eb;margin:0 0 16px;padding-bottom:8px}
.yd-photo-group-head h3{margin:0;font-size:1.25rem}
.yd-photo-group-head span{color:#637486;font-size:.78rem}
.yd-1688-grid{grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:16px}
.yd-1688-photo{cursor:zoom-in}
.yd-1688-details{padding:12px 15px 15px}
.yd-1688-details h4{font-size:1rem;line-height:1.35;margin:0;color:#142333}
.yd-1688-details p{display:none}
.yd-1688-details .yd-1688-quote{font-size:.85rem}
.yd-specs-intro{max-width:800px}
#v11-abrasives-catalogue .v11-group>summary{font-size:1rem}
.dx-directory-grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:16px}
.dx-catalog-card{padding:13px}
.dx-catalog-card img{width:100%;height:225px;object-fit:contain;cursor:zoom-in}
.dx-catalog-card .dx-image-pending{height:225px}
.dx-catalog-card a{overflow-wrap:anywhere}
.v53-photo-grid img,.v11-family img,.v9-card img,main .yd-1688-catalogue img{cursor:zoom-in}
.product-viewer-open{overflow:hidden}
#product-image-viewer{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(8,16,27,.94);padding:20px;color:#fff}
#product-image-viewer.is-open{display:flex}
.piv-panel{position:relative;display:flex;flex-direction:column;width:min(1040px,100%);max-height:100%;gap:12px}
.piv-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.piv-title{font-weight:650;font-size:.93rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:75%}
.piv-icon{background:#1e354c;color:#fff;border:1px solid #8193a7;border-radius:8px;min-width:43px;min-height:43px;cursor:pointer;font-size:1.25rem;display:grid;place-items:center}
.piv-icon:focus-visible{outline:3px solid #85ccff;outline-offset:3px}
.piv-stage{position:relative;display:flex;justify-content:center;align-items:center;min-height:0;height:min(76vh,730px);background:#fff;border-radius:10px;overflow:hidden}
.piv-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;transition:transform .14s ease;user-select:none;-webkit-user-drag:none}
.piv-step{position:absolute;top:50%;transform:translateY(-50%);z-index:2;background:rgba(11,30,48,.86)}
.piv-prev{left:8px}.piv-next{right:8px}
.piv-bottom{display:flex;align-items:center;justify-content:center;gap:12px}
.piv-count{min-width:80px;text-align:center;font-size:.8rem;color:#d8e4f2}
.piv-hint{color:#aab9c8;font-size:.72rem;text-align:center}
@media(max-width:700px){
  .dx-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dx-catalog-card{padding:9px}
  .dx-catalog-card img,.dx-catalog-card .dx-image-pending{height:175px}
  .dx-catalog-card h3{font-size:.94rem}
  .dx-catalog-card a{font-size:.78rem}
  .yd-1688-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .yd-1688-details{padding:10px}
  .yd-1688-details h4{font-size:.87rem}
  #product-image-viewer{padding:10px}
  .piv-stage{height:min(72vh,620px)}
  .piv-hint{display:none}
}
@media(max-width:370px){.dx-catalog-card img,.dx-catalog-card .dx-image-pending{height:145px}}
@media(prefers-reduced-motion:reduce){.piv-stage img{transition:none}}
/* Specificity: override existing per-page inline catalogue styles. */
.yd-1688-catalogue .yd-1688-grid{grid-template-columns:repeat(auto-fit,minmax(228px,1fr))}
.dx-directory-details .dx-directory-grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr))}
.dx-directory-details .dx-catalog-card{padding:13px}
.dx-directory-details .dx-catalog-card img{height:225px;object-fit:contain;width:100%;cursor:zoom-in}
.dx-directory-details .dx-catalog-card .dx-image-pending{height:225px}
@media(max-width:700px){
 .yd-1688-catalogue .yd-1688-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dx-directory-details .dx-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .dx-directory-details .dx-catalog-card{padding:9px}
 .dx-directory-details .dx-catalog-card img,.dx-directory-details .dx-catalog-card .dx-image-pending{height:175px}
}
@media(max-width:370px){.dx-directory-details .dx-catalog-card img,.dx-directory-details .dx-catalog-card .dx-image-pending{height:145px}}
