/* Layout dạng grid cho các project */
.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; /* Điều chỉnh kích thước item */
    gap: 20px !important; /* Khoảng cách giữa các project */
}

/* Project Item */
.project-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background-color: #f4f4f4 !important;
    height: 300px !important; /* Điều chỉnh chiều cao cho mỗi project */
}

/* Ảnh Thumbnail */
.project-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Giúp ảnh căn chỉnh bao phủ toàn bộ project item */
    transition: transform 0.3s ease !important; /* Hiệu ứng khi hover */
}

/* Phóng to ảnh khi hover */
.project-item:hover .project-thumbnail img {
    transform: scale(1.1) !important; /* Phóng to ảnh */
}

/* Overlay hiển thị tên dự án */
.project-title-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: rgba(0, 0, 0, 0.5) !important; /* Màu nền sương */
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    color: #fff !important;
    text-align: center !important;
}

.project-item:hover .project-title-overlay {
    opacity: 1 !important; /* Hiển thị overlay */
}
