
:root{
  --intro-width: 360px;
  --intro-height: 360px;
  --intro-border-width: 390px;
  --intro-border-height: 300px;
}

@media screen and (max-width:1367px){
  :root{
    --intro-border-width: 340px;
    --intro-border-height: 250px;
  }
}

.about {
  display: block;
  padding: 80px 0px 100px 0px !important;
}

.about h2 {
  font-size: 50px;
  line-height: 48px;
  color: var(--bs-body-color);
  text-align: left !important;
}

.about .description {
  padding: 50px 0px 30px;
  font-size: 27px;
  line-height: 30px;
  text-align: justify;
  color: black;
} 

.about .gallery{
  position: relative !important;
  height:100% !important;
  width:100% !important;
  transform: rotate(-5deg) !important;
}

.about .gallery:after{
  content:'';
}

.about .gallery img{
  width:var(--intro-width) !important;
}

.about .gallery .clipped-border{
  padding: 5px;
  width: var(--intro-border-width) !important;
  height: var(--intro-border-height) !important;
  transition: transform 0.2s;
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  z-index:1 !important;
  top: 50px;
}

.about .gallery .clipped-border:after{
 content:'';
 position:absolute;
 border: 4px solid white;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index:0 !important;
}

.about .gallery .clipped-border:before{
  content:'';
  position:absolute;
  width:350px;
  height:80px;
  background:radial-gradient(rgba(255,255,255,0.76),rgba(255,255,255,0.02) 60%);
  top:0;
  left:0;
  z-index:1;
  transform:rotate(32deg);
  transition:transform 0.5s;
}

.about .clipped-border:hover:before{
  transform: translate(-100px,400%) rotate(32deg);
  transition:transform 0.5s;
}

.about #clipped {
-webkit-clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);

}

.about .clipped-border:hover{
  transform:scale(1.2);
  transition:transform 0.2s;
  z-index:10;
}

@media screen and (max-width:1367px){
  .about h2 {
    font-size: 48px;
    line-height: 50px;
  }

  .about .description {
    font-size: 23px;
    line-height: 24px;
  }
}

@media (max-width: 576px) {
  .about .img-container {
    text-align: center;
  }

  .about img{
    max-width: 200px;
    margin-bottom: 30px;
    margin: 0 auto;
  }

  .about {
    padding: 80px 0px 60px 0px !important;
  }

  .about h2 {
    font-size: 32px;
    line-height: 33px;
    padding: 0px 10px;
    margin-bottom: 30px;
    text-align: center !important;
  }

  .about .description {
    font-size: 22px;
    line-height: 23px;
    padding: 0px 10px;
    text-align: center;
  }

  :root{
    --intro-border-width: 300px;
    --intro-border-height: calc(300px * 3 / 4);
  }

  .about .gallery{
    display: block;
    position: relative !important;
    width:100% !important;
    height: auto;
    aspect-ratio: 4/3;
    transform: rotate(0deg) !important;
    top: -42px;
  }

  .about .gallery .clipped-border{
    left: 50%;
    transform: translateX(-150px);
  }
}
