.portfolio-entry { position:relative; float:left; width:16.66%; height:500px; margin:35px 4.175% 10px 0; }
.portfolio-entry:nth-child(5n) { margin-right:0; }
.portfolio-entry a.ref_item { display:flow-root; float:none; width:100%; height:100%; margin:0; }
.video-trigger { display:inline-flex; gap:10px; align-items:center; justify-content:center; min-height:42px; box-sizing:border-box; padding:9px 14px; background:#980045; border:1px solid #de1270; color:white; font-size:.9rem; line-height:1.4; text-decoration:none; }
.video-trigger::before { content:""; width:0; height:0; border-top:6px solid transparent; border-bottom:6px solid transparent; border-left:10px solid currentColor; flex:none; }
.video-trigger:hover { color:white; background:#b90056; text-decoration:none; }
.card-video { position:absolute; top:150px; left:6px; right:6px; padding:8px; background:#161616e8; font-size:.8rem; }
.video-dialog { box-sizing:border-box; width:min(1000px,calc(100vw - 24px)); max-width:none; max-height:calc(100dvh - 24px); padding:16px; background:#161616; border:1px solid #666; color:#eee; }
.video-dialog::backdrop { background:#000d; }
.video-dialog-heading { display:flex; gap:16px; justify-content:space-between; align-items:center; margin-bottom:12px; }
.video-dialog h2 { float:none; width:auto; margin:0; font-size:1.1rem; line-height:1.4; }
.video-dialog form { margin:0; }
.video-dialog button { min-width:44px; min-height:44px; border:1px solid #de1270; background:#980045; color:#fff; font-size:1.5rem; cursor:pointer; }
.video-stage { aspect-ratio:16/9; min-height:200px; background:#080808; }
.video-stage iframe { width:100%; height:100%; min-height:200px; display:block; border:0; }
body:has(.video-dialog[open]) { overflow:hidden; }
@media(max-width:1050px) { .portfolio-entry,.portfolio-entry:nth-child(5n) { width:48%; height:auto; margin:35px 1% 10px; } }
@media(max-width:800px) { .home_ref .portfolio-entry:nth-child(5n) { display:none; } }
@media(max-width:480px) { .video-dialog { padding:10px; }.video-dialog h2 { font-size:.95rem; } }
