/* Gallery Section Styling */
.gallery-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
    color: #333;
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    width: 95%; /* Ensures some padding on smaller screens */
}

.gallery-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    max-width: 1300px; /* Match gallery-section width */
    margin: 0 auto;
}

.gallery-card {
    width: 100%;
    max-width: 500px; /* Increased from 400px */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 500;
}

.gallery-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Gallery Container */


.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 50%;
}

/* Gallery Card - Consolidated Styles */


.gallery-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100px; /* Changed from fixed height to min-height */
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #222;
}

.card-content p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.button-container {
    margin-top: auto;
    text-align: center;
}

.view-button, 
.view-gallery { /* Consolidated button styles */
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}



.hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-column {
        max-width: 100%;
        width: 100%;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .card-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 40px 15px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 15px;
        min-height: auto;
    }
}