     /* Centrando el GIF en la página */
        #loading {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            z-index: 99;
            display: none;
        }

   

        .galeria { display: grid; flex-wrap: wrap; gap: 16px; justify-content: left; padding-top: 50px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
        .galeria img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; }
        .galeria div { position: relative; }
        .delete-btn { position: absolute; top: 5px; right: 5px; background: red; color: white; border: none; cursor: pointer; }
.delete-btnMR { position: absolute; top: 5px; right: 5px; background: red; color: white; border: none; cursor: pointer; }

.modales { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; z-index: 1000; }
        .modales img { max-width: 90%; max-height: 90%; border-radius: 8px; }
        .close-btnes { position: absolute; top: 20px; right: 30px; font-size: 30px; color: white; cursor: pointer; }

        .file-card {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    font-family: sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .file-card img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 8px;
  }

  .file-title {
    font-size: 14px;
    word-break: break-word;
  }

  .bloqueado {
    filter: blur(8px) brightness(0.7);
    pointer-events: none;
    user-select: none;
}

.overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border-radius: 8px;
}