﻿.lg-outer.lg-show-after-load .lg-item.lg-complete .lg-object {
    background-color: white;
}

/* Masonry container */
.projects-grid {
    width: 100%;
}

/* Each item */
.project-item {
    width: 25%; /* 4 columns */
    padding: 10px;
}

@media only screen and (max-width: 600px) {
    .project-item, .grid-sizer, .projects-grid.pf_5_cols .project-item, .projects-grid.pf_4_cols .project-item, .projects-grid.pf_2_cols .project-item {
        width: 48%;
    }
    .project_filters li a
    {
        font-size:11px;
        line-height: .2rem! important
    }
    h6{
        font-size:14px;
    }
}

@media (max-width: 1200px) {
    .project-item {
        width: 33.33%;
    }
    /* 3 columns */
}

@media (max-width: 768px) {
    .project-item {
        width: 50%;
    }
    /* 2 columns */
}

@media (max-width: 480px) {
    .project-item {
        width: 100%;
    }
    /* 1 column */
}

/* The box */
.projects-box {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

    /* Fixed image size (180×180) */
    .projects-box img {
        width: 180px;
        height: 180px;
        object-fit: contain;
        display: block;
        margin: auto;
    }

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.projects-box:hover .overlay {
    opacity: 1;
}


.logo-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.logo-item {
    position: relative;
    overflow: hidden;
}

    .logo-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        padding: 10px;
        transition: transform 0.4s ease;
    }

    .logo-item:hover img {
        transform: scale(1.1);
    }

/* Overlay */
.logo-caption {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 17px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
}

.logo-item:hover .logo-caption {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .logo-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .logo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
