.photo-submission-preview{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:130px;background:#101010;border:1px solid #454545;border-radius:7px;margin-bottom:1rem;overflow:hidden}
.photo-gallery-media{aspect-ratio:3/2;display:flex;align-items:center;justify-content:center;background:#101010;border-radius:5px;margin-bottom:1rem;overflow:hidden}
.photo-gallery .photo-gallery-media img{margin:0;width:100%;height:100%;max-height:none;object-fit:contain}
.photo-read-notice{padding:1rem;border:1px solid #786e41;border-radius:7px;background:#24291c;color:#e6d48b;font:.88rem/1.6 system-ui,sans-serif}
/* Owner 30 Oct: previews take the photo's own shape (no black side bars, nothing cut off). */
.photo-submission-preview img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:0;background:#101010}
.photo-submission-preview p{padding:.5rem 1rem;text-align:center}
.photo-submission-preview .button{margin:0 0 .8rem}
.photo-status-badge{font:.8rem/1.5 system-ui,sans-serif!important;border:1px solid #77704c;background:#343221;color:#f0daa0!important;letter-spacing:0}
.photo-status-badge[data-status=approved]{background:#203b2b;border-color:#50865e;color:#d3f1d7!important}
.photo-status-badge[data-status=rejected],.photo-status-badge[data-status=withdrawn]{background:#302626;border-color:#6f5353;color:#edc9c2!important}
.photo-existing{margin:1.2rem 0;padding:1rem;border:1px solid #4d4d4d;border-radius:8px;background:#202020}
.photo-existing>p{margin:0;font:.85rem/1.6 system-ui,sans-serif;color:#ded5b0}
.photo-existing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:.7rem}
.photo-existing-grid:empty{display:none}
.photo-existing-card{min-width:0}
.photo-existing-card .photo-submission-preview{min-height:90px;margin:0}
.photo-existing-card .photo-submission-preview img{height:auto}
.photo-existing-card>p{font:.75rem/1.5 system-ui,sans-serif;overflow-wrap:anywhere;margin:.4rem 0}
.photo-existing .photo-actions{display:flex;gap:.7rem;flex-wrap:wrap}
.photo-existing .photo-actions{align-items:center;justify-content:space-between}
.photo-existing .photo-actions>p{margin:1rem 0 0;font:.78rem/1.5 system-ui,sans-serif;color:#c2bfb4}
.photo-existing-card .photo-enlarge-button{font-size:.75rem;white-space:normal;margin:.6rem!important}
.photo-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.3rem}
.photo-pagination p{font:.8rem/1.5 system-ui,sans-serif;color:#cbc5b5}
.photo-collection-pagination{justify-content:center;padding-top:1.4rem;border-top:1px solid #454545}
.photo-collection-pagination>p{flex-basis:100%;text-align:center;margin:0 0 .2rem}
.photo-page-controls,.photo-page-numbers{display:flex;justify-content:center;align-items:center;gap:.5rem;flex-wrap:wrap}
.photo-page-numbers .button{min-width:44px;min-height:44px;padding-inline:.75rem}
.photo-page-numbers [aria-current=page]{background:#d8c35f;color:#222222;border-color:#d8c35f;opacity:1}
.photo-page-gap{color:#ccc5b4;padding-inline:.2rem}
.photo-page-controls .button:disabled{cursor:default}
.photo-collection-pagination .button:focus-visible{outline:3px solid #e2cf6a;outline-offset:3px}
.photo-collection-search{display:flex;align-items:flex-end;gap:.8rem 1rem;flex-wrap:wrap;padding:1.2rem;margin-bottom:1.5rem;border:1px solid #454545;border-radius:9px;background:rgba(22,22,22,.88)}
.photo-search-field{flex:1 1 16rem;max-width:28rem;min-width:0}
.photo-search-field label{display:block;margin-bottom:.45rem;font:600 .85rem/1.5 system-ui,sans-serif;color:#ece8dc}
.photo-search-field input,.photo-search-field select{display:block;width:100%;box-sizing:border-box;min-height:48px;padding:.65rem .9rem;border:1px solid #777777;border-radius:5px;background:#0c0c0c;color:#f5f0dc;font:1rem/1.5 system-ui,sans-serif}
.photo-search-field input{text-transform:uppercase}
.photo-search-field select{color-scheme:dark;text-overflow:ellipsis}
.photo-credit-link{display:inline-block;max-width:100%;min-height:44px;padding:0;background:none;border:0;color:inherit;font:inherit;line-height:1.5;text-align:left;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:.22em;overflow-wrap:anywhere;cursor:pointer}
.photo-credit-link:hover{color:#e5d480}
.photo-credit-link:focus-visible{outline:3px solid #e2cf6a;outline-offset:4px;border-radius:3px}
.photo-search-field input::placeholder{color:#aaa99a;opacity:1}
.photo-search-actions{display:flex;gap:.65rem;flex-wrap:wrap}
.photo-search-actions .button{min-height:48px;margin:0}
.photo-collection-search>p{flex-basis:100%;margin:0;font:.8rem/1.6 system-ui,sans-serif;color:#c8c5b5}
.photo-collection-search #photo-gallery-search-status:empty{display:none}
.photo-collection-search #photo-gallery-search-status{color:#e5d480;font-weight:600}
.photo-collection-search [data-error=true]{color:#ffc2aa!important}
.photo-collection-search :is(input,select,.button):focus-visible{outline:3px solid #e2cf6a;outline-offset:3px}
.photo-search-field input[aria-invalid=true]{border-color:#ffc2aa}
@media(max-width:560px){.photo-collection-search{padding:1rem}.photo-search-field{flex-basis:100%;max-width:none}.photo-search-actions{width:100%}.photo-search-actions .button{flex:1}}
@media(max-width:560px){.photo-page-controls{width:100%}.photo-page-numbers{order:-1;flex-basis:100%;margin-bottom:.3rem}.photo-page-controls>.button{flex:1;padding-inline:.55rem;min-height:44px}}
@media(max-width:560px){.photo-pagination{align-items:stretch}.photo-pagination p{order:-1;width:100%}.photo-existing-grid{grid-template-columns:1fr 1fr}.photo-existing .button{max-width:100%}}
