.fotos-block{
border-top: 1px solid #eee;
padding-top: 40px;
}
.fotogallery{
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
margin-left: -20px;
margin-right: -20px;
}
.fotogallery_item{
position: relative;
flex-grow: 0;
flex-basis: calc(25% - 40px);
margin: 20px;
overflow: hidden;
border-radius: 4px;
transition: 0.3s;
}
.fotogallery_item:hover{
cursor: pointer;
box-shadow: 0 20px 35px rgba(0,0,0,0.5);
}
.fotogallery_body{
height: 360px;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
.fotogallery_img{
max-width: 100%;
height: auto;
transition: 0.3s;
}
.fotogallery_caption{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.58);
width: 100%;
height: 100%;
color: #fff;
display: flex;
align-items: flex-end;
justify-content: flex-start;
padding: 30px;
opacity: 0;
transition: 0.3s;
}
.fotogallery_item:hover>.fotogallery_caption{
opacity: 1;
} 
.fotogallery_item:hover .fotogallery_img{ }
.slider_control{
position: fixed;
top: 50px;
left: 50px;
z-index: 20;
}
.slider_next, .slider_prev{
position: fixed;
z-index: 200;
width: 50px;
height: 50px;
top: calc(50vh - 25px);
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
background: #FF372E;
border-radius: 50px;
}
.slider_next {
right: 100px;
}
.slider_prev {
left: 100px;
}
.slider{
position: fixed;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: rgba(0,0,0,.9);
display: flex;
justify-content: flex-start;
align-items: center;
transform: scale(0);
transition: ease all 0.25s;
}
.slider.active{
transform: scale(1);
}
.slider_body{
position: relative;
left: 0;
display: flex;
width: 100vw;
transition: all ease 0s;
}
.slider_item{
min-width: 100vw;
display: flex;
align-items: center;
justify-content: center;
}
.fotogallery-slider_container{
position: relative;
display: flex;
min-height: 60vh;
max-height: 80vh;
overflow: hidden;
background: #fff;
border-radius: 10px;
box-shadow: 0 20px 35px rgba(0,0,0,0.8);
}
.fotogallery-slider_close{
position: absolute;
top: 6px;
right: 20px;
font-size: 25px;
color: #FF372E;
cursor: pointer;
}
.fotogallery-slider_photo{
display: flex; justify-content: center;
background: #000;
}
.fotogallery-slider_img{
max-width: 550px;
height: 100%;
}
.fotogallery-slider_body{
display: flex;
flex-direction: column;
justify-content: space-between;
flex-basis: 334px;
max-width: 334px;
flex-grow: 0;
}
.fotogallery-slider_description{
padding: 35px;
overflow-y: auto;
margin-bottom: 30px;
}
.fotogallery-slider_description::-webkit-scrollbar {
width: 12px; }
.fotogallery-slider_description::-webkit-scrollbar-track {
background: #fff; }
.fotogallery-slider_description::-webkit-scrollbar-thumb {
background-color: #FF372E; border-radius: 20px; border: 3px solid #fff; }
.fotogallery-slider_title{
font-size: 20px;
line-height: 30px;
font-weight: 500;
margin-bottom: 20px;
}
.fotogallery-slider_intro{
font-size: 17px;
line-height: 30px;
}
.fotogallery-slider_footer{
height: 62px;
border-top: 1px solid #ccc;
padding: 5px 35px;
color: #ccc;
display: flex;
flex-direction: column;
justify-content: center;
font-size: 15px;
}
@media screen and (max-width: 1440px) {
.fotogallery_item {
flex-basis: calc(25% - 20px);
margin: 10px;
}
.fotogallery_body{
height: 265px;
}
}
@media screen and (max-width: 1200px) {
.fotogallery_body{
height: 220px;
}
.slider_next {
right: 3vw;
}
.slider_prev {
left: 3vw;
}
}
@media screen and (max-width: 990px) {
.fotogallery_body{
height: 160px;
}
.fotogallery-slider_img {
max-width: 450px;
}
.fotogallery-slider_description {
padding: 20px;
}
.fotogallery-slider_footer {
padding: 5px 20px;
font-size: 13px;
}
.fotogallery-slider_body {
flex-basis: 274px;
max-width: 274px;
}
.fotogallery-slider_title {
font-size: 18px;
}
.fotogallery-slider_intro {
font-size: 15px;
line-height: 27px;
}
}
@media screen and (max-width: 770px) {
.slider {
z-index: 200;
}
.fotogallery_item {
flex-basis: calc(50% - 20px);
}
.fotogallery-slider_container{
flex-direction: column;
max-width: 80vw;
max-height: 90vw;
min-height: 80vh;
}
.fotogallery-slider_img{
max-width: 100%;
}
.fotogallery-slider_body {
flex-basis: auto;
max-width: 100%;
}
.fotogallery-slider_body{
background: #fff;
overflow: scroll;
min-height: 270px;
}
.fotogallery-slider_title {
margin-bottom: 5px;
}
}
@media screen and (max-width: 360px) {
.fotogallery_item {
flex-basis: calc(100% - 0px);
}
}