.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; } .modal-overlay.active { display: flex; } .modal { background: #fff; border-radius: 8px; max-width: 600px; width: 95%; max-height: 90vh; overflow-y: auto; padding: 16px; position: relative; } .modal h3 { color: var(--prorail-blue); margin-bottom: 10px; font-size: 14px; } .modal-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 22px; cursor: pointer; color: #666; } .modal-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; } .modal-actions button, .modal-actions label { background: var(--prorail-blue); color: #fff; border: none; padding: 10px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .modal-actions button:hover, .modal-actions label:hover { background: #004db3; } .modal-actions input[type="file"] { display: none; } .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; } .photo-grid .empty { color: #888; font-size: 12px; padding: 10px; } .photo-thumb { position: relative; aspect-ratio: 4/3; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; cursor: pointer; } .photo-thumb img { width: 100%; height: 100%; object-fit: cover; } .photo-thumb .delete-btn { position: absolute; top: 2px; right: 2px; background: rgba(255,0,0,0.8); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; } .photo-thumb .photo-time { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 8px; text-align: center; padding: 1px; } .lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; cursor: zoom-out; } .lightbox.active { display: flex; } .lightbox img { max-width: 95%; max-height: 95vh; object-fit: contain; }