.list {
  display: flex;
  padding: 20px;
  overflow-x: scroll;
 position: relative;


}

.item {
  height: auto;
  max-width: 400px;
  flex-shrink: 0;
  list-style-type: none;
}



.item:not(:last-child) {
  margin-right: 10px;
}

@media only screen and (max-width: 480px) { 
.item img { 
width: 100%; 
} 
}

*,
*::before,
*::after {
  margin: 0;
  box-sizing: border-box;
}


/* картинка на странице */
.minimized {
  
  cursor: pointer;
  
}
.minimized:hover {
  border: 1px solid yellow;
}
/* увеличенная картинка */
#magnify {
  display: none;
  /* position: absolute; upd: 24.10.2016 */
  position: fixed;
  max-width: 800px;
  height: auto;
  z-index: 9999;
}
#magnify img {
  width: 100%;
}
/* затемняющий фон */
#overlay {
  display: none;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}
/* кнопка закрытия */
#close-popup {
  width: 30px;
  height: 30px;
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
#close-popup i {
  width: 30px;
  height: 30px;
  background: url(https://codernote.ru/files/cross.png) no-repeat center center;
  background-size: 16px 16px;
  display: block;
}
@keyframes rota {
 25% { transform: rotate(360deg); }
}
#close-popup:hover {
  animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

.inst {
  max-width: 50%;
  margin: auto;

}
