.library-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 10px;
  justify-items: center;
}

.library-container {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
}

.library-container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px); 
  transition: all 0.3s ease-in-out;
}

.library-item {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.library-img-container {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.library-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.library-title {
  font-size: 35px;
  font-weight: bold;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'AmsiProcond-Black';
}

.library-text-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 80px;
  text-align: center;
  width: 90%;
}

.library-item p {
  font-size: 20px;
  color: #666;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: 'AmsiProcond-Regular';
}

.library-pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.library-pagination ul {
  list-style: none;
}

.library-pagination .page-numbers {
  display: flex;
  padding: 8px 12px;
  margin: 0 5px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.library-pagination .page-numbers li .page-numbers {
  color: grey;
  text-decoration: none;
}

.library-pagination .page-numbers li .page-numbers:hover {
  background-color: #ee2e5d;
  color: white;
}

.library-pagination .current {
  background-color: #ee2e5d;
  color: white !important;
  font-weight: bold;
  text-decoration: none;
}
