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

.og-grid li
{
    display: inline-block;
    margin: 0px 5% 0% 5%;
}

.og-grid li > a,
.og-grid li > a img 
{
    display: block;
    position: relative;
}

.og-grid li.og-expanded > a::after 
{
    border: solid transparent;
    border-bottom-color: #FEF3C2;
    border-width: 15px;
    content: " ";
    height: 0;
    left: 50%;
    margin: -20px 0 0 -15px;
    pointer-events: none;
    position: absolute;
    top: auto;
    width: 0;
}

.og-expander 
{
    background: #FEF3C2;
    height: 225px;
    left: 0;
    margin-top: 10px;
    overflow: hidden;
    position: absolute;
    text-align: left;
    top: auto;
    width: 100%;

}

.og-expander-inner 
{
    height: 100%;
    margin: 0 auto;
    width: 80%;
    min-height:255px;
}

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

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

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

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

.og-details 
{
    display: table; 
    height: 410px; 
    overflow: hidden;
}

.og-details 
{
    padding: 0 10% 0 10%;
}

.og-details p 
{
    color: #5a5a5a;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    min-height:180px;
    display: table-cell; 
    vertical-align: middle;
}

/* MOBILE - xs */
@media (min-width:0px) and (max-width:481px){
    .og-expander,
    .og-expander-inner,
    .og-details
    {
        min-height:350px;
    }

    .og-details {
        padding: 10%;
        height:700px;
    }

    .og-close {
        height: 25px;
        width: 25px;
        cursor: pointer;
    }

}

@media screen and (max-width: 830px) {
    
    .og-expander p { font-size: 13px; }
    .og-grid li 
    {
    display: inline-block;
    margin: 10px 5% 15% 5%;
    }

    .og-expander-inner
    {
        padding:0;
    }
}

@media screen and (max-width: 650px) {
    .og-details 
    { 
        float: none; 
        width: 100%; 
    }
}

/* DESKTOP - lg */
@media (min-width:1400px) and (max-width:4200px) {

    .og-expander-inner
    {
        width:50%;
    }
    .og-details 
    {
    padding: 0 15% 0 15%;
    }   


}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
    /* IE10-specific styles go here */  
    .og-details
    {

    }
}


