.small-gallery {
  max-width: 696px;
  margin: 0 auto;
}
.small-gallery.horizontal img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.small-gallery.vertical img {
  aspect-ratio: 2/3;
  object-fit: cover;
}

.carousel-item .card-img-bg-md,
.card-council-md {
  margin: auto;
}

.small-gallery.full-width {
  width: 100%;
  max-width: var(--max-width-sm);
  margin-bottom: 120px;
}

.sub-section .small-gallery.full-width {
  margin-bottom: 48px;
}
.small-gallery.full-width .container-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.wp-block-eume-eume-subsection-block:has(.small-gallery.full-width)
  .small-gallery.full-width {
  padding: 0 !important;
}
.slick-dotted.slick-slider {
  margin-bottom: 0 !important;
  border-radius: 24px;
  overflow: hidden;
}

.small-gallery .container-2 {
  width: 40%;
  transition: all 0.4s ease-in-out;
}

.small-gallery.full-width .container-2 {
  width: 50%;
  gap: 4px;
}

@media (max-width: 768px) {
  .small-gallery .container-2,
  .small-gallery.full-width .container-2 {
    width: 100%;
  }
}

.three-images-gallery {
  max-width: var(--max-width-sm);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  transition: all 0.4s ease-in-out;
  margin-bottom: 80px;
}
.three-images-gallery .container-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.container-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container-2 p:first-child {
  margin-bottom: 4px;
}

.three-images-gallery .img-container-1,
.three-columns-gallery .img-container-1 {
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.three-images-gallery .img-container-2,
.three-columns-gallery .img-container-2 {
  height: 384px;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.two-columns-gallery,
.three-columns-gallery {
  max-width: var(--max-width-sm);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  transition: all 0.4s ease-in-out;
  margin-bottom: 120px;
  padding: 0 16px;
}

.two-columns-gallery > *,
.three-columns-gallery > * {
  flex: 1;
}

.two-columns-gallery .img-container-1 {
  height: 740px;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.two-columns-gallery .img-container-2 {
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
}

.two-columns-gallery .container-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.two-columns-gallery .container-2 {
  width: 50%;
  transition: all 0.4s ease-in-out;
}

.three-columns-gallery .container-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.three-columns-gallery .container-1:first-child,
.two-columns-gallery .container-1:first-child {
  margin-bottom: 48px;
}

.three-columns-gallery .container-2 {
  width: 80%;
  transition: all 0.4s ease-in-out;
}

@media (max-width: 768px) {
  .three-images-gallery {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .three-images-gallery .img-container-1,
  .three-columns-gallery .img-container-1 {
    height: 510px;
  }

  .three-images-gallery .img-container-2,
  .three-columns-gallery .img-container-2 {
    height: 350px;
  }

  .two-columns-gallery,
  .three-columns-gallery {
    flex-direction: column;
    margin-bottom: 80px;
    gap: 0;
  }
  .two-columns-gallery .img-container-1 {
    height: 437px;
  }

  .two-columns-gallery .img-container-2 {
    height: 270px;
  }
  .two-columns-gallery .container-2,
  .three-columns-gallery .container-2 {
    width: 100%;
  }

  .three-columns-gallery .container-1,
  .two-columns-gallery .container-1 {
    margin-bottom: 32px;
  }
  .three-columns-gallery .container-1:first-child,
  .two-columns-gallery .container-1:first-child {
    margin-bottom: 32px;
  }
  .three-columns-gallery .container-1:last-child,
  .two-columns-gallery .container-1:last-child {
    margin-bottom: 0;
  }
}

.slick-list {
  margin: 0 -8px !important;
}

.slick-slide {
  margin: 0 8px;
  display: flex;
  justify-content: center;
}

.carousel-item,
.slick-slide,
.slick-slide > div,
.slick-list {
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.sub-section:has(.small-gallery.full-width) .small-gallery.full-width {
  overflow: hidden;
  padding: 0 !important;
}

.custom-controls {
  width: fit-content;
  height: fit-content;
  background-color: var(--color-bg-5);
  border-radius: 50px;
  padding: 4px;
  justify-content: space-between;
  gap: 4px;
}

.custom-controls .slick-prev,
.custom-controls .slick-next,
.custom-controls .slick-dots {
  position: initial;
  display: flex;
  transform: translateY(0);
  justify-content: center;
}

.custom-controls .slick-dots {
  gap: 4px;
}

.custom-controls .slick-dots li,
.custom-controls .slick-dots li button {
  width: 12px;
  height: 12px;
  position: relative;
  margin: 0;
  transition: color 0.4s ease-in-out;
}

.custom-controls .slick-dots li button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50px;
  transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
}

.custom-controls .slick-dots li.slick-active button:before {
  width: 12px;
  background-color: white;
}

.custom-arrow {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.custom-arrow svg {
  width: 8px;
  height: 8px;
  color: white;
}

.custom-arrow:hover svg {
  color: white;
}

.slick-next:before,
.slick-prev:before {
  display: none;
}

.custom-controls .slick-prev,
.custom-controls .slick-next {
  width: 12px !important;
  height: 12px;
  border-radius: 50px;
  flex: none;
  background-color: transparent;
  transition: all 0.4s ease-in-out;
}

.custom-controls .slick-prev:hover,
.custom-controls .slick-next:hover {
  background-color: var(--color-bg-6);
}

.nav-only .slick-next {
  position: absolute;
  right: -15px;
  top: 50%;
  z-index: 50;
  background: white !important;
  border-radius: 50px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

.nav-only .slick-prev {
  position: absolute;
  left: -16px;
  top: 50%;
  z-index: 50;
  background: white !important;
  border-radius: 50px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

.nav-only .slick-next svg,
.nav-only .slick-prev svg {
  color: var(--color-border-1);
  width: 16px;
  height: 16px;
  transition: all 0.4s ease-in-out;
}

.nav-only .slick-next:hover svg,
.nav-only .slick-prev:hover svg {
  color: var(--blue);
}

.nav-only .slick-next:hover,
.nav-only .slick-prev:hover {
  background: white;
}

@media (max-width: 1024px) {
  .small-gallery {
    margin-bottom: 32px;
  }
  .small-gallery.full-width {
    margin-bottom: 80px;
  }

  .sub-section .small-gallery.full-width {
    margin-bottom: 32px;
  }
  .two-columns-gallery > *:not(:last-child),
  .three-columns-gallery > *:not(:last-child) {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .nav-only .slick-next {
    right: -22px;
  }

  .nav-only .slick-prev {
    left: -22px;
  }

  .nav-only .carousel-three .slick-next {
    right: -15px;
  }
  .nav-only .carousel-three .slick-prev {
    left: -15px;
  }

  .nav-only .slick-next svg,
  .nav-only .slick-prev svg {
    color: var(--blue);
  }
}

.small-gallery.full-width {
  padding: 0 32px;
}

.text-map-container .small-gallery.full-width {
  padding: 0 !important;
}
