/* Works Gallery Styles */

.works-section {
    padding: 60px 0;
    background: var(--c-light, #f9f9f9);
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .works-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .works-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Works Item Card */
.works-item {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.works-item__inner {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--c-dark, #1a1a1a);
    transition: all 0.3s ease;
}

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

.works-item__img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.works-item:hover .works-item__img {
    transform: scale(1.05);
}

.works-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.works-item:hover .works-item__overlay {
    opacity: 1;
}

.works-item__name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    word-wrap: break-word;
}

.works-item__zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: bold;
}
