.elementor-26298 .elementor-element.elementor-element-8c2fd00{--display:flex;}/* Start custom CSS *//* =========================
   GRID LAYOUT
========================= */
.xp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .xp-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .xp-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .xp-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* =========================
   CARD
========================= */
.xp-item {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xp-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =========================
   IMAGE
========================= */
.xp-img {
  display: block;
  overflow: hidden;
}

.xp-img img {
  width: 100%;
  aspect-ratio: 3 / 4; /* Portrait ratio */
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

/* subtle zoom effect */
.xp-item:hover .xp-img img {
  transform: scale(1.05);
}

/* =========================
   CONTENT AREA
========================= */
.xp-title,
.xp-meta {
  padding: 0 12px;
}

/* =========================
   TITLE
========================= */
.xp-title {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.xp-title a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  transition: color 0.2s ease;
}

.xp-title a:hover {
  color: #0073e6;
}

/* =========================
   META (Party + Constituency)
========================= */
.xp-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* Party styling */
.xp-party {
  font-weight: 600;
  color: #333;
}

/* Constituency clickable */
.xp-constituency {
  color: #888;
}

/* clickable taxonomy links */
.xp-const-link {
  color: #0073e6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.xp-const-link:hover {
  text-decoration: underline;
}

/* =========================
   LOAD MORE BUTTON
========================= */
.xp-load-more-wrap {
  text-align: center;
  margin-top: 30px;
}

#xp-load-more {
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #0073e6, #005bb5);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

#xp-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 115, 230, 0.3);
}

/* =========================
   OPTIONAL: BADGE STYLE
========================= */
.xp-party {
  background: #f3f6fb;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  margin-right: 4px;
}

.xp-const-link {
  background: #eef4ff;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 12px;
}/* End custom CSS */