body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #333;
    color: #ffffff;
  }
  
  h1 {
    text-align: center;
    margin: 1.5rem 0;
    color: #ffffff;
  }

  h3 {
    width: 100%;
    text-align: center;
    margin: 1.5rem 0;
  }
  
  a {
    font-size: small;
    color: #a6a6a6;
  }
  
  a:hover {
    color: #ffffff;
  }
  
  /* Galeria */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
  }
  
  .gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #333;
  }

  .gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* Modal */
  .modal-container {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 1000;
  }
  
  .modal-container.show {
    display: flex;
  }
  
  .modal-content {
    background-image: url(../assets/galeriafaunafts/celfonsfauna.jpg);
    border-radius: 10px;
    max-width: 399px;
    width: 100%;
    padding: 1rem;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
  }
  
  .modal-content img {
    width: 399px;
    border-radius: 6px;
    height: 600px;
  }
  
  .modal-info {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
  }
  
  .close:hover {
    color: #000;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  
  /*webgrafia*/
  
  #webgrafia {
    position: relative;
    margin: 15px;
    font-size: medium;
    align-items: center;
    text-align: center;
    color: #666;
  }


  /*botó casa*/
#boto-casa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #604a33;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

#boto-casa:hover {
  background-color: #717e6a;
}

#fotocasa {
  width: 50px;
  height: auto;
}