/* ==========================================================================
 * 1. Fonts & Global Reset
 * ========================================================================== */
@font-face {
    font-family: 'Benne';
    src: url('../../fonts/Benne-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

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

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../Pictures/mainbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f4f7f6;

    font-family: 'Benne', serif;
    font-weight: 500;
    line-height: 1.7;
    color: #333333;

    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ==========================================================================
 * 2. Header & Navigation Styles
 * ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: calc(2.2rem + 5px);
    color: #1a202c;
    margin-bottom: 12px;
}

.lang-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    background-color: #007bff;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 19px;
    font-weight: bold;
}

nav {
    font-size: calc(1rem + 5px);
    font-weight: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

nav a:hover,
nav a.active {
    background-color: #e2e8f0;
    color: #2b6cb0;
}

/* ==========================================================================
 * 3. Main Content & Responsive Gallery Grid
 * ========================================================================== */
main {
    width: 100%;
    max-width: 650px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.gallery-intro h2 {
    font-size: calc(1.5rem + 5px);
    color: #2d3748;
    margin-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
}

.gallery-intro p {
    color: #4a5568;
    font-size: calc(1.05rem + 5px);
    margin-bottom: 20px;
}

/* Auto-fitting Responsive Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.caption {
    padding: 10px 12px;
    font-size: calc(0.9rem + 5px);
    color: #4a5568;
    text-align: center;
    font-weight: bold;
}

/* ==========================================================================
 * 4. Mobile-only fixes (max-width: 699px)
 * ========================================================================== */
@media (max-width: 699px) {
    header {
        padding-top: 16px;
    }

    .lang-btn {
        position: static;
        display: inline-block;
        margin: 0 0 10px 0;
    }

    nav a {
        padding: 6px 12px;
    }
}

/* ==========================================================================
 * 5. Desktop Layout: ~95% screen width
 * ========================================================================== */
@media (min-width: 700px) {
    header,
    footer {
        width: 95%;
        max-width: 1400px;
    }

    main {
        width: 95%;
        max-width: 1400px;
    }
}

/* ==========================================================================
 * 6. Footer Styles
 * ========================================================================== */
footer {
    width: 100%;
    max-width: 650px;
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

footer p {
    color: #4a5568;
    font-size: calc(0.9rem + 5px);
}
