/* -----------------------------------------------------------
    DEFAULT RULES (used also for smallest screens <480p)
----------------------------------------------------------- */

.row-container {
    font-size: 90%;
    text-align: left;
    margin-bottom: 1em;
    margin-left: 3%;
    margin-right: 3%;
    clear: both;
}

.group-title {
    margin-bottom: 0.5%;
}

.row {
    display: inline-block;
    height: 100%;
    width: 100%;
}

.item {
    position: relative;
    cursor: pointer;
    margin: 0.5%;
    display: block;
    float: left;
    color: #444444;
    font-size: 90%;
    height: 100%;
}

.item img {
    margin-bottom: 2%;
    width: auto;
    max-height: 9em;
}
.item:hover img {
    opacity: 0.9;
    -webkit-transition: opacity .4s ease-out;
       -moz-transition: opacity .4s ease-out;
        -ms-transition: opacity .4s ease-out;
         -o-transition: opacity .4s ease-out;
            transition: opacity .4s ease-out;
}

.title {
    width: inherit;
    word-wrap: break-word;
    /*border-bottom: 1px solid rgba(255,255,255,.0);
    border-top: 1px solid rgba(255,255,255,.0);*/
}
.item:hover .title {
    color: #749A9E;
    /*border-color: #aaaaaa;*/
    -webkit-transition: all .4s ease-out;
       -moz-transition: all .4s ease-out;
        -ms-transition: all .4s ease-out;
         -o-transition: all .4s ease-out;
            transition: all .4s ease-out;
}

/* ==========================================================================
   Media Queries for Responsive Design.
   These rules override the primary ('mobile first') styles.
   ========================================================================== */

/*---------------------------------------------------------------
   PHONE PORTRAIT SCREENS
-------------------------------------------------------------- */

/*@media only screen and (min-width: 480px) {
    .row img {
        max-height: 7em;
    }
} */

@media only screen and (max-width: 480px) {
    .row {
        /*display: block;*/
        height: auto;
    }
    .item {
        display: block;
        width: 100%;
        height: auto;
    }
    .item img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        display: block;
    }
}

/*---------------------------------------------------------------
   TABLET PORTRAIT SCREENS OR PHONE LANDSCAPE
-------------------------------------------------------------- */

@media only screen and (min-width: 768px) {
    .row-container {
        margin-bottom: 1.3em;
    }
    .item img {
        max-height: 10em;
    }

}

/*---------------------------------------------------------------
   TABLET LANDSCAPE SCREENS
-------------------------------------------------------------- */

@media only screen and (min-width: 1024px) {
    .row-container {
        margin-bottom: 1.5em;
    }
    .item img {
        max-height: 12em;
    }
}

/*---------------------------------------------------------------
   PC SCREENS
-------------------------------------------------------------- */
@media only screen and (min-width: 1200px) {
    .row-container {
        margin-bottom: 2em;
    }
    .item img {
        max-height: 15em;
    }
}