.Gallery {
  width: max-content;
  height: max-content;
  margin: 30px;
  padding: 20px;
  gap: 10px;
  -webkit-gap: 10px; /* WebKit-based browsers like Safari */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -10px;
}
.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.galleries-heading-text {
  position: relative;
  transition: all ease 0.5s;
  cursor: pointer;
}
.gallery-heading-text p {
  cursor: pointer;
  font-family: "poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 10px;
  margin-left: 20px;
  transition: all ease .5s;
  color: var(--text-color);
}
.galleries-heading-text {
  font-family: "poppins", sans-serif;
  text-align: center;
  font-size: 17px;
  color: white;
  font-weight: 200;
}
.gallery-heading:hover p {
  color: gray;
  text-decoration: underline;
  text-underline-offset: 15px;
}

.gallery-heading-link a {
  text-decoration: none;
  font-family: "poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--main-color);
  transition: all ease 0.5s;
  margin-right: 0px;
}
.gallery-heading-link:hover a {
  color: var(--hover-color);
}

.gallery-main-section {
  width: max-content;
  border: 2px solid;
  height: max-content;
  display: flex;
  justify-content: center;
  flex-direction: row;
  border: none !important;
  transition: all ease 0.5s;
 
}
#galleries {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: all ease 0.5s;
  width: 255px;
  height: 450px;
  border-radius: 5px;
  margin-right: 10px;
}
 #galleries:hover {
  transform: scale(1.05);
} 
#galleries:hover::before {
  background-color: white;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 1));
}
#galleries a {
  text-decoration: none;
  color: white;
  font-family: "poppins", sans-serif;
}

.gallery-one {
  background-color: transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1.5)),
    url(/Images/Gallery/Black/2.jpeg);
  background-size: cover;
  background-position: center;
}
.gallery-two {
  background-color: transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1.9)),
    url(/Images/Gallery/Outside/1.jpeg);
  background-size: cover;
  background-position: center;
}
.gallery-three {
  background-color: transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1.5)),
    url(/Images/Gallery/Match/10.jpg);
  background-size: cover;
  background-position: center;
}
.gallery-four {
  background-color: transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 1.5)),
    url(/Images/Gallery/Technical/33.jpg);
  background-size: cover;
  background-position: center;
}

#galleries-text {
  margin: 270px 5px 5px 5px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#galleries a {
  color: var(--hover-color);
}


.galleries-read-more {
  color: white;
  font-weight: 200;
  margin-top: 10px;
  margin-left: 80px;
  font-size: 10px;
}

/* MEDIA QUERIES  */

/* LARGE DISPLAYS  */
@media screen and (min-width: 2570px) {
}
/*......................... LAPTOP DISPLAYS ...............  */
@media screen and (min-width: 930px) and (max-width: 1440px) {
  .Gallery {
    width: max-content;
    height: max-content;
    margin: 30px;
    padding: 20px;
    gap: 10px;
    -webkit-gap: 10px; /* WebKit-based browsers like Safari */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -10px;
  }
  .gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .galleries-heading-text {
    position: relative;
    transition: all ease 0.5s;
    cursor: pointer;
  }
  .gallery-heading-text p {
    cursor: pointer;
    font-family: "poppins", sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
  }
  .gallery-heading-link a {
    text-decoration: none;
    font-family: "poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color);
    transition: all ease 0.5s;
    margin-right: 30px;
  }
  .gallery-heading-link:hover a {
    color: var(--hover-color);
  }

  .gallery-main-section {
    width: max-content auto;
    height: max-content;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 0px;
    -webkit-gap: 0px; /* WebKit-based browsers like Safari */
    transition: all ease 0.5s;
  }
  #galleries {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all ease 0.5s;
    width: 200px;
    height: 350px;
    border-radius: 5px;
  }
  #galleries:hover {
    border-radius: 0px
    ;
  }

  #galleries:hover::before {
    background-color: white;
    background: linear-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 1)
    );
  }
  #galleries a {
    text-decoration: none;
    color: white;
    font-family: "poppins", sans-serif;
  }
  #galleries-text {
    margin-top: 220px;
  }
  #galleries-text p {
    font-size: 14px;
    font-weight: 300;
    font-family: "poppins", sans-serif;
  }

  #galleries a {
    color: var(--main-color);
  }
  .galleries-heading-text {
    font-family: "poppins", sans-serif;
    font-size: 15px;
    color: white !important;
  }
}

/* MOBILE PHONES  DISPLAYS  */
@media screen and (min-width: 770px) and (max-width: 929px) {
  .Gallery {
    width: max-content;
    height: max-content;
    margin: 30px;
    padding: 20px;
    gap: 10px;
    -webkit-gap: 10px; /* WebKit-based browsers like Safari */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -10px;
  }
  .gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .galleries-heading-text {
    position: relative;
    transition: all ease 0.5s;
    cursor: pointer;
  }
  .gallery-heading-text p {
    cursor: pointer;
    font-family: "poppins", sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
  }
  .gallery-heading-link a {
    text-decoration: none;
    font-family: "poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color);
    transition: all ease 0.5s;
    margin-right: 30px;
  }
  .gallery-heading-link:hover a {
    color: var(--hover-color);
  }

  .gallery-main-section {
    width: max-content;
    height: max-content;
    display: flex;
    justify-content: center;
    flex-direction: row;
    transition: all ease 0.5s;
    gap: 0px;
  }
  #galleries {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all ease 0.5s;
    width: 170px;
    height: 320px;
    border-radius: 5px;
    margin: 0px 5px 0px 5px ;
  }
  #galleries::before {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 50;
    width: 100%;
    height: 100%;
    transition: all ease 0.7s;
    opacity: 0.2;
  }
  #galleries:hover {
    transform: scale(1.05);
  }
  #galleries:hover::before {
    background-color: white;
    background: linear-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 1)
    );
  }
  #galleries a {
    text-decoration: none;
    color: white;
    font-family: "poppins", sans-serif;
  }


  #galleries-text {
    margin-top: 140px;
  }
  #galleries-text p {
    font-size: 12px;
    font-weight: 200;
    font-family: "poppins", sans-serif;
  }

  #galleries a {
    color: var(--main-color);
  }
  .galleries-heading-text {
    font-family: "poppins", sans-serif;
    font-size: 15px;
    color: white !important;
  }
}

/* MOBILE PHONES  DISPLAYS  */
@media screen and (min-width: 320px) and (max-width: 769px) {
  .Gallery::-webkit-scrollbar {
    width: 0;
  }
  .gallery-heading {
    width: max-content;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-direction: column;
    position: sticky;
    flex-shrink: 0;
    left: 0;
    margin-bottom: -10px;
    scroll-snap-type: none;
    z-index: 99;
    
  }
  .gallery-heading:hover p {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .galleries-heading-text {
    transition: all ease 0.5s;
    cursor: pointer;
  }
  .gallery-heading-text p {
    cursor: pointer;
    font-family: "poppins", sans-serif;
    font-weight: 700;
    font-size: 25px;
    padding-right: 0 !important;
    margin-right: 0;
    margin-top: 10px;
    margin-left: 0px;
    margin-bottom: 10px;
    position: static;
    left: 0;
  }
  /* .gallery-heading-link {
  } */
  .gallery-heading-link a {
    text-decoration: none;
    font-family: "poppins", sans-serif;
    font-size: 13px;
    margin-left: 0px;
    padding-right: 0 !important;
    margin-right: 0 !important;
    font-weight: 600;
    color: var(--main-color);
    transition: all ease 0.5s;
  }
  .gallery-heading-link:hover a {
    color: var(--hover-color);
  }

  .Gallery {
    margin-top: -50px;
    position: relative;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    width: 320px;
    margin-bottom: 50px;
    padding: 10px;
    margin-left: 30px;
  }

  .gallery-main-section {
    display: flex;
    width: max-content;
    overflow-x: scroll;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    scroll-behavior: smooth;
    padding-right: 140px;
    margin-left: -20px;
  }

  #galleries {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all ease 0.5s;
    width: 280px;
    padding: 10px;
    border-radius: 5px;
    margin: 0px 5px 0px 5px ;
    transition: transform 0.5s ease; /* Add a transition effect */
  }

  #galleries-text {
    margin-top: 250px;
    padding-bottom: 20px;
  }
  #galleries-text p {
    font-size: 15px;
    font-weight: 300;
    font-family: "poppins", sans-serif;
  }
  #galleries::before {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 50;
    padding: 10px;
    width: 0%;
    height: 0%;
  }
  #galleries:hover {
    transform: scale(1.05);
  }
  #galleries:hover::before {
    background-color: white;
    background: linear-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 1)
    );
  }
  #galleries a {
    text-decoration: none;
    color: white;
    font-family: "roboto", sans-serif;
  }

  #galleries a {
    color: var(--main-color);
  }
  .galleries-heading-text {
    font-family: "poppins", sans-serif;
    font-size: 15px;
    color: white !important;
  }
}
