/**
 * Custom styles for the Smooth Image Display Plugin (Frontend)
 * Version: 2.0 - Professional Visual Upgrade
 */

/* --- Grid Styles (Polished Aesthetic) --- */
@media only screen and (max-width: 800px) {
    .sisc-grid-container {
        display: grid;
        /* Responsive columns: Tighter minimum size for more logos per row */
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 30px;
        /* Generous gap for clean separation */
        padding: 20px 20px;
        margin: 0 auto;
    }
}

.sisc-grid-container {
    display: grid;
    /* Responsive columns: Tighter minimum size for more logos per row */
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1240px;
    width: 100%;
    /* Generous gap for clean separation */
    padding: 20px 0;
    margin: 0 auto;
}

.sisc-grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    /* Uniform height */
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    /* Smooth, modern rounded corners */
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
    transition: all 0.3s ease;
    /* Smooth transition for hover effects */
}

/* Hover Effect: Subtle lift and shadow for a professional feel */
.sisc-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #b0b0b0;
}

/* Image Filter: Greyscale by default, color on hover */
.sisc-grid-item img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    filter: grayscale(0%);

    object-fit: contain;

    /* Clean, muted look */
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.sisc-grid-item:hover img {
    filter: grayscale(100%);
    /* Full color on hover */
    opacity: 1;
}


/* --- Scroller (Swiper) Styles (Polished Aesthetic) --- */

.sisc-swiper {
    padding: 0 40px;
    /* Space for navigation arrows */
    margin: 30px 0;
    /* Add vertical breathing room */
}

.sisc-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    align-self: center;
}

.sisc-swiper .swiper-slide img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.5s, opacity 0.5s;
    /* Slower transition for a smooth scrolling effect */
}

/* Active slide and hover effect */
.sisc-swiper .swiper-slide-active img,
.sisc-swiper .swiper-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Customize Swiper Navigation Arrows (Professional look) */
.swiper-button-next,
.swiper-button-prev {
    color: #444;
    transition: color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #000;
}