/* Unique Solar Gallery Section */
.sp-gal-section {
  padding: 80px 20px;
  background-color: #fcfcfc;
}

.sp-gal-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

/* Header */
.sp-gal-heading-wrap {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.sp-gal-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #BE2E2E;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.sp-gal-badge::before,
.sp-gal-badge::after {
  content: "";
  width: 25px;
  height: 2px;
  background-color: #BE2E2E;
}

.sp-gal-heading-wrap h2 {
  font-size: 38px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px;
}

.sp-gal-heading-wrap p {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

/* Grid Layout */
.sp-gal-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card Container */
.sp-gal-item-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sp-gal-item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(190, 46, 46, 0.25);
}

/* Image Box */
.sp-gal-media-box {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f4f4f4;
}

.sp-gal-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sp-gal-item-card:hover .sp-gal-media-box img {
  transform: scale(1.05);
}

/* Bottom Title Info */
.sp-gal-meta-info {
  padding: 18px 15px;
  background: #ffffff;
}

.sp-gal-meta-info h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #222222;
  transition: color 0.3s ease;
}

.sp-gal-item-card:hover .sp-gal-meta-info h3 {
  color: #BE2E2E;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .sp-gal-layout-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .sp-gal-heading-wrap h2 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .sp-gal-section {
    padding: 50px 15px;
  }
  .sp-gal-layout-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sp-gal-heading-wrap h2 {
    font-size: 26px;
  }
  .sp-gal-heading-wrap p {
    font-size: 14px;
  }
}