

/*
===============
Hero
===============
*/
/* underline added to globals */

.hero .underline{
    margin-bottom: 0.5rem;
    margin-left: 0;
}

.hero-img {
    /* hide image on small screen */
    display: none;
}

.hero{
    background: var(--clr-grey-10);
}

.hero-center{
    min-height: calc(100vh - 5rem);
    display: grid;
    place-items: center;
}

.hero-info h4 h5{
    color: var(--clr-grey-5);
}

.hero-icons{
    justify-items: start;
}

.hero-btn{
    margin-top: 1.25rem;
}

@media screen and (min-width: 992px){
    .hero-img{
        display: block;
        position: relative; /* we have set this element reltive to its parent, the ::before element we introduced */
    }
    .hero-center{
        grid-template-columns: 1fr 1fr;
    }



    /* background box behind image */
    /* combined with about section */
    .hero-img::before, .about-img::before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border: 0.25rem solid var(--clr-primary-5);
        top: 1rem ;
        right: -2rem;
        border-radius: var(--radius);

    }
}
.hero-photo{
    max-width: 25rem;
    max-height: 30rem;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: var(--radius);
    position: relative;
}



/*
===============
About
===============
*/


/* section title added to globals */
/* small screen style */
.about{
    background: var(--clr-white);
}

.about-title{
    text-align: left;
    margin-bottom: 2rem;
}

.about-title .underline{
    margin-left: 0;
}

.about-center{
    display: grid;
    gap: 3rem 2rem; /* gap btn row , column */
}

.about-img{
    justify-self: center;
}

.about-info{
    display: grid;

}
.featured-div{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;


}
/*
.featured-service{
    border: black 1px solid;
    display: inline;
    justify-content: center;
    align-items: center;
}

 */
.service-img img{
    width: 65px;
    height: 65px;

}
.service-title h4{
    align-items: center;
}

@media screen and (min-width: 992px) {


    .service-img img{
        width: 95px;
        height: 95px;

    }

    .about-center{
        grid-template-columns: 1fr 1fr;
    }

    .about-img{
        position: relative;
    }
    /* overiding some styling  */

    .about-img::before{
        left: -2rem;

    }
    .about-info{
        align-self: center;

    }
}


/*
===============
Gallery
===============
*/

.gallery-img-container{
    position: relative;
    background: var(--clr-primary-5);
}

.gallery-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    transform: translate(-50%, -50%);
    color: var(--clr-white);
    opacity: 0; /* hide the element */
    cursor: pointer;
    transition: var(--transition );
}

.gallery-img{
    height: 17rem;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-img-container:hover .gallery-img{
    opacity: 0.5;
}

.gallery-img-container:hover .gallery-icon{
    opacity: 1;
}

@media  screen and (min-width: 768px) {
    /* two column layout  */
    .gallery-center{
        display: flex;
        flex-wrap: wrap;
    }

    .gallery-img-container{
        flex: 0 0 50%
    }
}
@media  screen and (min-width: 992px) {
    /* four column layout  */
    .gallery-img-container{
        flex: 0 0 25%
    }
}
