.projects-gallery .project-video-library { max-width: 1700px; margin: 50px auto 0; padding: 70px var(--space) 65px; border-top: 1px solid var(--line); }
.project-video-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr); gap: 45px; align-items: end; margin-bottom: 42px; }
.project-video-heading h2 { margin: 0; font-size: clamp(40px, 4.4vw, 65px); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.project-video-intro { max-width: 45ch; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.project-video-filter { max-width: 350px; width: 100%; justify-self: end; }
.project-video-filter label { display: block; margin-bottom: 11px; color: #86621f; font-size: 14px; line-height: 1.5; font-weight: 650; }
.project-video-filter select { display: block; width: 100%; min-height: 48px; padding: 12px 42px 12px 15px; border: 1px solid #babcb4; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2386621f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 15px center; appearance: none; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; }
.project-video-filter p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.project-video-filter label, .project-video-filter select { display: none; }
.project-video-categories { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 38px; }
.project-video-categories button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 17px; border: 1px solid #d8d8cf; background: #fff; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; }
.project-video-categories button[aria-pressed="true"] { border-color: #b89751; background: #171916; color: #fff; }
.project-video-categories button:hover { border-color: #b89751; }
.project-video-categories button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.project-video-number { color: #826522; font-size: 12px; }
.project-video-categories button[aria-pressed="true"] .project-video-number { color: #e0c88d; }
.project-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 28px; align-items: start; }
.project-video-item { min-width: 0; }
.project-video-item[hidden] { display: none; }
.project-video-card { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.project-video-preview { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #171916; }
.project-video-preview img { display: block; width: 100%; height: 100%; object-fit: contain; transition: filter .2s ease; }
.project-video-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #e0c88d; border-radius: 50%; background: #171916c9; transform: translate(-50%, -50%); transition: background .2s ease; }
.project-video-play svg { width: 26px; height: 26px; fill: #fff; }
.project-video-duration { position: absolute; right: 12px; bottom: 12px; min-width: 45px; padding: 5px 8px; background: #111c; color: #fff; font-size: 14px; line-height: 1.4; text-align: center; }
.project-video-category { display: block; margin: 18px 0 7px; color: #86621f; font-size: 14px; line-height: 1.5; }
.project-video-title { display: block; font-size: clamp(18px, 1.5vw, 23px); font-weight: 550; line-height: 1.45; }
.project-video-action { display: inline-block; margin-top: 13px; padding-bottom: 4px; border-bottom: 1px solid #c6a65d; color: #86621f; font-size: 14px; line-height: 1.4; }
.project-video-card:hover .project-video-preview img { filter: brightness(.9); }
.project-video-card:hover .project-video-play { background: #86621f; }
.project-video-card:focus-visible, .project-video-filter select:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.project-video-controls { flex-wrap: wrap; gap: 12px 22px; }
.project-video-controls a { color: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.project-video-status { margin: 10px 24px; color: #fff; font-size: 16px; }
.project-video-status:empty { display: none; }
@media (max-width: 1100px) { .project-video-grid { gap: 36px 22px; } }
@media (max-width: 900px) { .project-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project-video-heading { gap: 28px; } .project-video-heading h2 { font-size: 44px; } }
@media (max-width: 600px) {
  .projects-gallery .project-video-library { margin-top: 25px; padding: 40px 22px; }
  .project-video-heading { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 30px; }
  .project-video-heading h2 { font-size: 40px; }
  .project-video-intro { font-size: 17px; margin-top: 20px; }
  .project-video-filter { max-width: none; }
  .project-video-filter label, .project-video-filter select { display: block; }
  .project-video-categories { display: none; }
  .project-video-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .project-video-preview { aspect-ratio: 4 / 5; max-height: 510px; }
  .project-video-title { font-size: 21px; }
  .project-video-controls { justify-content: center; }
}
html[data-motion="off"] .project-video-preview img, html[data-motion="off"] .project-video-play { transition: none; }
@media (prefers-reduced-motion: reduce) { .project-video-preview img, .project-video-play { transition: none; } }

.video-dialog video { aspect-ratio: auto; object-fit: contain; max-height: calc(100dvh - 180px); }
.video-dialog.is-landscape { width: min(1000px, calc(100vw - 30px)); }
