.basepack-image-gallery--grid .basepack-image-gallery--items {
  display: flex; 
  flex-wrap: wrap;
  margin: 0 -15px;
}

.basepack-image-gallery--grid .basepack-image-gallery--items .basepack-image-gallery--item {
  padding: 0 10px 20px;
  width: 25%;
  @media (max-width: 767px) {
    width: 50%;
  }
}

.basepack-image-gallery--grid.basepack-image-gallery--modal .basepack-image-gallery--items .basepack-image-gallery--item {
  @media (max-width: 767px) {
    width: 50%;
  }
  @media (max-width: 576px) {
    width: 100%;
  }
}

.basepack-image-gallery--title {
  margin: 0;
  padding: 0 0 15px;
}

.basepack-image-gallery--subtitle {
  margin: 0;
  padding: 0 0 5px;
}

.basepack-image-gallery--description p {
  margin: 0 0 16px;
}

.basepack-image-gallery--item--title {
  margin: 0;
  padding: 0 0 15px;
}

.basepack-image-gallery .castorcito--field-image {
  margin: 0;
}

.basepack-image-gallery--thumbnails .basepack-image-gallery--item {
  padding: 0 10px;
  @media (max-width: 576px) {
    padding: 0 5px;
  }
}
.basepack-image-gallery--with-thumbnail .basepack-image-gallery--item {
  position: relative;
}

.basepack-image-gallery--with-thumbnail .basepack-image-gallery--item .basepack-image-gallery--item--title-container {
  bottom: 0;
  left: 0;
  padding: 15px;
  position: absolute;
}

.basepack-image-gallery--with-thumbnail .basepack-image-gallery--item .basepack-image-gallery--item--title {
  color: #FFF;
  text-shadow: 1px 1px 1px #000;
  padding: 0;
}

.basepack-image-gallery--thumbnails {
  margin: 0 -10px;
  @media (max-width: 576px) {
    margin: 0 -5px;
  }
}

.basepack-image-gallery-wrapper {
  margin-bottom: 15px;
}
