/* Wrapper Grid Layout */
.fm-file-list-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0!important;
    margin: 1rem 0;
}

@media (max-width: 1200px) {
  .fm-file-list-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .fm-file-list-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fm-file-list-items {
    grid-template-columns: 1fr;
  }
}

/* Individual File Item */
.fm-file-list-items li {
    box-shadow: rgba(45, 39, 39, 0.16) 0px 0px 10px 0px;
    border-radius: 10px;
    overflow: hidden;
    padding: 16px;
    background-color: #fefefe;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #8a242e;
    justify-content: space-around;
}

.fm-file-list-items img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Buttons */
.fm-file-list-items .fm-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.fm-file-list-items .fm-button-group a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #8a242e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.fm-file-list-items .fm-button-group a:hover {
    background-color: #750a27;
}

/* Pagination Links */
.fm-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.fm-pagination-links .page-numbers {
    padding: 6px 12px;
    box-shadow: rgba(45, 39, 39, 0.16) 0px 0px 10px 0px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.fm-pagination-links .page-numbers:hover {
    background-color: #f0f0f0;
}

.fm-pagination-links .page-numbers.current {
    background-color: #8a242e;
    color: #fff;
    border-color: #8a242e;
}

.fm-pagination-links .page-numbers.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/*Search Field*/
.fm-search-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.fm-search-input {
  width: 100%;
  max-width: 420px;
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.fm-search-status { 
  opacity: .75; 
}
