.veno-project-gallery {
  width: 100%;
  max-width: 1000px;
  margin: 32px 0 42px;
}

.veno-project-gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  max-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(214, 166, 117, .24);
  background: radial-gradient(ellipse at center, #1c2424 0%, #101516 72%);
}

.veno-project-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
}

.veno-project-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 4px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(9, 13, 14, .78);
  color: #f3f1ec;
  font-family: Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.veno-project-gallery__arrow:hover {
  border-color: var(--copper-light, #d6a675);
  background: var(--copper, #bd8954);
  color: #111;
}

.veno-project-gallery__arrow:focus-visible,
.veno-project-gallery__thumb:focus-visible {
  outline: 2px solid var(--copper-light, #d6a675);
  outline-offset: 3px;
}

.veno-project-gallery__arrow--prev { left: 16px; }
.veno-project-gallery__arrow--next { right: 16px; }

.veno-project-gallery__counter {
  position: absolute;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(9, 13, 14, .78);
  color: #f3f1ec;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.veno-project-gallery__thumbs {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 2px 2px 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 166, 117, .65) rgba(255, 255, 255, .08);
}

.veno-project-gallery__thumb {
  position: relative;
  display: block;
  flex: 0 0 116px;
  width: 116px;
  height: 78px;
  padding: 3px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
  background: #151b1b;
  opacity: .72;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.veno-project-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.veno-project-gallery__thumb:hover {
  opacity: 1;
  border-color: rgba(214, 166, 117, .7);
}

.veno-project-gallery__thumb.is-active {
  border: 2px solid var(--copper-light, #d6a675);
  padding: 2px;
  opacity: 1;
}

@media (max-width: 800px) {
  .veno-project-gallery {
    margin: 26px 0 34px;
  }

  .veno-project-gallery__stage {
    aspect-ratio: 4 / 3;
    min-height: 220px;
    max-height: 390px;
  }

  .veno-project-gallery__image {
    max-height: 390px;
  }

  .veno-project-gallery__arrow {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .veno-project-gallery__arrow--prev { left: 10px; }
  .veno-project-gallery__arrow--next { right: 10px; }

  .veno-project-gallery__thumb {
    flex-basis: 92px;
    width: 92px;
    height: 66px;
  }
}

@media (max-width: 520px) {
  .veno-project-gallery__stage {
    min-height: 205px;
    max-height: 330px;
  }

  .veno-project-gallery__image {
    max-height: 330px;
  }

  .veno-project-gallery__arrow {
    width: 36px;
    height: 36px;
    font-size: 29px;
  }

  .veno-project-gallery__counter {
    right: 9px;
    bottom: 9px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .veno-project-gallery__thumb {
    flex-basis: 82px;
    width: 82px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .veno-project-gallery__arrow,
  .veno-project-gallery__thumb {
    transition: none;
  }
}
