@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
#popup-bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3;
    justify-content: center;
    align-items: center;
}

#popup-bg.active {
    display: flex;
}

#popup-content {
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#popup-img {
    width: 100%;
    height: auto;
}

#popup-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#popup-close:hover {
    background-color: orange;
}
.galleries{
    background: rgb(234, 226, 237); 
}
.gallery__container{
  /* min-height: 100vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* .card-content{

  margin: 30px;
} */
.card-container{
  /* display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; */
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.card{
  position: relative;
  /* background: #fff; */
  /* max-width: 325px;
  width: 325px; */
  height: auto;
  margin: 25px;
  overflow: hidden;
}

.card img{
  max-width: 100%;
  height: auto;
}


.pagination{
  text-align: center;
  /* margin: 30px 30px 60px; */
  margin: 0;
  user-select: none;
}

.pagination li{
  display: inline-block;
  margin: 5px;
  box-shadow: 0 5px 25px rgb(1 1 1 / 10%);
}

.pagination li a{
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  line-height: 45px;
}

.previous-page, .next-page{
  background: #0AB1CE;
  width: 80px;
  border-radius: 45px;
  cursor: pointer;
  transition: 0.3s ease;
}

.previous-page:hover{
  transform: translateX(-5px);
}

.next-page:hover{
  transform: translateX(5px);
}

.current-page, .dots{
  background: #ccc;
  width: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.activate{
  background: #0AB1CE;
}

.disable{
  background: #ccc;
}


/* popup */

.popup{
  position: fixed;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80%;
  max-width: 1600px;
  height: 80vh;
  max-height: 800px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  overflow: hidden;
  transition: 1s;
  opacity: 0;
}

.popup.active{
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.popup.active .close-btn,
.popup.active .image-name,
.popup.active .index,
.popup.active .large-image,
.popup.active .arrow-btn{
  opacity: 1;
  transition: opacity .5s;
  transition-delay: 1s;
  
}

.top-bar{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: #000;
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-weight: 300;
}

.image-name{
  opacity: 0;
  display: none;
}

.close-btn{
  opacity: 0;
  position: absolute;
  top: 15px;
  right: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f00;
  cursor: pointer;
}

.arrow-btn{
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
}

.left-arrow{
  left: 10px;
}

.right-arrow{
  right: 10px;
  transform: translateY(-50%) rotate(180deg);
}

.arrow-btn:hover{
  background: rgba(0, 0, 0, 0.5);
}

.index{
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 80px;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
}

.large-image{
  margin-top: 5%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  opacity: 0;
}
@media (max-width:800px) {
    .card-container{
        grid-template-columns: repeat(2,1fr);
      }
}
@media (max-width:400px) {
    .card{
        width: 265px;
        margin: 0;
    }
    .previous-page, .next-page{
        width: 58px;}
    .current-page, .dots{
            width: 30px;
          }
    .pagination{
            margin: 0;}
     .pagination li{
            margin: 2px;}
     .card-container{
                grid-template-columns: repeat(1,1fr);
              }
     .left-arrow{
                left: 0;
              }
              
    .right-arrow{
                right: 0;
              }
     .arrow-btn{
                padding: 0;
              }
    .large-image{
      width: 100%;
      height: auto;
      object-fit: contain;
    }
}