.projects-section{padding:100px 0;background:#191c20;color:#fff}.projects-section .section-heading{align-items:end}.projects-section .eyebrow{color:#ffb649}.projects-section .section-heading p{color:#d0d5da;max-width:390px;font-weight:600}.project-filters{display:flex;gap:10px;flex-wrap:wrap;margin:34px 0}.project-filters button{border:1px solid #ffffff40;color:#fff;background:transparent;padding:10px 22px;border-radius:30px;font-size:16px;font-weight:700}.project-filters button[aria-pressed=true]{background:#ffb649;color:#191c20;border-color:#ffb649}.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.project-card{background:#262b31;border:1px solid #ffffff17;border-radius:12px;overflow:hidden}.project-card[hidden]{display:none}.project-open{border:0;padding:0;display:block;width:100%;height:265px;background:#111;position:relative;overflow:hidden}.project-open img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.project-open:hover img{transform:scale(1.04)}.project-zoom{position:absolute;bottom:14px;left:14px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#191c20bb;color:white;font-size:24px}.project-copy{padding:22px}.project-copy>span{font-size:14px;color:#ffb649;font-weight:700}.project-copy h3{font-size:22px;margin:6px 0 9px;line-height:1.4}.project-copy p{color:#e0e4e8;font-size:16px;line-height:1.7}#project-dialog{border:1px solid #ffffff30;border-radius:12px;background:#191c20;color:white;padding:56px 18px 18px;width:min(1000px,94vw);max-height:94dvh}#project-dialog::backdrop{background:#000d}#project-dialog img{max-height:72dvh;max-width:100%;width:auto;margin:auto;object-fit:contain}#project-dialog p{text-align:center;margin-top:14px;font-weight:700}.project-close{position:absolute;top:6px;left:12px;width:44px;height:44px;background:transparent;border:0;color:white;font-size:34px}.projects-section :focus-visible,#project-dialog :focus-visible{outline:3px solid #ffb649;outline-offset:3px}@media(max-width:1000px){.projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.projects-section{padding:64px 0}.projects-grid{grid-template-columns:1fr;gap:20px}.project-open{height:265px}.project-filters{gap:8px}.project-filters button{padding:9px 16px}.project-copy{padding:20px}}@media(prefers-reduced-motion:reduce){.project-open img{transition:none}}

.project-count{color:#d0d5da;font-size:16px;font-weight:700;margin:0 0 22px}
/* Keep each caption at its natural height; never stretch it to a media/grid row. */
.projects-grid{align-items:start;grid-auto-rows:auto}.project-card{display:block;min-width:0;height:auto;min-height:0;align-self:start}.project-copy{display:block;height:auto;min-height:0;flex:none}.project-inquiry{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;min-height:48px;padding:14px 0 0;border-top:1px solid #ffffff30;color:#ffdc9f;font-size:16px;font-weight:700;line-height:1.6;text-decoration:underline;text-underline-offset:4px}.project-copy h3,.project-copy p{margin-bottom:18px}.project-inquiry:hover{color:#fff0d8}

.project-video-card video{display:block;width:100%;height:300px;background:#0c0d0f;object-fit:contain} .project-video-card{border-color:#ffb64955}

/* Category colors for all captions beneath project photos and videos. */
.project-card[data-category="מנוף"]{--caption-color:#ff6971}
.project-card[data-category="מטען כללי"]{--caption-color:#00c9a7}
.project-card[data-category="מכולות"]{--caption-color:#ff7a00}
.project-card[data-category] .project-copy,
.project-card[data-category] .project-copy>span,
.project-card[data-category] .project-copy h3,
.project-card[data-category] .project-copy p{color:var(--caption-color)}

.projects-more{display:flex;justify-content:center;margin-top:32px}
.projects-more .button{background:#ffb649;color:#191c20;border-color:#ffd28f;min-height:48px}
.project-card[hidden]{display:none!important}

/* Align media frames without cropping video. */
.project-open,.project-video-card video{height:auto;aspect-ratio:4/3;width:100%}
.project-open{position:relative;min-height:0}.project-open img{position:absolute;inset:0;width:100%;height:100%;object-position:var(--project-position,center center)}
.project-video-card video{object-fit:contain;background:#101216}
.project-player{display:flex;flex-direction:column;width:100%;aspect-ratio:4/3;background:#101216;color:#fff;direction:rtl}
.project-player video{flex:1;min-height:0;height:0;aspect-ratio:auto}
.video-controls,.video-status{flex-shrink:0}
.video-controls{display:flex;align-items:center;gap:8px;padding:10px;direction:ltr;background:#101216}
.video-controls button{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;border:1px solid #ffffff35;border-radius:8px;background:#262b31;color:#fff;cursor:pointer}
.video-controls button:hover{background:#39414a}
.video-controls .video-play{background:#ffcc78;color:#171c21;border-color:#ffcc78}
.video-controls svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.video-timeline{flex:1;min-width:50px;display:flex;flex-direction:column;align-items:stretch}
.video-seek{width:100%;height:30px;margin:0;cursor:pointer;accent-color:#ffcc78;direction:ltr;touch-action:pan-y}
.video-seek:disabled{cursor:wait;opacity:.45}
.video-time{font:12px/1.4 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#e5eaf0;text-align:center;white-space:nowrap}
.video-status{padding:8px 14px 14px;margin:0;font-size:14px;line-height:1.6;text-align:center;color:#ffdc9f}
.project-player:fullscreen{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;background:#08090b;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.project-player:fullscreen video{flex:1;min-height:0;height:0;aspect-ratio:auto;object-fit:contain}
.project-player:fullscreen .video-controls{width:min(960px,100%);margin-inline:auto;box-sizing:border-box}
.project-copy{padding:20px 22px}.project-copy h3{overflow-wrap:anywhere}
.project-filters button{min-height:44px}
.project-enquiry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;margin-top:36px;border:1px solid #ffcc7844;border-radius:12px;background:#ffcc7809}
.project-enquiry h3{font-size:24px;margin:0 0 4px;color:#ffcc78}.project-enquiry p{color:#e8edf1;font-size:17px}
.project-enquiry .button{flex-shrink:0;background:#ffcc78;border-color:#ffe0a6;color:#191c20}
@media(max-width:600px){.project-enquiry{flex-direction:column;align-items:stretch;padding:24px 20px;gap:18px}.project-enquiry h3{font-size:22px}}
