/* =========================================================
   S.V. ELECTRICALS
   GALLERY SECTION
========================================================= */


/* =========================================================
   GALLERY SECTION
========================================================= */

.sv-gallery-section {

    width: 100%;

    padding: 48px 0 65px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(50, 180, 225, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(20, 100, 160, 0.06),
            transparent 28%
        ),
        #f7fcfe;

    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.sv-gallery-container {

    width: min(1120px, 90%);

    margin: 0 auto;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.sv-gallery-grid {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px 22px;
}


/* =========================================================
   GALLERY CARD
========================================================= */

.sv-gallery-card {

    width: 100%;

    background: #ffffff;

    border: 1px solid #dcecf2;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 7px 22px rgba(20, 75, 100, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   IMAGE BOX
========================================================= */

.sv-gallery-image {

    position: relative;

    width: 100%;

    height: 190px;

    overflow: hidden;

    background: #e8f4f8;
}


/* =========================================================
   IMAGE
========================================================= */

.sv-gallery-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.55s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.sv-gallery-card:hover .sv-gallery-image img {

    transform: scale(1.05);
}


/* =========================================================
   CARD HEADING
========================================================= */

.sv-gallery-card h3 {

    margin: 0;

    padding: 14px 12px 15px;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    box-sizing: border-box;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.3;

    color: #123f91;

    background: #ffffff;
}


/* =========================================================
   CARD HOVER
========================================================= */

.sv-gallery-card:hover {

    transform: translateY(-4px);

    border-color: #b9dce9;

    box-shadow:
        0 13px 30px rgba(20, 75, 100, 0.12);
}


/* =========================================================
   SUBTLE IMAGE BORDER
========================================================= */

.sv-gallery-image::after {

    content: "";

    position: absolute;

    inset: 0;

    border: 1px solid rgba(255, 255, 255, 0.45);

    border-radius: 11px 11px 0 0;

    pointer-events: none;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1200px) {

    .sv-gallery-container {

        width: 90%;
    }

    .sv-gallery-grid {

        gap: 24px 20px;
    }

    .sv-gallery-image {

        height: 180px;
    }

    .sv-gallery-card h3 {

        font-size: 15px;

        padding: 13px 10px 14px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .sv-gallery-section {

        padding: 42px 0 55px;
    }

    .sv-gallery-container {

        width: 90%;
    }

    .sv-gallery-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 22px 18px;
    }

    .sv-gallery-image {

        height: 185px;
    }

    .sv-gallery-card h3 {

        font-size: 15px;

        min-height: 48px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .sv-gallery-section {

        padding: 35px 0 48px;
    }

    .sv-gallery-container {

        width: 90%;
    }

    .sv-gallery-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .sv-gallery-image {

        height: 200px;
    }

    .sv-gallery-card {

        border-radius: 11px;
    }

    .sv-gallery-card h3 {

        font-size: 15px;

        padding: 13px 12px 14px;

        min-height: 46px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .sv-gallery-section {

        padding: 30px 0 42px;
    }

    .sv-gallery-container {

        width: 92%;
    }

    .sv-gallery-grid {

        gap: 17px;
    }

    .sv-gallery-image {

        height: 185px;
    }

    .sv-gallery-card h3 {

        font-size: 14px;

        padding: 12px 10px 13px;
    }

}