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

.anser-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 32px;
  width: 100%;
}

.anser-project-card {
  width: 100%;
}

.anser-project-card__gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #e9e9e9;
  aspect-ratio: 1.22 / 1;
  max-height: 580px;
}

.anser-project-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease, opacity .42s ease;
  will-change: transform, opacity;
}

.anser-project-card__image--incoming {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.anser-project-card__image--incoming-next {
  transform: translateX(100%);
}

.anser-project-card__image--incoming-prev {
  transform: translateX(-100%);
}

.anser-project-card__image--active {
  transform: translateX(0);
}

.anser-project-card__image--out-next {
  transform: translateX(-100%);
}

.anser-project-card__image--out-prev {
  transform: translateX(100%);
}

.anser-project-card__gallery.is-animating .anser-project-card__expand,
.anser-project-card__gallery.is-animating .anser-project-card__arrow {
  pointer-events: none;
}

.anser-project-card__expand,
.anser-project-card__arrow {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: rgba(16, 27, 54, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s ease, opacity .2s ease;
  transform: none;
  z-index: 2;
}

.anser-project-card__expand:focus,
.anser-project-card__arrow:focus {
  outline: none;
}

.anser-project-card__expand:focus-visible,
.anser-project-card__arrow:focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}

.anser-project-card__expand:hover,
.anser-project-card__arrow:hover {
  background: rgba(16, 27, 54, 0.42);
}

.anser-project-card__expand {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
}

.anser-project-card__expand img {
  width: 24px;
  height: 24px;
}

.anser-project-card__arrow {
  position: absolute;
  bottom: 20px;
  width: 42px;
  height: 42px;
}

.anser-project-card__arrow img {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
  transition: none;
}

.anser-project-card__arrow--prev {
  left: 20px;
}

.anser-project-card__arrow--prev img {
  transform: rotate(180deg);
}

.anser-project-card__arrow--next {
  right: 20px;
}

.anser-project-card__arrow--next img {
  transform: none;
}

.anser-project-card__content {
  padding-top: 16px;
}

.anser-project-card__date {
  color: rgba(0, 0, 0, 0.60);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 8px;
}

.anser-project-card__title {
  color: var(--25-azul, #101B36);
  font-family: Montserrat, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
}

.anser-project-card__client {
  color: rgba(0, 0, 0, 0.80);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 14px;
}

.anser-project-card__text {
  color: rgba(0, 0, 0, 0.80);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

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

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

.anser-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .24s ease, transform .24s ease;
}

.anser-lightbox__image.is-changing {
  opacity: 0;
  transform: translateX(18px);
}

.anser-lightbox__close,
.anser-lightbox__nav {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.anser-lightbox__close:hover,
.anser-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.anser-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 34px;
  line-height: 1;
}

.anser-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 46px;
  line-height: 1;
}

.anser-lightbox__nav--prev {
  left: 22px;
}

.anser-lightbox__nav--next {
  right: 22px;
}

.anser-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
}

body.anser-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .anser-projects-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .anser-project-card__gallery {
    aspect-ratio: 1.18 / 1;
  }

  .anser-project-card__title {
    font-size: 18px;
  }

  .anser-project-card__text {
    font-size: 14px;
  }

  .anser-project-card__arrow {
    bottom: 14px;
    width: 38px;
    height: 38px;
  }

  .anser-project-card__arrow--prev {
    left: 14px;
  }

  .anser-project-card__arrow--next {
    right: 14px;
  }

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

  .anser-lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .anser-lightbox__nav--prev {
    left: 10px;
  }

  .anser-lightbox__nav--next {
    right: 10px;
  }
}
