/* hover_gallery.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /*body {
    font-family: Arial, sans-serif;
    background: #adb5bd;
  }*/
  
  .hover_gallery {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
    margin: auto;
  }
  
  .hover_gallery .item {
    flex: 1 1 25%;
    position: relative;
    height: 300px;
    overflow: hidden;
  }
  
  .hover_gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
  }
  
  .hover_gallery .item:hover img {
    transform: scale(1.1);
  }
  
  .hover_gallery .overlay {
    position: absolute;
    bottom: 0;        /* Lo pegamos abajo */
    left: 0;
    width: 100%;
    height: auto;     /* Ajustamos altura automática */
    background: rgba(0, 0, 0, 0.6);  /* Fondo más oscuro */
    color: white;
    display: flex;
    flex-direction: column;           /* Para controlar dirección vertical */
    justify-content: flex-end; 
    align-items: center;       /* Centrar texto */
    padding: 15px 20px;               /* Espacio dentro */
    opacity: 0;
    transition: opacity 0.5s ease;
    box-sizing: border-box;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }
  
  .hover_gallery .item:hover .overlay {
    opacity: 1;
  }
  
  .hover_gallery .item:hover {
    cursor: pointer;          /* Cambia cursor a mano al pasar */
  }

  /* Responsive */
  @media (max-width: 992px) {
    .hover_gallery .item {
      flex: 1 1 50%;
    }
  }
  
  @media (max-width: 600px) {
    .hover_gallery .item {
      flex: 1 1 100%;
    }
  }