/* Body & Heading */
body {
  margin: 0;
  padding: 50px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #ffffff);
}

.gallery-heading {
  text-align: center;
  margin-bottom: 50px;
  color: #2c3e50;
  font-size: 42px;
  letter-spacing: 1px;
}

/* Container */
.gallery-container {
  max-width: 1100px;
  margin: auto;
}

/* Card Base */
.gallery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Zig-Zag */
.gallery-card.left {
  flex-direction: row;
}

.gallery-card.right {
  flex-direction: row-reverse;
}

/* Image styling */
.gallery-card img {
  width: 50%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 0; /* outer card already rounded */
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Card details */
.card-details {
  padding: 40px 30px;
  width: 50%;
  background: #ffffff;
}

.card-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2980b9;
  font-size: 28px;
}

.card-details p {
  color: #444;
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .gallery-card {
    flex-direction: column;
  }

  .gallery-card.left,
  .gallery-card.right {
    flex-direction: column;
  }

  .gallery-card img,
  .card-details {
    width: 100%;
  }

  .gallery-card img {
    height: 220px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .card-details {
    padding: 30px 20px;
  }
}

/* Optional: Soft border on image */
.gallery-card img {
  border-right: 3px solid #f0f4f8;
}

.gallery-card.right img {
  border-left: 3px solid #f0f4f8;
  border-right: none;
}