.page-projects #grid .card a.film-card-title { height:auto; }
.page-projects #grid .card .film-card-link { position:absolute; inset:0; z-index:1; }
.jawai-control,.jawai-hint {
  background:#26231eeb; color:#fff5df; border:1px solid #bfab8177; border-radius:15px 4px;
  padding:.55rem .9rem; font:400 .875rem/1.3 var(--body,sans-serif);
}
.film-thumbnail { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.photo-pending { background:linear-gradient(100deg,#272521 25%,#34312b 45%,#272521 65%); background-size:240% 100%; }
.photo-pending > img { visibility:hidden; }
@media(prefers-reduced-motion:no-preference){ .photo-pending { animation:photo-sheen 1.7s linear infinite; } }
@keyframes photo-sheen { to { background-position:-240% 0; } }
.film-tile-button { position:absolute; inset:0; z-index:3; width:100%; height:100%; padding:0; border:0;
  appearance:none; background:transparent; cursor:pointer; }
.film-tile-button:focus-visible { outline:2px solid #ffdfaa; outline-offset:-3px; }
.jawai-control { min-height:44px; cursor:pointer; }
body .jawai-dialog button.jawai-control:is(:hover,:focus-visible,:active,[aria-pressed="true"]) {
  color:#211e19; background:#e6cba1; filter:none; text-shadow:none;
}
.jawai-dialog .jawai-control:focus-visible,.media-cover:focus-visible {outline:2px solid #fff0ce;outline-offset:2px}
.jawai-actions,.jawai-scenes,.jawai-bar { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; }
.jawai-actions { margin-block:1rem 1.25rem; }
body button.media-cover { cursor:pointer;position:relative;isolation:isolate;overflow:hidden;padding:0;
  width:min(225px,100%);aspect-ratio:2.15;border:1px solid #776b58;border-radius:16px 4px;
  font:inherit;color:#fff;background:#201e1b;text-align:left; }
.media-cover img {display:block;width:100%;height:100%;object-fit:cover}
.media-cover::after {content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#15130fea);pointer-events:none}
.media-cover-caption,.media-cover-badge {position:absolute;z-index:1;color:white}
.media-cover-caption {left:.75rem;bottom:.55rem;font-size:.9rem}
.media-cover-badge {right:.55rem;top:.5rem;min-width:2rem;height:2rem;padding:0 .3rem;box-sizing:border-box;
  border:1px solid #ffefd5a8;border-radius:50%;background:#16140fd6;display:grid;place-items:center;font:500 .8rem/1 sans-serif}
.film-badge::before {content:"";border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent white;margin-left:2px}
@media (max-width:600px){body button.media-cover {width:calc(50% - .35rem);min-height:78px}}
.jawai-dialog { width:min(94vw,1080px); max-height:94vh; max-height:94dvh; box-sizing:border-box; margin:auto;
  color:#f7f1e4; background:#201f1d; border:1px solid #756647; border-radius:20px 5px; padding:clamp(10px,2vw,22px); overflow:auto; }
.jawai-dialog::backdrop { background:rgb(9 9 8 / 85%); }
.jawai-bar { justify-content:space-between; flex-wrap:nowrap; margin-bottom:10px; }
.jawai-bar h2 { color:#ddbf91; font:400 clamp(1.35rem,4vw,2.1rem)/1.1 var(--display,sans-serif); margin:0; }
.jawai-stage { position:relative; background:#141414; border-radius:15px 4px; overflow:hidden; }
.jawai-stage video { display:block; width:100%; max-height:70vh; }
.jawai-viewer { height:min(66vh,600px); height:min(66dvh,600px); width:100%; }
.jawai-hint { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); pointer-events:none; white-space:nowrap; }
.jawai-scenes { margin-top:10px; }
.jawai-dot { width:44px; height:44px; cursor:pointer; display:grid; place-items:center; }
.jawai-dot::before { content:''; width:16px; height:16px; border:2px solid white; border-radius:50%; background:#c6a46c; box-shadow:0 0 0 5px #31281d88; }
.jawai-dot:hover::before { background:white; }
@media(max-height:500px){ .jawai-viewer,.jawai-stage video { max-height:54dvh; } }
