
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }

  header {
    background-color: #31343d;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  h1 {
    background-color: #92cccd;
    color: #31343d;
    text-align: right;
    padding: 8px;
    width: 35%;
    font-size: 40px;
  }
  
  header li {
    display: inline;
    margin: auto 20px;
    font-size: 20px;
    text-underline-offset: 5px;
  }
  
  a {
    color: #92cccd;
  }
  
  .nav-link:hover {
    color: #92cccd;
  }
  
  .nav-link:visited {
    color:#808db4
  }

  /* Gallery section*/

.container {
    position: relative;
    display: flex;
    justify-content:space-between;
    width: 100%;
  }
  
  
  .header-img {
    width:100%;
    height: 200px;
    object-fit:cover; 
  }
  
  .text-img {
    position: absolute;
    bottom: 20px;
    right: 100px;
    color:#31343d;
    font-size: 30px;
    background-color: #92cccd;
    padding: 10px;   
    font-weight: bold; 
  }

  .main-gallery {
    margin:0 auto;
    padding: 30px 60px 30px 100px;
  }

  .covers-titles {
    display: flex; 
    margin-bottom: 70px;   
    color: #31343d
  }
  
  h2 {
    font-size: 35px;
    text-align: right;
    min-width: 150px;
    margin-right: 30px;
    padding-right: 10px;
    border-right:3px solid #31343d
  }
  
  .content-right {
    width: 100%;
  }
  
  .content-right p {
    font-size: 20px
  }

  .work-pics {
    width: 100%;
  }
  
  .work-pic1 {
    width: 100%;
    height: 400px;
    object-fit: cover;    
    margin-bottom: 15px;
    border:5px solid #92cccd;
  }
  
  .pics1-2, .pics3-4 {
    display: flex;   
    width: 100%;
  }
  
  
  .pics1-2 {
    margin-bottom: 15px;
  }
  
  .top1, .top2, .top3, .top4 {
    width: 100%;
    height: 150px;
    object-fit:cover;
    border:5px solid #92cccd;
    filter: brightness(50%);
  }

  .work-pic1 {
    filter: brightness(50%);
  }

  .top1, .top3 {
    margin-right:10px;
   }

   .top2, .top4 {
    margin-left:10px;
  }

.text-main2 {
  position: absolute;
  bottom: 30px;
  left: 10px;
  color:#31343d;
  font-size: 20px;
  background-color: #92cccd;
  padding: 10px;   
  font-weight: bold; 
  text-align: left;
}
  

.text-main {
  position: absolute;
  bottom: 30px;
  left: 0px;
  color:#31343d;
  font-size: 20px;
  background-color: #92cccd;
  padding: 10px;   
  font-weight: bold; 
  text-align: left;
}

span {
  font-size: 15px;
  font-weight: normal; 
}
/*Footer*/

.Personal-contacts {
  display: flex;
  text-decoration: none;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  text-underline-offset: 5px;
  padding: 0 20px;
}

.contact {
  color: #31343d;
  text-decoration: underline;
  font-size: 25px;
}

.top1:hover, .top2:hover, .top3:hover, .top4:hover, .work-pic1:hover {
  filter:brightness(100%)
}

.contact:hover {
  color:#92cccd;
}

.contact:visited {
  color:#7c8485;
}

@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
  }

  main {
    max-width: 1200px;
  }
}
