.gallery {
  padding: 0 50px;
}

.gallery-slide {
  display: none;
}

.gallery-slide.is-active {
  display: block;
}

.gallery-slide-slick {
  margin: 0 -50px;
}

.gallery-slide-item {
  padding: 0 50px;
  box-sizing: border-box;
}

.gallery-image {
  width: 100%;
  aspect-ratio:1;
    object-fit: cover;
}

.gallery-switch {
  margin: 32px 0 0;
}

.gallery-switch-list {
  display: flex;
  flex-flow: wrap;
  margin: -16px 0 0 -16px;
  justify-content: center;
}

.gallery-switch-item {
  flex: 0 0 auto;
  width: calc(100% / 3);
  margin: 16px 0 0 0;
  padding: 0 0 0 16px;
  box-sizing: border-box;
}

.gallery-switch-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  appearance: none;
}

.gallery-color {
  display: flex;
  flex-flow: column;
  align-items: center;
}

.gallery-color-palette {
  display: block;
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  padding: 4px;
  border: 1px solid #fff0;
  border-radius: 50%;
  box-sizing: border-box;
  background: content-box;
  transition: border-color 0.2s;
}

.gallery-switch-button:is(
  :hover,
  :active,
  :focus-visible,
  .is-active
) .gallery-color-palette {
  border-color: #0D5726;
}

.gallery-color-palette span {
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

.gallery-color-palette>span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.gallery-color-palette>.multiple {
  display: grid;
  grid-auto-flow: column;
}

.gallery-color-palette>.multiple>span {
  border-radius: 0;
}

.gallery-color-code {
  display: flex;
  flex-flow: column;
  align-items: center;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.gallery :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  appearance: none;
}

.gallery :is(
  .slick-prev,
  .slick-next
) {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: auto 0;
  overflow: hidden;
  text-indent: 100%;
  color: #0D5726;
}

.gallery :is(
  .slick-prev,
  .slick-next
):is(
  :hover,
  :active,
  :focus-visible
) {
  background: #fff;
}

.gallery :is(
  .slick-prev,
  .slick-next
)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / 3);
  height: calc(100% / 3);
  margin: auto;
  border: solid;
  border-width: 2px 2px 0 0;
}

.gallery .slick-prev {
  left: 50px;
}

.gallery .slick-prev::before {
  transform: translate(25%) rotate(-135deg);
}

.gallery .slick-next {
  right: 50px;
}

.gallery .slick-next::before {
  transform: translateX(-25%) rotate(45deg);
}

.gallery .slick-dots {
  display: flex;
  flex-flow: wrap;
  margin: 7px 0 0 -8px;
  justify-content: center;
}

.gallery .slick-dots li {
  flex: 0 0 auto;
  width: 100px;
  height: 120px;
  margin: 8px 0 0 8px;
  aspect-ratio: 1;
}

.gallery .slick-dots button {
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  overflow: hidden;
  background: 50% / cover no-repeat;
  transition: border-color 0.2s;
}

.gallery .slick-dots button>span {
  position: absolute;
  top: 0;
  left: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.gallery .slick-dots button:is(
  :hover,
  :active,
  :focus-visible
),
.gallery .slick-active button {
  border-color: #0D5726;
}

@media screen and (max-width: 767px) {

  .gallery {
    padding: 0;
  }

  .gallery-slide-slick {
    margin: 0;
  }

  .gallery-slide-item,
  .gallery-slide-nav {
    padding: 0 40px;
  }

  .gallery-switch-list {
    margin-left: 0;
  }

  .gallery-switch-item {
    padding-left: 0;
  }

  .gallery-color-palette {
    width: 40px;
    height: 40px;
    padding: 2px;
  }

  .gallery-color-code {
    font-size: 10px;
    line-height: 14px;
  }

  .gallery .slick-dots li {
    width: 50px;
    height: 50px;
  }

  .gallery :is(
    .slick-prev,
    .slick-next
  ) {
    width: 32px;
    height: 32px;
  }

  .gallery .slick-prev {
    left: 4px;
  }

  .gallery .slick-next {
    right: 4px;
  }

}
