* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Viga', sans-serif;
    line-height: 1.6;
}

/* Header with Parallax */
.header {
    height: 300px;
    width: 100%;
    background-image: url('Images/header_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Changed to scroll for mobile consistency */
    display: flex;
    flex-direction: column; /* Fixed typo: Flex-direction -> flex-direction */
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    background-color: #999999;
}

.logo {
    width: 150px;
    height: auto;
    max-width: 100%;
    display: block;
    transition: width 0.3s ease;
    margin: 10px;
}

.brand {
    text-align: center;
}

/* Menu with Viga Font */
.menu {
    height: 80px;
    background-color: #fff;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #999999;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.menu.scrolled {
    background-color: rgba(255, 255, 255, 0.75);
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu ul li a {
    text-decoration: none;
    font-family: 'Viga', sans-serif;
    font-weight: 400;
    font-size: 20px; /* Base size for desktop */
    color: #000;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu ul li a:hover {
    transform: scale(1.1);
    color: #666;
}

/* Media Queries */
@media (max-width: 768px) {
    .header {
        height: clamp(150px, 40vw, 300px);
        flex-direction: column;
        background-size: cover;
        background-attachment: scroll;
    }

    .logo {
        width: clamp(75px, 20vw, 150px);
    }

    .brand {
        display: none;
    }

    .menu {
        height: auto;
        padding: 10px 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .menu ul li a {
        font-size: clamp(20px, 5vw, 24px); /* Responsive: 20px min, scales with viewport, 24px max */
    }

    .gallery-grid {
        flex-direction: column;
        padding: 0 10px;
    }

    .gallery-grid img {
        max-width: 100%;
        margin: 10px 0;
    }

    .cons {
        min-height: auto;
        height: auto;
        padding: 20px 10px;
    }

    .cons p {
        width: 100%;
        max-width: 344px;
    }

    .social-icons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

/* Rest of your CSS remains unchanged */

/* Art Gallery */
.gallery {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
}

.gallery h3 {
    font-family: 'Viga', sans-serif;
    font-weight: 400;
    font-size: 28px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 30px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery-grid a {
    display: block;
    text-decoration: none;
}

.gallery-grid img {
    width: 100%; /* Makes images fully responsive */
    max-width: 300px; /* Smaller cap for mobile fit */
    height: auto;
    object-fit: cover;
    border: 2px solid #fff;
    transition: transform 0.3s, border-color 0.3s;
    margin: 10px; /* Reduced from 15px to save space */
}

/* Remove commented-out properties for clarity */
/* max-height: 730px; */
/* aspect-ratio: 1 / 1; */

.gallery-grid img:hover {
    transform: scale(1.05);
    border-color: #999999;
}

/* Conventions (Shows) */
.cons {
    min-height: 400px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.cons h3 {
    font-family: 'Viga', sans-serif;
    font-weight: 400;
    font-size: 28px;
    text-transform: uppercase;
    color: #000;
}

.cons br {
    display: none; /* Hides any stray <br> tags */
}

.cons p {
    background-color: #000;
    color: #fff;
    padding: 15px 25px;
    margin: 10px;
    width: 400px; /* Fixed width for uniform boxes */
    display: flex;
    flex-direction: column; /* Stacks name and date vertically */
    align-items: center; /* Centers content */
    justify-content: center; /* Vertically centers the two lines */
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.cons p a {
    color: #fff;
    text-decoration: none;
}

.cons p .con-name {
    font-size: 18px; /* Larger for emphasis */
    line-height: 1.2; /* Tight line height */
}

.cons p .con-date {
    font-size: 16px; /* Smaller for hierarchy */
    line-height: 1.2;
}

.cons p:hover {
    transform: scale(1.05) skewX(-10deg);
    background-color: #999;
    color: #000;
}

.cons p:hover a {
    color: #000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cons p {
        width: 100%;
        max-width: 344px; /* Fits iPhone SE at 375px */
    }
}
/* Footer */
.footer {
    height: 400px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    text-decoration: none;
}

.social-icons .social-icon {
    width: 50px;
    height: 50px;
    fill: #fff;
    transition: transform 0.3s ease;
}

.social-icons .social-icon:hover {
    transform: scale(1.1);
}

.footer-info {
    font-size: 12px;
    margin-top: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #999999;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.2);
    background-color: #777;
}

/* Media Queries */
@media (max-width: 768px) {
    .header {
        height: clamp(150px, 40vw, 300px);
        flex-direction: column;
        background-size: cover;
        background-attachment: scroll;
    }

    .logo {
        width: clamp(75px, 20vw, 150px);
    }

    .brand {
        display: none;
    }

    .menu {
        height: auto;
        padding: 10px 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .menu ul li a {
        font-size: clamp(20px, 5vw, 24px); /* Responsive: 20px min, scales with viewport, 24px max */
    }

    .gallery-grid {
        flex-direction: column;
        padding: 0 10px;
    }

    .gallery-grid img {
        max-width: 100%;
        margin: 10px 0;
    }

    .cons {
        min-height: auto;
        height: auto;
        padding: 20px 10px;
    }

    .cons p {
        width: 100%;
        max-width: 344px;
    }

    .social-icons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .gallery-grid a {
        flex: 0 0 calc(33.33% - 30px); /* 3 columns: 33.33% width minus gap */
    }
}