/* GALLERY SECTION */

.gallery {
    width: 100%;
    padding: 80px 20px;
    background: #020617;
    text-align: center;
}

/* TITLE */

.gallery h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 40px;
}

/* GRID (FIXED BOX SYSTEM) */

.masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;

    max-width: 1200px;
    margin: auto;

    /* Glass */
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    padding: 20px;
    border-radius: 20px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

/* IMAGE BOX FIX */

.masonry img {
    width: 100%;
    height: 220px; /* 🔥 FIX SIZE */
    object-fit: cover; /* crop nicely */

    border-radius: 12px;

    transition: 0.4s;

    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* HOVER */

.masonry img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);

    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

/* REMOVE OLD SIZE EFFECT */

.masonry img.tall,
.masonry img.big {
    height: 220px;
}

/* 📱 TABLET */

@media (max-width: 1024px) {
    .masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 📱 MOBILE → 2 IMAGE SIDE BY SIDE */

@media (max-width: 768px) {
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery h2 {
        font-size: 28px;
    }
}

/* 📱 SMALL MOBILE */

@media (max-width: 480px) {
    .masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}