/* --------------------------------------------------
   Basic page
-------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    background: #e9e9e9;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #e9e9e9;
}

.site {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}


/* --------------------------------------------------
   Banner
-------------------------------------------------- */

.banner {
    width: 100%;
    background: #111;
    text-align: center;
    overflow: hidden;
}

.banner img {
    display: block;

    width: 1300px;
    height: 180px;

    max-width: 100%;
    margin: 0 auto;

    object-fit: cover;
}


/* --------------------------------------------------
   Navigation
-------------------------------------------------- */

.navigation {
    padding: 12px 25px;

    background: #333;
    color: #fff;

    font-size: 15px;
    font-weight: bold;

}

.navigation a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.navigation a:hover {
    text-decoration: underline;
}


/* --------------------------------------------------
   Main content
-------------------------------------------------- */

main {
    padding: 30px;
}

h1 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 28px;
    font-weight: normal;
}


/* --------------------------------------------------
   Location thumbnails
-------------------------------------------------- */

.location-grid {
    display: grid;

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

    gap: 25px;
}

.location-card {
    display: block;

    color: #222;
    text-decoration: none;

    background: #f4f4f4;

    border: 1px solid #ddd;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.location-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.18);
}

.location-card img {
    display: block;

    width: 100%;
    height: 170px;

    object-fit: cover;
}

.location-title {
    padding: 15px;

    font-size: 18px;
    text-align: center;
}


/* --------------------------------------------------
   Photo grid
-------------------------------------------------- */

.photo-grid {
    display: grid;

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

    gap: 15px;
}

.photo-card {
    display: block;

    background: #111;

    overflow: hidden;

    aspect-ratio: 4 / 3;
}

.photo-card img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.2s ease;
}

.photo-card:hover img {
    transform: scale(1.04);
}


/* --------------------------------------------------
   Full-size photograph
-------------------------------------------------- */

.large-photo {
    width: 100%;

    text-align: center;

    background: #111;

    padding: 15px;
}

.large-photo img {
    display: block;

    max-width: 100%;
    max-height: 75vh;

    width: auto;
    height: auto;

    margin: 0 auto;
}


/* --------------------------------------------------
   Previous / Next controls
-------------------------------------------------- */

.photo-navigation {
    display: flex;

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

    gap: 10px;

    margin-top: 20px;

    flex-wrap: wrap;
}

.nav-button {
    display: inline-block;

    padding: 10px 18px;

    background: #333;
    color: #fff;

    text-decoration: none;

    border-radius: 3px;
}

.nav-button:hover {
    background: #555;
}

.nav-button.disabled {
    background: #ccc;
    color: #777;
}


/* --------------------------------------------------
   Counter / messages
-------------------------------------------------- */

.photo-counter {
    text-align: center;

    color: #777;

    margin-top: 15px;
}

.message {
    padding: 20px;

    background: #f5f5f5;

    color: #666;
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

footer {
    padding: 20px;

    background: #333;

    color: #aaa;

    text-align: center;

    font-size: 13px;
}


/* --------------------------------------------------
   Mobile adjustments
-------------------------------------------------- */

@media (max-width: 600px) {

    body {
        padding: 0;
    }

    .site {
        width: 100%;
        box-shadow: none;
    }

    main {
        padding: 20px;
    }

    .banner img {
        height: auto;
        aspect-ratio: 4 / 1;
    }

    h1 {
        font-size: 24px;
    }

    .location-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .location-card img {
        height: 120px;
    }

    .location-title {
        padding: 10px 5px;
        font-size: 15px;
    }

    .photo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .large-photo {
        padding: 5px;
    }

    .photo-navigation {
        gap: 6px;
    }

    .nav-button {
        padding: 9px 12px;
    }
}
