/* Kuvakatselin (js/kuvakatselin.js): galleriakuvat isona, selaus nuolilla ja pyyhkäisyllä */
.tms-kk{position:fixed;inset:0;z-index:100000;background:rgba(10,18,14,.94);display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Open Sans',system-ui,sans-serif;touch-action:pan-y}
.tms-kk[hidden]{display:none}
.tms-kk figure{margin:0;max-width:calc(100vw - 140px);max-height:calc(100vh - 110px);display:flex;flex-direction:column;align-items:center}
.tms-kk img{max-width:100%;max-height:calc(100vh - 130px);width:auto;height:auto;object-fit:contain;box-shadow:0 8px 40px rgba(0,0,0,.5);user-select:none;-webkit-user-drag:none}
.tms-kk figcaption{margin-top:10px;font-size:15px;text-align:center;max-width:70ch;color:#e8efe9}
.tms-kk button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:50%;width:52px;height:52px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s}
.tms-kk button:hover{background:rgba(255,255,255,.25)}
.tms-kk button:focus-visible{outline:3px solid #f2c94c;outline-offset:2px}
.tms-kk .tms-kk-ed{left:18px;top:50%;transform:translateY(-50%)}
.tms-kk .tms-kk-seur{right:18px;top:50%;transform:translateY(-50%)}
.tms-kk .tms-kk-sulje{right:18px;top:18px;width:46px;height:46px}
.tms-kk .tms-kk-laskuri{position:absolute;left:22px;top:28px;font-size:15px;color:#cfd8d2}
.tms-kk-auki{overflow:hidden}
@media (max-width:640px){
	.tms-kk figure{max-width:100vw}
	.tms-kk img{max-height:calc(100vh - 160px)}
	.tms-kk .tms-kk-ed,.tms-kk .tms-kk-seur{top:auto;bottom:18px;transform:none;width:56px;height:56px}
	.tms-kk .tms-kk-ed{left:calc(50% - 72px)}
	.tms-kk .tms-kk-seur{right:calc(50% - 72px)}
	.tms-kk figcaption{padding:0 16px}
}
