/* Basic styling for the gallery (your existing styles may differ) */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.col-lg-4,
.col-md-6,
.col-sm-12 {
  padding: 0 15px;
  box-sizing: border-box;
}
.col-lg-4 {
  width: 33.333%;
}
.col-md-6 {
  width: 50%;
}
.col-sm-12 {
  width: 100%;
}
.gallery-block-one {
  margin-bottom: 30px;
  cursor: pointer;
}
.gallery-block-one img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s;
}
.gallery-block-one img:hover {
  transform: scale(1.02);
}
.gallery-block-one {
  width: 100%;
  height: 420px; /* or any fixed height you like */
  overflow: hidden;
  border-radius: 8px;
}
.gallery-block-one img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* covers the box without stretching */
  transition: transform 0.3s;
}
.gallery-block-one img:hover {
  transform: scale(1.05);
}
/* Lightbox modal styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.gallery-modal.active {
  display: flex;
}
.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background-color: transparent !important;
}
.modal-image {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  line-height: 1;
}
.close-btn:hover {
  color: #ccc;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 40px;
  /* padding: 10px 20px; */
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  user-select: none;
  line-height: 1;

  position: absolute;
    display: inline-block;
    width: 50px;
    height: 50px;
    /* line-height: 66px; */
    background-color: #002f65;
    text-align: center;
    border-radius: 50%;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}
.prev-btn {
  left: -60px;
}
.next-btn {
  right: -60px;
}
.caption {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  font-size: 16px;
}
@media (max-width: 768px) {
  .prev-btn {
    left: 5px;
  }
  .next-btn {
    right: 5px;
  }
  .nav-btn {
    font-size: 30px;
    padding: 5px 15px;
  }
}
