body{
  overflow: hidden;
  min-height: 1800px;
}

#freewall {
  width: 100%;
  margin: auto;
}
.item {
  width: 125px;
  height: 125px;
  position:relative;

  background-size:cover;
  background-color:white;
  background-repeat: no-repeat;
  background-position: center center;
}

@media screen and (min-width: 380px) {
  .item {
    width: 175px;
    height: 175px;
  }
}

@media screen and (min-width: 768px) {
  .item {
    width: 250px;
    height: 250px;
  }
}

.item button{
  transition: opacity 0.5s ease;
  opacity:0;
  display:block;
  position: absolute;
  width:100%;
  height:100%;
  border:0;
  background:none;
  font-size:36px;
}

.item button:focus{
  outline: none;
}

.item button:before{
  content:'';
  display:block;
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  bottom:10px;
  background:rgba(255,255,255,0.15);
  border:2px solid white;
  border-radius:2px;
}

.item:hover button{
  opacity:1;
}

.item button > span{
  position: relative;
  display:inline-block;
  background:white;
  width:100%;
  height:auto;
  max-width:56%;
  max-height:56%;
  border-radius: 100%;
  vertical-align: middle;
}

.item button > span:after {
  padding-top: 100%;
  display: block;
  content: '';
}

.item button > span > .circle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
padding: 10px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-transform: uppercase;
  font-family: 'antique-olive-black';
  color: #542d29;
  font-size: 28px;
}

.item button > span > .circle .more{
  font-family: 'antique-angular';
}

.item button .hidden{
  display:none;
}

#wallContainer{
  position:relative;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  /*overflow: hidden;*/
  /*min-height: 510px;*/
}

.modalContent{
  min-height: 470px;
  position: relative;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);

  background: white;
}

#wallContainer.popin-over:after{
  content: '';
  background-color: rgba(255,255,255,0.9);
  position: absolute;
  bottom: 0;
  display: block;
  left: 0;
  right: 0;
  top: 0;
}

.wrapper-sticky{
  display:none;
}

#myModal{
  display:none;
  position: absolute;
  z-index: 1;
  top:0;
  left: 0;
  right: 0;

  font-size:0;
}

#myModal .leftSide,
#myModal .rightSide{
  width:50%;
  display:inline-block;
  font-size:12px;
  vertical-align: top;
}

#myModal .rightSide{
  margin-left:50%;
  padding:3%;
}

#myModal .rightSide #closeBtn {
  position: absolute;
  right: 2%;
  top: 3%;
  width: 32px;
  height: 32px;
  opacity: 1;
  background: none;
  border: 0;
  outline: none;

}



#myModal .rightSide #closeBtn:hover {
  opacity: 0.3;
}
#myModal .rightSide #closeBtn:before,
#myModal .rightSide #closeBtn:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 33px;
  width: 3px;
  background-color: #542d29;
  top: 0;
}
#myModal .rightSide #closeBtn:before {
  transform: rotate(45deg);
}
#myModal .rightSide #closeBtn:after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 767px) {
  #myModal .rightSide #closeBtn {
    top: -38px;
    right: 0;
    background: #542d29;
    color: #fff;
    border-radius:50px;
  }
  #myModal .rightSide #closeBtn:before,
  #myModal .rightSide #closeBtn:after {
    height: 20px;
    width: 2px;
    background-color: #fff;
    top: 6px;
  }

}


#myModal .leftSide{
  position: absolute;
  height:100%;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  background-color:lightgrey;
}

#myModal .rightSide .name,
#myModal .rightSide .quality,
#myModal .rightSide .date{
  font-family: 'antique-olive-black';
  line-height:1.1em;
  color: #542d29;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom:0.2em;
}

#myModal .rightSide .name{
  margin-top:-0.2em;
}

#myModal .rightSide .date{
  color: #fdb33c;
  margin-bottom:1em;
}

#myModal .rightSide .description{
  font-size:24px;
  font-family: 'antique-regular';
  color:#666666;
      padding-bottom: 50px;
}

#myModal .table{
  
  position: relative;
  display: block;
  background: #fdb33c;
  width: 20%;
  height: auto;
  border-radius: 100%;
  vertical-align: middle;
  margin: 0 auto;
  /*bottom: 0;*/
  left: 0;
  right: 0;
  /*transform: translateY(50%);*/
      max-width: 180px;
  transform: translateY(-50%)
}

#myModal .table:after {
  padding-top: 100%;
  display: block;
  content: '';
}

#myModal .table > .circle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-transform: uppercase;

  font-family: 'antique-olive-black';
  color: #542d29;
  text-align: center;

}

/* Fix pour les cases en mode paysage */
.item[data-height='125'][data-width='250'] button > span,
.item[data-height='175'][data-width='350'] button > span,
.item[data-height='250'][data-width='500'] button > span{
  max-width:28%;
}

.item{
  background-color:#f7f7f7;
}
/* FILTRES */

#filters{
  margin-left:-30px;
  margin-bottom:50px;
}

@media screen and (max-width: 992px) {
  #filters{
    margin-bottom:25px;
  }
}

@media screen and (max-width: 767px) {
  #filters{
    display:none;
  }
}

#filters li{
  display:inline-block;
  padding-left:30px;
}

#filters li button{
  background:none;
  border:0;
  font-family: 'antique-olive-black';
  color: #b5b5b5;
  font-size: 22px;
  text-transform: uppercase;
}

@media screen and (max-width: 992px) {
  #filters li button{
    font-size: 18px;
  }
}

#filters li button:focus,
#filters li.active button,
#filters li button:hover{
  color: #542d29;
  outline: none;
}