.og-grid {
    list-style: none;
    padding: 20px 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    position: relative;
}

.og-grid > li ul,
.og-grid > li ul li  {list-style: disc;}

.og-grid > li {
    float: none !important;
    border-bottom: none !important;
    display: inline-block;
    margin: 10px 5px 0 5px !important;
    vertical-align: top;
    height: auto; /*330px;*/
    width: 400px !important; /*250px;*/
    width: 32% !important;
}

.og-grid > li a,
.og-grid > li a img {
    border: none;
    outline: none;
    display: block;
    position: relative;
    width: 100%;
}

.og-grid > li a img {
    margin: 10px 0;
    min-width: 300px;
    max-width: 400px;
}

.og-grid > li a .overlay-content {
    opacity: 0;
    transition: all 0.4s ease-in-out 0s;
}

.overlay-content {
    background-color: rgba(255, 255, 255, 0.9);
    height: 90%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
}

.og-grid > li a h4 {
    background: #26BA8B none repeat scroll 0 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 20px;
    padding: 10px 0;
}

.og-grid > li a:hover .overlay-content {
    opacity: 1;
}

.og-grid > li.og-expanded a::after {
    top: auto;
    bottom: -15px; /* none */
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-bottom-color: #26BA8B;
    border-width: 15px;
    left: 50%;
    margin: 8px 0 0 -30px; /* 8px 0 0 -15px */
    z-index: 1;
}

.og-expander {
    position: absolute;
    background: #ddd;
    top: auto;
    left: 0;
    width: 100%;
    margin-top: 10px;
    text-align: left;
    height: 0;
    overflow: hidden;
    /*z-index: 2;*/
    z-index: 1;
}

.og-expander-inner {
    padding: 50px 30px;
    height: 100%;
}

.og-close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.og-close::before,
.og-close::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    height: 1px;
    background: #888;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

.og-close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.og-close:hover::before,
.og-close:hover::after {
    background: #333;
}

.og-fullimg,
.og-details {
    width: 100%;
    float: none;
    height: 100%;
    /*overflow: hidden;*/
    position: relative;
}

.og-details {
    padding: 0 40px 0 20px;
    overflow: auto;
}

.og-fullimg {
    text-align: center;
}

.og-fullimg img {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
}

.og-details h3 {
    font-weight: 500;
    font-size: 26px;
    padding: 0;
    margin-bottom: 0;
}
.og-details h4 {
    font-weight: 400;
    font-size: 20px;
    padding: 0;
    margin-bottom: 10px;
    text-align: left;
    line-height: 30px;
}

.og-details p {
    font-weight: 400;
    /*font-size: 16px;*/
    line-height: 22px;
    color: rgba(0,0,0,0.7);
    margin: 0 0 20px;
}

.og-details a {
}

.og-details a::before {
    content: '\2192';
    display: inline-block;
    margin-right: 10px;
}

.og-details a:hover {
    border-color: #999;
    color: #999;
}

.og-loading {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    -webkit-animation: loader 0.5s infinite ease-in-out both;
    -moz-animation: loader 0.5s infinite ease-in-out both;
    animation: loader 0.5s infinite ease-in-out both;
}

@-webkit-keyframes loader {
    0% { background: #ddd; }
    33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
    66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@-moz-keyframes loader {
    0% { background: #ddd; }
    33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
    66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@keyframes loader {
    0% { background: #ddd; }
    33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
    66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@media screen and (max-width: 1280px){

    .overlay-content {height: 86%;}

}


@media screen and (max-width: 830px) {

    .og-expander h3 { font-size: 32px; }
    .og-expander p { font-size: 13px; }
    .og-expander a { font-size: 12px; }

}

@media screen and (max-width: 650px) {

    .og-fullimg { display: none; }
    .og-details { float: none; width: 100%; }

}

@media screen and (min-width: 1024px) and (max-width: 1280px){

    .og-grid > li {width: 300px !important;}


}

@media screen and (min-width: 768px) and (max-width: 1023px) {

.og-grid > li {width: 48% !important;}

}

@media screen and (min-width: 481px) and (max-width: 767px){

.og-grid > li {width: 50% !important;}


}

@media screen and (max-width: 480px){

.og-grid > li {width: 100% !important;
               margin: 0 !important;}


}


.destroy-space h4 {
    margin-bottom: 0;
}
.destroy-space p h4 {
    margin-top: -20px;
    margin-bottom: 20px;
}
ul#og-grid li:nth-child(3) h4 {
    margin-bottom: 0;
}
ul#og-grid li:nth-child(3) p h4 {
    margin-top: -20px;
    margin-bottom: 20px;
}
