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

body {
    font-family: -apple-system, "Helvetica Neue", Helvetica, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

/* Login */
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 24px;
}

.login h1 {
    font-size: 28px;
    font-weight: 300;
}

.login form {
    display: flex;
    gap: 8px;
}

.login input {
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.login input:focus {
    border-color: #007aff;
}

.login button {
    padding: 10px 20px;
    font-size: 16px;
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Gallery */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.gallery h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 4px;
}

.gallery .count {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.gallery .empty {
    color: #888;
    padding: 48px 0;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.thumb {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.thumb:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.thumb .date {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #888;
}

/* Photo page */
.photo-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.back {
    display: inline-block;
    color: #007aff;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 16px;
}

.photo-frame {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: 14px;
    color: #888;
}

.photo-info .download {
    margin-left: auto;
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
}
