.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

/* card */

.gallery-card {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 6px;
}

/* image zoom */

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* dark overlay */

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;
    transition: opacity 0.4s ease;
}

/* info box animation */

.hover-box {
    background: white;
    text-align: center;
    width: 85%;
    height: 85%;
    border-radius: 6px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transform: translateY(30px);
    opacity: 0;

    transition: all 0.4s ease;
}

/* hover effects */

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

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

.gallery-card:hover .hover-box {
    transform: translateY(0);
    opacity: 1;
}

/* text */

.hover-box h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #2a6f7c;
}

.hover-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.location {
    display: inline-block;
    padding: 8px 16px;
    background: #4ea7b3;
    color: white;
    font-size: 14px;
}

/* tablet */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 30px 20px;
    }

    .gallery-card img {
        height: 220px;
    }
}

/* small tablet / large phone */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .gallery-card img {
        height: 200px;
    }
}

/* mobile */
@media screen and (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 25px 16px;
    }

    .gallery-card img {
        height: 220px;
    }

    .hover-box h4 {
        font-size: 16px;
    }

    .hover-box p {
        font-size: 13px;
    }
}