/* =====================================================
   GALERÍA (galeria.html)
   Estilo inspirado en galerías de arte: títulos serif (Lora),
   mucho aire, líneas finas y fotos protagonistas.
===================================================== */

.page-gallery {
  --header-h: 77px;
  --g-gap: clamp(10px, 1.4vw, 18px);
  --g-radius: 4px;
  --g-skeleton: #e2e9f1;
  background: #f6f8fb;
}


/* ---------- Elementos comunes ---------- */

.g-section {
  padding: clamp(76px, 10vw, 136px) 0;
  scroll-margin-top: 60px;
}

.g-section--white {
  background: var(--white);
}

.g-intro {
  max-width: 720px;
  margin: 0 auto clamp(44px, 6vw, 76px);
  text-align: center;
}

.g-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.g-eyebrow::before,
.g-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.g-title {
  margin: 16px 0 18px;
  color: var(--primary-dark);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.g-title em {
  color: var(--secondary);
  font-style: italic;
  font-weight: 400;
}

/* Las letras en cursiva se salen un poco de su caja: se les da aire */
.g-title .split-char {
  padding-inline: 0.03em;
  margin-inline: -0.03em;
}

.g-lead {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.g-count {
  margin: 22px 0 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.g-count:empty {
  display: none;
}

.g-empty {
  margin: 0;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px dashed #c8d5e3;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.g-empty .bi {
  font-size: 2rem;
  color: var(--secondary);
}

/* Botón que envuelve cada foto (abre el visor) */
.g-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}

.g-open:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.g-open picture {
  display: block;
  width: 100%;
  height: 100%;
}

.g-open img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 1.2s var(--ease-out, ease);
}

.is-loaded .g-open img {
  opacity: 1;
}

@media (hover: hover) {
  .g-open:hover img {
    transform: scale(1.045);
  }
}

/* Mientras carga: brillo suave en movimiento */
@keyframes g-shimmer {
  to {
    background-position: -200% 0;
  }
}


/* =====================================================
   1. HERO DE LA GALERÍA
===================================================== */

.g-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  /* Color de fondo mientras carga la foto (o si no hay fotos) */
  background:
    radial-gradient(circle at 82% 18%, rgba(57, 208, 255, 0.2), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(13, 110, 253, 0.28), transparent 35%),
    linear-gradient(125deg, var(--primary-dark), var(--primary) 58%, #0d4f8f);
}

/* La foto ocupa un poco más de alto para el efecto parallax */
.g-hero__media {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}

.g-hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.g-hero__slide.is-active {
  opacity: 1;
}

/* La foto se muestra tal cual: sin filtros ni desenfoque, para no perder calidad */
.g-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Al cargar, la foto se asienta suavemente y termina a su tamaño real (nítida) */
.g-hero.is-loaded .g-hero__slide.is-active .g-hero__image {
  animation: g-hero-settle 2.6s var(--ease-out, ease) both;
}

@keyframes g-hero-settle {
  from {
    transform: scale(1.06);
  }

  to {
    transform: none;
  }
}

/* Filtro en los colores del sitio: oscurece arriba y abajo para leer el texto,
   y deja la parte central de la foto casi intacta. */
.g-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 48% at 50% 50%, rgba(4, 16, 30, 0.38), transparent 75%),
    linear-gradient(180deg,
      rgba(4, 16, 30, 0.55) 0%,
      rgba(4, 16, 30, 0.14) 28%,
      rgba(4, 16, 30, 0.14) 62%,
      rgba(4, 16, 30, 0.72) 100%),
    linear-gradient(135deg, rgba(7, 58, 110, 0.3), rgba(57, 208, 255, 0.06));
}

.g-hero--empty .g-hero__shade {
  display: none;
}

.g-hero__content {
  position: relative;
  padding: 96px 0 128px;
  text-align: center;
}

.g-hero__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--accent-light);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.g-hero__eyebrow::before,
.g-hero__eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.g-hero__title {
  max-width: 15ch;
  margin: 22px auto 0;
  color: var(--white);
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  /* Sombra aplicada al título completo (no letra por letra) */
  filter: drop-shadow(0 2px 22px rgba(4, 16, 30, 0.4));
}

.g-hero__title em {
  color: var(--accent-light);
}

.g-hero__text {
  max-width: 600px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  text-shadow: 0 1px 14px rgba(4, 16, 30, 0.45);
}

/* Indicador "Desliza" */
.g-hero__scroll {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.g-hero__scroll .bi {
  font-size: 1.15rem;
  animation: g-bounce 2s ease-in-out infinite;
}

.g-hero__scroll:hover {
  color: var(--white);
}

.g-hero__scroll:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 6px;
  border-radius: 6px;
}

@keyframes g-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}


/* =====================================================
   2. IMÁGENES EMBEBIDAS (100 / 80)
   Grilla de 12 columnas sin espacio entre ellas:
   - Principal: 8 columnas, proporción 4:3 → alto = 6 columnas (100 %)
   - Embebida:  6 columnas, proporción 5:4 → alto = 4,8 columnas (80 %)
   Se superponen 2 columnas.
===================================================== */

.g-embed {
  display: flex;
  flex-direction: column;
  gap: clamp(90px, 11vw, 150px);
}

.g-placeholder {
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 2 / 1;
  border-radius: var(--g-radius);
  background: linear-gradient(110deg, var(--g-skeleton) 30%, #f1f5f9 45%, var(--g-skeleton) 60%);
  background-size: 200% 100%;
  animation: g-shimmer 1.4s linear infinite;
}

.g-pair {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
}

.g-pair__main,
.g-pair__inset {
  grid-row: 1;
  margin: 0;
  min-width: 0;
}

.g-pair__main {
  grid-column: 1 / span 8;
  aspect-ratio: 4 / 3;
}

.g-pair__inset {
  z-index: 2;
  grid-column: 7 / span 6;
  aspect-ratio: 5 / 4;
}

.g-pair--reverse .g-pair__main {
  grid-column: 5 / span 8;
}

.g-pair--reverse .g-pair__inset {
  grid-column: 1 / span 6;
}

.g-pair--single .g-pair__main {
  grid-column: 2 / span 10;
  aspect-ratio: 16 / 9;
}

.g-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--g-radius);
  background: linear-gradient(110deg, var(--g-skeleton) 30%, #f1f5f9 45%, var(--g-skeleton) 60%);
  background-size: 200% 100%;
  animation: g-shimmer 1.4s linear infinite;
}

.g-frame.is-loaded,
.g-frame.is-broken {
  animation: none;
  background: var(--g-skeleton);
}

/* La embebida lleva marco blanco y sombra, como una foto sobre otra */
.g-pair__inset .g-frame {
  border: clamp(6px, 0.9vw, 12px) solid var(--white);
  box-shadow: 0 34px 70px rgba(4, 16, 30, 0.24);
}

/* Línea decorativa detrás de la pareja */
.g-pair::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 4%;
  z-index: -1;
  width: 38%;
  height: 60%;
  border: 1px solid #cfdae6;
  border-radius: var(--g-radius);
}

.g-pair--reverse::before {
  right: 4%;
  left: auto;
}

.g-pair--single::before {
  display: none;
}


/* =====================================================
   3. MOSAICO
   Bloques de 4 fotos:
   [ 1 ][ 2 ][ 4 ]
   [ 1 ][ 3 ][ 4 ]
===================================================== */

.g-mosaic {
  display: flex;
  flex-direction: column;
  gap: var(--g-gap);
}

.g-block {
  display: grid;
  gap: var(--g-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 9;
}

.g-block > :nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.g-block > :nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.g-block > :nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.g-block > :nth-child(4) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

/* Último bloque incompleto */
.g-block[data-count="3"],
.g-block[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g-block[data-count="2"] > :nth-child(2) {
  grid-row: 1 / span 2;
}

.g-block[data-count="1"] {
  grid-template-columns: 1fr;
}

/* Esqueleto mientras se lee la carpeta */
.g-block--skeleton > span {
  border-radius: var(--g-radius);
  background: linear-gradient(110deg, var(--g-skeleton) 30%, #f1f5f9 45%, var(--g-skeleton) 60%);
  background-size: 200% 100%;
  animation: g-shimmer 1.4s linear infinite;
}

.g-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--g-radius);
  background: linear-gradient(110deg, var(--g-skeleton) 30%, #f1f5f9 45%, var(--g-skeleton) 60%);
  background-size: 200% 100%;
  animation: g-shimmer 1.4s linear infinite;
}

.g-tile.is-loaded,
.g-tile.is-broken {
  animation: none;
  background: var(--g-skeleton);
}

/* Información al pasar el ratón */
.g-tile__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 18px 16px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--white);
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(4, 16, 30, 0.78));
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-out, ease);
}

.g-tile__number {
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.g-tile__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-tile__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 15px;
}

@media (hover: hover) {
  .g-open:hover .g-tile__info,
  .g-open:focus-visible .g-tile__info {
    opacity: 1;
    transform: none;
  }
}

.g-open:focus-visible .g-tile__info {
  opacity: 1;
  transform: none;
}


/* ---------- Ocultar el nombre de las fotos ----------
   Se activa con data-photo-names="hide" en el <body> de galeria.html.
   El nombre sigue como texto alternativo (alt): no se ve, pero ayuda
   a Google y a personas que usan lector de pantalla. */

[data-photo-names="hide"] .g-tile__name,
[data-photo-names="hide"] .lightbox__caption {
  display: none;
}

[data-photo-names="hide"] .g-tile__icon {
  margin-left: auto;
}

[data-photo-names="hide"] .lightbox__bar {
  justify-content: flex-end;
}

/* En celulares no queda nada que mostrar sobre la foto */
@media (hover: none) {
  [data-photo-names="hide"] .g-tile__info {
    display: none;
  }
}


/* ---------- Cargar más / cargando / fin ---------- */

.g-more {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  justify-content: center;
  text-align: center;
}

.g-more__button {
  position: relative;
  isolation: isolate;
  min-height: 56px;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--primary-dark);
  border-radius: 999px;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

/* Relleno que entra de izquierda a derecha */
.g-more__button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out, ease);
}

.g-more__button:hover,
.g-more__button:focus-visible {
  color: var(--white);
}

.g-more__button:hover::before,
.g-more__button:focus-visible::before {
  transform: scaleX(1);
}

.g-more__button .bi {
  font-size: 1rem;
  transition: transform 0.4s ease;
}

.g-more__button:hover .bi {
  transform: rotate(90deg);
}

.g-more__button:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 4px;
}

.g-loader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.g-loader > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--secondary);
  animation: g-dot 1s ease-in-out infinite;
}

.g-loader > span:nth-child(2) {
  animation-delay: 0.15s;
}

.g-loader > span:nth-child(3) {
  animation-delay: 0.3s;
}

.g-loader__text {
  width: 100%;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@keyframes g-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

.g-end p {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
}

.g-end__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.g-end__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.g-sentinel {
  height: 1px;
}


/* =====================================================
   VISOR DE FOTOGRAFÍAS
===================================================== */

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--white);
  background: rgba(3, 10, 19, 0.97);
}

.lightbox::backdrop {
  background: rgba(3, 10, 19, 0.9);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: lightbox-in 0.3s ease;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox__stage {
  min-height: 0;
  padding: 72px 84px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.35s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__stage.is-loaded .lightbox__image {
  opacity: 1;
}

.lightbox__bar {
  padding: 14px 28px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.lightbox__caption {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

.lightbox__counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.lightbox__button {
  position: absolute;
  width: 50px;
  height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.15rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.lightbox__button:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.lightbox__button:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--previous {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}


/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 900px) {
  /* Mosaico en 2 columnas:
     [ 1 ][ 2 ]
     [ 1 ][ 3 ]
     [   4    ] */
  .g-block,
  .g-block[data-count="3"],
  .g-block[data-count="2"] {
    aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(140px, 30vw, 260px);
  }

  .g-block > :nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3 / span 2;
  }

  .g-block[data-count="1"] {
    grid-template-columns: 1fr;
  }

  .g-block[data-count="1"] > :nth-child(1) {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .page-gallery {
    --header-h: 73px;
  }

  .lightbox__stage {
    padding: 70px 16px 6px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 14px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--previous {
    left: auto;
    right: 70px;
  }

  .lightbox__nav--next {
    right: 16px;
  }

  .lightbox__bar {
    min-height: 72px;
    padding: 10px 136px 18px 18px;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  .page-gallery {
    --header-h: 67px;
  }

  .g-hero__content {
    padding: 72px 0 112px;
  }

  .g-hero__eyebrow {
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.26em;
  }

  .g-hero__eyebrow::before,
  .g-hero__eyebrow::after {
    width: 26px;
  }

  .g-hero__title {
    letter-spacing: -0.015em;
  }

  .g-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .g-eyebrow::before,
  .g-eyebrow::after {
    width: 22px;
  }

  .g-lead {
    font-size: 16px;
  }

  /* Parejas en celular: la embebida baja y se monta sobre la esquina.
     Principal: 11 columnas, 4:3 → alto 8,25 col.  Embebida: 8 columnas, alto 6,6 col (80 %). */
  .g-pair {
    margin-bottom: 20%;
  }

  .g-pair__main {
    grid-column: 1 / span 11;
  }

  .g-pair__inset {
    grid-column: 5 / span 8;
    align-self: end;
    aspect-ratio: 40 / 33;
    transform: translateY(32%);
  }

  .g-pair--reverse .g-pair__main {
    grid-column: 2 / span 11;
  }

  .g-pair--reverse .g-pair__inset {
    grid-column: 1 / span 8;
  }

  .g-pair--single {
    margin-bottom: 0;
  }

  .g-pair--single .g-pair__main {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
  }

  .g-pair::before {
    display: none;
  }
}

@media (max-width: 560px) {
  /* Mosaico en una columna: fotos altas y anchas alternadas */
  .g-block,
  .g-block[data-count="3"],
  .g-block[data-count="2"],
  .g-block[data-count="1"] {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .g-block > * {
    grid-column: 1 !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 3;
  }

  .g-block > :nth-child(1),
  .g-block > :nth-child(4) {
    aspect-ratio: 4 / 5;
  }

  .g-block--skeleton > span:nth-child(n + 2) {
    display: none;
  }

  /* En pantallas táctiles se ve el nombre de la foto siempre */
  .g-tile__info {
    padding: 14px;
  }

  .g-more__button {
    width: 100%;
    justify-content: center;
    padding: 0 20px;
  }
}

@media (hover: none) {
  .g-tile__info {
    opacity: 1;
    transform: none;
    background: linear-gradient(180deg, transparent 40%, rgba(4, 16, 30, 0.65));
  }

  .g-tile__icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-hero__slide {
    transition: none;
  }

  .g-hero.is-loaded .g-hero__slide.is-active .g-hero__image,
  .g-hero__scroll .bi {
    animation: none;
  }
}