* {
  box-sizing: border-box;
}

  body {
    font-family: Arial;
    margin: 0;
  }
  
  .header {
    padding: 2px;
    text-align: center;
    background: #1abc9c;
  }

  .header h1 {
    color: white;
    font-family: 'Cracksmoon', sans-serif;                                                                               
  }
  
  .navbar {
    position: relative;
    display: flex;
    background-color: #333;
    width: 100%;
  }
  
  .navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
  }
  
  .navbar a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .row {  
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0.447);
  }
  
  .side {
    flex: 30%;
    background-color: #f1f1f1;
    padding: 20px;
  }
  
  .main {
    flex: 70%;
    background-color: white;
    padding: 20px;
  }
  
  .row .side .profimg img {
    width: 100%;
  }
  
  .footer {
    padding: 5px 10px;
    background: #ddd;
    width: 100%;
  }

  .footer h3 {
    margin-top: 0px;
    margin-bottom: 5px;
  }

  @media screen and (max-width: 700px) {
    .row, .navbar {   
      flex-direction: column;
    }
  }
  
  p, h3{
    text-align:justify;
  }

  .redp{
    color: red;
  }

  .created{
    margin-left: 50px;
  }

  .maini{
    position: relative;
    width: 100%;
    height: 100%;
  }

  .maini .gallery{
    position: relative;
    height: auto;
    width: 90%;
    margin: auto;
    padding: 45px 0;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-gap: 2vh;
    grid-auto-flow: dense;
  }
  
  
  .maini .gallery .img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.9);
    border-radius: 2px;
  }


  .maini .gallery .img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100);
    transition: 0.3s ease-in-out;
  }
  
  .maini .gallery .img:hover img{
    filter: grayscale(0);
  }

  .frontgallery {
    margin: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 24%;
    /*width: 500px;*/
  }
  
  .frontgallery:hover {
    border: 1px solid #777;
  }
  
  .frontgallery img {
    width: 100%;
    height: auto;
  }
  
  .description {
    padding: 15px;
    text-align: center;
  }

  .gallerybox{
    margin: 2px;
    position: relative;
  }
  
  
  @media only screen and (max-width: 768px) {
    .maini .gallery .img img {
      display: grid;
      grid-template-columns: auto auto auto;
    }
    .frontgallery{
      width: 100%;
      grid-template-columns: auto auto auto;
    }
  }
  
  @media only screen and (max-width: 430px) {
    .maini .gallery{
      display: block;
    }
    .maini .gallery .img{
      display: block;
      width: 100%;
      height: 100%;
    }
    .maini .gallery .img img{
      display: block;
      filter: grayscale(0);
      margin-bottom: 2px;
    }
    .frontgallery, .description{
      width: 100%;
      display: block;
      width: 100%;
      height: 100%;
      filter: grayscale(0);
    }
  }