/* my-works.css */

#myWorks .gallery {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Creates a 7-column grid */
    gap: 10px;
}

.gallery-item {
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    text-align: center;
}

.gallery-item img {
    width: 100%; /* Ensures image takes full width of the container */
    height: 100%; /* Ensures image takes full height of the container */
    object-fit: cover; /* Scales image to cover the container while preserving aspect ratio */
}

/* Responsive Adjustments for My Works */
@media (max-width: 768px) {
    #myWorks .gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    }
}

@media (max-width: 480px) {
    #myWorks .gallery-item {
        width: 100%;
    }
}
