/*.portfolio-grid {
    width: 100%;
    margin: 0 auto;
    display: block;
    text-align: center;
    position: relative;
    padding-right: 3px;
    box-sizing: border-box;
}*/
.grid-line {
    display: grid;
    position: relative;
}
.ImgLines {
    position: relative;
    overflow: hidden;
    float: left;
    height: auto;
    box-sizing: border-box;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    cursor: pointer;
    flex-direction: column;
    width: 100%;
    height: auto;
}
.ImgLines a {
    transition: transform 0.3s ease;
    transform: scale(1);

}

.ImgLines:hover a {
    transform: scale(1.03);
}


.ImgLines:before, .grid-line:before, .ImgLines:after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 2;
}
.ImgLines:after {
    width: 3px;
    height: 100%;
}
.ImgLines img {
    width: 100%;
    height: auto;
}
/*.ImgLines>amp-img:before {
    cursor: pointer;
    background-color: rgba(0, 0, 0, .2);
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    -webkit-transform: scale(.8);
    -moz-transform: scale(.8);
    -ms-transform: scale(.8);
    -o-transform: scale(.8);
    transform: scale(.8);
    -webkit-transition: opacity 0.3s, transform 0.3s;
    -moz-transition: opacity 0.3s, transform 0.3s;
    -ms-transition: opacity 0.3s, transform 0.3s;
    -o-transition: opacity 0.3s, transform 0.3s;
    transition: opacity 0.3s, transform 0.3s;
}
.ImgLines:hover>amp-img:before {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}*/
@media screen and (max-width:600px) {
    .ImgLines {
        width: 100%;
    }
    .bord:before {
        height: 2px;
    }
    .bord:after {
        width: 2px;
    }
}
@media screen and (max-width:450px) {
    .grid-line {
        grid-template-columns: 100%;
    }
}

:root {
    --banner-border: 20px;
}
.grid-banner {
    height: 400px;
}
.grid-banner a {
    display: flex;
    color: #fff;
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
}
.grid-banner a:hover {
    color: #000;
    text-decoration: none;
}

.banner-img {
    width: calc(100% - 3px);
    height: 400px;
    background: url(https://cdn.dimasfrolov.com/img/photo.artnude.jpg) no-repeat center center;
    background-size: cover;
    display: block;
    /*position: absolute;*/
    margin: 0 3px;
}

.banner-img:before {
    content: ' ';
    display: block;
    width: calc(100% - 2*var(--banner-border));
    height: calc(100% - 2*var(--banner-border));
    margin: var(--banner-border);
    box-sizing: border-box;
    z-index: 1;
    background: rgba(0, 0, 0, .4);


    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

.grid-banner a .banner-img:hover:before,
.grid-banner a span:hover ~ .banner-img:before
{
    width: 100%;
    height: 100%;
    margin: 0;
    background: rgba(0, 0, 0, .6);
}

.grid-banner .banner1,
.grid-banner .banner2,
.grid-banner .banner3 {
    text-align: center;
    display: block;
    /*position: absolute;*/
    /*width: calc(100% - 2*var(--banner-border));*/
    padding: 0 calc(2*var(--banner-border));
    z-index: 2;
}
.grid-banner a {
    display: flex;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(12px, 8vw, 94px);
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 0 auto;

}
.grid-banner div {
    font-size: inherit;
    display: flex;
    flex-direction: column;
}
.grid-banner .banner1
{
    font-size: 1em;
    font-weight: bold;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
    /*top: 40%;*/
    /*height: 8vw;*/
    /*z-index: 2;*/
}
.grid-banner .banner2 {
    font-size: .4em;
    /*letter-spacing: 1vw;*/
    text-transform: uppercase;
    font-weight: 300;
}
.grid-banner .banner3 {
    font-size: .4em;
    line-height: 1.2;
    font-weight: 300;
}
