#secondpage {
    position: relative;
    width: 100vw;
    /* Changed height to min-height to allow content expansion */
    /* 220vh if 24 sponsors and 120vh if 12 sponsors excluding title sponsor  */
    min-height: 220vh;
    background-color: #0F1321;
    padding-bottom: 11px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* Removed overflow: hidden to show all content */
}

.tsc {
    width: 100vw;
    margin: 2.5%;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    /* Properly center content */
    translate: -3%;

}

.ts {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    transition: transform 0.3s ease;
    width: 30%; /* Increased width */
    background-color: rgba(255, 255, 255, 0.486);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.gallery-title {
    color: white;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 0;
    font-size: clamp(30px, 8vw, 80px);
}
.gallery-title2 {
    color: white;
    text-transform: uppercase;
    text-align: center;
    margin: 0 auto;
    padding: 2rem 0;
    font-size: clamp(20px, 8vw, 40px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* Added padding for better spacing */
    margin-bottom: 5%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.486);
}

/* Fixed hover selector structure */
.gallery-item:hover,
.ts:hover {
    transform: translateY(-5px);
}


.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    /* filter: drop-shadow(0 0 black); */
    display: block;
    transition: transform 0.3s ease;
}

.ts img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;

}

/* Fixed hover selector for images */
.gallery-item:hover img,
.ts:hover img {
    transform: scale(1.05);
}

.image-caption {
    padding: 15px;
    background-color: white;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .gallery-grid {
        gap: 15px;
        padding: 10px;
    }

    .ts {
        max-width: 90vw;
        /* Better mobile width */
        width: 100%;
    }

    .gallery-item,
    .ts {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}
