.grid {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.grid *, .grid *:after, .grid *:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* Common style */
.grid figure {
}

.grid figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}

.grid figure figcaption {
    padding: 2em;
    color: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
    pointer-events: none;
}

.grid figure figcaption {
    align-content: center;
    display: grid;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*---------------*/
/***** Bubba *****/
/*---------------*/

figure.effect-bubba {
    height: 320px;
    margin: 10px;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 320px;
}

figure.effect-bubba:hover {
    background: #000;
}

figure.effect-bubba img {
    opacity: 1;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}

figure.effect-bubba:hover img {
    opacity: 0.4;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0,1);
    transform: scale(0,1);
}

figure.effect-bubba figcaption::after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1,0);
    transform: scale(1,0);
}

figure.effect-bubba h3 {
    font-family: "Helvetica-Bold";
    font-size: 16px;
    color: #979533;
    opacity: 0;
    padding-top: 0;
    text-transform: uppercase;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,-20px,0);
    transform: translate3d(0,-20px,0);
}

figure.effect-bubba p {
    font-family: "Helvetica-Light";
    opacity: 0;
    text-transform: initial;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0,20px,0);
    transform: translate3d(0,20px,0);
}

figure.effect-bubba a {
    border-bottom: 1px solid #979533;
    color: #979533;
    font-family: "Helvetica-Bold";
    margin: 0 auto;
    opacity: 0;
    padding-bottom: 2px;
    text-transform: initial;
    width: fit-content;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0,20px,0);
    transform: translate3d(0,20px,0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

figure.effect-bubba:hover h3,
figure.effect-bubba:hover p,
figure.effect-bubba:hover a {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}


/*** Morphologique ***/
#main.morphologique figure.effect-bubba {
    height: 235px;
    width: 235px;
}

/***
#main.morphologique figure.effect-bubba figcaption {
    align-content: flex-start;
}
***/

#main.morphologique figure.effect-bubba h3 {
    font-family: "Helvetica-Bold";
    font-size: 15px;
    color: #fff;
    opacity: 0;
    padding-top: 10px;
    text-transform: uppercase;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,-20px,0);
    transform: translate3d(0,-20px,0);
}

#main.morphologique figure.effect-bubba p {
    font-family: "Helvetica-Bold";
    font-size: 15px;
    color: #979533;
    opacity: 0;
    padding-top: 0;
    text-transform: uppercase;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,-20px,0);
    transform: translate3d(0,-20px,0);
}

#main.morphologique figure.effect-bubba img {
    margin: 0 auto;
    max-height: 100%;
    width: auto;
}

#main.morphologique figure.effect-bubba img.lunettes {
    height: auto;
    min-height: 60px;
    opacity: 0;
    padding-top: 10px;
    width: auto;
}

#main.morphologique figure.effect-bubba:hover h3,
#main.morphologique figure.effect-bubba:hover p,
#main.morphologique figure.effect-bubba:hover img.lunettes  {
    margin: 0 auto;
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/*** Archives ***/

#main.archives .grid figure figcaption {
    align-content: space-around;
}

#main.archives figure.effect-bubba {
    display: flex;
    height: 250px;
    justify-content: center;
    align-items: center;
    width: 250px;
}

#main.archives figure.effect-bubba img {
    height: 250px;
    margin-left: 0;
    max-width: unset;
    min-height: auto;
    min-width: auto;
    text-align: center;
    width: auto;
}

#main.archives figure.effect-bubba h3 {
    color: #FFF;
    text-transform: uppercase;
}