.anser-gallery,
.anser-gallery * {
  box-sizing: border-box;
}

.anser-gallery {
  --anser-blue: #123f8c;
  width: 100%;
  position: relative;
}

.anser-gallery__viewport {
  width: 100%;
  overflow: hidden;
  background: var(--anser-blue);
  padding: 29px 0;
}

.anser-gallery__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 0 0 64px;
  scrollbar-width: none;
}

.anser-gallery__track::-webkit-scrollbar {
  display: none;
}

.anser-gallery__card {
  position: relative;
  flex: 0 0 clamp(300px, 42vw, 540px);
  height: clamp(320px, 48vw, 580px);
  max-height: 580px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .25s ease, filter .25s ease;
}

.anser-gallery__card:hover {
  transform: translateY(-2px);
}

.anser-gallery__expand {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.anser-gallery__expand img {
  display: block;
  width: 25px;
  height: 25px;
}

.anser-gallery__box {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  min-height: 146px;
  padding: 42px 20px 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.anser-gallery__box h3 {
  margin: 0 0 12px;
  color: var(--05-blanco, #FFF);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
}

.anser-gallery__box p {
  margin: 0;
  color: var(--05-blanco, #FFF);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.anser-gallery__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

.anser-gallery__dot.dot-tl { top: 20px; left: 20px; }
.anser-gallery__dot.dot-tr { top: 20px; right: 20px; }
.anser-gallery__dot.dot-bl { bottom: 20px; left: 20px; }
.anser-gallery__dot.dot-br { bottom: 20px; right: 20px; }

.anser-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0,0,0,.86);
}

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

.anser-gallery-lightbox__figure {
  position: relative;
  width: min(1120px, 88vw);
  height: min(760px, 84vh);
  margin: 0;
}

.anser-gallery-lightbox__image {
  width: 100%;
  height: 100%;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.anser-gallery-lightbox__caption {
  position: absolute;
  left: 28px;
  right: auto;
  bottom: 28px;
  width: min(420px, calc(100% - 56px));
  min-height: 120px;
  padding: 34px 20px 26px;
  border-radius: 4px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.anser-gallery-lightbox__caption h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.anser-gallery-lightbox__caption p {
  margin: 0;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.anser-gallery-lightbox__close,
.anser-gallery-lightbox__nav {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.anser-gallery-lightbox__close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 2;
  font-size: 44px;
  font-weight: 300;
}

.anser-gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  padding: 20px;
}

.anser-gallery-lightbox__prev { left: 24px; }
.anser-gallery-lightbox__next { right: 24px; }

@media (max-width: 767px) {
  .anser-gallery__viewport {
    padding: 22px 0;
  }

  .anser-gallery__track {
    gap: 12px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .anser-gallery__card {
    flex-basis: 82vw;
    height: 420px;
  }

  .anser-gallery__box {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: 124px;
    padding: 34px 18px 24px;
  }

  .anser-gallery-lightbox {
    padding: 18px;
  }

  .anser-gallery-lightbox__figure {
    width: 100%;
    height: 78vh;
  }

  .anser-gallery-lightbox__caption {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .anser-gallery-lightbox__prev { left: 0; }
  .anser-gallery-lightbox__next { right: 0; }
}
