

    .gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin: 20px auto;
        max-width: 1200px;
            padding: 20px;
    }


@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    background-color: #dbeffe;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-img-wrapper {
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    position: relative;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}

.gallery-info h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.gallery-info p {
    margin: 0;
    color: #777;
}

.gallery-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-info::before {
    opacity: 1;
}

@media (max-width: 600px) {
    .gallery-img-wrapper {
        padding-top: 100%; /* Keep the aspect ratio 1:1 */
    }
}

@media (max-width: 400px) {
    .gallery-info h3 {
        font-size: 1em;
    }
}