/* Overlay only: originals and image routes are unchanged. */
.wm-frame{position:relative;isolation:isolate}
.itp-watermark{position:absolute!important;z-index:3;display:flex!important;align-items:center;justify-content:center;width:var(--wm-size);max-height:35%;opacity:var(--wm-opacity);pointer-events:none;user-select:none;overflow:hidden;line-height:1.2;color:#263447;font-weight:600;text-align:center;font-family:Arial,sans-serif;font-size:clamp(8px,1vw,18px);overflow-wrap:anywhere;box-sizing:border-box}
.itp-watermark>img{display:block!important;width:100%!important;height:auto!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important;transform:none!important;padding:0!important;margin:0!important;position:static!important;border:0!important;aspect-ratio:auto!important}
.itp-watermark-top-left{top:5%;left:5%}.itp-watermark-top-center{top:5%;left:50%;transform:translateX(-50%)}.itp-watermark-top-right{top:5%;right:5%}
.itp-watermark-center-left{top:50%;left:5%;transform:translateY(-50%)}.itp-watermark-center{top:50%;left:50%;transform:translate(-50%,-50%)}.itp-watermark-center-right{top:50%;right:5%;transform:translateY(-50%)}
.itp-watermark-bottom-left{bottom:10%;left:5%}.itp-watermark-bottom-center{bottom:10%;left:50%;transform:translateX(-50%)}.itp-watermark-bottom-right{bottom:10%;right:5%}

.industrial-tools>.itp-watermark,.alternate-banner-image>.itp-watermark{grid-column:1/-1;filter:none!important;background:none!important;box-shadow:none!important}

.itp-watermark.itp-watermark-tile{inset:0;width:100%;height:100%;max-height:none;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:3%;padding:5%;transform:none}
.itp-watermark-cell{min-width:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.itp-watermark-cell>img,.itp-watermark-cell>span{width:min(100%,calc(var(--wm-size) * 3))!important;max-height:100%;object-fit:contain;transform:none!important;position:static!important;height:auto!important;padding:0!important;margin:0!important;font:inherit;line-height:1.2}
.catalog-layout .art>.itp-watermark-tile{bottom:32px;height:calc(100% - 32px)}

/* Rotate each repeat, keeping the containing grid and image dimensions stable. */
.itp-watermark-tile.wm-direction-down-right .itp-watermark-cell>img,.itp-watermark-tile.wm-direction-down-right .itp-watermark-cell>span{transform:rotate(30deg) scale(.78)!important}
.itp-watermark-tile.wm-direction-down-left .itp-watermark-cell>img,.itp-watermark-tile.wm-direction-down-left .itp-watermark-cell>span{transform:rotate(-30deg) scale(.78)!important}
