/* Gallery Styles for NSRSIT */

.gallery-section {
    padding: 80px 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery {
    display: flex;
    width: 95vw;
    max-width: 1200px;
    height: 500px; /* Adjusted from 600px for better fit */
    gap: 12px;
    margin-top: 40px;
}

.photo-card {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

/* HOVER STATES */
.photo-card:hover {
    flex: 5;
}

.photo-card:hover img {
    transform: scale(1);
}

.gallery:hover .photo-card:not(:hover) {
    flex: 0.4;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
        height: auto;
        width: 90vw;
    }
    
    .photo-card {
        height: 300px;
        width: 100%;
    }
    
    .photo-card:hover {
        flex: 1; /* Disable expansion on mobile for better usability */
    }
}
