/* section2 */
.section2 {
    width: 100%;
    height: 200vh;
    /* background: #a9a8a8; */
}

.section2>div {
    flex-direction: column;
}

.section2>div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section2_Item {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;


    position: relative;
    overflow: hidden;
}

.section2_Item>img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width:768px) {
    .section2_Item_img {
        object-fit: cover;
        object-position: center;
    }
}

.heading {
    position: absolute;
    /* bottom: 7%; */
    z-index: 1;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
    /* font-family: khand */
    text-shadow: 5px 5px 5px black;
    background-color: black;
    padding: 7px 10px;
    border-radius:10px;
}

.content {
    width: 100%;
    height: 100%;
    position: absolute;


    /* animation: go-up 2s ease-in-out 0s 1 alternate forwards; */


    /* display: flex; */
    display: none;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    gap: 10px;

    background-color: #000000ab;
}

.content>div {
    width: 100%;
    height: 100%;
    color: white;
    padding: 20px 30px;
    animation: go-up 1s ease-in-out 0s 1 alternate forwards;
    display: flex;
    /* display: none; */
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    gap: 10px;
    transform: translateY(100%);
    opacity: 0;
    /* border: solid; */

    /* font-family: khand; */
}

.content>div>p {
    margin-bottom: 0;
    font-weight:700;
    font-size:16px;
    text-shadow: 1px 1px 8px black;
}




@keyframes go-up {
    from {
        transform: translateY(100%);
        opacity: 0;
        color: black
    }

    to {
        transform: translateY(0);
        opacity: 1;
        /* background-color: #000000cc; */
        color: white;
    }

}



@media screen and (min-width: 768px) {


    .section2 {
        height: calc(100vh - 40px);
        /* height: 100vh; */
        /* calc(100vh - 60px); */

    }

    .section2>div {
        flex-direction: row;
    }

    .section2_Item:hover {
        flex: 3;
        transition: flex .5s ease-in-out
    }

    .section2_Item:hover>img {
        box-shadow: 0 0 3px 1px rgb(214, 214, 214);
    }


    .section2_Item:hover .content {
        display: flex;
    }

    .heading {
        font-size: 2rem;
        bottom: 10%;
        /* color:red; */
        font-weight: 700 !important;
        

    }
}

