/* Scoped to the case-study gallery and its admin editor. Quick View is unchanged. */
.project-gallery{min-width:0}.project-gallery .project-gallery-main{position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;display:grid;place-items:center;background-image:none!important;background-color:var(--surface,#f1f7df)}
.project-gallery .gig-media-stage{position:relative;isolation:isolate}.project-gallery .project-gallery-main{touch-action:pan-y;cursor:grab;user-select:none;transition:transform .16s ease}.project-gallery .project-gallery-main.is-dragging{cursor:grabbing;transform:translateX(var(--gig-drag-offset,0px));transition:none}.project-gallery .gig-gallery-nav{position:absolute;top:50%;z-index:6;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:48px;padding:0;border:1px solid rgba(65,107,22,.3);border-radius:13px;background:rgba(255,255,250,.94);color:#2e4d10;box-shadow:0 5px 18px rgba(20,33,18,.16);font:500 32px/1 Arial,sans-serif;cursor:pointer;transition:opacity .16s ease}.project-gallery .gig-gallery-prev{left:12px}.project-gallery .gig-gallery-next{right:12px}.project-gallery :is(.gig-gallery-nav,.project-gallery-main,.gthumb):focus-visible{outline:3px solid #416b16;outline-offset:3px}
.project-gallery .project-gallery-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.project-gallery .project-gallery-main>.gig-play{z-index:2;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;display:grid;place-items:center;font-size:24px}
.project-gallery .project-gallery-main>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#111;z-index:3}
.project-gallery .project-gallery-title{font-size:1rem;margin:14px 0 0;color:var(--text,#18251b);overflow-wrap:anywhere}.project-gallery .project-gallery-placeholder{color:var(--text-muted,#56634d);text-align:center;padding:24px;pointer-events:none}
.project-gallery .gig-thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:3px 3px 6px;scrollbar-width:thin}.project-gallery .gthumb{position:relative;width:88px;aspect-ratio:16/9;flex:0 0 88px;cursor:pointer}.project-gallery .gthumb img{width:100%;height:100%;object-fit:cover;border-radius:inherit;pointer-events:none}.project-gallery .gthumb i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:5px;color:var(--green,#416b16)}
.project-gallery .project-gallery-hint{margin:4px 0 12px;font-size:.85rem;color:var(--text-muted,#56634d)}.project-gallery .project-media-error{position:absolute;bottom:8px;left:8px;right:8px;z-index:8;background:#fff8ed;color:#854209;border-radius:8px;padding:10px;font-size:.85rem}
.project-gallery-editor h3{margin-top:0}.project-gallery-editor .project-media-row{min-width:0;border:1px solid var(--border,#d8e1d1);border-radius:14px;margin:20px 0;padding:16px}.project-media-row legend{padding:0 8px;font-weight:600}.project-media-row label{display:block}.project-media-row input,.project-media-row select{max-width:100%;box-sizing:border-box}.project-media-row .afield button{margin-top:6px}.project-media-actions{display:flex;gap:8px;flex-wrap:wrap}.project-media-actions button:disabled{opacity:.45;cursor:default}.project-gallery-editor .hint{line-height:1.6}
@media(max-width:620px){.project-gallery .project-gallery-main>.gig-play{width:52px;height:52px;font-size:21px}.project-gallery .gig-gallery-info{font-size:.7rem}.project-media-row .arow2{display:block}.project-media-actions .abtn{white-space:normal}}
@media(hover:hover) and (pointer:fine){.project-gallery .gig-media-stage:not(:hover):not(:has(:focus-visible)) .gig-gallery-nav{opacity:0;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.project-gallery .project-gallery-main,.project-gallery .gig-gallery-nav{transition:none}}
