.service-gallery-trigger { display:block; width:100%; text-align:left; border:0; cursor:pointer; font:inherit; color:inherit; }
.service-gallery-trigger:focus-visible, .service-gallery-dialog button:focus-visible, .service-photo-item button:focus-visible { outline:3px solid #d58a48; outline-offset:3px; }
.gallery-open-hint { display:inline-block; margin-top:18px; text-decoration:underline; text-underline-offset:4px; font-weight:700; }
.service-gallery-backdrop { position:fixed; inset:0; z-index:1000; padding:24px; background:rgba(15,15,15,.84); display:flex; align-items:center; justify-content:center; }
.service-gallery-dialog { position:relative; box-sizing:border-box; width:min(900px,100%); max-height:calc(100vh - 48px); overflow:auto; padding:24px; border-radius:16px; background:#faf7f1; color:#26211d; box-shadow:0 24px 70px #0008; }
.service-gallery-dialog h2 { margin:0 46px 10px 0; }
.service-gallery-description { margin:0 0 18px; }
.service-gallery-close { position:absolute; top:10px; right:14px; border:0; background:transparent; color:inherit; font-size:38px; line-height:1; cursor:pointer; }
.service-gallery-main { display:flex; align-items:center; justify-content:center; gap:8px; background:#181818; border-radius:10px; min-height:240px; }
.service-gallery-main img { display:block; max-width:calc(100% - 100px); max-height:min(62vh,650px); object-fit:contain; }
.service-gallery-main button { flex:none; border:0; background:#ffffffdd; border-radius:50%; width:40px; height:40px; font-size:30px; cursor:pointer; }
.service-gallery-thumbs { display:flex; gap:8px; overflow-x:auto; padding:12px 0 2px; }
.service-gallery-thumbs button { flex:none; width:75px; height:65px; padding:0; border:3px solid transparent; border-radius:7px; background:transparent; cursor:pointer; }
.service-gallery-thumbs button.active { border-color:#b9602e; }
.service-gallery-thumbs img { display:block; width:100%; height:100%; object-fit:cover; border-radius:4px; }
.service-photos-editor { margin:18px 0; }
.service-photos-editor > label { display:block; margin-bottom:8px; font-weight:600; }
.service-photos-editor > input { max-width:100%; }
.service-photos-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(115px,1fr)); gap:10px; margin-top:14px; }
.service-photo-item { display:flex; flex-direction:column; gap:6px; }
.service-photo-item img { width:100%; height:105px; object-fit:cover; border-radius:6px; }
.service-photo-item button { font:inherit; font-size:13px; cursor:pointer; }
@media (max-width:600px) { .service-gallery-backdrop { padding:8px; } .service-gallery-dialog { max-height:calc(100vh - 16px); padding:16px; } .service-gallery-main img { max-width:calc(100% - 85px); max-height:56vh; } .service-gallery-main button { width:34px; height:34px; } }
