/* Carrusel vertical de exposiciones */
.galeria-exposiciones.gh-carrusel-vertical {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 0 40px;
  position: relative;
  touch-action: pan-x;
}

.gh-carrusel-viewport {
  position: relative;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 460px;
  overflow: hidden;
  border-radius: 14px;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.gh-carrusel-viewport.is-dragging { cursor: grabbing; }

.gh-carrusel-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.gh-carrusel-track > a {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gh-carrusel-track > a:hover,
.gh-carrusel-track > a:focus-visible {
  transform: scale(0.985);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  outline: none;
}

.gh-carrusel-track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.gh-carrusel-control {
  position: absolute;
  left: 50%;
  z-index: 8;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 4px 14px rgba(0,0,0,.17);
  color: #1f1f1f;
  font: inherit;
  font-size: 28px;
  line-height: 38px;
  text-align: center;
  transform: translateX(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gh-carrusel-control:hover,
.gh-carrusel-control:focus-visible {
  background: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.24);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.gh-carrusel-control-up { top: 0; }
.gh-carrusel-control-down { bottom: 0; }

.gh-carrusel-control span {
  display: block;
  transform: translateY(-1px);
}


.gh-single-item .gh-carrusel-control { display: none; }

.gh-galeria-vacia {
  padding: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .galeria-exposiciones.gh-carrusel-vertical {
    touch-action: pan-y;
    max-width: 420px;
    width: 88%;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .gh-carrusel-viewport {
    touch-action: pan-y;
    cursor: default;
    height: 68vh;
    min-height: 420px;
    border-radius: 10px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  }

  .gh-carrusel-track { gap: 14px; }

  .gh-carrusel-control {
    width: 40px;
    height: 40px;
    line-height: 36px;
    font-size: 26px;
  }


}

@media (max-width: 480px) {
  .gh-carrusel-viewport {
    height: 64vh;
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-carrusel-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
