/* ===== Base Layout ===== */
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
    width: 100%;
  /* height: 100vh; */
  background: #fff;
  /* background: linear-gradient(#eabf97 40%, white 30%);; */
  background-image: url(../images/masterbg.gif);
  background-repeat: repeat-y;
}

.page-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* ✅ helps on small screens */
}

.text-column {
  flex: 2;
  line-height: 1.7;
  color: #333;
}

/* ===== Image Column ===== */
.image-column {
  flex: 1;
  text-align: center;
  position: sticky;
  top: 100px; /* below header */
}

.image-column img.intro-image {
  max-width: 100%;
  border-radius: 8px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.image-column img.intro-image:hover {
  transform: scale(1.02);
}

/* ===== Typography ===== */
p {
  font-size: 14px;
  color: #333;
}

/* ===== Responsive layout ===== */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column-reverse; /* ✅ Image ABOVE text */
    align-items: center;
    padding: 20px;
  }

  .image-column {
    position: relative; /* ✅ disables sticky */
    top: auto;
    margin-bottom: 20px; /* space between image and text */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-column img.intro-image {
    width: 85%;
    max-width: 350px;
  }

  .title-block h4 {
    font-size: 15px;
    line-height: 0px!important;
  }

  p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .image-column img.intro-image {
    width: 95%;
    max-width: 300px;
  }
}

/* ===== Desktop Sticky Behavior ===== */
@media (min-width: 769px) {
  .page-container {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .image-column {
    align-self: flex-start;
    position: sticky;
    top: 100px; /* adjust based on header height */
    max-height: 80vh;
  }
}

/* ===== Gallery Section ===== */
section.gallery {
  width: 100%;
  padding: 40px 0;
  background: #f9f3ee; /* same beige tone from your screenshot */
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  flex: 1 1 220px;      /* responsive column sizing */
  max-width: 260px;     /* limit width on large screens */
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;    /* maintain aspect ratio without stretch */
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .gallery-item img {
    height: 200px; /* smaller on tablets/mobile */
  }

  section.gallery {
    padding: 25px 10px;
  }
}

@media (max-width: 480px) {
  .gallery-item img {
    height: 180px;
  }
}
