/* GALLERY SECTION WRAPPER */
.society-gallery-section {
  padding: 90px 0;
  background: #f5f5f8;
  color: #161827;
}

/* MAIN LAYOUT */
.society-gallery-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* LEFT HERO PANEL */
.society-gallery-left {
  flex: 0 0 40%;
  position: sticky;
  top: 100px;
}

/* Big card look similar to reference left block */
.society-gallery-hero-card {
  background: #ded6c4;
  border-radius: 28px;
  padding: 28px 28px 22px 28px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.society-gallery-hero-label {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.08);
  color: #423728;
  margin-bottom: 10px;
}

.society-gallery-hero-title {
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 8px 0;
  color: #222222;
}

.society-gallery-hero-text {
  font-size: 0.98rem;
  color: #4b4336;
  margin: 0 0 18px 0;
}

/* Big image inside hero card */
.society-gallery-hero-image-wrap {
  border-radius: 20px;
  overflow: hidden;
}

.society-gallery-hero-image {
  display: block;
  width: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 280ms ease;
}

.society-gallery-hero-card:hover .society-gallery-hero-image {
  transform: scale(1.06);
}

/* Note text under hero card */
.society-gallery-hero-note {
  font-size: 0.9rem;
  color: #666e86;
  margin-top: 18px;
}

/* RIGHT SCROLLABLE COLUMN */
.society-gallery-right {
  flex: 1;
  max-height: 650px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Only this scrollbar is customised */
.society-gallery-right::-webkit-scrollbar {
  width: 6px;
}

.society-gallery-right::-webkit-scrollbar-track {
  background: transparent;
}

.society-gallery-right::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

/* IMAGE CARDS */
.society-gallery-card {
  margin-bottom: 26px;
}

.society-gallery-card:last-child {
  margin-bottom: 0;
}

.society-gallery-card-image-wrap {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #0b1120;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
  transform: translateY(0) translateX(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

/* full image */
.society-gallery-card-image {
  display: block;
  width: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 320ms ease;
}

/* overlay (badge + small title) at bottom */
.society-gallery-card-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.88),
    rgba(15, 23, 42, 0.65),
    transparent
  );
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.society-gallery-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: rgba(255, 255, 255, 0.16);
  color: #fef9c3;
}

.society-gallery-card-title {
  font-size: 0.98rem;
  color: #f9fafb;
  margin: 0;
}

/* hover states */
.society-gallery-card-image-wrap:hover {
  transform: translateY(-6px) translateX(4px);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.55);
}

.society-gallery-card-image-wrap:hover .society-gallery-card-image {
  transform: scale(1.07);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .society-gallery-layout {
    flex-direction: column;
  }

  .society-gallery-left {
    position: static;
  }

  .society-gallery-right {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    margin-top: 30px;
  }
}

@media (max-width: 575.98px) {
  .society-gallery-section {
    padding: 60px 0;
  }

  .society-gallery-hero-card {
    padding: 22px 18px 16px 18px;
  }

  .society-gallery-hero-title {
    font-size: 1.9rem;
  }
}
