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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: #f5f5f5;
    color: #333;
}

header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

nav a:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-info h3 {
    margin-bottom: 0.5rem;
}

.editor {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editor h2 {
    margin: 1.5rem 0 1rem 0;
}

.editor h2:first-child {
    margin-top: 0;
}

#photoForm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 500px;
}

#photoForm input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#photoForm button {
    padding: 0.75rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#photoForm button:hover {
    background: #555;
}

.photo-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.photo-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    align-items: center;
}

.photo-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.photo-item-info {
    flex: 1;
}

.photo-item button {
    padding: 0.5rem 1rem;
    background: #d33;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
