#GALLERY-main {
  height: max-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 0px;
  font-family: "poppins", sans-serif;
  align-items: center;
  padding-bottom: 40px;
  justify-content: center;
  align-items: center;
}

.gallery-main-heading {
  height: max-content;
  color: white;
  background-color: var(--main-color);
  padding: 20px;
  width: 100%;
  height: 25vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-main-heading-text {
  width: max-content;
  margin-left: 0vh;
  margin-top: 180px;
  padding: 20px;
}

.gallery-main-heading p {
  font-size: 40px;
  font-weight: 700;
}

.gallery-images-main-section {
  height: 100%;
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;

  gap: 10px;
  -webkit-gap: 10px; /* WebKit-based browsers like Safari */
  flex-direction: column;
}
.galleries-containers {
  width: 350px;
  height: 490px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 10px;
}
.first-sec,
.second-sec {
  width: max-content;
  padding: 10px;
  display: flex;
  flex-direction: row;
}
.image::before {
  content: "";
  position: absolute;
  background-color: transparent;
  background: linear-gradient(rgba(36, 28, 28, 0.3), rgba(0, 0, 0, 2));
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.image-details {
  position: absolute;
  margin-left: 30px;
  margin-top: -125px;
  width: 300px;
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 10;
}
.image-details::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 50px;
  transition: width ease 1s;
  background-color: var(--main-color);
  inset: 50;
  margin-top: -130px;
}
.galleries-containers:hover .image-details::before {
  width: 260px;
}
.image-details h3 {
  font-size: 23px;
  text-align: center;
  font-weight: 400;
  font-family: "poppins", sans-serif;
}
.image-details p {
  font-size: 10px;
  font-weight: 500;
  color: var(--main-color);
  font-family: "poppins", sans-serif;
  margin-top: -20px;
}
.galleries-containers:hover img {
  transform: scale(1.1);
}
.gallery-images-main-section img {
  transition: all 0.5s ease;
 width: 350px;
 height: 100%;
 
}

/* MEDIA QUERIES  */

/*......................... LAPTOP DISPLAYS ...............  */
@media screen and (min-width: 930px) and (max-width: 1440px) {
  #GALLERY-main {
    height: max-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    
    padding-top: 0px;
    font-family: "poppins", sans-serif;
    align-items: center;
    padding-bottom: 40px;
    justify-content: center;
    align-items: center;
  }

  .gallery-main-heading {
    height: max-content;
    color: white;
    background-color: var(--main-color);
    padding: 20px;
    width: 100%;
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .gallery-main-heading-text {
    width: max-content;
    margin-left: 0vh;
    margin-top: 180px;
    padding: 20px;
  }

  .gallery-main-heading p {
    font-size: 40px;
    font-weight: 700;
  }

  .gallery-images-main-section {
    height: 100%;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .galleries-containers {
    width: 250px;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 5px;
  }
  .first-sec,
  .second-sec {
   
    width: max-content;
    padding: 10px;
    display: flex;
    flex-direction: row;
  }
  .image::before {
    content: "";
    position: absolute;
    background-color: transparent;
    background: linear-gradient(rgba(36, 28, 28, 0.3), rgba(0, 0, 0, 2));
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .image-details {
    position: absolute;
    margin-left: 30px;
    margin-top: -105px;
    width: 190px;
    height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
  }
  .image-details::before {
    content: "";
    position: absolute;
    height: 2px;
    width: 50px;
    transition: width ease 1s;
    background-color: var(--main-color);
    inset: 50;
    margin-top: -130px;
  }
  .galleries-containers:hover .image-details::before {
    width: 150px;
  }
  .image-details h3 {
    font-size: 18px;
    text-align: center;
    font-family: "poppins", sans-serif;
    font-weight: 400;
  }
  .image-details p {
    font-size: 10px;
    font-weight: 400;
    color: var(--main-color);
  }
  .galleries-containers:hover img {
    transform: scale(1.1);
  }
  .gallery-images-main-section img {
    transition: all 0.5s ease;
    width: 100%;
    height: max-content;
    object-fit: fill;
    min-height: 100%;
  }
}

/*SMALL  MONITORS  AND TABLETS  DISPLAYS  */
@media screen and (min-width: 770px) and (max-width: 929px) {
  #GALLERY-main {
    height: max-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-gap: 10px; /* WebKit-based browsers like Safari */
    padding-top: 0px;
    font-family: "roboto", sans-serif;
    align-items: center;
    padding-bottom: 40px;
    justify-content: center;
    align-items: center;
  }

  .gallery-main-heading {
    height: max-content;
    color: white;
    background-color: var(--main-color);
    padding: 20px;
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .gallery-main-heading-text {
    width: max-content;
    margin-left: 0vh;
    margin-top: 140px;
    padding: 20px;
  }

  .gallery-main-heading p {
    font-size: 30px;
    font-weight: 900;
  }

  .gallery-images-main-section {
    height: 100%;
    display: flex;
    padding: 0px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .galleries-containers {
    width: 220px;
    height: 330px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 5px;
  }
  .first-sec,
  .second-sec {
    width: max-content;
    padding: 10px;
    display: flex;
    flex-direction: row;
  }
  .image::before {
    content: "";
    position: absolute;
    background-color: transparent;
    background: linear-gradient(rgba(36, 28, 28, 0.3), rgba(0, 0, 0, 2));
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  .image-details {
    position: absolute;
    margin-left: 5px;
    margin-top: -125px;
    width: 190px;
    height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
  }
  .image-details::before {
    content: "";
    position: absolute;
    height: 2px;
    width: 50px;
    transition: width ease 1s;
    background-color: var(--main-color);
    inset: 50;
    margin-top: -130px;
  }
  .galleries-containers:hover .image-details::before {
    width: 150px;
  }
  .image-details h3 {
    font-size: 18px;
    text-align: center;
  }
  .image-details p {
    font-size: 10px;
    font-weight: 900;
    color: var(--main-color);
  }
  .galleries-containers:hover img {
    transform: scale(1.1);
  }
  .gallery-images-main-section img {
    transition: all 0.5s ease;
    width: 100%;
    height: max-content;
    object-fit: fill;
    min-height: 100%;
  }
}

/* MOBILE PHONES  DISPLAYS  */
@media screen and (min-width: 320px) and (max-width: 769px) {
  #GALLERY-main {
    height: max-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0px 0px 40px 0px;
    font-family: "poppins", sans-serif;
    align-items: center;
   margin: 0px;
    justify-content: center;
    align-items: center;
    

  }

  .gallery-main-heading {
    height: max-content;
    color: white;
    background-color: var(--main-color);
    padding: 20px;
    width: 100%;
    height: 12vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .gallery-main-heading-text {
    width: max-content;
    margin-left: -20px;
    margin-top: 70px;
    padding: 20px;
  }

  .gallery-main-heading p {
    font-size: 20px;
    font-weight: 500;
  }

  .gallery-images-main-section {
    height: max-content;
    display: flex;
    padding: 0px !important;
    justify-content: center;
    align-items: center;
    margin: 0px 0px 0px 10px ;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
  }
  .galleries-containers {
    width: 98%;
    height: 460px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin: 5px 0px 5px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .galleries-containers::before{
    content: "";
    position: absolute;
    background-color: transparent;
    background: linear-gradient(rgba(36, 28, 28, 0.3), rgba(0, 0, 0, 2));
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index: 2;
  }
  .gallery-images-main-section img {
    width: 340px;
    height: 460px;
    overflow: hidden;
  }
  .first-sec,
  .second-sec {
    display: flex;
    flex-direction: column;
  }
  .image::before {
    content: "";
    position: absolute;
    background-color: transparent;
   
    background-size: cover;
    background-position: center;
    width: 100% auto;
    height: 100% auto;
    z-index: 2;
  }
  .image-details {
    position: absolute;
    margin-left: 0px;
    height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
    bottom: 0;
    margin-bottom: 20px;
  }
  .image-details::before {
    content: "";
    position: absolute;
    height: 3px;
    width: 200px;
    transition: width ease 1s;
    background-color: var(--main-color);
    inset: 50;
    margin-top: -130px;
  }
  .galleries-containers:hover .image-details::before {
    width: 200px;
  }
  .image-details h3 {
    font-size: 18px;
    text-align: center;
  }
  .image-details p {
    font-size: 10px;
    font-weight: 900;
    color: var(--main-color);
  }
  .galleries-containers:hover img {
    transform: scale(1.1);
  }

}
