.gallery-title {
    text-align: center;
    margin: 30px 0;
    font-size: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Hover overlay */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    transform: translateY(100%);
    transition: 0.3s;
    color: white;
}

.item:hover .overlay {
    transform: translateY(0);
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
}

#lightbox .text {
    margin-top: 10px;
    color: white;
    text-align: center;
}