/*
* Photo Gallery — Practice
* CSS Styles
*
* Start typing your code under these comments
*/
.container_gal {
    width: 100%; /* ширина блока-контейнера */
    max-width: 960px; /* максимальная ширина контейнера */
    margin: 0 auto; /* этот стиль центрирует контейнер */
}
.photo {
    float: left; /* говорим элементам выстраиваться один за другим */
    width: 33.333333%; /* устанавливаем ширину элемента */
    padding: 1px; /* добавляем отступы с каждой стороны */
    box-sizing: border-box; /* меняем способ вычисления ширины */
}
.politika {
padding-top:20px
;
}
.photo img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 10px solid #eee;
    box-sizing: border-box;
}
.photo a:hover {
    opacity: 0.5;
}
.photo a {
    display: block;
    position: relative;
}
photo a:after {
    content: '';
    background: transparent url(../img/icons/eye-icon.png) no-repeat center;
    width: 52px;
    height: 35px;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
}
.photo:hover > a:after {
    visibility: visible;
}
.photo figcaption {
    font-family: 'Open Sans', sans-serif;
    color: #999999;
    text-align: center;
    margin-top: 20px;
}

body {
    font-family: 'Open Sans', sans-serif;
}
#gallery {
    margin-bottom: 50px;
}
#gallery:after { 
   content: '';
   display: block; 
   height: 0; 
   clear: both;
}
.slideshow {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
	background: #000;
	margin: 20px 0;
}
.slideshow-item {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    animation: slideanim 20s infinite;
}
.slideshow-item:nth-child(1),
.slideshow-item:nth-child(1) img {
    animation-delay: 0;
}
.slideshow-item:nth-child(2),
.slideshow-item:nth-child(2) img {
    animation-delay: 5s;
}
.slideshow-item:nth-child(3),
.slideshow-item:nth-child(3) img {
    animation-delay: 10s;
}
.slideshow-item:nth-child(4),
.slideshow-item:nth-child(4) img {
    animation-delay: 15s;
}
.slideshow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoom 20s infinite;
}
.slideshow-item-text {
    max-width: 50%;
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 20px 30px;
	font-family: Verdana, sans-serif;   	
}
.slideshow-item-text h5 {
    font-size: 22px;
	margin: 0 0 10px 0;
	color: #BFE2FF;
}
.slideshow-item-text p {
    font-size: 15px;
	margin-bottom: 10px;
}
@keyframes slideanim {
    12.5%{
        opacity: 1;
	}
    25%{
        opacity: 1;
	}	
    37.5%{
        opacity: 0;
	}
}
@keyframes zoom {
    50%{
        transform: scale(1.3);
	}	
}
@media screen and (max-width: 1100px){
    .slideshow-item-text{
        max-width: 75%;
	}
}
@media screen and (max-width: 456px){
    .slideshow-item-text {
	    bottom: 0;
		left: 0;
        max-width: 100%;
	}
    .slideshow-item-text h5 {
		font-size: 18px;
	}
    .slideshow-item-text p {
		font-size: 13px;
	}