﻿/* Lightgallery responsive styles */
.lightgallery {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

    .lightgallery li {
        padding: 0;
        margin-bottom: 15px;
    }

    .lightgallery .check-km {
        display: block;
        cursor: pointer;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        position: relative;
    }

        .lightgallery .check-km:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            transform: translateY(-5px);
        }

    .lightgallery img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .lightgallery .check-km:hover img {
        transform: scale(1.1);
    }

/* Responsive adjustments */
@media (min-width: 992px) {
    /* Large screens: 4 images per row */
    .lightgallery img {
        height: 220px;
    }
}

@media (max-width: 991px) {
    /* Smaller screens: 2 images per row */
    .lightgallery img {
        height: 250px;
    }
}

@media (max-width: 575px) {
    /* Mobile: 2 images per row with smaller height */
    .lightgallery img {
        height: 180px;
    }

    .lightgallery {
        gap: 10px;
    }

        .lightgallery li {
            margin-bottom: 10px;
        }
}

/* Image effect overlay (optional) */
.img-effect2 .check-km::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.img-effect2 .check-km:hover::after {
    background: rgba(0,0,0,0.2);
}