﻿* { box-sizing:border-box;}

#box{
  width: 100%;
  margin: 50px auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow:wrap;
  justify-content: space-between;
}

#box figure {
    width: 31%;
    margin-bottom: 6rem;
    -webkit-box-shadow:0 0 10px #666;
    -moz-box-shadow:0 0 10px #666;
    box-shadow:0 0 10px #666;
    height: 290px;
    overflow: hidden;
    background-color:var(--second-color);
}

.contentBox {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index:1;
    background: rgba(0,0,0,.5);

	height:100%;
}

.content_box{
    z-index: 998;
    background-color: #ffffff;
    width: 70%;
    height: auto;
    position: absolute;
    left: 0;
    bottom:auto;
    right:0;
    margin:0 auto;
    font-family: 'Roboto';
    box-shadow: 0 0 10px rgb(0,0,0);
    padding:30px;
    border-radius:8px;
	display:none;
  }

.content_box img{
    width:50%;
    float:left;
    margin-right:15px;
  }
  .prev,.next {
    cursor: pointer;
    padding: 10px 20px;
    color: var(--second-color);
    border-radius: 5px;
    border: 1px solid var(--second-color);
    margin: 10px 0 0 0;
    display: block;
    float: left;
    text-align: center;
  }

.next {
    float:right;
}

.prev:hover, .next:hover {
  background:var(--second-color);
  color: #fff;
}

#btn {
    width:100%;
    float: left;
    margin-bottom: 15px;
}
.btn_close {
  color: var(--second-color);
  position: absolute;
  top: -3px;
  right: 0;
}

.btn_close:hover{
  color:var(--main-color);
}

@media (max-width: 768px) {
    #box figure {
        width: 100%;
    }
    .contentBox img{
        width:100%;
        margin-right:0;
    }
}


/*
@media (max-width: 1600px) {
    #box figure {
        width:29%;
       height:auto;
       max-height:240px;
    }
}

@media (max-width: 1370px) {
    #box figure {
       width:29%;
       max-height:210px;
    }
}

@media (max-width: 1220px) {
    #box figure {
       width:31%;
       max-height:190px;
    }
}

@media (max-width: 1024px) {
    #box figure {
        width: 48%;
        max-height: 270px;
    }
}

@media (max-width: 800px) {
    #box figure {
        width:100%;
        height:auto;
        max-height:100%;
    }
    .contentBox {
        width:100%;
    }

}
*/
