* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    padding: 32px 20px;
}

header h1 {
    margin: 0 0 8px;
    color: #111827;
}

header p {
    margin: 0;
    color: #6b7280;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 35px 20px 60px;
}

.edition-grid {
    max-width: 850px;
    margin: 30px auto;

    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}

.edition-card {
    display: block;
    background: white;
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.08);
}

.edition-card:hover {
    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.14);
}

.edition-year {
    color: #2563eb;
    font-size: 36px;
    font-weight: bold;
}

.edition-name {
    color: #6b7280;
    margin-top: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.search-box {
    max-width: 620px;
    margin: 0 auto 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    padding: 13px 15px;

    border:
        1px solid #d1d5db;

    border-radius: 7px;
}

.search-box button {
    border: 0;
    border-radius: 7px;

    background: #2563eb;
    color: white;

    padding: 13px 24px;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;
}

.message {
    text-align: center;

    margin:
        20px 0 30px;

    font-size: 18px;
    font-weight: 600;
}

.gallery {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 24px;
}

.photo-card {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.08);
}

.photo-card img {
    display: block;

    width: 100%;
    height: 350px;

    object-fit: contain;

    background: #111827;
}

.photo-footer {
    padding: 14px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    font-size: 14px;
}

.photo-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.not-found {
    max-width: 600px;

    margin: 50px auto;

    background: white;

    border-radius: 12px;

    padding: 40px;

    text-align: center;
}

@media (max-width: 600px) {

    .search-box form {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        height: auto;
    }

}
