/* ====== Gallery Section ====== */
.gallery-section {
    padding: 80px 0;
    margin-top: 60px;
    background-color: #f8f9fa;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 10px;
}

.gallery-subtitle {
    color: #0CC0DF;
    font-family: "GlitterySnowfall", sans-serif;
    font-size: 23px;
    line-height: 26px;
    margin-bottom: 16px;
}

.gallery-title {
    font-size: 45px;
    line-height: 55px;
    font-family: "Oswald", sans-serif;
    color: #072010;
    font-weight: 700;
    margin-bottom: 15px;
}

.gallery-description {
    color: #072010;
    margin-bottom: 26px;
    letter-spacing: 0.1px;
}


.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}


.gallery-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.gallery-caption {
    background-color: #0CC0DF;
    color: #fff;
    padding: 10px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    height: 60px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;                
    align-items: center;         
    justify-content: center;      
    text-align: center;
    text-wrap: balance;          
    text-align: center;
    line-height: 1.2;
}


.gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
}

.gallery-photo {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}

/* ====== Gallery Responsive ====== */
@media (max-width: 991px) {
    .gallery-card {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
    .gallery-grid {
        padding-left: 10px;  
        padding-right: 10px; 
    }
}

@media (max-width: 767px) {
    .gallery-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    .gallery-grid {
        padding-left: 10px;  
        padding-right: 10px; 
    }
    .gallery-caption {
        font-size: 11px;
        font-weight: 800;
    }
}

@media (max-width: 375px) {
    .gallery-card {
        flex: 0 0 calc(50% - 10px); 
        max-width: calc(50% - 10px);
    }
    .gallery-grid {
        padding-left: 10px;  
        padding-right: 10px; 
    }
    .gallery-caption {
        font-size: 11px;
        font-weight: 800;
    }
}
