/* carousel.css - Dedicated styles for image carousels */

.carousel {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .carousel-item img {
    max-width: 1000px;
    margin: 0 auto;
  }
}

.carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.carousel-control {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  pointer-events: auto;
  transition: background-color 0.3s;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
  pointer-events: auto;
}

.carousel-indicator.active {
  background-color: var(--accent-color);
}

.carousel-caption {
  text-align: center;
  color: #b0b0b0;
  font-style: italic;
  margin-top: 1rem;
}

/* Image sequence display */
.image-sequence {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .image-sequence {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sequence-item {
  background-color: var(--card-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.sequence-item img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

.sequence-caption {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #b0b0b0;
}

/* Before/After Slider Styles */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .before-after-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .before-after-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.before-after-grid.single-comparison {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 2rem auto;
}

.before-after-item {
  background-color: var(--card-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.before-after-slider {
  position: relative;
  width: 100%;
  height: auto;
}

.before-image,
.after-image {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.before-image img,
.after-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.after-image {
  display: none;
}

.image-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.slider-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
}

.toggle-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #0088cc;
}

/* Instagram Link Styles */
.instagram-link {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background-color: var(--card-color);
  border-radius: 8px;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s;
  margin-top: 1rem;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  color: white;
}

.instagram-btn i {
  font-size: 1.2rem;
}

/* Image note styling */
.image-note {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  text-align: center;
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
