/* All selectors are scoped to Galería Nativa. No webfonts or imported assets. */
.ccg {
  --ccg-bg: transparent;
  --ccg-ratio: 3/2;
  --ccg-fit: contain;
  --ccg-cols: 3;
  --ccg-gap: 10px;
  --ccg-thumb: 88px;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--ccg-bg);
  color: inherit;
  font-family: inherit;
  box-sizing: border-box;
  isolation: isolate;
}
.ccg *, .ccg-lightbox *, .ccg-lightbox { box-sizing: border-box; }
.ccg [hidden], .ccg-lightbox [hidden] { display: none !important; }
.ccg__viewport { position: relative; min-width: 0; }
.ccg__slides { display: grid; grid-template-columns: repeat(var(--ccg-cols), minmax(0, 1fr)); gap: var(--ccg-gap); }
.ccg .ccg__slide {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  aspect-ratio: var(--ccg-ratio);
  overflow: hidden;
  color: #fff;
  background: transparent;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.ccg .ccg__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: var(--ccg-fit);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ccg--slider.is-ready .ccg__slides { display: block; }
.ccg--slider.is-ready .ccg__slide { aspect-ratio: var(--ccg-ratio); touch-action: pan-y pinch-zoom; }
.ccg__tile-caption { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ccg--slider.is-ready .ccg__tile-caption { display: none; }
.ccg__info { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 16px; align-items: end; pointer-events: none; padding: 34px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: 14px; line-height: 1.4; }
.ccg__caption { overflow-wrap: anywhere; max-height: 5.6em; overflow: auto; pointer-events: auto; }
.ccg__counter { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.ccg__gallery-caption { margin: 18px 0 0; color: inherit; line-height: 1.5; }
.ccg__gallery-caption a { color: inherit; text-decoration: underline; }
.ccg .ccg-button, .ccg-lightbox .ccg-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(0,0,0,.82);
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  line-height: 1;
  transition: background .18s;
}
.ccg .ccg-button:hover, .ccg-lightbox .ccg-button:hover { background: rgba(55,55,55,.98); color: #fff; }
.ccg .ccg-button:disabled, .ccg-lightbox .ccg-button:disabled { opacity: .35; cursor: default; }
.ccg-button svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ccg__viewport > .ccg-button--previous, .ccg__viewport > .ccg-button--next, .ccg-lightbox__stage > .ccg-button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.ccg__viewport > .ccg-button--previous, .ccg-lightbox__stage > .ccg-button--previous { left: 10px; }
.ccg__viewport > .ccg-button--next, .ccg-lightbox__stage > .ccg-button--next { right: 10px; }
.ccg__viewport > .ccg-button--expand { position: absolute; right: 10px; top: 10px; opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .18s ease, transform .18s ease; }
.ccg__viewport:hover > .ccg-button--expand, .ccg__viewport:focus-within > .ccg-button--expand, .ccg__viewport > .ccg-button--expand:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.ccg-thumbs { display: flex; align-items: center; min-width: 0; gap: 6px; padding-top: 24px; }
.ccg-thumbs__rail { display: flex; align-items: center; position: relative; gap: var(--ccg-gap, 10px); min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.35) transparent; padding: 6px 4px; overscroll-behavior-x: contain; }
.ccg .ccg-thumbs__item, .ccg-lightbox .ccg-thumbs__item {
  position: relative;
  box-sizing: border-box !important;
  appearance: none;
  flex: 0 0 var(--ccg-thumb, 88px);
  display: block;
  width: var(--ccg-thumb, 88px);
  height: calc(var(--ccg-thumb, 88px) * .64);
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  opacity: .62;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  align-self: center;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}
.ccg .ccg-thumbs .ccg-thumbs__item img, .ccg-lightbox .ccg-thumbs .ccg-thumbs__item img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center;
  box-shadow: none !important;
}
.ccg .ccg-thumbs__item:hover, .ccg-lightbox .ccg-thumbs__item:hover { opacity: 1; background: transparent; transform: translateY(-2px); }
.ccg .ccg__viewport > .ccg-button--previous, .ccg .ccg__viewport > .ccg-button--next,
.ccg-lightbox .ccg-lightbox__stage > .ccg-button,
.ccg .ccg__viewport > .ccg-button--previous:hover, .ccg .ccg__viewport > .ccg-button--next:hover,
.ccg-lightbox .ccg-lightbox__stage > .ccg-button:hover {
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: #fff;
  box-shadow: none;
}
.ccg__viewport > .ccg-button--previous svg, .ccg__viewport > .ccg-button--next svg,
.ccg-lightbox__stage > .ccg-button svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.95)) drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.ccg .ccg-thumbs__item[aria-current="true"] { border-color: #222; opacity: 1; }
.ccg-lightbox .ccg-thumbs__item[aria-current="true"] { border-color: #fff; opacity: 1; }
.ccg-thumbs__rail, .ccg-thumbs__rail .ccg-thumbs__item { cursor: grab; }
.ccg-thumbs__rail { user-select: none; -webkit-user-select: none; }
.ccg-thumbs__rail.is-dragging, .ccg-thumbs__rail.is-dragging .ccg-thumbs__item { cursor: grabbing; }
.ccg :is(button, a):focus-visible, .ccg-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #111; }
.ccg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
/* The native dialog uses the browser's top layer, above menus and page builders. */
.ccg-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0 !important;
  border-radius: 0;
  background: #111 !important;
  background-image: none !important;
  color: #fff;
  font-family: inherit;
  overflow: hidden;
  z-index: 2147483647;
  box-shadow: none;
  opacity: 1;
  isolation: isolate;
}
.ccg-lightbox[open] { display: flex; flex-direction: column; }
.ccg-lightbox::backdrop { background: #111 !important; }
.ccg-lightbox__toolbar { display: flex; align-items: center; justify-content: end; gap: 8px; flex-shrink: 0; min-height: 48px; }
.ccg-lightbox__count { margin-right: auto; padding-left: 8px; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.ccg-lightbox__stage { position: relative; flex: 1; min-height: 0; min-width: 0; margin: 10px 0; }
.ccg-lightbox__canvas { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y pinch-zoom; }
.ccg-lightbox .ccg-lightbox__image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; border: 0; border-radius: 0; cursor: zoom-in; }
.ccg-lightbox__canvas.is-zoomed { display: block; overflow: auto; touch-action: auto; }
.ccg-lightbox .is-zoomed .ccg-lightbox__image { width: auto; height: auto; max-width: none; max-height: none; min-width: 100%; min-height: 100%; cursor: zoom-out; }
.ccg-lightbox__message { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 14px 18px; border-radius: 4px; background: #111; color: #fff; text-align: center; font-size: 14px; pointer-events: none; }
.ccg-lightbox__caption { flex-shrink: 0; max-height: 15vh; overflow: auto; margin: 0 auto; max-width: 900px; padding: 0 20px; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.ccg-lightbox .ccg-thumbs { flex-shrink: 0; justify-content: center; padding-top: 12px; }
.ccg-lightbox .ccg-thumbs__rail { flex: 0 1 auto; }
.ccg-lightbox .ccg-thumbs__rail { scrollbar-color: rgba(255,255,255,.4) transparent; }
.ccg-thumbs__rail, .ccg-lightbox__canvas.is-zoomed { scrollbar-width: none; -ms-overflow-style: none; }
.ccg-thumbs__rail::-webkit-scrollbar, .ccg-lightbox__canvas.is-zoomed::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ccg-lightbox__canvas.is-zoomed { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.ccg-lightbox .is-zoomed .ccg-lightbox__image { cursor: grab; }
.ccg-lightbox__canvas.is-zoomed.is-dragging, .ccg-lightbox .is-zoomed.is-dragging .ccg-lightbox__image { cursor: grabbing; }
@media (hover: none), (pointer: coarse) {
  .ccg__viewport > .ccg-button--expand { opacity: 1; pointer-events: auto; transform: none; }
}
@media (max-width: 767px) {
  .ccg--grid .ccg__slides, .ccg:not(.is-ready) .ccg__slides { grid-template-columns: repeat(var(--ccg-mobile-cols, 2), minmax(0, 1fr)); }
  .ccg-thumbs { padding-top: 14px; gap: 0; }
  .ccg-thumbs__rail { gap: 6px; }
  .ccg .ccg-thumbs__item, .ccg-lightbox .ccg-thumbs__item { flex-basis: 64px; width: 64px; height: 46px; }
  .ccg-thumbs > .ccg-button { flex-basis: 44px; width: 44px; height: 44px; padding: 10px; }
  .ccg__info { padding: 26px 12px 10px; font-size: 12px; }
  .ccg__viewport > .ccg-button--previous { left: 4px; }
  .ccg__viewport > .ccg-button--next { right: 4px; }
  .ccg-lightbox { padding-left: 4px; padding-right: 4px; }
  .ccg-lightbox__toolbar { padding: 0 4px; }
  .ccg-lightbox__stage > .ccg-button--previous { left: 4px; }
  .ccg-lightbox__stage > .ccg-button--next { right: 4px; }
  .ccg-lightbox .ccg-thumbs { padding-top: 8px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .ccg-lightbox { padding-top: 0; padding-bottom: 4px; }
  .ccg-lightbox__toolbar { min-height: 44px; }
  .ccg-lightbox__stage { margin: 0; }
  .ccg-lightbox .ccg-thumbs, .ccg-lightbox__caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ccg *, .ccg-lightbox * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ccg .ccg-thumbs__item:hover, .ccg-lightbox .ccg-thumbs__item:hover { transform: none; }
}
