/* Canonical post proportions on the website and in the Android WebView. */
.post-card .post-image-wrap{aspect-ratio:var(--photo-ratio,4 / 5);height:auto!important;min-height:0;max-height:none;position:relative;background:#151c20}
.post-card .post-image-wrap>.post-image{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;display:block;position:absolute;inset:0}
body.android-app .post-card .post-image-wrap{aspect-ratio:var(--photo-ratio,4 / 5);height:auto;min-height:0}
body.android-app .post-card .post-image{object-fit:contain}
.am-photo-grid a,.ac-album-card>img,.ac-album-placeholder{aspect-ratio:3 / 4;height:auto;min-height:0;object-fit:cover}
.am-photo-grid a>img{height:100%;object-fit:cover}
.ac-photo-editor>img,.ac-public-gallery img{aspect-ratio:var(--photo-ratio,4 / 5);width:100%;height:auto;max-height:none;min-height:0;object-fit:contain;background:#151c20}
.photo-full-view{display:block;width:100%;height:auto!important;max-height:75dvh!important;object-fit:contain!important;border-radius:12px;background:#151c20}
.photo-crop-overlay{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:16px;background:#070b12d9;backdrop-filter:blur(12px);color:#f3f5f7;font-family:'Noto Sans',sans-serif}
.photo-crop-dialog{width:min(100%,600px);max-height:96dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #3b444b;border-radius:24px;background:#1b2024;box-shadow:0 25px 100px #0008}
.photo-crop-form{padding:22px}.photo-crop-form header{display:flex;align-items:center;justify-content:space-between;gap:16px}.photo-crop-form h2{font-size:24px;margin:4px 0;letter-spacing:-.7px}.photo-crop-form small{font-size:9px;letter-spacing:2px;color:#c9ec69}.photo-crop-close{border-radius:12px;background:#2b3238;font-size:28px;color:#fff;width:46px;min-height:46px;border:1px solid #424c55;flex-shrink:0}.photo-crop-hint{font-size:12px;line-height:1.8;color:#b5beca;margin:10px 0 14px}.photo-crop-formats{display:flex;gap:7px;margin:14px 0}.photo-crop-formats button{flex:1;min-height:44px;padding:8px;border:1px solid #414b53;border-radius:12px;background:#252c31;color:#d9e0e7;font-size:13px;font-weight:750}.photo-crop-formats button[aria-pressed=true]{background:#d4fa51;border-color:#d4fa51;color:#1d2805}.photo-crop-formats button:disabled{opacity:.35;cursor:not-allowed}.photo-crop-stage{background:#101619;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:120px;max-height:40dvh}.photo-crop-stage canvas{display:block;max-width:100%;max-height:40dvh;width:auto;height:auto;touch-action:none;cursor:grab;outline-offset:-4px}.photo-crop-stage canvas:active{cursor:grabbing}.photo-crop-summary{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px;color:#bac4d0}.photo-crop-summary button{font-size:11px;color:#d4fa51;min-height:44px}.photo-crop-adjustments{display:grid;gap:9px;margin:4px 0 14px}.photo-crop-adjustments label{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;font-size:12px;color:#c7d0da}.photo-crop-adjustments input{width:100%;min-height:30px;accent-color:#d4fa51;cursor:pointer}.photo-crop-warning{font-size:11px;line-height:1.8;color:#f1cb83;background:#3c3020;border:1px solid #665037;padding:9px 12px;border-radius:10px}.photo-crop-warning[hidden]{display:none}.photo-crop-form footer{display:flex;gap:10px;margin-top:14px}.photo-crop-form footer button{flex:1;min-height:48px;border-radius:13px;background:#303940;border:1px solid #46515b;color:#eef2f7;font-size:13px;font-weight:750;padding:10px}.photo-crop-form footer [type=submit]{background:#d4fa51;color:#1b240b;border-color:#d4fa51}.photo-crop-form :focus-visible{outline:3px solid #b9a1ff;outline-offset:3px}.photo-standard-note{color:#b6c3d1;font-size:12px;line-height:1.8;padding:12px 0}.photo-crop-error{color:#f1a6b1;font-size:12px}
@media(max-width:600px){.photo-crop-overlay{padding:8px}.photo-crop-dialog{max-height:96dvh;border-radius:20px}.photo-crop-form{padding:16px}.photo-crop-form h2{font-size:21px}.photo-crop-hint{margin:7px 0 10px;font-size:11px}.photo-crop-stage,.photo-crop-stage canvas{max-height:34dvh}.photo-crop-adjustments label{grid-template-columns:110px 1fr;gap:8px}.photo-crop-form footer button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.photo-crop-overlay *{scroll-behavior:auto!important;transition:none!important}}

.photo-crop-form footer{position:sticky;bottom:0;z-index:1;padding:10px 0;background:#1b2024}
@media(max-width:600px){.photo-crop-stage,.photo-crop-stage canvas{max-height:30dvh}}

#photo-preview .photo-preview{aspect-ratio:var(--photo-ratio,4 / 5);width:96px;height:auto;object-fit:contain;background:#151c20}.country-visit-photo,.fx-entry-preview{height:auto!important;max-height:60dvh;object-fit:contain!important;background:#151c20}
