/* BVM Gallery Carousel — [bvm_gallery] */

.bvm-gallery {
 /*  --bvm-gallery-bg: #f7f4f0;
  --bvm-gallery-blue: #f47a20;
  --bvm-gallery-gap: 16px;
  --bvm-gallery-max: 1240px;
  --bvm-gallery-gutter: max(20px, calc((100vw - var(--bvm-gallery-max)) / 2));
  --bvm-gallery-carousel-inset: clamp(140px, 14vw, 280px);

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--bvm-gallery-bg);
  padding: 56px 0 64px;
  overflow: hidden; */
  
   --bvm-gallery-bg: #f7f4f0;
  --bvm-gallery-blue: #f47a20;
  --bvm-gallery-gap: 16px;
  --bvm-gallery-max: 1240px;
  --bvm-gallery-gutter: max(20px, calc((100vw - var(--bvm-gallery-max)) / 2));
  --bvm-gallery-carousel-inset: clamp(140px, 14vw, 280px);
    position: relative;
    padding: 56px 0 64px;
    overflow: hidden;
}

.bvm-gallery__wrap {
  width: min(var(--bvm-gallery-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 var(--bvm-gallery-gutter);
  box-sizing: content-box;
}

.bvm-gallery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.bvm-gallery__title {
  margin: 0;
  font-family: Oswald, "Segoe UI", sans-serif;
  font-size: clamp(28px, 3vw, 44px) !important;
  font-weight: 700;
  line-height: 1.1;
  color: #111;
  text-transform: none;
}

.bvm-gallery__arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bvm-gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bvm-gallery-blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.bvm-gallery__arrow--next {
  background: #f47a20;
}

.bvm-gallery__arrow:hover,
.bvm-gallery__arrow:focus-visible {
  background: #f47a20;
  outline: none;
  transform: scale(1.04);
}

.bvm-gallery__arrow--next:hover,
.bvm-gallery__arrow--next:focus-visible {
  background: #f47a20;
}

.bvm-gallery__arrow span {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.bvm-gallery__arrow--prev span {
  transform: rotate(-135deg) translateX(1px);
}

.bvm-gallery__arrow--next span {
  transform: rotate(45deg) translateX(-1px);
}

.bvm-gallery-empty {
  margin: 0;
  padding: 1rem;
  color: #666;
  font-size: 14px;
}

.bvm-gallery-carousel-outer {
  position: relative;
  width: 100%;
  padding-left: calc(var(--bvm-gallery-gutter) + var(--bvm-gallery-carousel-inset));
  padding-right: 0;
  box-sizing: border-box;
}

.bvm-gallery-carousel {
  margin: 0 calc(var(--bvm-gallery-gap) / -2);
}

.bvm-gallery-carousel .slick-list {
  overflow: visible;
}

.bvm-gallery-carousel .slick-track {
  display: flex;
  align-items: stretch;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bvm-gallery-carousel__slide {
  padding: 0 calc(var(--bvm-gallery-gap) / 2);
  box-sizing: border-box;
}

.bvm-gallery-carousel__inner {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e8e8e8;
}

.bvm-gallery-carousel__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 300px;
  max-height: 440px;
  object-fit: cover;
  object-position: center;
}

.bvm-gallery-carousel .slick-arrow.slick-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .bvm-gallery {
    --bvm-gallery-carousel-inset: clamp(80px, 10vw, 160px);
    padding: 48px 0 56px;
  }

  .bvm-gallery-carousel__image {
    min-height: 260px;
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  .bvm-gallery {
    --bvm-gallery-carousel-inset: 48px;
    padding: 40px 0 48px;
  }

  .bvm-gallery__head {
    margin-bottom: 20px;
  }

  .bvm-gallery-carousel__image {
    min-height: 240px;
    max-height: 340px;
  }
}
