.container .category-heading {
    position: absolute;
    top: 10px;
    left: 100%;
    transform: translateX(-50%);
    background-color: #4CAF50; /* Adjust background color */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10;
    width: fit-content;
}

/* Ensure the container has relative positioning */
.container {
    position: relative;
 
}

.uploads-section {
    margin-top: 50px;
}

.uploads-header {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.upload-item {
    display: flex; /* Use flexbox to arrange children */
    flex-direction: column; /* Stack items vertically */
    margin-bottom: 30px;
}

.upload-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.upload-field {
    display: flex; /* Set the upload fields as flex */
    justify-content: space-between; /* Space out client and worker sections */
    flex-wrap: wrap; /* Allow wrapping to prevent overflow */
}

.client-work, .worker-work {
    flex: 1; /* Allow both sections to take equal space */
    margin-right: 20px; /* Right margin to space out */
}
.worker-work {
    margin-right: 0; /* Remove right margin for the last section */
}
.upload-field img, 
.upload-field video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.upload-field img:hover, 
.upload-field video:hover {
    transform: scale(1.05);
}
.category-button {
    display: inline-block; /* Behave like a button */
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    padding: 5px 10px; /* Padding for button look */
    border-radius: 5px; /* Rounded corners */
    margin-left: 10px; /* Space between text and the button */
    font-size: 14px; /* Adjust the font size */
    font-weight: normal; /* Keep text weight consistent */
    text-align: center;
    line-height: 1.5; /* Adjust for better vertical alignment */
}

/* Target only the <span> within .category-button */
.category-button span {
    color: #ff9800; /* Change the text color inside the span (orange) */
    font-weight: bold; /* Make the span text bold */
    font-size: 12px; /* Slightly adjust the font size for the span */
}

.user-info {
    display: flex;
    align-items: flex-end; /* Align items to the bottom */
    margin-bottom: 15px;
}
.user-info1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 50% !important; /* Force circular shape */
    margin-right: 15px;
    object-fit: cover !important; /* Ensure proper image fitting */
    display: block !important; /* Ensure proper display */
}

/* Ensure all profile pictures have the same circular shape */
.profile-photo img,
img.profile-photo,
.user-avatar,
.avatar-img,
.profile-image,
.user-profile-img,
.profile-pic,
.user-pic,
.user-info img,
.user-info1 img,
.upload-item img[class*="profile"],
.upload-item img[class*="avatar"],
.upload-item img[class*="user"],
img[class*="profile"],
img[class*="avatar"],
img[class*="user-pic"],
img[class*="profile-pic"] {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important; /* Force circular shape for all profile images */
    object-fit: cover !important; /* Ensure proper image fitting */
    display: block !important; /* Ensure proper display */
    margin-right: 15px;
}

/* Additional selectors for any profile images that might be missed */
.user-info img:not(.upload-field img):not(.fullscreen img),
.user-info1 img:not(.upload-field img):not(.fullscreen img) {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin-right: 15px;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin: 0; /* Ensure no extra margin above/below the name */
    padding-bottom: 5px; /* Optional: slight padding at the bottom for spacing */
}

.upload-description {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: center;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Fullscreen mode */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen img, 
.fullscreen video {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen video {
    outline: none;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}


@media (max-width: 480px) {
    .upload-field {
        flex-direction: row; /* Keep side by side even on very small screens */
        gap: 8px; /* Smaller gap for very small screens */
    }
    
    .client-work, .worker-work {
        flex: 1; /* Each section takes equal space */
        min-width: 0; /* Allow flex items to shrink */
    }
    
    .client-work h4, .worker-work h4 {
        font-size: 12px; /* Even smaller font for very small screens */
        margin-bottom: 6px;
    }
    
    .upload-field img, 
    .upload-field video {
        border-radius: 4px; /* Smaller border radius for very small screens */
    }
    
    .profile-photo {
        width: 35px; /* Smaller profile photo for very small screens */
        height: 35px;
        border-radius: 50% !important; /* Maintain circular shape on small screens */
        margin-right: 8px; /* Reduced margin for very small screens */
    }
    
    /* Ensure all profile pictures maintain circular shape on small screens */
    .profile-photo img,
    img.profile-photo,
    .user-avatar,
    .avatar-img,
    .profile-image,
    .user-profile-img,
    .profile-pic,
    .user-pic {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important; /* Force circular shape for all profile images */
        object-fit: cover !important;
        display: block !important;
    }
    
    .user-name {
        font-size: 12px; /* Smaller font for very small screens */
    }
    
    h4 {
        font-size: 12px; /* Smaller font for compact screens */
    }
    .upload-description {
        font-size: 11px; /* Smaller description for very small screens */
        line-height: 1.3;
    }
    
    .uploads-header {
        font-size: 18px; /* Smaller header for very small screens */
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .upload-field {
        flex-direction: row; /* Still keep side by side even on extra small screens */
        gap: 6px; /* Very small gap for extra small screens */
    }
    
    .client-work h4, .worker-work h4 {
        font-size: 11px; /* Very small font for extra small screens */
        margin-bottom: 4px;
    }
    
    .upload-field img, 
    .upload-field video {
        border-radius: 3px; /* Very small border radius for extra small screens */
    }
    
    .profile-photo {
        width: 30px; /* Very small profile photo for extra small screens */
        height: 30px;
        margin-right: 6px;
    }
    
    .profile-photo img,
    img.profile-photo,
    .user-avatar,
    .avatar-img,
    .profile-image,
    .user-profile-img,
    .profile-pic,
    .user-pic {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .user-name {
        font-size: 11px;
    }
    
    h4 {
        font-size: 11px;
    }
    
    .upload-description {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .uploads-header {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
   
    .upload-field {
        flex-direction: row; /* Keep side by side layout on mobile */
        align-items: flex-start; /* Align items to top */
        gap: 10px; /* Add gap between client and worker sections */
    }
    
    .client-work, .worker-work {
        flex: 1; /* Each section takes equal space */
        margin-right: 0; /* Remove right margin */
        margin-bottom: 0; /* Remove bottom margin */
        min-width: 0; /* Allow flex items to shrink */
    }
    
    .client-work h4, .worker-work h4 {
        font-size: 14px; /* Smaller font for mobile headers */
        margin-bottom: 8px;
        text-align: center;
    }
    
    .upload-field img, 
    .upload-field video {
        max-width: 100%;
        height: auto;
        border-radius: 6px; /* Slightly smaller border radius for mobile */
        transition: transform 0.3s ease;
        cursor: pointer;
    }
    
    .profile-photo {
        width: 40px; /* Smaller profile photo for mobile */
        height: 40px;
        border-radius: 50% !important; /* Maintain circular shape on mobile */
        margin-right: 10px; /* Reduced margin for mobile */
    }
    
    /* Ensure all profile pictures maintain circular shape on mobile */
    .profile-photo img,
    img.profile-photo,
    .user-avatar,
    .avatar-img,
    .profile-image,
    .user-profile-img,
    .profile-pic,
    .user-pic {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important; /* Force circular shape for all profile images */
        object-fit: cover !important;
        display: block !important;
    }

    .user-name {
        font-size: 14px; /* Smaller font for mobile */
    }

    h4, .user-name {
        text-align: center; /* Center text for smaller screens */
    }

    .uploads-header {
        font-size: 20px; /* Smaller header for mobile */
    }
    
    .upload-description {
        font-size: 12px; /* Smaller description text for mobile */
        line-height: 1.4;
    }
}


