/* Projekt - Fotogalerie */

body {
    display: grid;
    grid-template-columns: 1fr 150px;
    background-color: whitesmoke;
    margin: 0;
    padding: 20px;
    gap: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header, nav, section, footer {
    background-color: white;
    border-bottom: 4px solid dodgerblue;
    border-radius: 10px;
    padding: 20px;
}

header, footer {
    grid-column: 1 / 3; 
    background-color: black; 
    color: white;
    border-bottom: none;
}

header {
    text-align: left;
}

footer {
    text-align: center;
}

section {
    grid-column: 1 / 2;
    grid-row: 2; 
    min-height: 500px;
}

nav {
    grid-column: 2 / 3;
    grid-row: 2; 
    text-align: center;
}

nav a {
    display: block;
    background-color: dodgerblue;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 6px;
}

nav a:hover {
    background-color: steelblue;
}

img {
            height: auto;
            border-radius: 10px;
            margin: 25px auto;
            object-fit: cover;
            max-width: 500px;
            height: 250px;
        }

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 10px;
    padding: 20px;
}

.galerie-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.menu a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}