.fd-project-presentation-fields{margin:24px 0;padding:22px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.fd-project-presentation-fields h3{margin:24px 0 8px}.fd-project-presentation-fields h3:first-child{margin-top:0}.fd-project-presentation-fields .description{color:#667085}.fd-project-presentation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.fd-project-gallery-count{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#f2f4f7;font-size:12px;font-weight:700;color:#475467}.fd-project-gallery-upload-box{margin:14px 0 18px;padding:18px;border:1px dashed #b8c0cc;border-radius:12px;background:#f8fafc}.fd-project-gallery-upload-label{display:flex;flex-direction:column;gap:5px;cursor:pointer}.fd-project-gallery-upload-label strong{font-size:15px}.fd-project-gallery-upload-label span{font-size:13px;color:#667085}.fd-project-gallery-input{display:block;margin-top:12px;max-width:100%}.fd-project-new-gallery-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}.fd-project-new-gallery-item{border:1px solid #e5e7eb;border-radius:9px;overflow:hidden;background:#fff}.fd-project-new-gallery-item img{display:block;width:100%;height:100px;object-fit:cover}.fd-project-new-gallery-meta{padding:7px;font-size:11px;display:flex;flex-direction:column;gap:3px}.fd-project-new-gallery-meta strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fd-project-new-gallery-meta span{color:#667085}.fd-project-gallery-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0}.fd-project-gallery-admin-item{position:relative;border:1px solid #dfe3e8;border-radius:10px;padding:7px;background:#fff;cursor:grab;box-shadow:0 1px 2px rgba(16,24,40,.04)}.fd-project-gallery-admin-item.is-dragging{opacity:.55}.fd-project-gallery-admin-item img{display:block;width:100%;height:150px;object-fit:cover;border-radius:7px;background:#f2f4f7}.fd-project-gallery-drag-handle{position:absolute;top:11px;right:11px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:rgba(0,0,0,.68);color:#fff;font-size:16px;z-index:2}.fd-project-gallery-admin-controls{display:flex;flex-direction:column;gap:7px;padding:10px 3px 3px;font-size:13px}.fd-project-gallery-admin-controls label{font-weight:500}.fd-project-gallery-remove{color:#b42318}.fd-project-gallery-tip{margin-top:8px}.fd-project-highlights-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fd-project-highlights-fields input{width:100%;box-sizing:border-box}.fd-project-amenities-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.fd-project-amenities-grid label{font-size:13px}.fd-public-project-card-media{display:block;aspect-ratio:16/9;overflow:hidden}.fd-public-project-card-media img{display:block;width:100%;height:100%;object-fit:cover}.fd-public-project-gallery-main img{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:12px}.fd-public-project-gallery-thumbs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}.fd-public-project-gallery-thumbs button{padding:0;border:0;background:none;cursor:pointer;border-radius:7px;overflow:hidden}.fd-public-project-gallery-thumbs img{display:block;width:100%;height:78px;object-fit:cover}.fd-project-gallery-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(10,15,25,.94);display:none;align-items:center;justify-content:center;padding:30px}.fd-project-gallery-lightbox.is-open{display:flex}.fd-project-gallery-lightbox img{max-width:min(92vw,1200px);max-height:84vh;object-fit:contain}.fd-project-gallery-lightbox button{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;border-radius:999px}.fd-project-gallery-lightbox-close{top:18px;right:22px;width:42px;height:42px;font-size:25px}.fd-project-gallery-lightbox-prev,.fd-project-gallery-lightbox-next{top:50%;transform:translateY(-50%);width:46px;height:46px;font-size:28px}.fd-project-gallery-lightbox-prev{left:20px}.fd-project-gallery-lightbox-next{right:20px}.fd-public-project-gallery-more{position:relative;display:block}.fd-public-project-gallery-more span{position:absolute;right:10px;bottom:10px;padding:7px 10px;border-radius:7px;background:rgba(0,0,0,.72);color:#fff;font-size:12px;font-weight:700}.fd-public-project-highlights,.fd-public-project-amenities{display:flex;flex-wrap:wrap;gap:10px}.fd-public-project-highlights span,.fd-public-project-amenities span{padding:9px 12px;border:1px solid #e5e7eb;border-radius:999px;background:#fafafa;font-size:13px}.fd-public-project-card-body{padding:20px}@media(max-width:1000px){.fd-project-gallery-admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fd-project-new-gallery-preview{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.fd-project-gallery-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-project-new-gallery-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-project-gallery-admin-item img{height:130px}.fd-project-highlights-fields{grid-template-columns:1fr}.fd-project-amenities-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-public-project-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}.fd-public-project-gallery-thumbs img{height:62px}.fd-project-gallery-lightbox{padding:15px}.fd-project-gallery-lightbox-prev{left:8px}.fd-project-gallery-lightbox-next{right:8px}}
/* V150 gallery picker: use a real clickable upload control while keeping the native input accessible. */
.fd-project-gallery-upload-box{position:relative}.fd-project-gallery-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.fd-project-gallery-upload-label{display:flex;align-items:center;justify-content:center;min-height:86px;padding:18px;border:2px dashed #b8c0cc;border-radius:12px;background:#fff;cursor:pointer;text-align:center}.fd-project-gallery-upload-label:hover{border-color:#667085;background:#f9fafb}.fd-project-gallery-upload-label strong{font-size:16px}.fd-project-gallery-selected{margin-top:10px;font-size:13px;font-weight:600;color:#344054}.fd-project-new-gallery-preview{position:relative;z-index:1}


/* V154: Native WP Project editor admin-only gallery layout/sorting. Builder markup is intentionally unaffected. */
.fd-project-presentation-admin .fd-project-gallery-admin-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;align-items:start!important;gap:14px!important;width:100%!important;box-sizing:border-box!important;}
.fd-project-presentation-admin .fd-project-gallery-admin-item{display:block!important;float:none!important;width:auto!important;min-width:0!important;box-sizing:border-box!important;cursor:default!important;}
.fd-project-presentation-admin .fd-project-gallery-admin-item .fd-project-gallery-drag-handle{cursor:move!important;}
.fd-project-presentation-admin .fd-project-gallery-admin-item img{display:block!important;width:100%!important;height:150px!important;object-fit:cover!important;}
.fd-project-gallery-admin-placeholder{border:2px dashed #98a2b3!important;border-radius:10px!important;background:#f2f4f7!important;visibility:visible!important;box-sizing:border-box!important;}
@media(max-width:1200px){.fd-project-presentation-admin .fd-project-gallery-admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:782px){.fd-project-presentation-admin .fd-project-gallery-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
