/*  ----------------------------------------------------------------------------
    wordpress default galleries
*/
.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  margin-bottom: 20px;
  width: 100%;

  .gallery-caption {
    text-align: center;
    margin: 0;
  }

  .gallery-icon img {
    display: inline-block;
  }
}

// remove caption
.gallery-columns-2,
.gallery-columns-3,
.gallery-columns-4,
.gallery-columns-5,
.gallery-columns-6,
.gallery-columns-7,
.gallery-columns-8,
.gallery-columns-9 {
  margin-bottom: 20px;

}

.gallery-columns-2 {
  .gallery-item {
    max-width: 50%;
  }
}

.gallery-columns-3 {
  .gallery-item {
    max-width: 33.33%;
  }
}

.gallery-columns-4 {
  .gallery-item {
    max-width: 25%;
  }
}

.gallery-columns-5 {
  .gallery-item {
    max-width: 20%;
  }
}

.gallery-columns-6 {
  .gallery-item {
    max-width: 16.66%;
  }
}

.gallery-columns-7 {
  .gallery-item {
    max-width: 14.28%;
  }
}

.gallery-columns-8 {
  .gallery-item {
    max-width: 12.5%;
  }
}

.gallery-columns-9 {
  .gallery-item {
    max-width: 11.11%;
  }
}


/*  ----------------------------------------------------------------------------
    custom gallery-columns-1
*/
.gallery-columns-1 {
  .gallery-item {
    margin-bottom: 30px;
    position: relative;

    img {
      display: block;
    }
  }

  .gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(14, 14, 14, 1);
    color: white;
    font-size:12px;
    font-style: normal;
    padding: 8px 14px 10px 14px;
  }
}