/* 1. IMAGEN PRINCIPAL */
#gallery-main-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; 
  object-fit: cover; 
  object-position: center;
  display: block;
}

#gallery-main-img a {
    display: block;
    width: 100%;
}

/* 2. CONTENEDOR PADRE DE LAS MINIATURAS */
#gallery-thumbs {
  display: flex;
  gap: 15px; 
  width: 100%;
  margin-top: 15px; 
}

/* 3. CADA MINIATURA */
#gallery-thumbs > div {
  flex: 1; 
  aspect-ratio: 4 / 3; 
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent; 
  position: relative; 
  overflow: hidden; 
  
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 15px; 
}

/* Borde naranja del estado activo */
#gallery-thumbs > div.is-active {
  border-color: #ff6b00; 
}

/* 4. TEXTO DENTRO DE LA MINIATURA */
#gallery-thumbs > div .elementor-widget {
  z-index: 2; 
  margin: 0;
  width: 100%;
}

#gallery-thumbs > div .elementor-heading-title,
#gallery-thumbs > div p,
#gallery-thumbs > div span {
  color: #888888; 
  font-family: monospace, sans-serif; 
  font-size: 13px;
  margin: 0;
  text-transform: lowercase; 
}

/* 5. DEGRADADO DE LECTURA */
#gallery-thumbs > div::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}