/* Kanasho PC: cycling photo lightbox. Only affects cycling detail pages. */
a.kanasho-photo-link { cursor: zoom-in; }
a.kanasho-photo-link img { cursor: zoom-in; }
body.kanasho-photo-dialog-open { overflow: hidden !important; }
.kanasho-photo-backdrop {
 position: fixed; inset: 0; z-index: 2147483600;
 background: rgba(0,0,0,.86); display: flex; flex-direction: column;
 align-items: center; justify-content: center;
 padding: 18px; box-sizing: border-box; color: #fff;
 font-family: sans-serif; font-size: 14px;
}
.kanasho-photo-backdrop[hidden] { display: none !important; }
.kanasho-photo-panel { position: relative; box-sizing: border-box;
 display: flex; flex-direction: column; align-items: center;
 justify-content: center; max-width: min(96vw, 1500px); width: auto; height: auto;
 max-height: 96vh; padding: 34px 48px 8px;
}
.kanasho-photo-image { display: block; max-width: calc(100vw - 120px);
 max-height: calc(100vh - 145px); width: auto; height: auto;
 object-fit: contain; box-shadow: 0 3px 25px rgba(0,0,0,.4);
}
.kanasho-photo-caption { padding: 12px 3px 3px; max-width: 88vw;
 line-height: 1.6; text-align: center; color: #fff;
}
.kanasho-photo-counter { margin-top: 4px; font-size: 12px; color: #ddd; }
.kanasho-photo-close,.kanasho-photo-nav {
 appearance: none; -webkit-appearance:none; position: absolute; cursor: pointer;
 background: rgba(40,40,40,.86); border: 1px solid #aaa;
 border-radius: 5px; color: white !important; font: normal 23px/1 sans-serif;
 text-align: center; width: 38px; height: 38px; padding: 0;
}
.kanasho-photo-close { top: 0; right: 0; }
.kanasho-photo-prev { top: 45%; left: 2px; }
.kanasho-photo-next { top: 45%; right: 2px; }
.kanasho-photo-close:hover,.kanasho-photo-nav:hover { background: rgba(80,80,80,.96); }
.kanasho-photo-close:focus-visible,.kanasho-photo-nav:focus-visible,
a.kanasho-photo-link:focus-visible { outline: 3px solid #ffb963; outline-offset: 3px; }
.kanasho-photo-error { display: none; color: #fff; padding: 30px; text-align: center; }
.kanasho-photo-backdrop.kanasho-photo-failed .kanasho-photo-image { display: none; }
.kanasho-photo-backdrop.kanasho-photo-failed .kanasho-photo-error { display: block; }
@media (max-width: 640px) {
 .kanasho-photo-backdrop { padding: 5px; }
 .kanasho-photo-panel { padding: 45px 32px 4px; }
 .kanasho-photo-image { max-width: calc(100vw - 70px); max-height: calc(100vh - 165px); }
 .kanasho-photo-close { top: 4px; right: 4px; }
 .kanasho-photo-prev { left: -1px; }
 .kanasho-photo-next { right: -1px; }
}
