/* Shared media styling; retains existing site colors and layout. */
.cover img { transition: transform .32s ease; }
.cover:hover img:not([hidden]) { transform: scale(1.035); }
.detail-cover img, .image-grid .cover img { object-fit: contain; }
img[data-photo-view] { cursor: zoom-in; }
img[data-photo-view]:focus-visible { outline: 2px solid #a9dfc6; outline-offset: -3px; }
.photo-dialog { border: 1px solid #29403b; background: #0b1718; color: #d0e4da; padding: 18px; border-radius: 12px; max-width: min(94vw, 1200px); max-height: 94vh; }
.photo-dialog::backdrop { background: rgba(0, 8, 9, .85); }
.photo-dialog img { display: block; max-width: min(85vw, 1100px); max-height: 72vh; width: auto; height: auto; object-fit: contain; margin: 12px auto; }
.photo-dialog p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 85vw; }
.photo-dialog button { display: block; margin-left: auto; padding: 7px 14px; border: 1px solid #426157; border-radius: 7px; color: #a9dfc6; background: #122321; cursor: pointer; }
.photo-upload-panel { margin: 18px 0; }
.photo-upload-panel input[type=file] { max-width: 100%; }
.photo-upload-panel #uploadPreview:not([hidden]) { display: block; max-width: 260px; max-height: 200px; object-fit: contain; margin: 12px 0; border-radius: 8px; }
.photo-upload-panel button { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .cover img { transition: none; } }
