/* 
This is custom style for the website.
Mainly bootstrap is used. But if need to customize your website use the following styles
*/

/* CONST START */
.container {
  max-width: 1200px;
}
.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.div1 {
  grid-area: 1 / 1 / 4 / 4;
}
.div2 {
  grid-area: 1 / 4 / 2 / 5;
}
.div3 {
  grid-area: 2 / 4 / 3 / 5;
}
.div4 {
  grid-area: 3 / 4 / 4 / 5;
}
.div5 {
  grid-area: 4 / 4 / 5 / 5;
}
.div6 {
  grid-area: 4 / 3 / 5 / 4;
}
.div7 {
  grid-area: 4 / 2 / 5 / 3;
}
.div8 {
  grid-area: 4 / 1 / 5 / 2;
}

.carousel-item {
  position: relative;
}

.carousel-item img {
  width: auto;
  margin: auto;
  object-fit: cover;
}

.carousel-item::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  background-image: linear-gradient(
    80deg,
    rgba(121, 221, 9, 0.1),
    transparent 50%
  );
}
.text-bg-dark {
  background-image: linear-gradient(
    80deg,
    rgba(121, 221, 9, 0.1),
    transparent 50%
  );
}
.carousel-caption {
  position: absolute;
  bottom: 20px;
  color: white;
}

@media screen and (max-width: 767px) {
  .parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }

  .div1 {
    grid-area: 1 / 1 / 2 / 4;
    height: fit-content;
  }
  .div2 {
    grid-area: 2 / 1 / 3 / 2;
    height: fit-content;
  }
  .div3 {
    grid-area: 2 / 2 / 3 / 3;
    height: fit-content;
  }
  .div4 {
    grid-area: 2 / 3 / 3 / 4;
    height: fit-content;
  }
  .div5 {
    grid-area: 3 / 1 / 4 / 2;
    height: fit-content;
  }
  .div6 {
    grid-area: 3 / 2 / 4 / 3;
    height: fit-content;
  }
  .div7 {
    grid-area: 3 / 3 / 4 / 4;
    height: fit-content;
  }
  .div8 {
    display: none;
  }
  .card-img-overlay h6{
    font-size: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media screen and (max-width: 468px) {
  .parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }

  .div1 {
    grid-area: 1 / 1 / 2 / 3;
  }
  .div2 {
    grid-area: 2 / 1 / 3 / 2;
  }
  .div3 {
    grid-area: 3 / 1 / 4 / 2;
  }
  .div4 {
    grid-area: 2 / 2 / 3 / 3;
  }
  .div5 {
    grid-area: 3 / 2 / 4 / 3;
  }
  .div6 {
    display: none;
  }
  .div7 {
    display: none;
  }
  .div8 {
    display: none;
  }
  .single-post .single-post-content .single-thumbnail img {
    width: 100%;
    float: left;
    margin-right: 2em;
    margin-bottom: 2em;
  }
  .card-img-overlay h6{
    font-size: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
/* CONST END */
/* HOME PAGE START*/

/* HOME PAGE END */
