/* Styling für die Metabox im Backend */
#pdf-files-wrapper {
  margin: 10px 0;
}

#pdf-files-wrapper .pdf-file-item-backend {
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

#pdf-files-wrapper .pdf-file-item-backend a {
  text-decoration: none;
  color: #0073aa;
}

#pdf-files-wrapper .pdf-file-item-backend a:hover {
  color: #005177;
}

.remove-pdf-file {
  background: #f7f7f7;
  border: 1px solid #ddd;
  color: #a00;
}

.add-pdf-file {
  margin-top: 10px;
}

.pdf-events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.pdf-file-image-wrapper {
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #fff;
}

.pdf-file-item {
  width: calc(20% - 20px);
}

.pdf-file-item img {
  width: 100%;
  height: auto;
  display: block;
}

.pdf-file-title {
  font-size: 16px;
  margin-top: 10px;
  color: black;
  font-weight: bold;
  margin-bottom: 15px;
}

.pdf-pagination {
  text-align: center;
  margin-top: 20px;
}

.pdf-pagination a {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 2px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #0073aa;
  text-decoration: none;
}

.pdf-pagination a:hover {
  background: #0073aa;
  color: #fff;
}

.pdf-pagination .current {
  background: #0073aa;
  color: #fff;
  border: 1px solid #0073aa;
}

@media screen and (max-width: 1000px) {
  .pdf-file-item {
    width: calc(25% - 20px);
  }
}

@media screen and (max-width: 745px) {
  .pdf-file-item {
    width: calc(33.3333% - 20px);
  }
}

@media screen and (max-width: 500px) {
  .pdf-file-item {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 345px) {
  .pdf-file-item {
    width: 100%;
  }
}
