/* A curated film library with portrait footage kept in its original framing. */
.work-filters { gap: 9px; }
.work-filters .filter-button { display: inline-flex; align-items: center; gap: 9px; }
.work-filters .filter-button > span { margin: 0; opacity: .65; font-size: 9px; }
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.film-card { min-width: 0; }
.film-card .project-media { background: #10121c; }
.film-card .film-ambience { filter: blur(24px) brightness(.35) saturate(.6); scale: 1.18; }
.film-portrait { position: absolute; inset-block: 16px; left: 50%; translate: -50% 0; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 13px; box-shadow: 0 16px 55px #0007; }
.film-portrait > img { width: 100%; height: 100%; object-fit: cover; }
.film-landscape { position: absolute; inset: 0; }
.film-landscape > img { width: 100%; height: 100%; object-fit: contain; }
.film-product { aspect-ratio: 3 / 4; }
.film-card .project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #03050b77, transparent 40%); }
.film-card .media-topline, .film-card .project-view { z-index: 2; }
.film-play-icon { position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%; width: 62px; height: 62px; border: 1px solid #ffffff70; border-radius: 50%; display: grid; place-items: center; color: white; background: #10131b80; backdrop-filter: blur(12px); transition: scale .3s, background .3s; }
.film-play-icon > svg { width: 18px; height: 18px; margin-left: 3px; }
.film-open:hover .film-play-icon, .film-open:focus-visible .film-play-icon { scale: 1.08; background: #ff6973d9; border-color: #ff9199; }
.film-card .project-caption h3 { font-size: clamp(19px, 2vw, 25px); }
.film-card .project-caption { align-items: flex-start; }
.portfolio-grid[data-visible-count="1"] > .project:not([hidden]) { grid-column: 1 / -1; width: min(100%, 760px); justify-self: center; }

.video-dialog { width: min(1060px, calc(100% - 40px)); max-width: none; max-height: calc(100svh - 40px); padding: 0; border: 1px solid #ffffff2c; border-radius: 24px; background: #10131d; color: #f4f4f7; color-scheme: dark; scrollbar-width: thin; scrollbar-color: #45495c #10131d; overflow: auto; overscroll-behavior: contain; box-shadow: 0 35px 120px #000b; }
.video-dialog::backdrop { background: #02030bd9; backdrop-filter: blur(14px); }
.video-dialog-header { position: sticky; z-index: 5; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 20px 24px; background: #10131df5; border-bottom: 1px solid #ffffff15; backdrop-filter: blur(16px); }
.video-dialog-header .eyebrow { color: #ff9199; font-size: 8px; margin: 0 0 6px; letter-spacing: 1.2px; }
.video-dialog-header h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.025em; font-weight: 600; }
.video-close { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; flex-shrink: 0; padding: 9px 14px; background: #ffffff05; border: 1px solid #ffffff2b; border-radius: 50px; color: #d4d7e4; font-size: 11px; }
.video-close > svg { width: 14px; height: 14px; }
.video-close:hover { border-color: #ffffff66; background: #ffffff0b; }
.video-dialog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.video-stage { display: flex; align-items: center; justify-content: center; min-height: 356px; padding: 20px; background: radial-gradient(ellipse at 50% 25%, #2a2d3a66, #03050b 75%); }
.video-frame { width: min(100%, calc(min(68svh, 660px) * var(--film-ratio, .5625))); min-width: 200px; aspect-ratio: var(--film-aspect, 9 / 16); background: #000; box-shadow: 0 15px 50px #0006; }
.video-frame > iframe { display: block; width: 100%; height: 100%; min-width: 200px; min-height: 200px; border: 0; }
.video-frame > video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-dialog[data-format="landscape"] .video-frame { width: 100%; aspect-ratio: 16 / 9; }
.video-details { display: flex; flex-direction: column; gap: 23px; padding: 26px 24px; border-left: 1px solid #ffffff15; }
#video-description { margin: 0; font-size: 12px; line-height: 1.9; color: #b6bacb; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.video-tags > span { padding: 5px 9px; border: 1px solid #ffffff20; border-radius: 50px; font-size: 9px; line-height: 1.6; color: #bfc3d3; }
.video-watch-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: #ffadb5; font-size: 11px; border-bottom: 1px solid #ffffff20; }
.video-watch-link:hover { color: #fff; border-color: #ff9199; }
.video-navigation { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.video-navigation > button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 9px 12px; gap: 8px; color: #f4f4f7; border: 1px solid #ffffff25; border-radius: 50px; background: #ffffff05; font-size: 10px; }
.video-navigation > button:hover:not(:disabled) { border-color: #ff9199; background: #ff69731a; }
.video-navigation > button:disabled { opacity: .3; cursor: default; }
.video-navigation svg { width: 12px; height: 12px; flex-shrink: 0; }
#video-position { font-family: "Manrope", sans-serif; font-size: 10px; color: #a1a7bb; white-space: nowrap; }
.video-more { margin: 0 0 12px; color: #a1a7bb; font-size: 10px; font-weight: 500; }
.video-queue { display: grid; gap: 6px; }
.video-queue-item { width: 100%; display: flex; align-items: center; gap: 13px; padding: 8px; text-align: left; color: #bfc3d3; background: transparent; border: 1px solid transparent; border-radius: 11px; font-size: 11px; line-height: 1.7; }
.video-queue-item > img { width: 28px; height: 44px; object-fit: cover; flex-shrink: 0; border-radius: 4px; }
.video-queue-item.is-active { border-color: #ff69734d; background: #ff697310; color: #fff; }
.video-queue-item:hover { background: #ffffff08; }
.video-status { margin: 0; font-size: 11px; color: #d2b7c1; line-height: 1.8; }
html[lang="ka"] .video-dialog-header h2 { font-size: 19px; line-height: 1.6; }
html[lang="ka"] .video-close, html[lang="ka"] .video-navigation > button { font-size: 9px; }
html[lang="ka"] .video-queue-item { font-size: 10px; }
@media(max-width:760px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .work-filters .filter-button { font-size: 10px; padding-inline: 14px; }
  .film-portrait { inset-block: 12px; border-radius: 10px; }
  .film-play-icon { width: 52px; height: 52px; }
  .video-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); border-radius: 20px; }
  .video-dialog-header { padding: 14px 16px; gap: 12px; }
  .video-dialog-header h2, html[lang="ka"] .video-dialog-header h2 { font-size: 15px; }
  .video-dialog-header .eyebrow { font-size: 7px; }
  .video-close { padding: 10px; }
  .video-close > span { display: none; }
  .video-dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .video-stage { padding: 12px; }
  .video-details { border-left: 0; border-top: 1px solid #ffffff15; padding: 22px 20px; gap: 19px; }
  .video-navigation { order: -1; }
  .video-queue { grid-template-columns: 1fr 1fr; }
  .video-queue-item { gap: 9px; padding: 6px; font-size: 10px; }
  html[lang="ka"] .video-queue-item { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) { .film-play-icon { transition: none; } }
