.photo-works-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.nashi-rabotyi .slider-video-wrap h2{
    text-align: center;
    position: relative;
}
.nashi-rabotyi .slider-video-wrap h2::after{
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ee3f46;
    margin: 12px auto 0;
    border-radius: 2px;
}
.photo-works-title {
    display: inline-block;
    font-weight: 700;
    position: relative;
    margin-bottom: 40px;
}

.photo-works-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ee3f46;
    margin: 12px auto 0;
    border-radius: 2px;
}

.photo-works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.photo-item {
    flex: 0 1 350px;
    display: flex;
    justify-content: center;
}

.photo-item img {
    width: 100%;
    height: auto;
    max-width: 380px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: cover;
}

.photo-item img:hover {
    transform: scale(1.05);
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.photo-modal-content {
    width: 80vw;
    height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.photo-close {
    position: absolute;
    top: 20px; right: 40px;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.photo-close:hover {
    color: #ee3f46;
}


@media (max-width: 768px) {
    .photo-item {
        flex: 0 1 90%;
    }
}
