/* Native dialog keeps the visitor on the gallery page. */
html.mayu-viewer-open {overflow:hidden;}
.mayu-gallery-tile a.mayu-viewer-trigger {position:relative;cursor:zoom-in;}
.mayu-gallery-tile a.mayu-viewer-trigger::after {content:'+';position:absolute;right:12px;bottom:12px;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#0b2c43cc;color:white;font-size:23px;line-height:1;opacity:0;transform:translateY(5px);transition:opacity .2s,transform .2s;pointer-events:none;}
.mayu-gallery-tile a.mayu-viewer-trigger:hover::after,.mayu-gallery-tile a.mayu-viewer-trigger:focus-visible::after {opacity:1;transform:none;}
.mayu-viewer {box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1100px,calc(100% - 40px));height:min(850px,calc(100vh - 40px));height:min(850px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #ffffff24;border-radius:20px;background:#081b2b;color:#fff;box-shadow:0 25px 90px #0008;overflow:hidden;font-family:inherit;}
.mayu-viewer:not([open]) {display:none;}
.mayu-viewer[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:mayu-dialog-in .22s ease-out;}
.mayu-viewer::backdrop {background:rgba(3,13,21,.87);backdrop-filter:blur(5px);}
.mayu-viewer-top {display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-bottom:1px solid #ffffff20;}
.mayu-viewer-count {font-size:.9rem;font-weight:650;letter-spacing:.06em;color:#e4edf1;font-variant-numeric:tabular-nums;}
.mayu-viewer button {display:grid;place-items:center;box-sizing:border-box;margin:0;padding:0;border:1px solid #ffffff45;border-radius:50%;width:46px;height:46px;min-width:0;min-height:0;line-height:1;font:inherit;font-size:32px;font-weight:400;background:#102d40;color:#fff;cursor:pointer;transition:background .2s,transform .2s;}
.mayu-viewer button:hover {background:#17616b;transform:scale(1.05);}
.mayu-viewer button:focus-visible,.mayu-viewer a:focus-visible {outline:2px solid #e6bb65;outline-offset:3px;}
.mayu-viewer [hidden] {display:none!important;}
.mayu-viewer-stage {position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;padding:12px 62px;touch-action:pan-y pinch-zoom;}
.mayu-viewer-image {display:grid;place-items:center;width:100%;height:100%;min-height:0;min-width:0;overflow:hidden;}
.mayu-viewer-image img {display:block;width:100%;height:100%;min-height:0;min-width:0;object-fit:contain;opacity:0;user-select:none;-webkit-user-drag:none;}
.mayu-viewer-image img.mayu-enter-next {animation:mayu-next .32s ease-out both;}
.mayu-viewer-image img.mayu-enter-prev {animation:mayu-prev .32s ease-out both;}
.mayu-viewer-image img.mayu-enter-open {animation:mayu-dialog-in .3s ease-out both;}
.mayu-viewer-prev,.mayu-viewer-next {position:absolute;top:50%;margin-top:-23px!important;z-index:2;}
.mayu-viewer-prev {left:8px;}.mayu-viewer-next {right:8px;}
.mayu-viewer-status {position:absolute;max-width:70%;text-align:center;color:#c5d6df;font-size:.9rem;pointer-events:none;}
.mayu-viewer-bottom {padding:12px 20px 16px;text-align:center;border-top:1px solid #ffffff20;overflow:auto;max-height:25vh;}
.mayu-viewer-bottom p {margin:0;line-height:1.4;overflow-wrap:anywhere;}
.mayu-viewer-caption {font-size:1rem;color:white;font-weight:650;}
.mayu-viewer-hint {font-size:.76rem;color:#b5cbd8;margin-top:6px!important;}
.mayu-viewer-original {display:inline-block;color:#f2ca7b;margin-top:6px;}
@keyframes mayu-dialog-in {from{opacity:0;}to{opacity:1;}}
@keyframes mayu-next {from{opacity:0;transform:translateX(24px);}to{opacity:1;transform:none;}}
@keyframes mayu-prev {from{opacity:0;transform:translateX(-24px);}to{opacity:1;transform:none;}}
@media(max-width:600px){.mayu-viewer{width:100%;height:100vh;height:100dvh;border:0;border-radius:0;}.mayu-viewer-stage{padding:6px 0;}.mayu-viewer button{width:44px;height:44px;}.mayu-viewer-prev,.mayu-viewer-next{background:#102d40d9;margin-top:-22px!important;}.mayu-viewer-top{padding:10px 14px;}.mayu-viewer-bottom{padding:12px 12px max(14px,env(safe-area-inset-bottom));}}
@media(hover:none){.mayu-gallery-tile a.mayu-viewer-trigger::after{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){.mayu-viewer[open],.mayu-viewer-image img.mayu-enter-next,.mayu-viewer-image img.mayu-enter-prev,.mayu-viewer-image img.mayu-enter-open{animation:none;opacity:1;}.mayu-viewer button,.mayu-gallery-tile a.mayu-viewer-trigger::after{transition:none;}}
