.portfolio-player{position:relative;width:100%;min-width:0;background:#090909;isolation:isolate;overflow:hidden}
.portfolio-player>video{display:block;width:100%;height:auto;max-width:100%;margin:0}
.film-frame>.portfolio-player{height:100%}.film-frame>.portfolio-player>video{height:100%;object-fit:contain}
.portfolio-controls{position:absolute;bottom:0;inset-inline:0;z-index:2;display:flex;align-items:center;gap:10px;padding:25px 12px 8px;background:linear-gradient(transparent,#090909ed 40%);color:#fff;opacity:0;transition:opacity .18s}
.portfolio-player:hover .portfolio-controls,.portfolio-player:focus-within .portfolio-controls,.portfolio-player.is-paused .portfolio-controls{opacity:1}
.portfolio-controls button,.portfolio-play-overlay{border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
.portfolio-controls button{width:36px;height:36px}.portfolio-controls svg,.portfolio-play-overlay svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.portfolio-controls input{min-width:0;accent-color:#fff;margin:0;cursor:pointer;height:22px}
.portfolio-seek{flex:1;width:50px;appearance:none;background:transparent}.portfolio-seek::-webkit-slider-runnable-track{height:2px;background:#ffffff66}.portfolio-seek::-webkit-slider-thumb{appearance:none;width:10px;height:10px;border-radius:50%;background:#fff;margin-top:-4px}.portfolio-seek::-moz-range-track{height:2px;background:#ffffff66}.portfolio-seek::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#fff}
.portfolio-time{font:11px/1.5 monospace;white-space:nowrap;color:#ddd;flex:none}
.portfolio-play-overlay{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:50%;border:1px solid #ffffff80;background:#09090988;backdrop-filter:blur(5px);z-index:1}
.portfolio-player:not(.is-paused) .portfolio-play-overlay{display:none}
.portfolio-error{position:absolute;inset:0;display:grid;place-content:center;background:#090909de;color:#fff;padding:24px;text-align:center;font-size:14px;z-index:4}.portfolio-error[hidden]{display:none}
.portfolio-player:fullscreen{height:100%;display:grid;place-items:center}.portfolio-player:fullscreen>video{width:100%;height:100%;object-fit:contain}
.summer-layout>.portfolio-player{align-self:start}
@media(hover:none){.portfolio-controls{opacity:1}}
@media(max-width:700px){.portfolio-controls{gap:6px;padding-inline:6px}.portfolio-time{font-size:10px}.portfolio-controls button{width:30px}.summer-layout>.portfolio-player{max-width:440px;margin:auto}}
@media(prefers-reduced-motion:reduce){.portfolio-controls{transition:none}}

.portfolio-controls button[hidden]{display:none}.portfolio-error{inset:0 0 auto;pointer-events:none;font-size:12px;padding:10px;background:#090909cc}

/* Keep the poster unobstructed; controls live below the image. */
.portfolio-play-overlay{display:none!important}
.portfolio-player .portfolio-controls{position:relative;inset:auto;opacity:1;padding:10px 12px;background:#111;min-height:44px}
.portfolio-player video{display:block}
.portfolio-player:fullscreen{display:flex;flex-direction:column;justify-content:center}
.portfolio-player:fullscreen video{min-height:0;flex:1;object-fit:contain}

.film-frame{aspect-ratio:auto;overflow:visible}
.film-frame>.portfolio-player{height:auto}
.film-frame>.portfolio-player>video{height:auto;aspect-ratio:16/9;object-fit:contain}
