
.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ddd;
}

.gallery .slides {
  display: flex;
  height: 100%;
  transition: transform 0.38s ease-out;
  will-change: transform;
}

.gallery .slide {
  flex: 0 0 100%;
  height: 100%;
}

.gallery .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Точки — активната е „хапче“ */
.gallery .dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 2;
}

.gallery .dot {
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.28s ease, background 0.2s ease;
}

.gallery .dot:not(.is-active) {
  width: 7px;
}

.gallery .dot.is-active {
  width: 20px;
  background: rgba(255, 255, 255, 0.95);
}

/* База за кръгли бутони върху галерията */
.gallery .icon-btn {
  position: absolute;
  z-index: 3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* gallery.html — долен ред (любими / споделяне) */
.gallery:not(.gallery--item) .icon-btn {
  bottom: 14px;
  width: 42px;
  height: 42px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
}

.gallery:not(.gallery--item) .icon-btn svg {
  display: block;
}

.gallery:not(.gallery--item) .icon-btn.fav {
  left: 14px;
}

.gallery:not(.gallery--item) .icon-btn.share {
  right: 14px;
}

.gallery:not(.gallery--item) .share svg {
  transform: translateX(-1px);
}

.gallery:not(.gallery--item) .fav.is-on svg path {
  fill: #e11;
  stroke: #e11;
}

/* item.html — долу вляво / вдясно */
.gallery.gallery--item .icon-btn.share {
  position: absolute;
  bottom: 10px;
  left: 10px;
  top: auto;
  right: auto;
  width: 36px;
  height: 36px;
  background: #FFFC;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery.gallery--item .icon-btn.share:active {
  filter: brightness(0.96);
}

.gallery.gallery--item .icon-btn.share svg {
  display: block;
  width: 22px;
  height: 22px;
  transform: translateX(-1px);
}

.gallery.gallery--item .heart {
  position: absolute;
  bottom: 10px;
  right: 10px;
  top: auto;
  z-index: 3;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #FFFC;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
}

.gallery.gallery--item .heart svg {
  display: block;
  width: 22px;
  height: 22px;
}

.gallery.gallery--item .heart:active {
  filter: brightness(0.96);
}
