﻿
html{text-align:center;
background-color: #fff;

}


body {width:100%;
         font-family: 'Open Sans', sans-serif;
         max-width: 1024px;
        height:auto;
        background-color: #fff;
        margin: auto;
       margin-top: 2px;
       margin-bottom: 2px;
       border-radius: 20px;}

.kvadra{text-align:center;}


h1 {
    font-size: 36px;
    text-transform:  uppercase;
    color: #0000ff;
    text-align: center;
    margin: 30px 0;
}

div{  
    text-transform: none;
    color: #0000ff;
    text-align: center;
    margin: 5px 0;}





figure, video{
                box-shadow: 20px 20px 18px #a0a0a0;
                   /* border: 4px solid #E87E04; */
	margin: 0;
	padding: 0;	
	font-size: 100%;
                 background-color:#ddd;
	font: inherit;
	vertical-align: baseline;}


.container {width: 100%; 
                  max-width: 1024px; 
                  margin: 0 auto; }


.photo {
    float: left; /* говорим элементам выстраиваться один за другим */
    width: 100%; /* устанавливаем ширину элемента */
    padding: 10px; /* добавляем отступы с каждой стороны */
    box-sizing: border-box; /* меняем способ вычисления ширины */
}

.photo img {     /*при уменьшении экрана, картинки уменьшаются (полезно)*/
    display: block;
    max-width: 100%;
    height: auto;
   text-align:center;
/* --------------------------  создание рамки вокруг картинки----------------------------*/

 border: 6px solid #E87E04;  /*Создание рамки вокруг картинки*/
box-sizing: border-box;  /*меняет способ вычисления размеров миниатюры*/
}




.photo a:hover {             /* прозрачность при наведении курсора*/
    opacity: 0.5;
}

.photo a {                /* Текст (а) как блог*/
    display: block;
position: relative;    /* дописанное свойство к блоку a:after*/
}

.photo a:after {
    content: '';
    background: transparent url(../img/icons/eye-icon04.png) no-repeat center;
    width: 54px;
    height: 24px;
    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: #0000ff;
    text-align: center;
font-size:10px;
    margin-top: 20px;
}


#gallery {
    margin-bottom: 50px;                  /* отступ внизу, но он не возникнет*/
}

#gallery:after {                      /*Отключить игнорирование float-элементов родителем можно с помощью следующего стиля:*/
   content: '';
   display: block; 
   height: 0; 
   clear: both;
}

.levo{
margin-left: 20px;
}


a {
color:#660000; 
font-weight: bold; 
text-decoration: none;
 font-size:14px;
font-family: 'Times New Roman';
}

a:hover {color:#ff0000;
font-size:15px;
 opacity: 0.5;
 font-weight: bold;
 text-decoration:none; }



