/* Electrabike lifestyle gallery v33 — native scroll-snap.
   Slick is deliberately not used for this gallery. */

.model-photogallery-new {
  --eb-gallery-text: #312d2a;
  --eb-gallery-accent: #b98e5f;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0;
  background: #f7f5f2;
  color: var(--eb-gallery-text);
}

.model-photogallery-new__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.model-photogallery-new__subtitle {
  margin: 0 0 9px;
  color: var(--eb-gallery-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.model-photogallery-new__title {
  margin: 0;
  color: var(--eb-gallery-text);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.model-photogallery-new__nav {
  display: flex;
  gap: 9px;
}

.model-photogallery-new__nav-btn {
  position: static !important;
  inset: auto !important;
  display: inline-grid !important;
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border: 1px solid #d6cec5 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .82) !important;
  color: #514b46 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  transform: none !important;
  cursor: pointer;
  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.model-photogallery-new__nav-btn span {
  display: block !important;
  color: #514b46 !important;
  font: inherit !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.model-photogallery-new__nav-btn::before,
.model-photogallery-new__nav-btn::after {
  display: none !important;
  content: none !important;
}

.model-photogallery-new__nav-btn:hover:not(:disabled) {
  border-color: #b98e5f !important;
  background: #fff !important;
  color: #8f6339 !important;
  transform: translateY(-1px) !important;
}

.model-photogallery-new__nav-btn:disabled {
  opacity: .3 !important;
  cursor: default;
}

.model-photogallery-new__wrap,
.model-photogallery-new__inner-slider,
.model-photogallery-new__for-slider {
  position: relative;
}

.model-photogallery-new__inner-slider {
  max-width: none !important;
  padding: 0 !important;
}

.model-photogallery-new__slider {
  display: flex !important;
  width: 100%;
  gap: 18px;
  overflow-x: auto !important;
  overflow-y: hidden;
  padding:
    0
    max(16px, calc((100vw - min(72vw, 920px)) / 2));
  scroll-behavior: smooth;
  scroll-padding-inline:
    max(16px, calc((100vw - min(72vw, 920px)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}

.model-photogallery-new__slider::-webkit-scrollbar {
  display: none;
}

.model-photogallery-new__slider.slick-slider,
.model-photogallery-new__slider.slick-initialized {
  display: flex !important;
}

.model-photogallery-new__slider > .slick-list,
.model-photogallery-new__slider > .slick-track {
  display: contents !important;
}

.model-photogallery-new__slider .slick-cloned {
  display: none !important;
}

.model-photogallery-new__item {
  flex: 0 0 min(72vw, 920px);
  width: min(72vw, 920px);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: #e9e5e0;
  box-shadow: 0 20px 50px rgba(52, 44, 37, .08);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 1;
  filter: none;
  transform: scale(.965);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22, 1, .36, 1);
}

.model-photogallery-new.is-native-ready
  .model-photogallery-new__item:not(.is-active) {
  opacity: .56;
}

.model-photogallery-new__item.is-active {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1);
}

.model-photogallery-new__item::before,
.model-photogallery-new__item::after,
.model-photogallery-new__photo::before,
.model-photogallery-new__photo::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.model-photogallery-new__photo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e9e5e0;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.model-photogallery-new__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.model-photogallery-new__item.is-active
  .model-photogallery-new__image:hover {
  transform: scale(1.025);
}

.model-photogallery-new__dots {
  min-height: 18px;
  margin-top: 22px;
}

.model-photogallery-new__dots-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-photogallery-new__dot {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #beb6ad;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.model-photogallery-new__dot.is-active {
  width: 22px;
  background: #b98e5f;
}

@media (max-width: 760px) {
  .model-photogallery-new {
    padding: 58px 0;
  }

  .model-photogallery-new__header {
    align-items: center;
    margin-bottom: 24px;
  }

  .model-photogallery-new__title {
    font-size: 31px;
  }

  .model-photogallery-new__subtitle {
    max-width: 75vw;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .model-photogallery-new__nav {
    display: none;
  }

  .model-photogallery-new__slider {
    gap: 10px;
    padding: 0 16px;
    scroll-padding-inline: 16px;
  }

  .model-photogallery-new__item {
    flex-basis: calc(100vw - 32px);
    width: calc(100vw - 32px);
    aspect-ratio: 4 / 3;
    border-radius: 9px;
    opacity: 1 !important;
    transform: none;
  }

  .model-photogallery-new__dots {
    margin-top: 16px;
  }
}
