.file_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 20px;
}
/* Container styling */
.wp-block-pdf-uploader-file {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0px auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* PDF object styling */
.wp-block-pdf-uploader-file object {
    width: 200px !important;
    height: 200px !important;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* File name link styling */
.wp-block-pdf-uploader-file > a:first-of-type {
  display: block;
  margin-top: 15px;
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}

.wp-block-pdf-uploader-file > a:first-of-type:hover {
  text-decoration: underline;
  color: #003d80;
}

/* Download button styling */
.wp-block-pdf-uploader-file .wp-block-file__button {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--pri);
  color: #fff;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.wp-block-pdf-uploader-file .wp-block-file__button:hover {
  background-color: #ffffff;
  color: var(--pri);
}

/* Hide PDF object on small screens */
@media (max-width: 768px) {
  .wp-block-pdf-uploader-file object {
    display: none;
  }

  .mobile-download-link {
    display: block;
    text-align: center;
    margin-top: 20px;
  }
}

/* Default hide the mobile link on desktop */
.mobile-download-link {
  display: none;
}

/* Style the mobile download button */
.mobile-download-link a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

