/* Interface overlays only: all photographic source pixels remain untouched. */
body #page .product-thumbnail:has(> img),
body #page .video-thumbnail-frame { position:relative; overflow:hidden; isolation:isolate; }
body #page .product-thumbnail:has(> img)::before,
body #page .product-thumbnail:has(> img)::after,
body #page .video-thumbnail-frame::before,
body #page .video-thumbnail-frame::after {
 content:''; display:block; position:absolute; pointer-events:none; opacity:0;
 transition:opacity .25s ease; transform:none; border:0; margin:0;
}
body #page .product-thumbnail:has(> img)::before,
body #page .video-thumbnail-frame::before { inset:0; background:#fff; z-index:1; }
body #page .product-thumbnail:has(> img)::after,
body #page .video-thumbnail-frame::after {
 /* The white cactus spans 1127px of the 1255 × 1222 image.
    Size that visible mark against the thumbnail's shorter side. */
 --hover-cactus-width:44%;
 left:50%; top:50%; width:calc(var(--hover-cactus-width) * 1255 / 1127); height:auto; aspect-ratio:1255/1222;
 transform:translate(-50%,-50%); background:url('/assets/november19/cactus-white-hover.png') center/contain no-repeat; z-index:2;
}
body #page .video-thumbnail-frame::after { width:auto; height:calc(var(--hover-cactus-width) * 1222 / 1127); }
body #page .product-thumbnail > img { transition:filter .25s ease; }
body #page .product-thumbnail:has(> img):is(:hover,:focus-visible) > img { filter:none; }
body #page .product-thumbnail:has(> img):is(:hover,:focus-visible)::before,
body #page .video-library-card:is(:hover,:focus-visible) .video-thumbnail-frame::before { opacity:.4; }
body #page .product-thumbnail:has(> img):is(:hover,:focus-visible)::after,
body #page .video-library-card:is(:hover,:focus-visible) .video-thumbnail-frame::after { opacity:1; }
body #page .product-thumbnail:has(.photo-pending),
body #page .product-thumbnail:has(.photo-pending):hover { filter:none; transform:none; }
body #page .product-thumbnail:has(.photo-pending)::before,
body #page .product-thumbnail:has(.photo-pending)::after { content:none; }
body #page .product-thumbnail:focus-visible { outline:2px solid #d2c8ae; outline-offset:3px; }

body #page .portal-panel:is(:hover,:focus-visible) img { filter:brightness(.968) saturate(.96); }
body #page .portal-panel:is(:hover,:focus-visible)::before { opacity:.25; }
body #page .portal-panel-label { transition:color .25s ease; }
body #page .portal-panel:is(:hover,:focus-visible) .portal-panel-label { color:#b71d24; }
body.portal-home #page .portal-established { font-size:14.08px; right:auto; transform:none; }
@media(max-width:479px) { body.portal-home #page .portal-established { font-size:10.56px; } }

/* Hidden original text reserves the original font's exact layout slot. */
body #page .refined-page-heading { position:relative; }
body #page .refined-page-heading,
body #page .refined-page-heading * { transition:none!important; }
body #page .refined-page-heading .heading-size-witness {
 visibility:hidden; font:inherit!important; letter-spacing:inherit!important;
}
body #page .refined-page-heading .heading-visible-label {
 position:absolute; display:block; left:0; top:50%; width:100%; transform:translateY(-50%);
 font-family:inherit!important; font-weight:inherit!important; font-size:var(--page-heading-size,26.6px)!important;
 line-height:1.3; letter-spacing:inherit!important; text-align:inherit; color:inherit;
}
/* Keep the accessible page name out of the material grid's layout.
   Public Coming soon pages share the title template but have no entries. */
body #page #primary.glossary-page:has(> .glossary-entries) > h1 {
 position:absolute; width:1px; height:1px; margin:0; padding:0;
 overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
/* Four 323px visible thumbnails, with 24px edge gaps, reduced together.
   The old 85% child width no longer creates hidden space inside each card. */
body #page .video-sections { width:1227.6px; max-width:100%; margin-inline:auto; }
body #page #cactus-classic-one.video-library { width:100%; column-gap:21.6px; row-gap:21.6px; }
body #page #primary .video-library .video-thumbnail-frame,
body #page #primary .video-library .video-library-card h3 { width:100%; margin-inline:auto; }
body #page #primary .video-library .video-library-card h3 { font-size:18px!important; margin-top:10.8px; }
@media(max-width:959px) {
 /* The existing compact library occupied 96% of its page. */
 body #page .video-sections { width:calc(73.44% + 3.24px); }
}
@media(max-width:599px) {
 body #page .video-sections { width:73.44%; }
}

/* Products uses normal flex flow, leaving clean background above its footer. */
body.website-products-refinements #page { display:flex; flex-direction:column; }
body.website-products-refinements #page #primary { display:flex; flex-direction:column; flex:1; }
body.website-products-refinements #page #primary > * { flex-shrink:0; }
body.website-products-refinements #page #colophon { flex:none; --footer-bottom-space:0px; }
@media(prefers-reduced-motion:reduce) {
 body #page .product-thumbnail > img,
 body #page .product-thumbnail::before,body #page .product-thumbnail::after,
 body #page .video-thumbnail-frame::before,body #page .video-thumbnail-frame::after,
 body #page .portal-panel img,body #page .portal-panel::before,body #page .portal-panel-label { transition:none!important; }
}
