.gallery-card{
    position: relative;
}
.gallery-card button {
    background-color: #FF5F57; /* Czerwony kolor przycisku zamykania na macOS */
    border-radius: 50%; /* Upewnij się, że przycisk jest idealnie okrągły */
    position: absolute;
    height: 30px;
    width: 30px;
    top: -10px;
    left: -10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); /* Subtelny cień wokół przycisku */
    cursor: pointer;
    border:none;
}

.gallery-card button::before {
    content: '✕'; /* Ikona X */
    color: white; /* Kolor X */
    font-size: 16px; /* Rozmiar X */
    line-height: 1;
}
.gallery-card button:hover{
    transform: scale(1.1);
}





#upload-form {
    display: flex;
    flex-direction: column;
}

#file-input {
    margin-bottom: 10px;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}
.galleryform {
    width: 300px;
    height: 300px;
    border: 2px dashed #ccc;
    display: flex;
    border-radius: 10px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

#file-input {
    display: none;
}

.plus-icon {
    font-size: 50px;
    color: #777;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; 
}

.plus-icon:hover {
    transform: translate(-50%, -50%) scale(1.2);
}





.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    overflow-y: auto;
    max-height: 200px;
    width: 100%;
    margin-top: 0px;
    transition: filter 0.3s ease-in-out;
}

.preview-container img {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin:10px;
    
}

.preview-container.blur {
    filter: blur(5px);
}