@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Base rule */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}


.grid {
    display: grid;
}

.grid-column-three {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-main-container{
    width: 100%;
    height: auto;
    background-image: url(/images/main_page_image/B5.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;
    place-items: center;
}
.gallery-main-container .gallery-container {
    background-color:var(--white-color);
    width: 94%;
    height: auto;
   box-shadow: 0 0 0.3rem 0 rgba(0, 0, 0, 0.3);
   padding: 1rem;
   margin: 4rem;

   
}

/* Title */

.gallery-container .post-thumb {
    border: 0.5rem solid #fff;
    overflow: hidden;
    position: relative;
   

}

#gallery_title {
    font-size: 1.2rem;
    text-align: center;
    color: white;
    font-weight: 600;
    padding: 0.5rem;
   
}

.gallery-container .post-thumb .title-over {
    width: 100%;
    position: absolute;
    bottom: 0.4rem;
    color: #fff;
    background-color: black;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
    font-family: "Poppins", sans-serif;
   
}

.gallery-container .post-thumb .post-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 7rem;
    left: 0;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.9);
    -webkit-transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -ms-transition: all 150ms ease-in-out;
    -o-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

.gallery-container .post-thumb .post-hover .inside {
    position: relative;
    top: 50%;
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.gallery-container .post-thumb .post-hover a {
    color: #fff !important;
}

.gallery-container .post-thumb .post-hover i {
    display: block;
    margin-bottom: 1rem;
}

.gallery-container .post-thumb:hover .title-over {
    -webkit-transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -ms-transition: all 150ms ease-in-out;
    -o-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
    visibility: hidden;
    opacity: 0;
    bottom: -50px;
}

.gallery-container .post-thumb:hover .post-hover {
    top: 0;
    visibility: visible;
    opacity: 1;
}

/* End */

.gallery-item {
    /* flex-basis: 32.7%; */
    margin-bottom: 0.5rem;
    opacity: 0.85;
    cursor: pointer;
}

.gallery-item:hover {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Light Box */

.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    overflow: auto;
    top: 0;
    left: 0;
}

.lightbox-content {
    position: relative;
    width: 60%;
    height: auto;
    margin: 9rem 31rem;
   }

.lightbox-content img {
    width: 100%;
    height: 100%;
    border: 0.6rem solid #fff;
    object-fit: cover;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem;
    top: 45%;
    cursor: pointer;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}


@media(max-width:767.98px) {
    .gallery-container {
        width: 100%;
    }

    .gallery-container .gallery-item {
        flex-basis: 49.80%;
        margin-bottom: 0.3rem;
    }

    .lightbox-content {
        width: 80%;
        height: 60%;
        margin: 15% auto;
    }

}


@media(max-width:575.98px) {

.grid-column-three {
    grid-template-columns: repeat(2, 1fr);
    
}
.lightbox-content {
  
    margin: 20rem 9rem;
   }
}

@media(max-width:413.98px) {

.grid-column-three {
    grid-template-columns: 1fr;
}
.lightbox-content {
  
    margin: 22rem 6rem;
   }
}