.phly-blog-grid-wrap .phly-gallery-grid-item { 
  box-shadow: 1px 1px 10px rgba(0,0,0,0.1);
  cursor: zoom-in;
  min-height: 100%;
  display: flex;
flex-direction: column;
justify-content: space-between;
}

.phly-blog-grid-wrap .phly-gallery-grid-item img { 
  width: 100%; 
  height: auto; 
  margin-bottom: 5px;
}

.phly-blog-grid-wrap .gallery-item-txt {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.phly-blog-grid-wrap .phly-gallery-grid-item img.phly-image-vertical {
  width: auto;
  max-height: 200px;
  margin: 0 auto;
  display: block;
}

.phly-tag {
  font-size: 10px;
  padding: 5px 7px 4px;
  display: inline-block;
  margin: 2px 5px;
  border-radius: 7px;
  line-height: 10px;
  color: #fff;
  text-shadow: 0px 1px 2px #111;
}

.phly-blog-tag {
  background: #518eae;
  font-family: 'Montserrat',serif;
  font-weight: normal;
  margin: 0 0.3rem;
}

.phly-species-tag {
  background: #9ec527;
  font-family: 'Montserrat',serif;
  font-weight: normal;
  margin: 0 0.3rem;
}

.phly-gallery-no-images {
  font-size: 20px;
  text-align: center;
}

.phly-gallery-popup .phly-gallery-preview, .phly-tag-select-multiple, .phly-species-select-multiple {
  width: 100% !important;
}

.phly-gallery-popup .select2-container .select2-search--inline .select2-search__field {
  font-family: 'Montserrat',serif;
  padding: 0 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1;
}

.phly-gallery-loader {
  position: absolute;
  right: 0;
  top: 0;
}

.select2-container {
  font-family: 'Montserrat',serif;
}

.select2-container.select2-container--default.select2-container--open {
  z-index: 3011;
}

.phly-gallery-popup .select2-selection__choice {
  font-family: 'Montserrat',serif;
  font-size: 0.8rem;
}

.phly-gallery-popup .select2-selection__choice__remove {
  font-size: 1.4rem;
  line-height: 1;
  position: relative;
  top: 3px;
}

.phly-gallery-popup .mfp-close {
  font-size: 2rem;
}


.phly-gallery-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  max-width: 500px;
  margin: 20px auto;
}

.phly-gallery-popup .select2-search__field {
  min-width: 140px !important;
}

.phly-gallery-popup.mode-gallery .phly-popup-content-gallery { display: block; }
.phly-gallery-popup.mode-gallery .phly-popup-content-edit { display: none; }

.phly-gallery-popup.mode-edit .phly-popup-content-gallery { display: none; }
.phly-gallery-popup.mode-edit .phly-popup-content-edit { display: block; }



@media only screen and (max-width: 480px) {
  .phly-gallery-paging {
    display: block;
    text-align: center;
    margin: 10px 0;
  }

  .phly-blog-year {
    display: block;
    margin: 10px auto;
  }

  .phly-blog-summary {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
  }
  
}

.mfp-bg {
  z-index: 3001;
  opacity: 0.93;
}

.mfp-wrap {
  z-index: 3002;
}

.phly-page .mfp-close {
  font-size: 2.5rem;
}

.mfp-arrow:active {
  margin-top: 0 !important;
}

.mfp-title {
  font-family: 'Montserrat',serif;
  font-size: 1rem;
}

.mfp-arrow:focus:active:visited {
  outline: 0;
}