@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300;400;700&display=swap');

:root {
  --rp-green: #2f5d2f;
  --rp-green-dark: #17351f;
  --rp-beige: #f7f4ed;
  --rp-muted: #6f756f;
}

.rp-gallery-wrap,
.rp-gallery-wrap * {
  box-sizing: border-box;
  font-family: 'Oxygen', Arial, sans-serif !important;
}

.rp-gallery-wrap {
  width: 100%;
}

.rp-gallery-wrap__head {
  margin: 0 0 18px;
}

.rp-gallery-wrap__head h3 {
  margin: 0;
  color: var(--rp-green-dark);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rp-gallery-wrap__head p {
  margin: 10px 0 0;
  color: var(--rp-muted);
  font-size: 14px;
  line-height: 1.65;
}

.rp-gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.rp-gallery-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rp-gallery-carousel__track::-webkit-scrollbar {
  display: none;
}

.rp-gallery-carousel__slide {
  flex: 0 0 78%;
  min-width: 0;
  scroll-snap-align: start;
}

.rp-gallery-carousel--wide .rp-gallery-carousel__slide {
  flex-basis: 100%;
}

.rp-gallery-carousel--compact .rp-gallery-carousel__slide {
  flex-basis: 58%;
}

.rp-gallery-carousel__link {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #eef3df;
  text-decoration: none;
  cursor: zoom-in;
}

.rp-gallery-carousel__link img {
  display: block;
  width: 100%;
  height: var(--rp-gallery-height, 245px);
  object-fit: cover;
  transition: transform 0.28s ease;
}

.rp-gallery-carousel__link:hover img {
  transform: scale(1.04);
}

.rp-gallery-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--rp-green-dark) !important;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(23, 53, 31, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rp-gallery-carousel__arrow::before {
  content: '';
  width: 13px;
  height: 13px;
  border-top: 2.4px solid currentColor;
  border-right: 2.4px solid currentColor;
}

.rp-gallery-carousel__arrow--prev {
  left: 12px;
}

.rp-gallery-carousel__arrow--prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.rp-gallery-carousel__arrow--next {
  right: 12px;
}

.rp-gallery-carousel__arrow--next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.rp-gallery-carousel__arrow:hover {
  background: var(--rp-green) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.06);
}

.rp-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 28, 20, 0.92);
}

.rp-gallery-lightbox.is-open {
  display: flex;
}

.rp-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.rp-gallery-lightbox__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-gallery-lightbox__image-wrap {
  width: 100%;
  text-align: center;
}

.rp-gallery-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(82vh, 900px);
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.rp-gallery-lightbox__close,
.rp-gallery-lightbox__nav {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--rp-green-dark) !important;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.rp-gallery-lightbox__close:hover,
.rp-gallery-lightbox__nav:hover {
  background: var(--rp-green) !important;
  color: #ffffff !important;
}

.rp-gallery-lightbox__close {
  top: -18px;
  right: -18px;
  width: 52px;
  height: 52px;
  font-size: 28px;
  line-height: 1;
}

.rp-gallery-lightbox__nav {
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translateY(-50%);
}

.rp-gallery-lightbox__nav--prev {
  left: 8px;
}

.rp-gallery-lightbox__nav--next {
  right: 8px;
}

.rp-gallery-lightbox__nav::before {
  content: '';
  width: 15px;
  height: 15px;
  border-top: 2.6px solid currentColor;
  border-right: 2.6px solid currentColor;
}

.rp-gallery-lightbox__nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.rp-gallery-lightbox__nav--next::before {
  transform: rotate(45deg);
  margin-right: 5px;
}

.rp-gallery-lightbox__counter {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
}

body.rp-gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .rp-gallery-carousel__slide,
  .rp-gallery-carousel--compact .rp-gallery-carousel__slide {
    flex-basis: 88%;
  }

  .rp-gallery-carousel--wide .rp-gallery-carousel__slide {
    flex-basis: 100%;
  }

  .rp-gallery-carousel__arrow {
    width: 44px;
    height: 44px;
  }

  .rp-gallery-lightbox {
    padding: 16px;
  }

  .rp-gallery-lightbox__close {
    top: -10px;
    right: -2px;
    width: 46px;
    height: 46px;
  }

  .rp-gallery-lightbox__nav {
    width: 48px;
    height: 48px;
  }

  .rp-gallery-lightbox__nav--prev {
    left: 6px;
  }

  .rp-gallery-lightbox__nav--next {
    right: 6px;
  }
}
