div.news-detail
{
	word-wrap: break-word;
}
div.news-detail img.detail_picture
{
	float:left;
	margin:0 8px 6px 1px;
}
.news-date-time
{
	color:#486DAA;
}



/* УДАЛИТЕ/ИЗМЕНИТЕ СЕЛЕКТОР И ЕГО СТИЛИЛИ ЕСЛИ ОНИ БЫЛИ ЗАДАНЫ РАНЕЕ */

.container{
    width: 100%;
    margin: 0 auto;
}

.gallery2{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px 0 20px 0;
}

.gallery_items{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.gallery-top {
    gap: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.gallery-top img{
    max-width: 390px;
    max-height: 470px;
    width: calc(33% - 10px);
}

.gallery2 img {
    height: auto; 
    cursor: pointer;
}

.gallery-bottom {
    width: 100%;
    display: flex; 
    flex-wrap: wrap;
    gap: 19px; 
    max-height: 100%;
    box-sizing: border-box; 
}

.gallery-bottom img {
    box-sizing: border-box; 
    max-height: 470px;
}

.img-50 {
    width: calc(50% - 10px) ; 
    max-width: 50% ; 
}

.img-33 {
    width: calc(33% - 9px) ;
    max-width: 33% ;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #fff;
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content img {
    max-width: 90%;
    max-height: 90%;
    transition: opacity 0.5s ease;
    padding: 0 50px;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0; 
}
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: blacl;
    font-size: 40px;
    cursor: pointer;
}

.arrow.left {
    display: flex;
    align-items: center;
    height: 100vh;
    width: 200px;
    left: 30px;
    background-color: transparent;
    outline: none; 
}

.arrow.right {
    display: flex;
    align-items: center;
    height: 100vh;
    width: 200px;
    justify-content: end;
    right: 30px; 
    background-color: transparent;
    outline: none; 
}

.arrow.left,
.arrow.right {
    -webkit-tap-highlight-color: transparent; 
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1000;
}



@media (max-width: 1270px){
    .close{
        top: 100px;
    }
}

@media (max-width: 1153px) {
    .img-33 {
        width: calc(33% - 9.5px) ;
        max-width: 33% ; 
    }
}


@media (max-width: 1005px) {
    .img-33 {
        width: calc(33% - 10px) ; 
        max-width: 33% ; 
    }
}

@media (max-width: 855px){
    .img-33 {
        width: calc(33% - 10.5px) ;
        max-width: 33% ;
    }
}


@media (max-width: 705px){
    .img-33 {
        width: calc(33% - 11px);
        max-width: 33%;
    }
}

@media (max-width: 700px){
    .gallery-top{
        gap: 10px;
    }

    .gallery-bottom{
        gap: 10px;
    }

    .img-50 {
        width: calc(50% - 5px) ;
    }

    .img-33 {
        width: calc(33% - 5px);
        max-width: 33%;
    }

}

@media (max-width: 553px){
    .img-33 {
        width: calc(33% - 5.5px);
        max-width: 33%;
    }
}

@media (max-width: 405px){
    .img-33 {
        width: calc(33% - 6px);
        max-width: 33%;
    }
}