.sidebar {
  background-color: #8d9195b4;
}

#img-gallery {
  width: 100%;
  height: 250px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("heroImage/galary.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#img-gallery>h1 {
  color: #f5f6fa;
  font-size: 3rem;
  text-decoration: underline #40739e;
  font-family: "Salsa", cursive;
}

#img-gallery p {
  color: #fff;
}

#img-gallery>p>a {
  text-decoration: none;
  color: #fff;
}

#img-gallery>p>a:hover {
  color: greenyellow;
}

/* !------------ */
.gallery {
  padding: 6vh 6vw 6vh 6vw;
}

.outter-box {
  height: 20%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-bottom: 30px;
}

.inner {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
  background-color: #024959;
  border-radius: 10px;
}

.nav {
  position: absolute;
  display: flex;
  width: 200px;
  justify-content: space-between;
  align-items: center;
  top: 5%;
  left: 8%;
}

.nav>img {
  height: 30px;
}

.nav>h1 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.7rem;
}

.ads {
  font-size: 1rem;
  line-height: 30px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 900;
  font-family: "Merriweather", serif;

  letter-spacing: 0.3rem;
  position: absolute;
  top: 50%;
  left: 8%;
}

#first {
  width: 25%;
  height: 20%;
  /* background-color: #026773; */
}

.first-img {
  width: 65%;
  background-image: linear-gradient(#3ca6a632, #3ca6a632),
    url(heroImage/prem1.jpeg);
  background-size: cover;
  background-position: center;
}

.second-img {
  width: 65%;
  background-image: linear-gradient(#3ca6a632, #3ca6a632),
    url(heroImage/prem.jpg);
  background-size: cover;
}

#third {
  width: 10%;
  height: 50vh;
  background-color: #b8afa88d;
}

.small-pic {
  position: absolute;
  width: 20%;
  height: 50%;
  /* border: 2px solid red; */
  background: linear-gradient(#3ca6a633, #3ca6a633), url(heroImage/prem.jpg);
  background-size: cover;
  background-position: center;
  top: 40%;
  left: 77%;
  border-radius: 15px;
  box-shadow: 2px 4px 10px #3ca6a663;
}

.text-side {
  position: absolute;
  transform: rotate(90deg);
  right: -55%;
  transform-origin: 0% 0%;
  /* border: 2px solid red; */
}

.text-side>h1 {
  font-size: 31px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: monument, "Helvetica Neue", sans-serif;
  letter-spacing: 0.9rem;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: rgb(255, 255, 255);
  color: transparent;
}

/* !----btn section----- */
.inner .btn {
  margin: 6vw;
  position: absolute;
  width: 150px;
  top: 63%;
  left: -6%;
}

.inner .btn>a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 35px;
  background-color: #fff;
  border-radius: 5px;
}

.inner a.yellow {
  color: #fff;
  background-color: #fdc93b;
  transition: 0.3s ease;
}

.inner a.yellow:hover {
  color: #fdc93b;
  background-color: #fff;
}

/* ?-----Mobile Version---- */
@media (max-width: 800px) {
  #img-gallery {
    width: 100%;
    height: 150px;
  }

  .outter-box {
    gap: 1rem;
  }

  .inner {
    height: 77%;
    /* border: 2px solid red; */
    overflow: hidden;
  }

  .first-img {
    width: 65%;
  }

  .second-img {
    width: 64%;
  }

  #third {
    width: 10%;
    height: 60vh;
  }

  .nav {
    width: 110px;
  }

  .nav>img {
    height: 20px;
  }

  .nav>h1 {
    font-size: 0.89rem;
  }

  .ads {
    font-size: 0.6rem;
    line-height: 19px;
  }

  .small-pic {
    width: 20%;
    height: 40%;
    top: 45%;
    left: 75%;
    border-radius: 5px;
  }

  .text-side {
    right: -90%;
    top: 1%;
  }

  .inner .btn {
    width: 250px;
    top: 78%;
    left: 0%;
  }

  .inner a.yellow {
    background-color: #fdc93b;
  }
}