.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Content overlay */
.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Show content on hover */
.gallery-item:hover .gallery-content {
    opacity: 1;
    transform: translateY(0);
}

/* Zoom image on hover */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Button styling */
.gallery-content .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #ff6600;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.gallery-content .btn:hover {
    background-color: #e05500;
}

.gallery-content {
    position: absolute;
    bottom: 0;              /* start from bottom */
    width: 100%;
    height: 70%;            /* 👈 limit to 70% */
    
    opacity: 0;
    transform: translateY(100%); /* hidden below */
    transition: all 0.7s ease;
}

.gallery-item:hover .gallery-content {
    opacity: 1;
    transform: translateY(0); /* slide up into view */
}

.gallery-item {
    position: relative;
    overflow: hidden; /* prevents overflow */
}