/* ======= Universal CSS Properties ======== */ 
*, ::after, 
::before 
{ 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
} 
a { 
  color: #CC5500; 
} 
img { 
  width: 100%; 
  object-fit: cover; 
  vertical-align: middle; 
} 
body { 
  font-family: 'Poppins', sans-serif;
}  
 /* ======= Wrapper ======== */ 
.portfolio-container { 
  max-width: 1070px; 
  margin: 0 auto; 
  padding: 0 15px;
  display: flex; 
  flex-direction: column;
  justify-content: center; /* Center the gallery and buttons vertically */
  align-items: center; /* Center the content horizontally */
} 
.portfolio-row { 
  display: flex; 
  flex-wrap: wrap; 
} 

.portfolio-filter-nav {
  display: flex;
  flex-wrap: wrap;
}

/* ========= Button ====== */ 
.btn { 
  position: relative; 
  padding: 0 10px; 
  background-color: #BAB86C; 
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px; 
  line-height: 40px; 
  color: beige; 
  cursor: pointer; 
  border: 0; 
  font-family: 'Poppins', sans-serif; 
  margin-top: 1rem; 
  transition: .4s; 
} 
.btn:not(:last-child) { 
  margin-right: 15px; 
} 
.btn:hover, .btn.active { 
  background-color: #CC5500; 
  color: beige; 
} 

/* ====== Style for project section ====== */ 
#projects { 
  padding: 60px 0; 
} 
.filter-wrap { 
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  margin-top: 20px
} 
.portfolio-wrapper .portfolio-col { 
  display: flex; 
  flex-direction: column; gap: 15px; } /* Specific category height for images */ .portfolio-item img { border-radius: 5px; 
    width: 100%; 
    /* height: 350px;  */
    object-fit: cover; 
  } 
  .portfolio-item.engagement img { 
    height: 350px; 
  } 
  .portfolio-item.pre-wedding img { 
    height: 250px; 
  } 
  .portfolio-item.court-wedding img { 
    height: 350px; 
  } 
  .portfolio-item.white-wedding img { 
    height: 250px; 
  } 
  
  .portfolio-item.hide { 
    display: none; 
  } 
  .portfolio-item.show { 
    animation: fadein 4.5s ease; 
  } 
  @keyframes fadein { 
    0% { opacity: 0; } 
    100% { opacity: 1; } 
  } 
  
  /* category label */ 
  .category-label { 
    position: relative; 
    top: 10px; 
    left: 10px; 
    background-color: rgba(0, 0, 0, 0.5); 
    color: white; 
    font-size: 1.2rem; 
    padding: 5px 10px; 
    border-radius: 5px; 
    z-index: 2; 
    display: block; /* Initially show the category labels */ 
  } 


  .portfolio-wrapper { 
  display: grid; /* Use grid layout */ 
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid */ 
  gap: 15px;
  justify-items: center;
  margin-top: 30px; 
} 

.portfolio-item { 
    position: relative; 
    display: block; 
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 5px
  } 

  .portfolio-item img { 
    border-radius: 5px; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
  } 

/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.page-number,
.prev,
.next {
  background-color: #BAB86C;
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.page-number:hover,
.prev:hover,
.next:hover {
  background-color: #CC5500;
}

.page-number-active {
  background-color: #CC5500;
  color: beige;
}

.page-number,
.prev,
.next {
  color: beige;
}

.prev {
  font-weight: bold;
}

.next {
  font-weight: bold;
}

/* Base container - desktop */
.containe {
  position: relative;
  transform: translate(10%, 5%);
  width: 1000px;
  height: 600px;
  background: #f5f5f5;
  box-shadow: 0 30px 50px #dbdbdb;
  overflow: visible;
}

/* Items base styles */
.item {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  width: 220px;
  height: 300px;
  border-radius: 20px;
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none;
  background-position: 50% 50%;
  background-size: cover;
  box-shadow: 0 30px 50px #505050;
  filter: brightness(0.8);
  z-index: 1;
}

/* Central item */
.item.current-slide {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  border-radius: 0;
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
  filter: brightness(1);
}

/* Slide positions */
.item.slide-after {
  left: 50%;
  opacity: 1;
  pointer-events: auto;
  z-index: 4;
  filter: brightness(0.95);
}

.item.slide-after-next {
  left: calc(50% + 220px);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  filter: brightness(0.85);
}

.item.slide-before {
  left: -220px;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  filter: brightness(0.85);
}

/* Content inside each item */
.item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  width: 300px;
  text-align: left;
  color: #fff;
  transform: translate(0, -50%);
  font-family: system-ui;
  display: none;
  pointer-events: auto;
}

.item.current-slide .content,
.item.slide-after .content {
  display: block;
}

.content .name {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
}

.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
  background-color: #BAB86C;
}

/* Buttons */
.button {
  width: 100%;
  text-align: center;
  position: relative;
  bottom: 60px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.button button {
  /* width: 40px; */
  /* height: 35px; */
  border-radius: 8px;
  border: 1px solid #000;
  cursor: pointer;
  margin: 0 5px;
  transition: 0.3s;
  background: none;
  color: #000;
  font-size: 18px;
}

.button button:hover {
  background: #BAB86C;
  color: #fff;
}

/* Animate keyframes */
@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
  .containe {
    width: 90vw;
    height: 400px;
    transform: translate(5%, 0);
    box-shadow: 0 15px 30px #dbdbdb;
  }
  
  .item {
    width: 140px;
    height: 190px;
    border-radius: 15px;
  }
  
  .item.slide-after-next {
    left: calc(50% + 140px);
  }
  
  .item.slide-before {
    left: -140px;
  }
  
  .item.current-slide {
    height: 100%;
  }
  
  .item .content {
    left: 20px;
    width: 220px;
  }
  
  .content .name {
    font-size: 28px;
  }
  
  .content .des {
    font-size: 14px;
  }
  
  .content button {
    padding: 8px 15px;
    font-size: 14px;
    /* background-color: #CC5500; */
  }
  
  .button button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}


  
  /* ==== Large Device ==== */ 
  @media (min-width: 768px) { 
    .filter-wrap { 
      flex-direction: column;
      justify-content: space-between; 
      align-items: center; 
    } 
    .portfolio-wrapper { 
      flex-direction: row; 
    } 
    
  }