
.gallery-viewer-v44 .gallery-viewer-more{display:none}
@media(max-width:760px),(pointer:coarse) and (max-height:540px){
  .photo-modal.photo-modal-v26.gallery-viewer-v44{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;box-sizing:border-box;margin:0;padding:0;gap:0;background:#101010}
  .gallery-viewer-v44 .gallery-image-row{position:absolute;inset:0;margin:0;max-width:none;width:100%;height:100%;display:block}
  .gallery-viewer-v44 .gallery-zoom-stage{width:100%;height:100%;border:0;border-radius:0;background:transparent}
  .gallery-viewer-v44 .gallery-zoom-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
  .gallery-viewer-v44 .gallery-viewer-arrow,.gallery-viewer-v44 .gallery-zoom-controls,.gallery-viewer-v44 .gallery-viewer-hint,.gallery-viewer-v44 .gallery-viewer-bar>span{display:none}
  .gallery-viewer-v44 .gallery-viewer-bar{position:absolute;z-index:3;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));padding:0}
  .gallery-viewer-v44 .gallery-viewer-bar .gallery-viewer-close,.gallery-viewer-v44 .gallery-viewer-more{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;background:#171717c9;color:#fff;font:25px/1 sans-serif;cursor:pointer}
  .gallery-viewer-v44 .gallery-viewer-more{position:absolute;z-index:3;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom))}
  .gallery-viewer-v44.is-zoomed:not(.tools-open) .gallery-viewer-more{visibility:hidden}
  .photo-modal-v26.gallery-viewer-v44 .modal-tools{display:none}
  .photo-modal-v26.gallery-viewer-v44.tools-open .modal-tools{display:flex;position:absolute;z-index:3;right:max(8px,env(safe-area-inset-right));bottom:calc(max(8px,env(safe-area-inset-bottom)) + 52px);left:auto;transform:none;flex-direction:column;align-items:stretch;gap:5px;max-width:calc(100% - 24px);max-height:calc(100% - 112px);overflow:auto;background:#171717ed;padding:8px;border-radius:10px}
  .photo-modal-v26.gallery-viewer-v44 .modal-tools button{font-size:12px;min-height:44px}
}

@media (max-width: 760px), (pointer: coarse) and (max-height: 540px) {
  .gallery-viewer-v44 .gallery-viewer-more { display: none; }
  .photo-modal-v26.gallery-viewer-v44 .modal-tools {
    display: flex; position: absolute; z-index: 3;
    left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0; background: transparent;
  }
  .photo-modal-v26.gallery-viewer-v44 .modal-tools :is(button, a),
  .gallery-viewer-v44 .gallery-viewer-bar .gallery-viewer-close {
    color: #fff; background: transparent; border: 1px solid #fff;
    box-shadow: none; text-shadow: 0 1px 3px #000;
  }
  .photo-modal-v26.gallery-viewer-v44.is-zoomed .modal-tools { display: none; }
}
