.modern-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(-8px);
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .modern-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .modern-gallery {
        grid-template-columns: 1fr;
    }
}






.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(90deg, #111, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.gallery-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #000, #888);
    margin: 12px auto 0;
    border-radius: 10px;
}

.gallery-subtitle {
    font-size: 16px;
    color: #777;
    letter-spacing: 1px;
}



