.gallery-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.gallery-item {
    margin: 0.5rem;
}

.file-container {
    position: relative;
    display: inline-block;
    width: 7rem;
    height: 7rem;
    overflow: hidden;
    border-radius: 0.25rem;
}

.file-container img, .file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    text-align: center;
	z-index: 1;
}
.file-name-overlay {
    padding: 0.5rem;
    word-break: break-all;
	color: white;
}

.delete-btn {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
		z-index: 2;
}

.file-container:hover .overlay {
    opacity: 1;
}
.selected {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); 
}
/* File type specific styles */
.doc, .pdf, .richtext, .excel, .textfile, .mp3 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 7rem;
}

.doc {
    background-color: #90CAF9; /* Pastel blue for Word documents */
}
.pdf {
    background-color: #EF9A9A; /* Pastel red for PDF files */
}
.richtext {
    background-color: #BBDEFB; /* Lighter blue for Rich Text Format */
}
.excel {
    background-color: #A5D6A7; /* Pastel green for Excel */
}
.textfile {
    background-color: #ECEFF1; /* Light grey for Text files */
}
.mp3 {
	background-color: #FFAB91; /* Vibrant orange for MP3 files */

}
/* Icon color adjustments */
.doc .bi-file-earmark-word-fill {
    color: #1E88E5; /* Complimentary blue for Word */
}
.pdf .bi-file-earmark-pdf-fill {
    color: #D32F2F; /* Complimentary red for PDF */
}
.richtext .bi-file-richtext {
    color: #1976D2; /* Complimentary darker blue for Rich Text Format */
}
.excel .bi-file-earmark-excel-fill {
    color: #388E3C; /* Complimentary darker green for Excel */
}
.textfile .bi-file-text-fill {
    color: #607D8B; /* Complimentary darker grey for Text files */
}
.mp3 .bi-filetype-mp3 {
    color: #FF3D00; 
}