/* Shared public/editor spacing: generous margins rather than edge-to-edge cards. */
.reference-section,.scent-section{padding-inline:max(10vw,calc((100vw - 1280px)/2))!important}
.scent-section>.reference-heading{max-width:900px}
.scent-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 30px}
.scent-grid .scent-panel{min-height:0!important;grid-template-columns:1fr;display:grid;align-content:start;background:#f4f0e5}
.scent-grid .scent-visual{height:auto!important;min-height:0!important;aspect-ratio:auto!important;display:flex;align-items:center;justify-content:center;background:#eee9dc;overflow:hidden;border-radius:14px 14px 0 0}
.scent-grid .scent-visual:after{display:none}
.scent-grid .wp-block-video.composite-scene{position:relative!important;inset:auto!important;width:100%;height:var(--jhp-video-height,320px)!important;max-height:480px;margin:0!important;display:block;flex:none}
.scent-grid .composite-scene video{width:100%;height:100%;max-width:100%;object-fit:var(--jhp-video-fit,contain)!important;object-position:var(--jhp-video-position,50% 50%)!important;background:transparent;border-radius:0}
.scent-grid .composite-scene[data-jhp-ratio="portrait"]{width:min(100%,calc(var(--jhp-video-height,320px) * 9 / 16));aspect-ratio:9/16}
.scent-grid .composite-scene[data-jhp-ratio="landscape"]{height:auto!important;aspect-ratio:16/9;max-height:var(--jhp-video-height,320px)}
.scent-grid .scent-story{min-height:0!important;padding:24px 26px 28px;border-radius:0 0 14px 14px}
.scent-grid .scent-story h3{font-size:clamp(32px,2.6vw,42px);margin:12px 0 16px}
.scent-grid .scent-story .poem{font-size:16px;line-height:1.7}
.scent-grid .scent-notes{margin-top:16px}.scent-grid .wp-block-buttons{margin-top:18px}
.scent-grid .scene-index{left:14px!important;bottom:10px!important;font-size:8px!important;max-width:80%;background:#33291d77;padding:5px 8px;border-radius:3px}
/* The editor wrapper inherits the same dimensions without altering core/video save markup. */
.scent-grid .jhp-video-editor-preview{width:100%}.scent-grid .jhp-video-editor-preview[data-jhp-ratio="portrait"] .composite-scene{width:min(100%,calc(var(--jhp-video-height,320px) * 9 / 16));aspect-ratio:9/16;margin-inline:auto!important}
.scent-grid .jhp-video-editor-preview[data-jhp-ratio="landscape"] .composite-scene{height:auto!important;aspect-ratio:16/9;max-height:var(--jhp-video-height,320px)}
@media(max-width:1100px){.reference-section,.scent-section{padding-inline:7vw!important}.scent-grid{gap:28px 24px}.scent-grid .scent-story{padding:22px}.scent-grid .scent-story h3{font-size:34px}}
@media(max-width:700px){.reference-section,.scent-section{padding-inline:24px!important}.scent-grid{grid-template-columns:1fr;gap:30px}.scent-grid .wp-block-video.composite-scene{height:var(--jhp-video-height,320px)!important}.scent-grid .composite-scene[data-jhp-ratio="landscape"],.scent-grid .jhp-video-editor-preview[data-jhp-ratio="landscape"] .composite-scene{height:auto!important}.scent-grid .scent-story h3{font-size:38px}}
@media(max-width:380px){.reference-section,.scent-section{padding-inline:18px!important}}

/* A quiet cinematic backdrop, with generous centered title typography. */
.scent-grid .wp-block-video.composite-scene{isolation:isolate;overflow:hidden}
.scent-grid .composite-scene:before{content:'';position:absolute;z-index:0;inset:-18px;background-image:var(--jhp-poster-image,none);background-size:cover;background-position:var(--jhp-video-position,50% 50%);filter:blur(16px) brightness(.72);pointer-events:none}
.scent-grid .composite-scene video{position:relative;z-index:1;filter:blur(var(--scent-video-blur,.25px))}
.scent-grid .scent-visual:after{display:block;position:absolute;z-index:2;inset:0;content:'';background:linear-gradient(180deg,#11171012,#0d150b38 55%,#0d150b30);pointer-events:none}
.scent-grid .scent-overlay{position:absolute;z-index:3;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:25px;text-align:center;color:#fffdf4;pointer-events:none;opacity:var(--scent-caption-opacity,.6);transform:translateY(var(--scent-caption-y,0px))}
.scent-grid .scent-overlay h3{max-width:390px;color:inherit;font-family:var(--serif);font-size:clamp(36px,3.2vw,49px);font-weight:400;line-height:1.07;letter-spacing:-.035em;margin:0;text-wrap:balance;text-shadow:0 2px 18px #14200d80;pointer-events:auto}
.scent-grid .scent-overlay .scent-label{font:9px/1.5 var(--sans);letter-spacing:.16em;color:inherit;opacity:.82;max-width:90%;margin:0;pointer-events:auto}
.scent-grid .scent-story .poem{margin-top:0}.scent-grid .scene-index{display:none}
.editor-styles-wrapper .scent-overlay{opacity:.6!important;transform:none!important}.editor-styles-wrapper .scent-visual>.block-editor-inner-blocks{width:100%}
@media(max-width:1100px){.scent-grid .scent-overlay{padding:22px}.scent-grid .scent-overlay h3{font-size:38px}.scent-grid .scent-overlay .scent-label{font-size:8px}}
@media(max-width:700px){.scent-grid .scent-overlay h3{font-size:clamp(35px,8vw,46px)}}
@media(prefers-reduced-motion:reduce){.scent-grid .scent-overlay{opacity:.6;transform:none}}

/* Revision 1.4.2: actual landscape media, no portrait strip or fake side-fill. */
.scent-grid .wp-block-video.composite-scene{height:auto!important;aspect-ratio:16/9;max-height:none;width:100%}
.scent-grid .composite-scene video{position:absolute;inset:0;object-fit:var(--jhp-video-fit,cover)!important;filter:blur(.25px)}
.scent-grid .composite-scene:before{display:none!important}
.scent-grid .scent-visual:after{background:linear-gradient(180deg,#11171004,#0d150b0d 55%,#0d150b10)}
.scent-grid .scent-overlay h3{text-shadow:0 1px 10px #14200d40}
.scent-grid .composite-scene[data-jhp-ratio="portrait"],.scent-grid .jhp-video-editor-preview[data-jhp-ratio="portrait"] .composite-scene{height:var(--jhp-video-height,320px)!important;aspect-ratio:9/16;width:min(100%,calc(var(--jhp-video-height,320px)*9/16))}
.scent-grid .composite-scene[data-jhp-ratio="auto"],.scent-grid .jhp-video-editor-preview[data-jhp-ratio="auto"] .composite-scene{height:var(--jhp-video-height,320px)!important;aspect-ratio:auto;width:100%}
