.gallery-page {
  min-height: 100vh;
  color: var(--on-surface);
  background:
    linear-gradient(112deg, rgba(141, 20, 30, 0.08), transparent 24rem),
    linear-gradient(248deg, rgba(41, 38, 102, 0.12), transparent 31rem),
    #fbf7ef;
}

.gallery-main {
  overflow: hidden;
}

.gallery-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: min(72vh, 720px);
  padding: calc(var(--nav-h, 5.6rem) + clamp(2rem, 5vw, 5.2rem)) clamp(1.2rem, 5vw, 5rem) clamp(2.5rem, 6vw, 5.6rem);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 17, 67, 0.88), rgba(20, 17, 67, 0.62) 44%, rgba(20, 17, 67, 0.18)),
    linear-gradient(180deg, rgba(20, 17, 67, 0.1), rgba(20, 17, 67, 0.82)),
    url("../image/galeria de imagenes/00 2024 CORRIENTES Congreso NEA mesa libro.jpg") center 38% / cover;
  border-bottom: 3px solid var(--wine-red);
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 5.2rem 5.2rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 86%);
  opacity: 0.46;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 7vw, 6rem);
  bottom: clamp(1rem, 5vw, 4rem);
  z-index: -1;
  width: min(34vw, 26rem);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.26);
  transform: rotate(4deg);
  opacity: 0.5;
}

.gallery-hero__inner {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.gallery-sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery-kicker {
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: 0.48rem 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.gallery-hero h1 {
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5.85rem);
  line-height: 0.92;
  font-weight: 900;
  text-wrap: balance;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.gallery-lead {
  max-width: 780px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 1.75vw, 1.55rem);
  line-height: 1.58;
  font-weight: 700;
}

.gallery-studio {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 3vw, 2.4rem) 5rem;
}

.gallery-studio::before {
  content: "";
  position: absolute;
  inset: 1rem 0 auto;
  height: 31rem;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 29%, rgba(20, 17, 67, 0.16) 29% 29.14%, transparent 29.14%),
    linear-gradient(148deg, transparent 0 66%, rgba(141, 20, 30, 0.2) 66% 66.14%, transparent 66.14%);
  opacity: 0.45;
}

.gallery-studio__shell {
  position: relative;
  width: min(1540px, 100%);
  margin: 0 auto;
}

.gallery-collections {
  position: relative;
  z-index: 4;
  margin-bottom: 1rem;
}

.gallery-collections__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.68rem;
  color: rgba(20, 17, 67, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-collections__header small {
  color: rgba(20, 17, 67, 0.42);
  font-size: inherit;
  font-weight: 800;
}

.gallery-collection-strip {
  --active-solid: #8d141e;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, 1fr);
  gap: 0.65rem;
  padding: 0.25rem 0.1rem 0.58rem;
  background: transparent;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 38, 102, 0.78) rgba(41, 38, 102, 0.1);
}

.gallery-collection-strip::-webkit-scrollbar {
  height: 0.42rem;
}

.gallery-collection-strip::-webkit-scrollbar-track {
  background: rgba(41, 38, 102, 0.1);
  border-radius: 999px;
}

.gallery-collection-strip::-webkit-scrollbar-thumb {
  background: var(--nav-bg);
  border-radius: 999px;
}

.gallery-collection {
  --collection-color: #8d141e;
  position: relative;
  min-height: 7.4rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(20, 17, 67, 0.1);
  color: rgba(20, 17, 67, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    color-mix(in srgb, var(--collection-color), #ffffff 91%);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(20, 17, 67, 0.08);
  overflow: hidden;
  transition: color 180ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gallery-collection::before,
.gallery-collection::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.gallery-collection::before {
  left: 0;
  top: 0;
  width: 100%;
  height: 0.28rem;
  background: var(--collection-color);
  transform: scaleX(0.24);
  transform-origin: left;
  opacity: 0.64;
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-collection::after {
  right: 0.7rem;
  bottom: 0.62rem;
  width: 2.2rem;
  height: 2.2rem;
  border-right: 1px solid color-mix(in srgb, var(--collection-color), transparent 24%);
  border-bottom: 1px solid color-mix(in srgb, var(--collection-color), transparent 24%);
  opacity: 0.22;
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-collection:hover,
.gallery-collection:focus-visible {
  color: var(--primary);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62)),
    color-mix(in srgb, var(--collection-color), #ffffff 84%);
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(20, 17, 67, 0.12);
}

.gallery-collection:hover::before,
.gallery-collection:focus-visible::before,
.gallery-collection.is-active::before {
  transform: scaleX(1);
  opacity: 1;
}

.gallery-collection:hover::after,
.gallery-collection:focus-visible::after {
  opacity: 0.52;
  transform: translate(-0.16rem, -0.16rem);
}

.gallery-collection.is-active {
  color: var(--primary);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--collection-color), #ffffff 86%), rgba(255, 255, 255, 0.9)),
    #ffffff;
  border-color: color-mix(in srgb, var(--collection-color), transparent 42%);
  box-shadow: 0 20px 52px color-mix(in srgb, var(--collection-color), transparent 82%);
}

.gallery-collection.is-active::after {
  opacity: 0.82;
}

.gallery-collection__index {
  display: block;
  color: color-mix(in srgb, var(--collection-color), var(--primary) 20%);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.gallery-collection__title {
  display: block;
  max-width: 12rem;
  margin-top: 0.58rem;
  font-size: clamp(0.9rem, 1vw, 1.04rem);
  font-weight: 900;
  line-height: 1.08;
}

.gallery-collection__meta {
  display: block;
  margin-top: 0.5rem;
  color: rgba(20, 17, 67, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
}

.gallery-carousel {
  --active-solid: #8d141e;
  --active-hue: #8d141e;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: min(900px, calc(100svh - var(--nav-h, 5.35rem) - 1.2rem));
  padding: clamp(0.9rem, 1.8vw, 1.35rem);
  border: 1px solid rgba(20, 17, 67, 0.14);
  background:
    linear-gradient(135deg, rgba(41, 38, 102, 0.98), rgba(12, 11, 31, 0.98) 58%, rgba(34, 12, 18, 0.96)),
    #141143;
  box-shadow: 0 28px 88px rgba(20, 17, 67, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  isolation: isolate;
}

.gallery-carousel::before,
.gallery-carousel::after,
.gallery-carousel__grid {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.gallery-carousel::before {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--active-hue), transparent 54%), transparent 24rem),
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.14) 36% 36.12%, transparent 36.12%),
    linear-gradient(154deg, transparent 0 74%, color-mix(in srgb, var(--active-hue), transparent 24%) 74% 74.12%, transparent 74.12%);
  opacity: 0.78;
}

.gallery-carousel::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4.4rem 4.4rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.84), transparent 82%);
  opacity: 0.46;
}

.gallery-carousel__grid {
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.85;
}

.gallery-carousel__topline {
  position: absolute;
  top: clamp(1rem, 2vw, 1.8rem);
  left: clamp(1rem, 2vw, 1.8rem);
  right: clamp(1rem, 2vw, 1.8rem);
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.4rem;
  pointer-events: none;
}

.gallery-carousel__meta {
  width: fit-content;
  max-width: min(46rem, calc(100% - 7rem));
  display: grid;
  justify-items: start;
  gap: 0.48rem;
  padding: 0;
}

.gallery-carousel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  color: color-mix(in srgb, var(--active-solid), white 42%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(41, 38, 102, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-carousel__eyebrow::before {
  content: "";
  width: 2.3rem;
  height: 1px;
  background: currentColor;
}

.gallery-carousel h2 {
  max-width: 62rem;
  margin-top: 0.38rem;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 3.25rem);
  line-height: 0.98;
  font-weight: 900;
  text-wrap: balance;
}

.gallery-carousel p {
  max-width: 46rem;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  line-height: 1.48;
}

.gallery-carousel__meta > p:not(.gallery-carousel__eyebrow) {
  display: inline-block;
  padding: 0.34rem 0.58rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(41, 38, 102, 0.4));
  text-shadow: 0 1px 10px rgba(5, 4, 16, 0.32);
  backdrop-filter: blur(8px);
}

.gallery-carousel__counter {
  min-width: 5.4rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255,255,255,0.06);
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
  text-align: right;
  backdrop-filter: blur(16px);
}

.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(570px, 72svh, 780px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 4, 16, 0.38);
  overflow: hidden;
}

.gallery-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 16, 0.72), transparent 18%, transparent 82%, rgba(5, 4, 16, 0.72)),
    linear-gradient(180deg, rgba(5, 4, 16, 0.6), transparent 24%, transparent 78%, rgba(5, 4, 16, 0.72));
}

.gallery-backdrop {
  position: absolute;
  inset: -2.5rem;
  width: calc(100% + 5rem);
  height: calc(100% + 5rem);
  object-fit: cover;
  opacity: 0.32;
  filter: blur(26px) saturate(0.9) contrast(1.1);
  transform: scale(1.08);
}

.gallery-frame {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, calc(72svh * var(--gallery-image-ratio, 1.333)));
  max-width: calc(100% - clamp(4rem, 10vw, 10rem));
  height: min(100%, 72svh);
  min-height: 0;
  margin: 0;
  isolation: isolate;
}

.gallery-frame__wash {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active-solid), transparent 36%), transparent 42%),
    rgba(255, 255, 255, 0.05);
  opacity: 0.2;
}

.gallery-frame img[data-gallery-main-image] {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), 0 0 0 0.7rem rgba(255, 255, 255, 0.035);
  opacity: 1;
  transform: translate(var(--gallery-crop-x, 0), var(--gallery-crop-y, 0)) scale(var(--gallery-crop-scale, 1));
  transition: opacity 360ms ease, transform 560ms cubic-bezier(0.2, 0.78, 0.24, 1), filter 420ms ease;
}

.gallery-carousel.is-switching .gallery-frame img[data-gallery-main-image] {
  opacity: 0;
  transform: translate(var(--gallery-crop-x, 0), calc(var(--gallery-crop-y, 0) + 1rem)) scale(var(--gallery-crop-switch-scale, 0.985));
  filter: blur(8px) saturate(0.84);
}

.gallery-frame figcaption {
  display: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(3rem, 4.4vw, 4.65rem);
  height: clamp(3rem, 4.4vw, 4.65rem);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(41, 38, 102, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.24);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active-solid), transparent 42%), rgba(255, 255, 255, 0.08)),
    rgba(5, 4, 16, 0.4);
  outline: none;
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery-nav svg {
  width: 1.42rem;
  height: 1.42rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-nav--prev { left: clamp(0.7rem, 2.2vw, 2rem); }
.gallery-nav--next { right: clamp(0.7rem, 2.2vw, 2rem); }

.gallery-bottomline {
  position: absolute;
  left: clamp(1rem, 2vw, 1.8rem);
  right: clamp(1rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2vw, 1.7rem);
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  padding: 0.72rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(5, 4, 16, 0.42);
  backdrop-filter: blur(18px);
}

.gallery-progress {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.gallery-progress::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.34rem;
  width: 0.44rem;
  height: 0.44rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
}

.gallery-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, color-mix(in srgb, var(--active-solid), white 28%));
  transition: width 320ms ease;
}

.gallery-thumb-viewport {
  position: relative;
  min-width: 0;
}

.gallery-thumb-viewport::before,
.gallery-thumb-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 2.1rem;
  pointer-events: none;
}

.gallery-thumb-viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12, 11, 31, 0.92), transparent);
}

.gallery-thumb-viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(12, 11, 31, 0.92), transparent);
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(4.2rem, 7vw, 6.5rem);
  gap: 0.42rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  position: relative;
  height: clamp(3rem, 5vw, 4.35rem);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.gallery-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 180ms ease, inset 180ms ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.34) contrast(1.04);
  transform: scale(1.02);
  transition: filter 220ms ease, transform 260ms ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  opacity: 0.86;
  transform: translateY(-2px);
  outline: none;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.08);
}

.gallery-thumb.is-active {
  opacity: 1;
}

.gallery-thumb.is-active::before {
  inset: 0.24rem;
  border-color: rgba(255, 255, 255, 0.86);
}

.gallery-thumb.is-active img {
  filter: grayscale(0) contrast(1.08);
}

@media (max-width: 1020px) {
  .gallery-carousel {
    min-height: calc(100svh - var(--nav-h, 5.35rem) - 1.5rem);
  }

  .gallery-collection-strip {
    grid-auto-columns: minmax(12rem, 14rem);
  }

  .gallery-stage {
    min-height: clamp(520px, 68svh, 700px);
  }

  .gallery-frame {
    width: min(100%, calc(62svh * var(--gallery-image-ratio, 1.333)));
    height: min(100%, 62svh);
    max-width: calc(100% - 5rem);
  }
}

@media (max-width: 720px) {
  .gallery-hero {
    min-height: auto;
    padding: calc(var(--nav-h, 5rem) + 2.2rem) 1rem 2.4rem;
    background-position: 58% center;
  }

  .gallery-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .gallery-lead {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .gallery-studio {
    padding: 1rem 0.72rem 3.5rem;
  }

  .gallery-collections__header {
    padding-inline: 0.1rem;
  }

  .gallery-collection-strip {
    grid-auto-columns: minmax(10.6rem, 12rem);
    gap: 0.52rem;
  }

  .gallery-collection {
    min-height: 6.25rem;
    padding: 0.78rem;
  }

  .gallery-collection__title {
    font-size: 0.86rem;
  }

  .gallery-collection__meta {
    font-size: 0.62rem;
  }

  .gallery-carousel {
    min-height: auto;
    padding: 0.62rem;
  }

  .gallery-carousel__topline {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0.35rem 0.35rem 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
  }

  .gallery-carousel__meta {
    max-width: 100%;
    padding: 0;
  }

  .gallery-carousel h2 {
    font-size: clamp(1.35rem, 8vw, 2.1rem);
  }

  .gallery-carousel p {
    max-width: 18.5rem;
    font-size: 0.76rem;
    display: none;
  }

  .gallery-carousel__meta .gallery-carousel__eyebrow {
    display: inline-flex;
    margin-top: 0;
  }

  .gallery-carousel__meta > p:not(.gallery-carousel__eyebrow) {
    display: inline-block;
    max-width: 15.5rem;
    line-height: 1.7;
  }

  .gallery-carousel__counter {
    min-width: 0;
    text-align: left;
    padding: 0.48rem 0.55rem;
    font-size: 0.95rem;
  }

  .gallery-stage {
    min-height: clamp(330px, 54svh, 470px);
  }

  .gallery-frame {
    width: min(100%, calc(42svh * var(--gallery-image-ratio, 1.333)));
    height: min(100%, 42svh);
    max-width: calc(100% - 1.2rem);
  }

  .gallery-frame__wash {
    inset: -0.55rem;
  }

  .gallery-frame figcaption {
    bottom: -1.55rem;
    font-size: 0.64rem;
  }

  .gallery-nav {
    top: auto;
    bottom: 0.72rem;
    width: 2.74rem;
    height: 2.74rem;
    transform: none;
  }

  .gallery-nav:active {
    transform: scale(0.96);
  }

  .gallery-nav--prev { left: 0.72rem; }
  .gallery-nav--next { right: 0.72rem; }

  .gallery-bottomline {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    grid-template-columns: 1fr;
    gap: 0.68rem;
    padding: 0.62rem;
  }

  .gallery-thumbs {
    grid-auto-columns: 3.7rem;
  }

  .gallery-thumb {
    height: 2.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-collection,
  .gallery-collection::before,
  .gallery-collection::after,
  .gallery-frame img[data-gallery-main-image],
  .gallery-thumb,
  .gallery-thumb::before,
  .gallery-thumb img,
  .gallery-progress span {
    transition: none;
  }
}
