#heading h1 {
    color: #C4261C;
    font-weight: 600;

}

input {
    display: none;
}

h1 {
    font-weight: normal;
    font-size: 35px;
    position: relative;
    margin: 40px 0;
}

h1::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: crimson;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%);
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0% {
        width: 100px;
    }

    50% {
        width: 200px;
    }

    100% {
        width: 100px;
    }
}

.containers {
    width: 160px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: rgb(226, 217, 217);
    margin: 2rem 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* #footer {
    width: 100%;
    height: 20rem;
    background-color: rgb(237, 159, 15);
} */




/* Card Animation start */
.containers:hover .information {
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3sec;
}

.containers:hover {
    animation: remove-overflow 2s forward;
}

.containers:not(:hover) {
    animation: show-overflow 2s forwards;
}

.containers:not(:hover) .information {
    animation: remove-data 1s forwards;
}

@keyframes show-data {
    50% {
        transform: translateY(-2rem);
    }

    100% {
        transform: translateY(-.8rem);
    }
}

@keyframes remove-overflow {
    to {
        overflow: initial;
    }
}

@keyframes remove-data {
    0% {
        transform: translateY(-.8rem);
    }

    50% {
        transform: translateY(-2rem);
    }

    100% {
        transform: translateY(-.3rem);
    }
}
/* main */
.gallery-container{
    display : flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0px auto;
}


.gallery-item{
    flex-basis: 20%;
    margin-bottom: 6px;
    cursor: pointer;
    transition: .4s ease;
}

.gallery-item:hover{
    opacity: 1;
    transform: scale(1.2);
}
.gallery-item img{
    width: 90%;
    height: 85%;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 30px;
    margin-left: 20px;


}


/* lightBox */

.lightbox{  
    position:fixed ;
    display: none;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    width:100%;
    height:100%;
    overflow: auto;
    top:0;
    left:0;  
    justify-content: center;
    align-items: center;
}

.lightbox-content{
    position:relative;
    width:45%;
    height:58%;
    margin: 5% auto;
    margin-top: 175px;

} 

.lightbox-content img{
    width:100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.lightbox-prev,
.lightbox-next{
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 9px;
    top: 45%;
    cursor:pointer;
    margin-left: -40px;
    margin-right: -40px;

}

.lightbox-prev{
    left:0;

}
.lightbox-next{
    right:0;

}

/* lightbox to responsive */

@media(max-width:767px){
    .gallery-container{
        width:100%;
    }
    .gallery-item{
        flex-basis: 49.80%;
        margin-bottom: 3px;
    }

    .lightbox-content{
        width: 80%;
        height: 60%;
        margin: 15% auto;
    }
}

@media (max-width:480px){
    .gallery-item{
        flex-basis: 100%;
        margin-bottom: 1px;
    }
    .lightbox-content{
        width: 90%;
        margin: 20px auto;
    }
}