@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');


.cpp-portfolio {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    justify-items: center;
    flex-wrap: wrap;
}

.protfolio-box {
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.14);
    transition: all .6s ease-in-out;
    width: calc(33.333% - 16px);
}
  
.protfolio-box:nth-child(n + 4):nth-child(-n + 6),
.protfolio-box:nth-child(n + 10):nth-child(-n + 12) {
  flex-direction: row-reverse;
}

  .left-panel, .right-panel {
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
  }

  .left-panel {
    flex: 1;
    background: linear-gradient(90deg, #A66E57 0%, #4D3528 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: all .6s ease-in-out;
    text-align: center;
    min-height: 270px;
  }
  
  /* .left-panel h1 {
    font-style: italic;
    font-weight: 600;
    font-size: 2rem;
    margin: 0;
    color: #fff;
    transform: translate3d(0px, 100%, 0px);
     transition: all .6s ease-in-out;
  } */

  .left-panel h1 {
    font-style: italic;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    color: #fff;
    transform: translate3d(0px, 0%, 0px);
    transition: all .6s ease-in-out;
    display: flex;
    align-items: center;
	    font-family: "Lora", serif;
    justify-content: center;
    text-align: center;
    width: 100%;
      /* height: 100%; */
}
  
  .left-panel img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.4));
    transform: translate3d(0px, 250px, 0px);
    transition: all .6s ease-in-out;
   
      position: absolute;
  }
  
  .right-panel {
    flex: 1;
    background-color: #1D1917;
    color: white;
	  padding:0 !important;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .right-panel p {
    margin-bottom:10px;
  }
  .right-panel img
  {
/*     height: 300px; */
	      min-height: 320px;
    height: fit-content;
/*     padding: 15px; */
	   object-fit: cover;
    transition: all .6s ease-in-out;
  }

.portfolio-content {
    position: absolute;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    top: 00;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
     transform: translate3d(0px, 100%, 0px);
     transition: all .6s ease-in-out;
	text-align:center
}

 .btn-download {
    align-self: flex-start;
    background-color: #DDB656;
    color: #222;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    transition: background-color 0.3s ease;
    font-family: Arial, sans-serif;
	   margin: 10px auto;
	 display:none;
  }
  
  .btn-download:hover {
    background-color: #c1a73a;
  }

  .protfolio-box:hover .portfolio-content
  {
    transform: translate3d(0px, 0%, 0px);
    transition: all .6s ease-in-out;
  }
  .protfolio-box:hover .left-panel img 
  {
    transform: translate3d(0px, 10%, 0px);
    transition: all .6s ease-in-out;
  }

  .protfolio-box:hover .left-panel h1 {
    transform: translate3d(0px, -90px, 0px);
    transition: all .6s ease-in-out;
}


 @media (max-width: 1366px) 
  {
    .cpp-portfolio 
    {
        grid-template-columns: repeat(2,1fr);
    }
    .left-panel h1 {
      font-size: 20px;
    }
    .right-panel p {
      font-size: 14px;;
      margin-bottom: 10px;
  }
    .btn-download {
      padding: 7px 10px;
      font-size: 14px;
  }
  }

@media (max-width:1024px) {
    .cpp-portfolio .protfolio-box{
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}


 @media (max-width: 800px) 

 {
    .cpp-portfolio .protfolio-box
    {
        flex: 0 0 100%;
        max-width: 100%;
    }
	 
 }
  
  /* Responsive */
  @media (max-width: 700px) {
    .container {
      flex-direction: column;
      max-width: 90%;
    }
    .left-panel, .right-panel {
      padding: 20px 15px;
    }
    .left-panel h1 {
      font-size: 1.5rem;
    }
    .right-panel p {
      margin-bottom: 25px;
      font-size: 0.95rem;
    }
    .btn-download {
      padding: 8px 20px;
      font-size: 0.95rem;
    }
	
  }

@media (max-width: 600px)
{
  .cpp-portfolio {
      gap: 10px;
  }
    .protfolio-box
  {
    display: block;
    box-shadow:  none !important;
    margin: 0;
    border-radius: 0 ;
  }
  .left-panel
  {
  min-height:50px;
  }
  .left-panel h1
  {
    font-size: 20px;
    transform: translate3d(0px, 0%, 0px);
  }
  .left-panel img
  {
    display: none !important;
  }

  .right-panel
  {
    opacity: 0;;
    height: 0;
    padding: 0 !important;
  }
  .protfolio-box:hover .left-panel h1 {
      transform: translate3d(0px, 0px, 0px);
      transition: all .6s ease-in-out;
  }
  .protfolio-box:hover .right-panel {
      opacity: 1;
      height: auto;
  }
}