/* Native 1.0.4 sizes the whole viewport inside the Android system bars. */
.legacy-native-insets{--fm-system-top:34px;--fm-system-bottom:28px}
.photo-viewer{padding-top:calc(16px + max(var(--fm-safe-top,env(safe-area-inset-top)),var(--fm-system-top,0px)));padding-bottom:calc(18px + max(var(--fm-safe-bottom,env(safe-area-inset-bottom)),var(--fm-system-bottom,0px)));overscroll-behavior:contain}
.viewer-header{position:sticky;top:0;background:#061727;z-index:2;padding-bottom:8px;align-items:flex-start}.viewer-header strong{display:block;line-height:1.35}.viewer-header>button{min-width:44px;min-height:44px}
.legacy-native-insets dialog:not(.photo-viewer){max-height:calc(100dvh - 90px)}
.legacy-native-insets .camera-top{padding-top:calc(12px + var(--fm-system-top))}
.legacy-native-insets .camera-controls{padding-bottom:calc(12px + var(--fm-system-bottom))}
@media(min-width:800px){body[data-view="album"] main{max-width:1440px}.album-photo-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.photo-viewer{width:min(94vw,1200px);height:94dvh;max-height:94dvh}.viewer-stage{height:60dvh;min-height:260px}}
@media(orientation:landscape) and (max-height:600px){.photo-viewer{height:100dvh;max-height:100dvh}.viewer-stage{height:55dvh}.viewer-header strong{font-size:16px}}
