/* Album cells keep each full image visible; grids never crop the originals. */
body .album49{width:min(76vw,320px);color:#111}
body .album-grid49{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;border-radius:14px;overflow:hidden}
body .album-grid49:is(.count-3,.count-5,.count-6,.count-7,.count-8,.count-9,.count-10){grid-template-columns:repeat(3,minmax(0,1fr))}
body .album-grid49 .album-cell49{position:relative;width:100%;min-width:0;aspect-ratio:1;max-height:none;border-radius:0;background:#eef0ee;touch-action:pan-y}
body .album-grid49 .album-cell49 img{display:block;width:100%;height:100%;object-fit:contain!important;opacity:1;transition:none}
body .album-grid49 .album-cell49:not(.ready)::before{content:'';position:absolute;inset:40%;border:2px solid #cdd2cf;border-top-color:#111;border-radius:50%;animation:album-wait49 .9s linear infinite}
body .album-grid49 .album-cell49.failed::before{content:'↻';inset:auto;top:40%;left:40%;border:0;animation:none;color:#111}
body .album-order49{position:absolute;right:4px;bottom:4px;background:#0009;color:#fff;border-radius:8px;padding:1px 5px;font-size:10px}
body .album49>small{display:block;padding:5px 2px;font-size:12px;color:#111}
body .gallery-tools49{position:absolute;left:50%;bottom:calc(12px + var(--safe-bottom48,0px));transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:2px 5px;border-radius:24px;background:#000b;color:#fff;z-index:5}
body .gallery-tools49 button{border:0;background:transparent;color:#fff;width:44px;height:44px;font-size:28px;line-height:1}
body .gallery-tools49 button:disabled{opacity:.25}
body .gallery-tools49 span{white-space:nowrap;font-size:14px;min-width:38px;text-align:center}
html body .v40-media-viewer:has(.gallery-tools49) .v40-media-stage{bottom:calc(72px + var(--safe-bottom48,0px))!important;touch-action:pan-y}
body .album-recovery49{display:grid;gap:7px;padding:10px;border:1px solid #d9dfdb;border-radius:12px;color:#111;background:#fff}
body .album-recovery49 button{min-height:44px;border:1px solid #cdd4ce;border-radius:9px;background:#f2f5f2;color:#111;font-weight:700}
body .album-recovery49 small{font-size:12px;color:#555}
@keyframes album-wait49{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){body .album-grid49 .album-cell49::before{animation:none}}
