*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* gallery */
input{
    display: none;
}
.container1{
    width: 100%;
    text-align: center;
    margin-bottom: 5%;
}
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: translateX(-50%);
    animation: animate 4s linear infinite;

}
@keyframes animate{
    0%{
        width: 100px;
    }
    50%{
        width: 200px;
    }
    100%{
        width: 100px;
    }
}
.top-content{
    background-color: rgb(243, 243,243);
    width: 90%;
    margin: 0 auto 20px auto;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    box-shadow: 3px 3px 5px lightgray;
}
h3{
    height: 100%;
    background:linear-gradient(180deg, #d11a2a8c -9.55%, #952622 89.69%)!important;
    line-height: 60px;
    padding: 0 50px;
    color: white;
}
label{
    display: inline-block;
    height: 100%; 
    margin: 0 20px;
    line-height: 60px;
    font-size: 18px;
    color: gray;
    cursor: pointer;
    transition: color .5s;
}
label:hover{
    color: black;
}
.photo-gallery{
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}
.pic{
     position: relative;
    height: 230px;
    border-radius: 10px;
    box-shadow: 3px 3px 5px lightgray;
    cursor: pointer;
    transition: .5s;
    }
.pic img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: .5s;
}
#check1:checked ~ .container1 .photo-gallery .pic{
    opacity: 1;
    transform: scale(1);
    position: relative;
    transition: .5s;
}
#check2:checked ~ .container1 .photo-gallery .family{
     transform: scale(1);
     opacity: 1;
     position: relative;


    }
#check2:checked ~ .container1 .photo-gallery .child,
#check2:checked ~ .container1 .photo-gallery .place{
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0s;
}
#check3:checked ~ .container1 .photo-gallery .child{
    transform: scale(1);
    opacity: 1;
    position: relative;


   }
#check3:checked ~ .container1 .photo-gallery .family,
#check3:checked ~ .container1 .photo-gallery .place{
   opacity: 0;
   transform: scale(0);
   position: absolute;
   transition: 0s;
}
#check4:checked ~ .container1 .photo-gallery .place{
    transform: scale(1);
    opacity: 1;
    position: relative;


   }
#check4:checked ~ .container1 .photo-gallery .family,
#check4:checked ~ .container1 .photo-gallery .child{
   opacity: 0;
   transform: scale(0);
   position: absolute;
   transition: 0s;
}


@media(max-width:790px){
    .photo-gallery{
        grid-template-columns: repeat(3 , 1fr);
    }
}
@media(max-width:650px){
    .photo-gallery{
        grid-template-columns: repeat(2 , 1fr);
    }
}
@media(max-width:615px){
    h3{
        padding: 0 28px;
    }
}
@media(max-width:567px){
    h3{
        padding: 0 17px;
    }
    label{
        margin: 0 5px;
    }
    .photo-gallery{
        grid-template-columns: repeat(1 , 1fr);
    }
}
@media(max-width:430px){
    .top-content{
        background:linear-gradient(180deg, #d11a2a8c -9.55%, #952622 89.69%)!important;
       
    }
    h3{
        display: none;
    }
    label{
        color: white;
        margin: 15px;
        text-align: center;
    }
}
@media(max-width:385px){
    label{
        margin: 11px;
        font-size: 13px;
        
    }
}
@media(max-width:385px){
    label{
        margin: auto;
        text-align: center;
        /* font-size: 13px; */
    }
}


