.before-after {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 32px;
}

.loading-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  color: #666;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
}

.active {
  opacity: 1;
}

.label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1.1em;
  font-weight: bold;
}

.bottom-blob {
  background-color: #b3afa5;
  margin: 20px auto 0;
  padding: 15px 25px;
  border-radius: 30px;
  max-width: 80%;
  font-size: 1.2em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  color: var(--text-color);
}

.fade {
  transition: opacity 0.75s ease-in-out;
}

.fade.transparent {
  opacity: 0;
}

@media (max-width: 768px) {
  .before-after {
    margin: 20px;
    padding: 10px;
  }

  .image-container {
    aspect-ratio: 4/3;
  }

  .label {
    font-size: 1em;
    padding: 6px 16px;
    bottom: 15px;
  }

  .bottom-blob {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 90%;
    margin: 15px auto 0;
  }
}

.cta-section {
  text-align: center;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--vintage-brown);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.contact-info {
  text-align: center;
  margin-top: 40px;
  font-size: 1.2em;
  position: relative;
}
