.projects__block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}

.small-span {
    color: gray;
    margin-top: -20px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.project-img {
    max-width: 500px;
    width: 100%;
    max-height: 340px;
}

.project-description p {
    font-weight: bold;
    margin-bottom: 10px;
}




.gallery-container {
    position: relative;
    width: 500px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Основная анимация слайдов */
.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    min-height: 340px;
    height: 100%;
}

.slide {
    min-width: 100%;
    object-fit: cover;
    max-height: 340px;
    transition: opacity 0.5s ease;
}

/* Кнопки управления */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 35px;
    height: 35px;
    margin-top: -17px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    z-index: 5;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Кнопка увеличения */
.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.3s;
}

.fullscreen-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* Точки */
.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 5;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* ===== Модальное окно (увеличенное изображение) ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
    background: none;
    z-index: 1000;
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 20px;
    right: 3%;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .fullscreen-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}






@media screen and (max-width: 1100px) {
    .projects {
        width: 90%;
    }
}

@media screen and (max-width: 900px) {
    .projects {
        width: 100%;
    }
}