:root {
    --white: #ffffff;
}

.gallery-header {
    text-align: center;
    padding-top: 50px !important;
    padding-bottom: 60px !important;
    background-color: #032475;
    margin-bottom: 50px;
}

.section-header h2 {
    color: white;
    font-size: 2.5rem;
    display: inline-block;
    top: 70%;
    transform: translateY(-70%);
    margin-left: 15px;
    margin-right: 10px;
}

.section-header p {
    color: white;
    font-size: 1.4rem;
    margin-top: 10px;
}

.gallery-container {
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f0f0f0;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    
    .gallery-item.wide, .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .section-padding {
        padding: 0px 5%;
    }
}

/* Base: Hidden */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Active: Triggered by JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo {
    position: relative;
    display: inline-block;
    height: 100px;
}

@media screen and (max-width: 768px) {
    .sponsors-header {
        height: 200px;
    }

    .section-header {
        top: 0;
        transform: translateY(0);
        position: relative;
    }

    .hero-logo {
        display: none;
    }

    .section-header h2 {
        font-size: 2.5rem;
        top: 0;
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .section-header h2 {
        font-size: 1.6rem;
    }
}