@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    position: relative;
    min-height: 100vh;
    text-align: center;
    margin-bottom: 20px;
}

/*.container h1{
    font-size: 40px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: normal;
    padding: 15px;
    color: #333;
    text-align: center;
    text-transform: capitalize;
} */

.container h1 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 15px;
    color: #004d99;
    text-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    font-size: 40px;
    font-weight: bold;
    text-transform: capitalize;
}

input {
    display: none;
}

.top-content {
    background-color: rgb(243, 243, 243);
    width: 90%;
    margin: 0 auto 20px auto;
    height: 50px;
    display: flex;
    align-items: center;
}

.top-content h3 {
    height: 100%;
    background-color: lightgray;
    line-height: 50px;
    padding-right: 50px;
    padding-left: 50px;
    color: white;
    font-size: 18px;
    margin: 0;
}

label {
    display: inline-block;
    height: 100%;
    line-height: 50px;
    margin: 0 20px;
    font-size: 16px;
    color: gray;
    transition: color .5s;
    cursor: pointer;
}

label:hover {
    color: black;
}

.container .image-container {
    display: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.image {
    position: relative;
    height: 230px;
    border-radius: 10px;
    box-shadow: 2px 2px 4px lightgray;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
}

.image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: .2s linear;
}

/*
.image::before{
    content: "PHOTO GALLERY";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 22px;
    font-weight: bold;
    width: 100%;
    margin-top: -100px;
    opacity: 0;
    transition: .3s;
    transition-delay: .2s;
    z-index: 1;
}
.image::after{
    content: "";
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    height: 0;
    background-color: rgba(0, 0, 0, 0.4);
    transition: .3s;
}
.image:hover::after{
    height: 100%;
}
.image:hover::before{
    margin-top: 0;
    opacity: 1;
} */
#check1:checked~.container .image-container .image {
    opacity: 1;
    transform: scale(1);
    position: relative;
    transition: 0s;
}

#check2:checked~.container .image-container .outdoor {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

#check2:checked~.container .image-container .reefer,
#check2:checked~.container .image-container .indoor,
#check2:checked~.container .image-container .panel {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0s;
}

#check3:checked~.container .image-container .indoor {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

#check3:checked~.container .image-container .reefer,
#check3:checked~.container .image-container .outdoor,
#check3:checked~.container .image-container .panel {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0s;
}

#check4:checked~.container .image-container .panel {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

#check4:checked~.container .image-container .outdoor,
#check4:checked~.container .image-container .reefer,
#check4:checked~.container .image-container .indoor {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0s;
}

#check5:checked~.container .image-container .reefer {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

#check5:checked~.container .image-container .outdoor,
#check5:checked~.container .image-container .panel,
#check5:checked~.container .image-container .indoor {
    opacity: 0;
    transform: scale(0);
    position: absolute;
    transition: 0s;
}

.container .image-container .image:hover img {
    transform: scale(1.1);
}

.container .popup-image {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    height: 100%;
    width: 100%;
    z-index: 100;
    display: none;
}

.container .popup-image span {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 60px;
    font-weight: bolder;
    color: #fff;
    cursor: pointer;
    z-index: 100;
}

.container .popup-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #fff;
    border-radius: 5px;
    width: 750px;
    object-fit: cover;
}


@media (max-width:768px) {
    .container .popup-image img {
        width: 95%;
        height: auto 90%;
    }

    .top-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 10px;
        height: fit-content;
    }

    .top-content h3{
        line-height: 30px;
    } 

    label {
        line-height: 20px;
        margin: 0 5px;
        font-size: 14px;
    }

    .container .image-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .image {
        height: 150px;
    }

    .container h1 {
        font-size: 35px;
    }
}

@media (max-width:1100px) and (min-width:769px) {
    .container .image-container .image {
        height: 200px;
        width: 300px;
    }
    .top-content {
        height: fit-content;
    }
    .top-content h3{
        line-height: 40px;
    } 

    label {
        line-height: 25px;
        margin: 0 5px;
        font-size: 16px;
    }

    .container .image-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .image {
        height: 150px;
    }
}