@font-face {
    font-family: 'Pacifica Condensed';
    src: url('../fonts/Pacifica-Condensed-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    color: #fff;
}

.topbar {
    width: 100%;
    background: transparent;
    padding: 0.5em 0 0.2em 0;
    text-align: center;
    font-size: 2.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 10;
    position: relative;
    font-family: 'Pacifica Condensed', 'Helvetica Neue', Arial, sans-serif !important;
}

.divider {
    width: 33vw;
    max-width: 340px;
    height: 2px;
    background: #444;
    margin: 0.5em auto 0.5em auto;
    border-radius: 2px;
}

.navbar {
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    gap: 2.5em;
    padding: 0.7em 0 0.7em 0;
    z-index: 9;
    position: relative;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.2s;
    font-family: 'Pacifica Condensed', 'Helvetica Neue', Arial, sans-serif !important;
    text-transform: none;
}

.navbar a:hover {
    color: #0080ff;
}

.banner {
    /* Remove width: 100vw; */
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    margin-bottom: 12px; /* Add space below the banner */
}

.banner-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    min-height: 400px;
    object-fit: contain;
    background: transparent;
    margin: 0 auto;
}

.image-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    padding: 0 4px; /* Reduced padding */
    margin-left: 33px; /* Adjust this value to control the left margin of the entire grid */
    box-sizing: border-box;
}

.grid-item {
    box-sizing: border-box;
    width: 15%; /* Default small size for edge items */
    margin: 0 0 2px 0.05%;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* Make middle items of each row larger */
.grid-item:nth-child(4n+2),
.grid-item:nth-child(4n+3) {
    width: 31%; /* Larger size for middle items */
}

/* Keep edge items smaller */
.grid-item:nth-child(4n+1),
.grid-item:nth-child(4n+4) {
    width: 15%;
}

/* Add top margin between rows */
.grid-item:nth-child(n+5) {
    margin-top: 10px;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .topbar {
        font-size: 1.3rem;
    }

    .navbar {
        gap: 1em;
        font-size: 0.9em;
    }

    .image-grid {
        padding: 0 6px;
    }

    .grid-item {
        width: 46%; /* Slightly smaller for mobile */
        margin: 0 2% 12px 2%;
    }

    .image-grid img {
        height: 180px;
    }

    .banner-img {
        max-height: 40vh;
        min-height: 180px;
    }

    .divider {
        width: 60vw;
    }
}