/* Основний контейнер */
/* Модальне вікно */
.works-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.works-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.works-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.works-modal-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    z-index: 1001;
}

.works-modal-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    outline: none;
    margin: 0 20px;
}

.works-container {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    position: relative;
}

.works-slider {
    display: flex;
    gap: 10px;
    /* overflow: hidden; */
    width: 100%;
    transition: transform 0.5s ease-in-out; /* Додаємо плавну анімацію при зміні позиції */
}

/* Картки робіт */
.work-item {
    position: relative;
    flex: 0 0 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f7f7f7;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-item img:hover {
    transform: scale(1.05);
}

.work-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    font-size: 14px;
}

