.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Resimler arası boşluk */
    justify-content: center;
}

.gallery-img {
    max-width: 250px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;

    padding:5px;
}

    .gallery-img:hover {
        transform: scale(1.05);
    }

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    display: inline-block; /* Resim boyutuna göre kapsayıcı */
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #fff;
    border-radius: 5px;
    display: block;
}

#close-btn {
    position: absolute;
    top: 5px;
    right: 90px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
}

    #close-btn:hover {
        color: #ffcd10;
        background: rgba(0,0,0,0.7);
    }

@media screen and (max-width: 768px) {
    .gallery-img {
        max-width: 250px;
        width: 90%;
    }
}
