/* Blog gallery carousel */
.blog-gallery {
  position: relative;
}

.blog-gallery__viewport {
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 40px 100px rgba(28, 27, 26, 0.12);
  ring: 1px solid rgba(28, 27, 26, 0.06);
  border: 1px solid rgba(28, 27, 26, 0.06);
}

.blog-gallery__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.blog-gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #f5f0e8;
}

.blog-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.blog-gallery__arrow {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 27, 26, 0.1);
  background: #fdfcf9;
  color: #1c1b1a;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.blog-gallery__arrow:hover:not(:disabled) {
  border-color: rgba(158, 139, 104, 0.45);
  color: #9e8b6a;
}

.blog-gallery__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.blog-gallery__dots {
  display: flex;
  gap: 0.4rem;
}

.blog-gallery__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(28, 27, 26, 0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.blog-gallery__dot.is-active {
  background: #9e8b6a;
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .blog-gallery__track {
    transition: none;
  }
}
