
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #eef2f5;
    color: #333;
    line-height: 1.6;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #006994 0%, #00334e 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-style: italic;
    opacity: 0.9;
    margin-top: 10px;
}

#galerie-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 10px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,105,148,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    border: 1px solid #ddd;
}

.card h3 {
    color: #006994;
    margin: 15px 0 10px 0;
}

a {
    color: #006994;
    text-decoration: underline;
}
a:hover {
    color: #DC002E;
    text-decoration: none;
}

.source-link {
    display: block;
    margin-top: 15px;
    font-size: 0.85em;
    color: #7f8c8d;
    text-decoration: none;
}
.source-link:hover {
    text-decoration: underline;
}

input, textarea, button {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: #006994;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

button:hover { background-color: #004e6e; }

input:focus, textarea:focus, button:focus, a:focus {
    outline: 2px solid #DC002E;
    outline-offset: 2px;
}

#contribution {
    background: white;
    padding: 40px;
    margin-top: 60px;
    border-radius: 12px;
    border-left: 5px solid #006994;
}

.contribution-layout {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

form {
    flex: 1;
    min-width: 300px;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#preview-area {
    flex: 1;
    min-width: 300px;
    border: 2px dashed #006994;
    background-color: #f9fbfc;
}
.hidden { display: none; }

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9);
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
}

.modal-content-text {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 60%;
    max-width: 600px;
    position: relative;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2em;
}

.close-zoom, .close-legal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close-legal { color: #333; top: 10px; right: 20px;}

footer {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 0.9em;
}

.feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}