/* Visitor photos 0.49.20. Isolated from the site's existing design and photo upload routes. */
.visitor-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.visitor-photo-card{display:flex;flex-direction:column;border-radius:18px;min-width:0}
.visitor-photo-card figcaption{display:flex;flex-direction:column;gap:10px;flex:1;padding:13px 14px 14px}
.visitor-photo-card figcaption>p{font-size:15px;line-height:1.45;margin:0}
.visitor-photo-meta{font-size:12px;line-height:1.45;display:flex;flex-direction:column;gap:3px;word-break:break-word}
.photo-card-image-button{display:block;width:100%;padding:0;margin:0;border:0;background:#e7eff4;cursor:zoom-in;text-align:inherit;overflow:hidden}
.photo-card-image-button img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .22s ease}
.photo-card-image-button:hover img{transform:scale(1.035)}
.photo-card-actions{margin-top:auto;padding-top:7px}
.photo-card-actions button,.photo-share-actions button,.photo-gallery-pagination button{cursor:pointer;border:1px solid #c8d9e5;background:#f4f9fd;border-radius:12px;color:#0b4f8a;font-size:14px;font-weight:700;line-height:1.3;padding:10px 12px}
.photo-card-actions button{width:100%;font-size:14px}
.photo-card-actions button:hover,.photo-share-actions button:hover,.photo-gallery-pagination button:hover:not(:disabled){background:#e0f0fa}
.photo-gallery-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:12px 0 18px}
.photo-gallery-toolbar label{font-size:15px;font-weight:700;display:flex;align-items:center;gap:10px}
.photo-gallery-toolbar select{font:inherit;padding:10px 34px 10px 12px;border:1px solid #b9d0df;border-radius:10px;background:#fff;color:#193950;max-width:100%}
.photo-gallery-count,.photo-gallery-status{color:#506676;font-size:14px}
.photo-gallery-status{background:transparent!important;border:0!important;padding:10px 0!important;box-shadow:none!important;color:#506676!important}
.photo-gallery-status:empty{display:none}
.photo-gallery-pagination{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin:24px 0 10px}
.photo-gallery-pagination:empty{display:none}
.photo-gallery-pagination button:disabled{opacity:.4;cursor:not-allowed}
.gallery-page-indicator{font-weight:700;font-size:15px}
.photo-submit-success{display:flex!important;flex-direction:column;gap:10px;border:2px solid #1671a9;background:#e9f6ff;color:#103b56!important;border-radius:18px;padding:22px 24px!important;margin-top:18px;box-shadow:0 12px 32px rgba(8,79,130,.12);font-size:18px;line-height:1.55}
.photo-submit-success::before{content:'✓ Submission received';display:block;font-weight:800;letter-spacing:.03em;color:#0a5684;text-transform:uppercase;font-size:14px}
.photo-submit-success strong{font-size:clamp(22px,3vw,28px);line-height:1.2}
.photo-submit-success span{display:block}
.photo-form-error{color:#96371e!important;font-weight:700}
.photo-share-dialog{position:fixed;max-width:min(680px,calc(100vw - 28px));max-height:90dvh;overflow-y:auto;border:0;border-radius:22px;padding:22px;box-shadow:0 24px 80px rgba(9,30,47,.4);background:#fff;color:#193950}
.photo-share-dialog::backdrop{background:rgba(4,20,33,.74)}
.photo-share-dialog>img{width:100%;max-height:58vh;object-fit:contain;border-radius:12px;background:#eef4f7}
.photo-share-dialog>p{margin:12px 0;font-size:17px;line-height:1.5}
.photo-share-dialog .photo-modal-credit{font-size:14px;color:#46657b}
.photo-share-close{display:block;margin:0 0 12px auto;border:1px solid #c6d8e4;border-radius:10px;background:#fff;padding:8px 12px;cursor:pointer}
.photo-share-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.photo-share-dialog>small{display:block;font-size:13px;color:#5a6c78;line-height:1.45}
.photo-share-feedback{overflow-wrap:anywhere;font-size:14px!important;color:#0b4f8a}
@media(max-width:1050px){.visitor-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.visitor-photo-grid{grid-template-columns:1fr}.photo-gallery-toolbar{align-items:stretch;flex-direction:column}.photo-gallery-toolbar label{justify-content:space-between}.photo-submit-success{padding:18px!important}.photo-share-dialog{padding:14px}}
@media(prefers-reduced-motion:reduce){.photo-card-image-button img{transition:none}}
