/* Keep source machine geometry; display neutral grey catalogue fields as white. */
:root{
  --machine-photo-margin:5mm;
  --machine-photo-sharpen:url("/assets/kesmak/photo-clarity.svg?v=3#detail");
  --machine-photo-finish:var(--machine-photo-sharpen) contrast(1.08);
}
.photo-viewer[data-upscaled]:not([data-native-size]){
  --machine-photo-sharpen:url("/assets/kesmak/photo-clarity.svg?v=3#detail-expanded");
  --machine-photo-finish:var(--machine-photo-sharpen) contrast(1.08);
}
.hero,.category-card,.product-image,.screen-product-image{background:#fff}
.hero .hero-machine>img,.product-image img,.screen-product-image img,.screen-related img{mix-blend-mode:normal}
.hero .hero-machine>img,.screen-product-image img,.screen-related img{filter:none}
body img[src="/assets/kesmak/column-04-0.webp"],
body img[src="/assets/kesmak/column-04-1.webp"],
body img[src="/assets/kesmak/column-05-0.webp"],
body img[src="/assets/kesmak/column-05-1.webp"],
body img[src="/assets/kesmak/column-06-0.webp"],
body img[src="/assets/kesmak/column-07-0.webp"],
body img[src="/assets/kesmak/column-07-1.webp"],
body img[src="/assets/kesmak/column-08-0.webp"],
body img[src="/assets/kesmak/column-08-1.webp"],
body img[src="/assets/kesmak/column-09-0.webp"],
body img[src="/assets/kesmak/column-09-1.webp"],
body img[src="/assets/kesmak/column-09-1-clean.svg"],
body img[src="/assets/kesmak/column-10-0.webp"],
body img[src="/assets/kesmak/column-11-0.webp"],
body img[src="/assets/kesmak/column-12-1.webp"],
body img[src="/assets/kesmak/column-13-0.webp"],
body img[src="/assets/kesmak/column-13-1.webp"],
body img[src="/assets/kesmak/column-14-0.webp"],
body img[src="/assets/kesmak/column-14-0-clean.svg"],
body img[src="/assets/kesmak/column-14-1.webp"],
body img[src="/assets/kesmak/column-15-0.webp"],
body img[src="/assets/kesmak/extra-expanded-kme400-clean.webp"],
body img[src="/assets/kesmak/kme-280-350.webp"],
body img[src="/assets/kesmak/kme-gk-280-350.webp"],
body img[src="/assets/kesmak/kmm-dg-230.webp"],
body img[src="/assets/kesmak/kmo-280-350.webp"],
body img[src="/assets/kesmak/kms-280-350.webp"],
body img[src="/assets/kesmak/kmy-280-350-450.webp"],
body img[src="/assets/kesmak/kmy-2dg-280.webp"],
body img[src="/assets/kesmak/kmy-2dg-450.webp"],
body img[src="/assets/kesmak/kmy-dg-280.webp"],
body img[src="/assets/kesmak/kmy-dg-450.webp"],
body img[src="/assets/kesmak/kmyl-350.webp"]{filter:var(--machine-photo-sharpen) brightness(1.12) contrast(1.08)!important;mix-blend-mode:normal!important}

body img:is(
  [src="/assets/kesmak/column-06-1-photo.svg"],
  [src="/assets/kesmak/column-12-0-photo.svg"],
  [src="/assets/kesmak/extra-galaxy-300-300.jpg"],
  [src="/assets/kesmak/extra-vertical-p25-67.jpg"],
  [src="/assets/kesmak/extra-vertical-p70-110.jpg"],
  [src="/assets/kesmak/kme-2dg-350-photo.svg"],
  [src="/assets/kesmak/kme-dg-280-350-400-photo.svg"],
  [src="/assets/kesmak/kme-dg-gk-280-photo.svg"],
  [src="/assets/kesmak/tkp-kdt-p01-xref31.jpeg"],
  [src="/assets/kesmak/tkp-kdt-p04-xref55.jpeg"]
){filter:var(--machine-photo-finish)!important}

.machine-cover{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;width:100%;min-width:0;min-height:0}
.product-image>.machine-cover{align-self:stretch}
.hero .hero-machine>.machine-cover{height:clamp(240px,29vw,395px)}
.photo-matte-frame{position:relative;min-width:0;min-height:0;overflow:hidden;container-type:size}
.machine-cover-stage{margin:var(--machine-photo-margin)}
.photo-matte-frame>img{
  position:absolute;inset:0;width:100%;height:100%;
  display:block;object-fit:contain;object-position:center;mix-blend-mode:normal;filter:none;transform:none;transition:none
}
/* Use the same detail processing on covers, gallery photos and full-screen images. */
body :is(
  .machine-cover-stage > img,
  .category-photo > img,
  .model-page-related a > img,
  .model-related-photo > img,
  .model-page-image .model-photo-main > img,
  .model-gallery-thumbnail > img,
  .model-page-used-gallery .used-thumbnail > img,
  .photo-viewer-stage > img
){filter:var(--machine-photo-finish)}
body img:is(
  [src="/assets/kesmak/kmy-280-main-20261104.webp"],
  [src="/assets/kesmak/kmyl-350-main-20261104.webp"]
){
  --machine-photo-finish:var(--machine-photo-sharpen) contrast(1.12);
}
@supports(width:1cqw){
  /* Only frames with verified blank outer bands use this sizing. */
  .photo-matte-frame[style*="--machine-fit-width"]>img{
    inset:auto;top:50%;left:50%;width:min(var(--machine-fit-width),var(--machine-fit-height));
    height:auto;max-width:none;max-height:none;transform:translate(var(--machine-fit-x),var(--machine-fit-y))
  }
}
.machine-cover-note{font-size:11px;line-height:1.3;color:#626958;text-align:center;overflow-wrap:anywhere}
.machine-cover-missing{grid-template-rows:1fr;place-items:center;text-align:center;background:#f6f7f4;color:#626958;font-size:13px;line-height:1.4;padding:8px}
@media(max-width:760px){.hero .hero-machine>.machine-cover{height:clamp(185px,57vw,270px)}}

.footer .dealer-identity{margin-top:24px;padding:0;border:0}.footer .dealer-identity .ramkat-footer-logo{max-width:255px;width:100%;height:auto;margin:0 0 12px}.footer .dealer-identity p{font-size:15px;line-height:1.8;margin:0;color:#dce0d7}.footer .dealer-identity strong{color:#fff}.footer .footer-top{grid-template-columns:1.65fr 1fr 1fr 1fr}
@media(max-width:900px){.footer .footer-top{grid-template-columns:1.3fr 1fr}}@media(max-width:540px){.footer .footer-top{grid-template-columns:1fr}}
.screen-offer-actions .btn:first-child{flex:0 1 auto}.screen-product-image figcaption{font-size:12px}
.quiz-anonymous{font-size:12px!important;min-height:36px!important;padding:7px 11px!important}.contact-quiz .quiz-actions{flex-wrap:wrap}.quiz-consents input:disabled+span{color:#68705f}.contact-quiz .quiz-preview-notice{font-size:12px;line-height:1.45}
.footer .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;padding-block:25px}
.footer .footer-bottom p{max-width:none;width:auto;font-size:14px;line-height:1.9;color:#bcc2b7;order:0}
.footer .footer-bottom>a{font-size:13px;margin-left:0;padding-top:4px}
@media(max-width:680px){.footer .footer-bottom{grid-template-columns:1fr;gap:14px}.footer .footer-bottom>a{justify-self:end}.footer .footer-bottom p{font-size:13px}}

/* Individual gallery views of the six retained component photographs. */
@supports(width:1cqw){
  .photo-matte-frame[style*="--machine-fit-clip"]>img{
    clip-path:var(--machine-fit-clip);
  }
  .model-gallery-thumbnail[style*="--machine-fit-clip"]{
    aspect-ratio:1;
  }
}
