:is(#communityPhotos,#worldPhotos)[hidden]{display:none}
:is(#communityPhotos,#worldPhotos){position:fixed;inset:0;z-index:150;background:#100e17ca;display:flex;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));direction:rtl;touch-action:auto}
:is(#communityPhotos,#worldPhotos) .photo-card{width:min(600px,100%);max-height:100%;overflow:auto;background:#25202b;border:1px solid #7c6450;border-radius:20px;padding:18px;box-shadow:0 20px 70px #0008}
:is(#communityPhotos,#worldPhotos) header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
:is(#communityPhotos,#worldPhotos) h2{font-size:21px;margin:0;color:#f0d2a6}
:is(#communityPhotos,#worldPhotos) button,:is(#communityPhotos,#worldPhotos) a{border:1px solid #7b665b;background:#3b3036;color:#f5e4cd;font:inherit;border-radius:12px;padding:10px 16px;cursor:pointer;text-decoration:none}
:is(#communityPhotos,#worldPhotos) button:disabled{opacity:.45;cursor:default}
:is(#communityPhotos,#worldPhotos) .photo-primary{background:#dfb681;color:#261d23;font-weight:700}
:is(#communityPhotos,#worldPhotos) .photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
:is(#communityPhotos,#worldPhotos) .photo-preview{display:block;width:100%;max-height:56dvh;object-fit:contain;background:#15161d;border:8px solid #e1cdb0;border-bottom-width:24px;-webkit-touch-callout:default;user-select:auto}
:is(#communityPhotos,#worldPhotos) .photo-status{font-size:14px;color:#c9b9aa;min-height:20px;margin:12px 0 0}
:is(#communityPhotos,#worldPhotos) [hidden]{display:none!important}
@media(max-height:500px){:is(#communityPhotos,#worldPhotos) .photo-card{width:min(880px,100%);padding:12px}:is(#communityPhotos,#worldPhotos) .photo-preview{max-height:45dvh}}

.photo-framing{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:12px 0;color:#ead6c7;font-size:12px}.photo-framing label{display:grid;gap:8px}.photo-framing input{width:100%;min-width:0;accent-color:#e9a080;min-height:30px}.photo-card{max-height:calc(100dvh - 32px);overflow:auto}.photo-preview{max-height:55dvh;object-fit:contain}@media(max-height:500px){.photo-preview{max-height:38dvh}.photo-framing{margin:4px 0}}

#worldPhotos select{max-width:100%;font:inherit;background:#3b3036;color:#f5e4cd;padding:10px;border:1px solid #7b665b;border-radius:10px}
#worldPhotos .album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#worldPhotos .album-grid button{padding:4px;min-width:0;font-size:12px}#worldPhotos .album-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;margin-bottom:5px}
@media(max-width:450px){#worldPhotos .album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
