body.page-gallery {
    background-image: none !important; 
    background-color: #fffbee !important; 
}

.page-gallery .container, .page-evli-ciftler .container{
    max-width: 90%; min-height: 40vh;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.page-evli-ciftler .container{
    max-width: 70%; min-height: 60vh;
    align-content: start;
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    aspect-ratio: 4/3; width: 100%;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.5s ease;
}

.gallery-item:hover{
    transform: scale(1.02);
    opacity: 0.8;
}

.gallery-item img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
}

.card-text {
    padding: 5px;
    text-align: center;
    font-size: 13px;
}

.lightbox {
    position: fixed;
    display: flex;
    background-color: rgba(0,0,0,0.6);
    width: 100%; height: 100%;
    top: 0; left: 0;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: inline-block;
}

.lightbox-content img { 
    max-height: 85vh;
    border: 6px solid white;
    border-radius: 5px;
}

.lightbox-prev, .lightbox-next {
    position: fixed;
    color: white;
    padding: 9px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

@media (max-width: 767px) {
    .page-gallery .container{
        grid-template-columns: repeat(2, 1fr);
    }

}