.product-gallery{margin-block:3rem;padding-block:2.5rem;border-top:1px solid #e2e8f0}.gallery-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}.gallery-heading h1,.gallery-heading h2{margin:.2rem 0 .6rem}.gallery-heading p{margin:0}.product-gallery-tabs{display:flex;gap:.5rem;overflow-x:auto;padding:0 0 1rem;scrollbar-width:thin}.product-gallery-tabs a{flex:0 0 auto;text-decoration:none;padding:.7rem 1.2rem;border:1px solid #dbe4ec;border-radius:999px;background:#fff;color:#34445b;font-weight:700;transition:background .15s,color .15s}.product-gallery-tabs a[aria-selected=true],.product-gallery-tabs a[aria-current=true]{background:#153e50;border-color:#153e50;color:#fff}.product-gallery-tabs a:focus-visible,.gallery-zoom:focus-visible,.gallery-image-controls button:focus-visible{outline:3px solid #0e927d;outline-offset:3px}.product-gallery-panel{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:clamp(1rem,3vw,2rem);min-width:0}.product-gallery-panel[aria-busy=true]{min-height:180px;background:#f7fafb}.product-gallery-panel h3{font-size:1.4rem;margin:0 0 1rem}.gallery-description{margin-bottom:1.5rem}.product-gallery-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.product-gallery-images figure{margin:0;min-width:0}.gallery-zoom{display:block;position:relative;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;background:#f2f5f8;aspect-ratio:16/10}.gallery-zoom img{width:100%;height:100%;object-fit:contain;display:block}.gallery-zoom span{position:absolute;bottom:.6rem;left:.6rem;padding:.2rem .6rem;border-radius:999px;background:#fff;color:#17394c;box-shadow:0 2px 8px #0001;font-size:.8rem}.product-gallery-images figcaption{color:#53637a;font-size:.9rem;line-height:1.7;padding:.6rem .2rem;overflow-wrap:anywhere}.gallery-lightbox{width:min(1120px,94vw);max-height:94dvh;border:0;border-radius:16px;padding:1rem;background:#102835;color:#fff;box-shadow:0 24px 100px #0008}.gallery-lightbox::backdrop{background:#06121ddb}.gallery-lightbox[open]{display:flex;flex-direction:column}.gallery-lightbox:not([open]){display:none}.gallery-lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem}.gallery-lightbox-bar p{margin:0;overflow-wrap:anywhere}.gallery-lightbox-bar button{background:#ffffff1c;color:#fff;border:1px solid #ffffff40;border-radius:50%;font-size:1.8rem;line-height:1;width:44px;height:44px;flex:0 0 auto;cursor:pointer}.gallery-lightbox>img{max-width:100%;max-height:78dvh;object-fit:contain;margin-top:1rem;min-height:0}.gallery-modal-open{overflow:hidden}.gallery-workspace{max-width:1440px}.gallery-workspace-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1.5rem;align-items:start}.gallery-sidebar{padding:1.2rem!important}.gallery-list-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.gallery-list-heading h2{font-size:1.15rem;margin:0}.gallery-list-heading>span{font-size:.85rem;color:#627488}.gallery-admin-list{display:grid;gap:.5rem;margin:1rem 0}.gallery-admin-list a{display:grid;gap:.35rem;padding:.85rem;border:1px solid #e2e8f0;border-radius:10px;text-decoration:none;color:inherit;overflow-wrap:anywhere}.gallery-admin-list a span{font-size:.75rem;color:#637587}.gallery-admin-list a[aria-current=page]{border-color:#0a8b7d;background:#eef9f7}.gallery-pagination{display:flex;gap:1rem;justify-content:space-between;font-size:.85rem;margin-block:1rem}.gallery-trash-link{display:block;border-top:1px solid #e2e8f0;padding-top:1rem;font-size:.9rem}.gallery-help{font-size:.85rem;line-height:1.8}.gallery-editor-column{min-width:0}.gallery-editor .panel{padding:1.5rem}.gallery-editor h2{margin:0;font-size:1.2rem}.gallery-settings{display:flex;gap:2rem;align-items:center}.gallery-settings>div:first-child{max-width:130px}.gallery-checkbox{display:flex;gap:.6rem;align-items:center;font-size:.9rem}.gallery-checkbox input{width:auto!important;margin:0}.gallery-upload-actions{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}.gallery-file-label{position:relative;overflow:hidden;cursor:pointer}.gallery-file-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.gallery-file-label:focus-within{outline:3px solid #0e927d;outline-offset:3px}.gallery-existing{display:grid;gap:.5rem;font-size:.85rem}.gallery-existing>div{display:flex;gap:.6rem}.gallery-existing input{min-width:0;flex:1}.gallery-existing button{flex:0 0 auto}.gallery-status{margin:.2rem 0;color:#087366;font-size:.9rem;line-height:1.8;min-height:1.5em}.gallery-status[data-error=true]{color:#b42318}.gallery-editor-images{display:grid;gap:1rem}.gallery-image-row{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:1rem;border:1px solid #e0e7ee;border-radius:12px;padding:1rem;align-items:start}.gallery-image-thumb{aspect-ratio:4/3;background:#f3f6f9;border-radius:8px;overflow:hidden}.gallery-image-thumb img{width:100%;height:100%;object-fit:contain}.gallery-image-fields{gap:.4rem!important;font-size:.85rem;min-width:0}.gallery-image-options{display:flex;gap:1.2rem;align-items:center}.gallery-image-options>div:first-child{display:flex;gap:.5rem;align-items:center}.gallery-image-options input[type=number]{max-width:95px;padding:.4rem}.gallery-media-reference{overflow-wrap:anywhere;color:#748397;font-size:.65rem}.gallery-image-controls{display:flex;flex-direction:column;gap:.4rem}.gallery-image-controls button{border:1px solid #dce4ec;border-radius:7px;background:#fff;padding:.4rem .55rem;cursor:pointer;font-size:.85rem}.gallery-image-controls button:disabled{opacity:.35;cursor:default}.gallery-image-controls [data-gallery-remove]{color:#b42318}.gallery-save-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-block:1rem}.gallery-delete{margin-top:2rem;padding-top:1rem;border-top:1px solid #e2e8f0}.gallery-delete p{font-size:.85rem}.gallery-editor [hidden],.product-gallery [hidden]{display:none!important}@media(max-width:900px){.gallery-workspace-grid{grid-template-columns:1fr}.gallery-admin-list{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-image-row{grid-template-columns:100px minmax(0,1fr) auto}}@media(max-width:600px){.gallery-heading{flex-direction:column;gap:1rem}.product-gallery-images{grid-template-columns:1fr;gap:1rem}.gallery-admin-list{grid-template-columns:1fr}.gallery-image-row{grid-template-columns:70px minmax(0,1fr);gap:.7rem;padding:.75rem}.gallery-image-controls{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.gallery-image-options{flex-wrap:wrap;gap:.7rem}.gallery-existing>div{flex-direction:column}.gallery-save-row{align-items:stretch;flex-direction:column}.gallery-settings{gap:1rem}.gallery-editor .panel{padding:1rem}.gallery-lightbox{padding:.7rem}.product-gallery{margin-block:2rem;padding-block:1.5rem}}@media(prefers-reduced-motion:reduce){.product-gallery-tabs a{transition:none}}

/* Mobile section cards; desktop tab presentation is unchanged. */
.gallery-tabs-controls{display:none}
@media(max-width:600px){
.gallery-tabs-carousel{min-width:0;margin-bottom:1rem}
.gallery-tabs-controls:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.6rem}
.gallery-tabs-controls span{font-size:.8rem;color:#53637a;text-align:center}
.gallery-tabs-controls button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid #b9cbd6;border-radius:12px;background:#fff;color:#153e50;font-size:1.5rem;font-weight:700;line-height:1;cursor:pointer}
.gallery-tabs-controls button:disabled{opacity:.35;cursor:default}
.gallery-tabs-controls button:focus-visible{outline:3px solid #0e927d;outline-offset:2px}
.product-gallery-tabs{gap:.75rem;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;padding:.25rem 2px .75rem;align-items:stretch}
.product-gallery-tabs a{flex:0 0 82%;max-width:82%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;border-radius:14px;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;min-height:88px;padding:1rem;line-height:1.7;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.product-gallery-tabs[data-dragging=true]{scroll-snap-type:none;cursor:grabbing}
.product-gallery-tabs[data-dragging=true] a{cursor:grabbing}
}
