.grid-navigation {
  /* max-width: 1345px; MUSI SE OPTIMALIZOVAT */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 20px;
  background-color: white;
  padding: 20px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: white;
  width: 245px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  margin: auto;
}

.image-container {
  width: 100%;
  height: 150px; /* Poměr stran kontejneru */
  overflow: hidden;
  border-radius: 4px; /* Zaoblení rohů obrázku */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Přizpůsobení obrázku s vycentrováním */
  object-position: center;
}

.grid-item span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responzivita pro telefony */
@media (max-width: 768px) {
  .grid-navigation {
    grid-template-columns: repeat(2, 1fr); /* Dvě karty vedle sebe */
    gap: 15px;
  }

  .grid-item {
    width: 100%; /* Přizpůsobení šířky na mobilních zařízeních */
  }
}
