.horse-card {
    display:flex;
    gap: 30px;
    padding: 20px;
    background: rgba(168, 180, 149, 0.048);
    border: 1px solid #d8d1b0;
    border-radius: 8px;
    margin: 30px 0;
}

.horse-card img {
    max-height: 320px; 
    object-fit:cover;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgb(167, 166, 159);
}

.horse-info {
    flex: 1;
    
}

.horse-info h2 {
    margin-top: 0;
}

.horse-info table {
    width: 100%;
    border-collapse: collapse;
}

.horse-info th,
.horse-info td {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e0c8;
    text-align: left;
}

.horse-info th {
    width: 140px;
    font-weight: normal;
    color: #666;
}

.horse-info td a {
  color:rgb(89, 150, 71);
  text-decoration: none;
}

.horse-info td a:hover {
  color:rgb(147, 238, 119);
  text-decoration: none;
}

h4{
  font-family:Georgia, 'Times New Roman', Times, serif;
font-style: italic;
letter-spacing: 2px;
font-size: 1.5rem; font-weight: 300;
margin-bottom:-5px; 
}


table {
      width: 100%;
      border-collapse: collapse;
    }
    td { 
      padding: 10px 30px;
      text-align: left; 
    }
    small {
      display: block;
      font-size: 0.8em;
      color: #666;
    }
    .isa {
      background-color: #d7e5c8d2;
    }
    .ema {
      background-color: #eff5e2c5;
    }
  

   table a, a:visited {
  color:rgb(89, 150, 71);
  text-decoration: none;
}

table a:hover {
  color:rgb(147, 238, 119);
  text-decoration: none;
}


  .galleria{
    text-align: center;  
    margin:10px;
    font-size: smaller;
    font-style: italic;
  }  

  .galleria img{
    max-height:100px;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgb(167, 166, 159);
  } 
  
  .galleria img:hover{
    opacity: 0.5;
  }

 
.kisa{
  border:0px;
}


@media (max-width: 600px) {
    .horse-card {
        flex-direction: column;
    }

    .horse-card img {
        width: 100%;
        height: auto;
    }

table, tbody, tr, td {
        display: block;
        width: 100%;
      }
      tr {
        margin-bottom: 15px;
      }
      td {
        box-sizing: border-box;
        text-align: left;
        padding: 10px;
        border: 1px solid #ccc;
        margin-bottom: 5px;
      }
    }