body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

h1 {
    text-align: center;
    padding: 18px 10px;
    background: linear-gradient(90deg, #ff7eb3 0%, #ff758c 100%);
    color: #fff;
    margin: 0;
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 16px rgba(167, 112, 239, 0.15);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    cursor: pointer;
}

.nav {
    text-align: center;
    padding: 14px 0;
    background: white;
}

.nav a {
    display: inline-block;
    margin: 0 8px;
    padding: 6px 14px;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    background: #a770ef;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(167, 112, 239, 0.12);
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 1px;
}

.nav a:hover {
    background: #e0c4dd;
    color: #a770ef;
    transform: translateY(-2px) scale(1.05);
}

.upload .form {
    padding: 20px;
    max-width: 400px;
    margin: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.upload input[type=file] {
    display: block;
    margin-bottom: 15px;
    width: 100%;
}

.upload button {
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.upload button:hover {
    background: #218838;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.delete-link {
    display: inline-block;
    padding: 8px 16px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.2s;
    text-align: center;
    cursor: pointer;
}

.delete-link:hover {
    background: #d9363e;
}