/* Treasure Photo Filters 0.1.1: chips under the Photos list title, one-line title, filtered big viewer. */
#abe-gallery-modal.tpf-on .modal-img-container{overflow:clip}
#abe-gallery-modal.tpf-on .modal-header{position:sticky;top:0;z-index:20;background:#fff;padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid #eee}
#abe-gallery-modal.tpf-on .gallery-unit-title{white-space:nowrap;overflow:hidden;line-height:1.25}
#abe-gallery-modal.tpf-on .gallery-unit-title.tpf-wrap{white-space:normal}
.tpf-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 2px;margin-top:10px;-webkit-overflow-scrolling:touch}
.tpf-chips::-webkit-scrollbar{display:none}
@media (min-width:986px){.tpf-chips{flex-wrap:wrap;justify-content:center;overflow:visible}}
.tpf-chips .tpf-chip{flex:none;border:1px solid #d9d9d9!important;background:#fff!important;color:#222!important;border-radius:999px!important;padding:7px 14px!important;font:500 14px/1.2 Montserrat,system-ui,sans-serif!important;cursor:pointer;white-space:nowrap;margin:0!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;min-height:36px;width:auto!important;height:auto!important}
.tpf-chips .tpf-chip span{color:#777!important;margin-left:4px;font-variant-numeric:tabular-nums}
.tpf-chips .tpf-chip:hover{border-color:#0f2a3f!important}
.tpf-chips .tpf-chip[aria-pressed="true"]{background:#0f2a3f!important;border-color:#0f2a3f!important;color:#fff!important}
.tpf-chips .tpf-chip[aria-pressed="true"] span{color:#c3d1de!important}
/* While a filtered photo is still loading, show a light placeholder instead of the theme's red. */
#abe-gallery-modal.tpf-on .img-grid-item .img-overlay{background-color:#eef1f4}
.tpf-chip:focus-visible,.tpf-viewer button:focus-visible{outline:3px solid #2b7de9;outline-offset:2px}
#abe-gallery-modal .img-grid-item.tpf-hide{display:none!important}
.tpf-viewer{position:fixed;inset:0;z-index:10060;background:#000;color:#fff;display:flex;flex-direction:column;font-family:Montserrat,system-ui,sans-serif}
.tpf-viewer[hidden]{display:none!important}
.tpf-vtop{display:flex;align-items:center;gap:12px;padding:12px 14px;padding-top:calc(12px + env(safe-area-inset-top,0px))}
.tpf-count{flex:1;font-weight:600;font-size:16px;font-variant-numeric:tabular-nums}
.tpf-count small{font-weight:400;color:#bbb;font-size:15px}
.tpf-viewer .tpf-x{background:#cc0000!important;color:#fff!important;border:0!important;width:40px!important;height:40px!important;border-radius:4px!important;font-size:26px!important;line-height:1!important;cursor:pointer;padding:0!important;margin:0!important;min-height:0!important}
.tpf-stage{flex:1;position:relative;display:flex;align-items:center;justify-content:center;min-height:0;touch-action:pan-y}
.tpf-stage img{max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
.tpf-viewer .tpf-arw{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.35)!important;border:0!important;color:#fff!important;width:48px!important;height:64px!important;font-size:40px!important;line-height:1!important;cursor:pointer;padding:0!important;margin:0!important;border-radius:4px!important}
.tpf-viewer .tpf-arw[hidden]{display:none!important}
.tpf-prev{left:6px}.tpf-next{right:6px}
.tpf-cap{text-align:center;padding:14px 16px calc(22px + env(safe-area-inset-bottom,0px))}
.tpf-cap span{display:inline-block;background:#ef4545;color:#fff;padding:6px 14px;font-size:14px}
html.tpf-lock,html.tpf-lock body{overflow:hidden}
