/*Gallery CSS */
.galbody { 
    font-family: Arial, sans-serif; 
    /*background:#f7f7f7;*/ 
    background:url("../Image/galwal4.jpg") center top/ cover; 
    margin:0; 
    padding:20px; 
}
.container { 
    max-width:60%; 
    margin:40px auto; 
    background:white; 
    padding:20px; 
    border-radius:8px;
}
h2{ 
    margin-top:10px;
    text-align: center; 
}

h3 { 
    margin-top:0; 
}
#back{
  color:#000;
  font-size:18px;
}
.back{
  padding: 10px;
  border-radius: 5px;
  background-color: #FFB86A;
}
.back:hover{
  background-color: #f09029;
}
.grid { 
    display:flex; 
    flex-wrap:wrap; 
    gap:15px;
    padding:0 0 0 20px; 
}
.item { 
    width:calc(25% - 15px); 
    background:#fafafa; 
    border:1px solid #ddd; 
    border-radius:5px; 
    text-align:center; 
    padding:10px; 
    cursor:pointer; 
}
.item img { 
    width:100%; 
    height:160px; 
    object-fit:cover; 
    border-radius:4px; 
}
.back { 
    margin-bottom:15px; 
    display:inline-block; 
}
/* Lightbox styles */
#lightbox { 
    display:none; 
    position:fixed; 
    top:0;
    left:0;
    width:100%;
    height:100%; 
    background:rgba(0,0,0,0.8); 
    justify-content:center; 
    align-items:center; 
    z-index:1000; 
}
#lightbox img { 
    max-width:90%; 
    max-height:80%; 
}
#lb-close, #lb-prev, #lb-next { 
    position:absolute; 
    top:50%; 
    transform:translateY(-50%); 
    font-size:2rem; color:white; 
    background:rgba(0,0,0,0.5); 
    border:none; 
    padding:10px; 
    cursor:pointer; }
#lb-close { 
    top:20px; 
    right:20px; 
    font-size:1.5rem; 
    transform:none; 
}
#lb-prev { 
    left:20px; 
}
#lb-next { 
    right:20px; 
}
/* Responsive Gallery Grid */
@media (max-width: 1024px) {
  .item {
    flex: 1 1 calc(33.333% - 25px);
  }
  .container { 
    max-width:70%;
  } 
}

@media (max-width: 768px) {
  .item {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 480px) {
  .item {
    flex: 1 1 100%;
  }
}

/*carousel CSS*/
.car {
  margin: 0; padding: 0;
  /*background: #f5f5f5;*/
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.carousel-wrapper {
  width: 60%;
  height: 62vh;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  position: relative;
  user-select: none;
}

.carousel-item img {
  width: 100%;
  height: 567px;
  object-fit: fill;
  display: block;
}

/* Bottom strip container */
.bottom-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(43, 43, 43, 0.65);
  color: rgb(255, 255, 255);
  padding: 15px 20px;
  box-sizing: border-box;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1;
  user-select: none;
}

.nav-button:hover {
  background: rgba(0,0,0,0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
@media (max-width: 1629px) {
  .carousel-item img {
    height: 400px;
  }
  .carousel-wrapper {
      height: 400px;
  }
  .bottom-strip {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}
@media (max-width: 1024px) {
  .carousel-item img {
    height: 300px;
  }
  .carousel-wrapper {
      height: 300px;
  }
  .bottom-strip {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

@media (max-width: 600px) {
  .carousel-wrapper {
    width: 100%;
    height: 200px;
  }
  .carousel-item img {
    height: 200px;
  }
  .container { 
    max-width:90%;
  } 
  .bottom-strip {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}