.photo-gallery { box-sizing:border-box; min-width:0; width:100%; margin:0; padding:16px; border:1px solid #d5ded2; border-radius:12px; background:#fff; color:#27372e; }
.photo-gallery:focus-visible, .photo-gallery button:focus-visible, .photo-gallery a:focus-visible { outline:3px solid #bb4218; outline-offset:3px; }
.photo-gallery figure { margin:0; min-width:0; }
.photo-gallery .photo-gallery-stage img, .photo-gallery-pending > img { display:block; width:100%; height:clamp(200px,30vw,360px); padding:8px; object-fit:contain; object-position:center; transform:none; clip-path:none; mix-blend-mode:normal; background:white; }
.photo-gallery figcaption { padding:8px 0; color:#495d4c; font-size:14px; line-height:1.5; }
.photo-gallery a { color:#285137; text-underline-offset:3px; }
.photo-gallery-controls { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:12px; margin:4px 0 12px; }
.photo-gallery-controls span { text-align:center; font-size:14px; line-height:1.4; }
.photo-gallery button { cursor:pointer; min-height:44px; border:1px solid #b0bfaa; border-radius:7px; color:#27372e; background:white; font:inherit; }
.photo-gallery-controls button { min-width:44px; font-size:23px; }
.photo-gallery-thumbs { display:flex; flex-wrap:wrap; gap:8px; }
.photo-gallery-thumbs button { display:grid; align-content:start; justify-items:center; width:104px; padding:6px; gap:4px; font-size:12px; line-height:1.35; }
.photo-gallery .photo-gallery-thumbs img { display:block; width:72px; height:56px; padding:0; object-fit:contain; transform:none; mix-blend-mode:normal; }
.photo-gallery-thumbs [aria-pressed="true"] { border:2px solid #285137; padding:5px; background:#edf2e9; }
.photo-gallery [hidden] { display:none !important; }
#catalog .inventory-row:not(.inventory-model-row) > .photo-gallery { grid-column:1 / -1; }
.photo-gallery-pending { text-align:center; }
@media (max-width:560px) { .photo-gallery { padding:12px; } .photo-gallery-thumbs button { width:calc(50% - 4px); } .photo-gallery .photo-gallery-stage img { height:240px; } }


