/*=========================================
    Grid
=========================================*/

.sg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/*=========================================
    Card
=========================================*/

.sg-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    overflow: hidden;
    transition: all .35s ease;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.sg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

/*=========================================
    Image
=========================================*/

.sg-image {
    position: relative;
    padding: 25px;
    overflow: hidden;
}

.sg-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: all .5s ease;
}

/*=========================================
    Yellow Overlay
=========================================*/

.sg-overlay {
    position: absolute;
    left: 25px;
    right: 25px;
    top: 25px;
    bottom: 25px;
    background: rgba(227, 175, 0, .65);
    opacity: 0;
    transition: .4s;
    pointer-events: none;
}

.sg-card:hover .sg-overlay {
    opacity: 1;
}

.sg-card:hover img {
    transform: scale(1.08);
}

/*=========================================
    Content
=========================================*/

.sg-content {
    padding: 0 28px 28px;
}

.sg-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    line-height: 1.4;
    letter-spacing: .5px;
    transition: .3s;
}

.sg-card:hover .sg-card-title {
    color: #000;
}

/*=========================================
    Swiper
=========================================*/

.sg-site-gallery {
    position: relative;
}

.sg-site-gallery .swiper-slide {
    height: auto;
}

.sg-site-gallery .swiper-button-next,
.sg-site-gallery .swiper-button-prev {
    color: #d4a300;
}

.sg-site-gallery .swiper-pagination-bullet {
    background: #999;
    opacity: 1;
}

.sg-site-gallery .swiper-pagination-bullet-active {
    background: #d4a300;
}

/*=========================================
    Responsive
=========================================*/

@media (max-width:1024px){

    .sg-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:767px){

    .sg-grid{
        grid-template-columns:1fr;
    }

    .sg-image img{
        height:250px;
    }

    .sg-content{
        padding:20px;
    }

    .sg-card-title{
        font-size:16px;
    }

}