
.threeimgs_gallery { 
  position: relative;
}

/* ---------- Top Image ---------- */
.threeimgs_gallery .gallery-top {
  position: relative;
}

.threeimgs_gallery .gallery-top img {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  display: block;
  object-fit: cover;
}

.gallery-top-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  max-width: 80%;
}

.gallery-top-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.gallery-top-content p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.gallery-btn {
  background: #007bff;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.gallery-btn:hover {
  background: #0056b3;
}

/* ---------- Bottom Images ---------- */
.threeimgs_gallery .gallery-bottom {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: -70px;
  flex-wrap: wrap;
}

.threeimgs_gallery .gallery-bottom img {
  width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background: #fff;
  transition: transform 0.3s ease;
  z-index: 9;
}

.threeimgs_gallery .gallery-bottom img:hover {
  transform: translateY(-5px);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .gallery-top-content h2 { font-size: 1.7rem; }
  .gallery-top-content p { font-size: 1rem; }
  .gallery-btn { padding: 8px 18px; font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .threeimgs_gallery .gallery-bottom {
    margin-top: -40px;
    gap: 15px;
  }

  .threeimgs_gallery .gallery-bottom img {
    width: 45%;
  }
}

@media (max-width: 500px) {
  .threeimgs_gallery .gallery-bottom img {
    width: 85%;
  }

  .gallery-top-content {
    max-width: 90%;
  }

  .gallery-top-content h2 {
    font-size: 1.4rem;
  }

  .gallery-top-content p {
    font-size: 0.9rem;
  }
}