/* 
  .container1 {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    box-sizing: border-box;
    
  }
  .box1 {
    background-color: black;
    
    overflow: hidden;
    object-fit: cover;
    background-position: center;  
    height: 180px;
    width: 200px;
    margin-right: -200px;
    margin-top: 19px;
    border-radius: 10px;
  }
  .box2 {
    background-color: red;

    overflow: hidden;
    object-fit: cover;
    background-position: center;
    height: 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    margin-top: 203px;
    border-radius: 10px;
  }
  .box3 {
    background-color: blue;
    border: 1px solid;
    
    overflow: hidden;
    object-fit: cover;
    background-position: center;
    height: 400px;
    width: 250px;
    margin-left: 10px;
    border-radius: 10px;
  }
  .box4 {
    background-color: green;
    
    overflow: hidden;
    object-fit: cover;
    background-position: center;
    height: 300px;
    width: 350px;
    margin-left: 10px;
    margin-top: 109px;
    border-radius: 10px;
  }
  .box5 {
    background-color: white;
    height: 150px;
    width: 600px;
    margin-left: -675px;
    margin-top: 304px;
    border-radius: 20px;
    
    box-shadow: 3px 4px rgb(210, 210, 210);
  }
  .my_content {
    text-align: center;
    padding: 20px;
  }
  .my_content h3 {
    font-size: 28px;
  }
  .my_content p {
    font-size: 20px;
    margin-top: 5px;
  }
  
  
@media (max-width:1200px) {
  .box1,.box2,.box3,.box4,.box5{
    justify-content: center ;
    height: auto;
  }
  .container1{
    width: auto;
    height: auto;
  }
  
}
@media (max-width:950px) {
  .box1,.box2.box3.box4,.box5{
    justify-content: center ;
    height: auto;
    align-items: center;
    

    height: 50vh  ;
    .container1{
      width: auto;
      height: auto;
    }
  }
  
}
@media (max-width:720px) {
  .box1,.box2.box3.box4,.box5{
    justify-content: center ;
    height: auto;
    align-items: center;

    

    height: 50vh  ;
    .container1{
      width: auto;
      height: auto;
    }
  }
  
} */


.custom-gallery-section {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #fff; /* Background color to make sure border is visible */
}

.custom-gallery-header {
  padding: 20px;
  text-align: center;
}

.custom-gallery-header h1 {
  margin: 0;
  font-size: 2em;
  color: #333;
}

.custom-gallery-header p {
  margin: 10px 0;
  font-size: 0.9em;
  text-align: center;
  padding: 0 10%;
  color: #666;
}

.custom-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.custom-gallery-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.custom-gallery-item img {
  width: 100%;
  height: 100%;
   object-position: center;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.custom-gallery-item:hover img {
  transform: scale(1.1);
}

.custom-gallery-item:nth-child(1),
.custom-gallery-item:nth-child(2),
.custom-gallery-item:nth-child(3) {
  height: 200px;
}

.custom-gallery-item:nth-child(4) {
  grid-column: span 2;
  height: 200px;
}

.custom-gallery-item:nth-child(5) {
  grid-column: span 1;
  height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-gallery-section {
      width: 80%;
  }

  .custom-gallery-item:nth-child(1),
  .custom-gallery-item:nth-child(2),
  .custom-gallery-item:nth-child(3),
  .custom-gallery-item:nth-child(4),
  .custom-gallery-item:nth-child(5) {
      height: 150px;
  }
}

@media (max-width: 460px) {
  .custom-gallery-section {
      width: 90%;
  }

  .custom-gallery {
      grid-template-columns: repeat(2, 1fr);
      gap: 3px;
  }

  .custom-gallery-item:nth-child(1),
  .custom-gallery-item:nth-child(2),
  .custom-gallery-item:nth-child(3),
  .custom-gallery-item:nth-child(4),
  .custom-gallery-item:nth-child(5) {
      height: 120px;
  }
}

@media (max-width: 320px) {
  .custom-gallery-section {
      width: 100%;
  }

  .custom-gallery {
      grid-template-columns: 1fr;
      gap: 3px;
  }

  .custom-gallery-item:nth-child(1),
  .custom-gallery-item:nth-child(2),
  .custom-gallery-item:nth-child(3),
  .custom-gallery-item:nth-child(4),
  .custom-gallery-item:nth-child(5) {
      height: 80px; /* Further reduced height for extra small screens */
  }
}
