.zg-no-scroll,
html.zg-no-scroll,
body.zg-no-scroll {
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.zg-gallery {
  position: relative;
}

.zg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.zg-main,
.zg-thumbs .zg-thumb {
  overflow: hidden;
}

.zg-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #eee;
  overflow: hidden;
  filter: brightness(98%);
  transition: filter .25s ease;
  cursor: pointer;
}

.zg-main:hover {
  filter: brightness(88%);
}

.zg-main .beforeAfter {
  position: relative;
  overflow: hidden;
  height: 100% !important;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.zg-main .beforeAfter img {
  display: block;
  height: 100% !important;
}

.zg-root .beforeAfter.zg-beforeafter {
  --zg-ba-position: 50%;
  position: relative;
  overflow: hidden;
}

.zg-root button.beforeAfter.zg-beforeafter {
  padding: 0;
  border: 0;
  background: transparent;
}

.zg-root .beforeAfter.zg-beforeafter img.decorview-a,
.zg-root .beforeAfter.zg-beforeafter img.decorview-b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.zg-root .beforeAfter.zg-beforeafter img.decorview-a {
  z-index: 1;
}

.zg-root .beforeAfter.zg-beforeafter img.decorview-b {
  z-index: 2;
  clip-path: inset(0 0 0 var(--zg-ba-position));
  -webkit-clip-path: inset(0 0 0 var(--zg-ba-position));
}

.zg-root .beforeAfter.zg-beforeafter .zg-ba-separator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--zg-ba-position);
  width: 2px;
  transform: translateX(-50%);
  background-color: #fff;
  z-index: 3;
  cursor: ew-resize;
}

.zg-root .beforeAfter.zg-beforeafter .zg-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
}

.zg-root .beforeAfter.zg-beforeafter .zg-ba-arrow {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-top: 2px solid #333;
}

.zg-root .beforeAfter.zg-beforeafter .zg-ba-arrow-left {
  border-left: 2px solid #333;
  transform: rotate(-45deg);
}

.zg-root .beforeAfter.zg-beforeafter .zg-ba-arrow-right {
  border-right: 2px solid #333;
  transform: rotate(45deg);
}

.zg-main a {
  display: block;
  height: 100%;
  width: 100%;
}

.zg-main img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.zg-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  aspect-ratio: 16 / 9;
  align-self: stretch;
}

.zg-thumb {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #eee;
  overflow: hidden;
  filter: brightness(98%);
  transition: filter .25s ease;
  cursor: pointer;
}

.zg-thumb:hover {
  filter: brightness(88%);
}

.zg-thumb a {
  display: block;
  height: 100%;
  width: 100%;
}

.zg-thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  cursor: pointer;
}

.zg-thumb img.js-map-static {
  height: 100%;
  top: 0;
}

.zg-thumb .map-overlay-text {
  opacity: 0;
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #004b7a;
  background-color: #aee4b5;
  box-shadow: 0 5px 7px 0 rgb(0 0 0 / 15%);
  padding: .25rem .8rem;
  font-size: .9rem;
  border-radius: 4px;
  pointer-events: none;
  transition: opacity .3s ease, color .3s ease, background-color .3s ease;
}

.zg-thumb .map-overlay-text.loaded {
  opacity: 1;
}

.zg-thumb:hover .map-overlay-text.loaded {
  color: #aee4b5;
  background-color: #004b7a;
}

.zg-thumb .gva-icon-map {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -100%);
  z-index: 2;
  pointer-events: none;
}

.zg-thumb .gva-icon-map svg {
  display: block;
  width: 54px;
  height: 54px;
}

.zg-thumb .gva-icon-map .icon-cat {
  background-image: url(/sites/default/files/img/misc/map-marker-diglo.png);
  background-position: center;
  background-size: 90%;
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  top: 3px;
  left: 10px;
  z-index: 9;
  background-color: #fff;
  color: #aee4b5;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
}

.zg-more {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  min-width: 45px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  padding: .05rem .6rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  z-index: 999;
}

.zg-nav {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.zg-nav.is-open {
  display: block;
}

.zg-nav__backdrop {
  display: none;
}

.zg-nav__dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  max-width: none;
  background: #2B2B2B;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.zg-nav__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 85px;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  z-index: 2;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.zg-nav__count {
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 32px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1px;
  font-variant-numeric: tabular-nums;
}

.zg-nav__return,
.zg-nav__close {
  justify-self: start;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 32px;
  font-weight: bold;
  line-height: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .85;
  transition: opacity .2s ease;
}

.zg-nav__return {
  font-size: 24px;
}

.zg-nav__return:hover,
.zg-nav__close:hover {
  opacity: 1;
}

.zg-nav__close {
  justify-self: end;
}

.zg-nav__count {
  justify-self: center;
  pointer-events: none;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 14px;
  line-height: 1;
  min-width: 72px;
  text-align: center;
}

.zg-stage {
  position: absolute;
  top: 98px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  height: auto;
}

.zg-slide {
  position: relative;
  width: 100%;
  max-width: min(1880px, 80%);
  height: 100%;
  inset: 0;
  display: none;
  margin: 0 auto;
  padding: 0;
  background: #2B2B2B;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.zg-slide .beforeAfter {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.zg-slide .beforeAfter img {
  display: block;
}

.zg-slide>img {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #2B2B2B;
}

.zg-slide .map-overlay-text {
  opacity: 0;
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #004b7a;
  background-color: #aee4b5;
  box-shadow: 0 5px 7px 0 rgb(0 0 0 / 15%);
  padding: .25rem .8rem;
  font-size: .9rem;
  border-radius: 4px;
  pointer-events: none;
  transition: opacity .3s ease, color .3s ease, background-color .3s ease;
}

.zg-slide .map-overlay-text.loaded {
  opacity: 1;
}

.zg-slide:hover .map-overlay-text.loaded {
  color: #aee4b5;
  background-color: #004b7a;
}

.zg-slide .map-detail-container>.gva-icon-map,
.zg-slide .js-map-static-detail-container>.gva-icon-map {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity .28s ease, filter .45s ease;
}

.zg-slide .map-detail-container>.gva-icon-map svg,
.zg-slide .js-map-static-detail-container>.gva-icon-map svg {
  display: block;
  width: 54px;
  height: 54px;
}

.zg-slide .map-detail-container>.gva-icon-map .icon-cat,
.zg-slide .js-map-static-detail-container>.gva-icon-map .icon-cat {
  background-image: url(/sites/default/files/img/misc/map-marker-diglo.png);
  background-position: center;
  background-size: 90%;
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  top: 3px;
  left: 10px;
  z-index: 9;
  background-color: #fff;
  color: #aee4b5;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
}

.zg-slide .map-detail-container>.gva-icon-map:not(.loaded),
.zg-slide .js-map-static-detail-container>.gva-icon-map:not(.loaded) {
  opacity: 0;
  filter: blur(1px);
}

.zg-slide .beforeAfter img {
  object-fit: cover;
}

.zg-slide[data-type="map"] .map-detail-container {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
}

.zg-slide[data-type="map"] img.js-map-static-detail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zg-slide[data-type="map"] .js-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zg-slide[data-type="map"] .js-map-canvas .gm-style-iw {
  display: none;
}

.zg-slide[data-type="map"] .js-map-canvas .gm-style-iw-tc {
  display: none;
}

.js-map-static:not(.loaded),
.js-map-static-detail:not(.loaded) {
  opacity: 0;
}

.zg-gallery img.zg-fx,
.zg-all-thumb img.zg-fx {
  opacity: 0;
  filter: blur(2px);
  transition: opacity .28s ease, transform .45s ease, filter .45s ease;
  will-change: opacity, transform, filter;
}

.zg-gallery img.zg-fx.loaded,
.zg-all-thumb img.zg-fx.loaded {
  opacity: 1;
  transform: none;
  filter: none;
}

.zg-iframe-wrap,
.zg-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.zg-prev,
.zg-next,
.zg-close {
  position: absolute;
  top: 50%;
  transform: translateY(+50%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 48px;
  line-height: 1px;
  text-align: center;
  z-index: 2;
  opacity: .85;
  transition: opacity .2s ease;
}

.zg-prev {
  padding-bottom: 12px;
  padding-right: 10px;
}

.zg-next {
  padding-bottom: 12px;
  padding-left: 10px;
}

.zg-prev {
  left: 12px;
}

.zg-next {
  right: 12px;
}

.zg-prev:hover,
.zg-next:hover {
  opacity: 1;
}

.zg-close {
  top: .5rem;
  right: .5rem;
  transform: none;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 36px;
}

#zg-counter {
  color: #fff;
  background: rgba(0, 0, 0, .45);
  border-radius: .5rem;
  padding: .25rem .5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: .6rem;
  z-index: 2;
}

.zg-all {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.zg-all.is-open {
  display: block;
}

.zg-all__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
}

.zg-all__dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  max-width: none;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.zg-all__header {
  position: relative;
  min-height: 85px;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem clamp(16px, 2vw, 24px);
  background: #fff;
  color: #111;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.zg-all__title {
  margin: 0;
  font-size: 1rem;
  color: #111;
}

.zg-all__close {
  color: #222;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 32px;
  font-weight: bold;
  line-height: 1px;
  opacity: .5;
  transition: background .2s ease, opacity .2s ease, transform .05s ease;
}

.zg-all__close:hover {
  opacity: 1;
}

.zg-all__close:active {
  transform: scale(.98);
}

.zg-all__body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px clamp(12px, 2vw, 20px);
  background: #fff;
  text-align: center;
}

.zg-all__items {
  flex: 1;
  margin: 0 auto;
  overflow: hidden;
  width: min(96vw, 960px);
  max-width: min(96vw, 960px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.zg-all-item {
  position: relative;
  width: calc(50% - 6px);
  padding: 2px;
}

.zg-all-item.map {
  width: 100%;
}

.zg-all-item:not(.map):nth-child(3n+1 of .zg-all-item:not(.map)) {
  width: 100%;
}

.zg-all-item:not(.map):last-child:nth-child(3n+2 of .zg-all-item:not(.map)) {
  width: 100%;
}

.zg-all-item:last-child:nth-child(3n+2) {
  width: 100%;
}

.zg-all-thumb {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid #eee;
  aspect-ratio: 16 / 9;
  background-color: #fff;
  border: 1px solid #eee !important;
  filter: brightness(98%);
  cursor: pointer;
  transition: box-shadow .15s ease, transform .05s ease, border-color .15s ease;
}

.zg-all-thumb:focus-visible {
  outline: 1px solid #4f46e5;
  outline-offset: 1px;
}

.zg-all-thumb:hover {
  box-shadow: 0px 0px 4px .2px rgba(0, 0, 0, .15);
}

.zg-all-thumb img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.zg-all-thumb .map-overlay-text {
  opacity: 0;
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #004b7a;
  background-color: #aee4b5;
  box-shadow: 0 5px 7px 0 rgb(0 0 0 / 15%);
  padding: .25rem .8rem;
  font-size: .9rem;
  border-radius: 4px;
  pointer-events: none;
  transition: opacity .3s ease, color .3s ease, background-color .3s ease;
}

.zg-all-thumb .map-overlay-text.loaded {
  opacity: 1;
}

.zg-all-thumb:hover .map-overlay-text.loaded {
  color: #aee4b5;
  background-color: #004b7a;
}

.zg-all-thumb .gva-icon-map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
  pointer-events: none;
}

.zg-all-thumb .gva-icon-map svg {
  display: block;
  width: 54px;
  height: 54px;
}

.zg-all-thumb .gva-icon-map .icon-cat {
  background-image: url(/sites/default/files/img/misc/map-marker-diglo.png);
  background-position: center;
  background-size: 90%;
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  top: 3px;
  left: 10px;
  z-index: 9;
  background-color: #fff;
  color: #aee4b5;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
}

.zg-thumb .gva-icon-map,
.zg-all-thumb .gva-icon-map {
  transition: opacity .28s ease, filter .45s ease;
}

.zg-thumb .gva-icon-map:not(.loaded),
.zg-all-thumb .gva-icon-map:not(.loaded) {
  opacity: 0;
  filter: blur(1px);
}

.zg-all-iframe-icon,
.zg-all-street-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 4vw, 36px);
  background: #f1f5f9;
  color: #475569;
}

.zg-all-badge,
.zg-all-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 4px 8px;
  font-size: .75rem;
  line-height: 1;
  pointer-events: none;
}

.zg-nav .pac-container,
.zg-all .pac-container {
  z-index: 11000 !important;
}

@media (min-width: 1440px) {
  .zg-all__body {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .zg-all-thumb,
  .zg-nav__close,
  .zg-gallery img.zg-fx,
  .zg-gallery img.zg-fx.loaded,
  .zg-all-thumb img.zg-fx,
  .zg-all-thumb img.zg-fx.loaded {
    transition: none;
  }
}

#decorViewModal,
#tourModal,
.path-node.node--type-yera-producto.modal-open {
  padding-right: 0 !important;
}

.external-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.zg-iframe-wrap {
  background: #000;
}

.zg-mosaic-icon {
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}

.zg-mosaic-icon__glyph {
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1;
}

.zg-mosaic-icon__label {
  display: block;
  margin-top: .25rem;
  font-size: .85rem;
  opacity: .9;
}

@media (max-width: 992px) {

  .viacore-detail .listing-top.gallery {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .zg-grid {
    display: block;
    grid-template-columns: 1fr;
  }

  .zg-main {
    grid-column: 1 / -1;
    width: 100%;
    height: 260px !important;
    border: unset;
    touch-action: pan-y;
  }

  .zg-main img {
    -webkit-user-drag: none;
    user-select: none;
  }

  .zg-thumbs {
    display: none !important;
  }

  .zg-all__items {
    gap: 6px;
  }

  .zg-all-thumb .map-overlay-text {
    z-index: 9;
    top: .5rem;
    left: .5rem;
    padding: .25rem .4rem;
    font-size: .8rem;
    background-color: rgba(174, 228, 181, 0.9);
  }

  .zg-nav__dialog {
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    background: #000;
  }

  .zg-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
  }

  .zg-slide {
    max-width: 100%;
  }

  .zg-slide>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
  }

  .zg-slide[data-type="map"] .map-detail-container {
    margin-top: 56px;
  }

  .zg-nav__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 56px;
    padding: calc(8px + env(safe-area-inset-top, 0)) 12px 8px;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 2;
  }

  .zg-prev,
  .zg-next {
    position: absolute;
    width: auto;
    border: 0;
    background: transparent;
    color: #fff;
    background-color: rgba(43, 43, 43, 0.75);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .zg-prev {
    left: 4px;
    height: 40px;
    width: 40px;
    padding: 0;
    padding-bottom: 7px;
    padding-right: 4px;
  }

  .zg-next {
    right: 4px;
    height: 40px;
    width: 40px;
    padding: 0;
    padding-bottom: 7px;
    padding-left: 4px;
  }

  .zg-root {
    position: relative;
  }

  .zg-root .highlight-band {
    position: absolute;
    top: auto;
    bottom: .6rem;
    left: .6rem;
    right: 4.2rem;
    z-index: 5;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .zg-root .highlight-band .highlight-band--tag {
    margin-right: 0 !important;
  }
}
