/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .image-frame {
    display:inline-block; 
    padding: 10px;
}

#pshelter-container {
    text-align: center;
    display: none;
}

.pshelter {
    min-height: 230px;
    background-size: cover;
    background-position: center center;
    position: relative;
} 


.pshelter p {
    color: white;
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 100%;
    background: #000000b0;
    margin: 0;
    padding: 10px 2px;
}

.parent {
    display: inline;
}

.parent .pshelter {
    -webkit-transition: 0.5s all;
    -o-transition: 0.5s all;
    transition: 0.5s all;
}

.parent:hover .pshelter,
.parent:focus .pshelter {
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
  -webkit-box-shadow: 5px 6px 10px 0px #00000038;
          box-shadow: 5px 6px 10px 0px #00000038;
}

#gallery-path {
    list-style: none;
    text-align: center;
    font-size: 20px;
}

#gallery-path li {
    display: inline;
}

#gallery-loading {
    height: 50vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.gallery-slide {
    padding-bottom: 55%;
}

@media (max-width: 767px) {
    .image-frame {
        width: 100% !important;
    }

    .gallery-slide {
        padding-bottom: 100%;
    }
}

.gallery-page {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;

}

a.grouped_elements {
    height: auto;
    margin: 5px;
    width: 24%;
    background: white;
    border: 1px solid #e0e0e0;
    max-height: 153px;
    overflow: hidden;
}

.grouped_elements img {
    position: relative;
    max-width: 310px;
    max-height: 200px;
    width: auto;
    height: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
}

img[data-src],
img[data-srcset] {
  display: block;
  min-height: 1px;
}
@media (max-width: 1110px) {
    a.grouped_elements {
        width: 30%;
        max-height: 194px;
    }
}

@media (max-width: 767px) {
    .gallery-page {
        display: block;
    }

    a.grouped_elements {
        width: 100%;
        margin: auto;
        max-height: 200px;
        border: 0px;
    }

    .grouped_elements img {
        margin: 5px auto;
        width: 100%;
        transform: none;
        top: 0;
        left: 0;
        max-width: initial;
        max-height: initial;
        position: initial;
    }
}