/* Before & After Gallery Carousel Styles */

/* Normalize Housecall CTA elements so <button> and <a> match visually */
.hcp-button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  cursor: pointer;
}

.before-after-gallery {
  background: #0d1726;
  padding: 60px 20px;
  margin: 40px 0;
}

.before-after-gallery h2 {
  text-align: center;
  color: #10243f;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  letter-spacing: 1px;
}

.carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.carousel-container {
  background: #08111f;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #08111f;
}

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  background: #000;
  overflow: hidden;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(34, 211, 238, 0.9);
  color: #08111f;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Responsive Design */

@media (max-width: 768px) {
  .before-after-gallery h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .carousel-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .before-after-gallery {
    padding: 40px 15px;
    margin: 30px 0;
  }

  .before-after-gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .carousel-label {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
