#sectionGallery *,
#sectionGallery *::after,
#sectionGallery *::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#sectionGallery .js .loading::before,
#sectionGallery .js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}

#sectionGallery .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c2d31;
}

#sectionGallery .loading::after {
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 8px solid #383a41;
    border-bottom-color: #565963;
    border-radius: 50%;
    animation: animLoader 0.8s linear infinite forwards;
}

@keyframes animLoader {
    to { transform: rotate(360deg); }
}

#sectionGallery a {
    text-decoration: none;
    outline: none;
    color: #fff;
}

#sectionGallery a:hover,
#sectionGallery a:focus {
    color: #fff;
}

#sectionGallery .hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}

#sectionGallery main {
    display: flex;
    flex-wrap: wrap;
}


#sectionGallery .content--center {
    flex: 1;
    max-width: 100%; /*calc(100vw - 260px);*/
    order: 3;
}

#sectionGallery .content--right {
    order: 4;
}

#sectionGallery .content--related {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 8em 1em 3em;
    text-align: center;
    order: 5;
}

#sectionGallery .media-related {
    width: 100%;
}

#sectionGallery .media-item {
    padding: 1em;
}

#sectionGallery .media-item__img {
    max-width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#sectionGallery .media-item:hover .media-item__img,
#sectionGallery .media-item:focus .media-item__img {
    opacity: 1;
}

#sectionGallery .media-item__title {
    font-size: 1em;
    max-width: 220px;
    padding: 0#sectionGallery .5em;
    margin: 0 auto;
}

/* Header */
#sectionGallery .codrops-header {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3em 1em 4em;
    order: 1;
}

#sectionGallery .codrops-header__title {
    font-size: 1em;
    font-weight: normal;
    flex: 1;
    margin: 0 7em 0 0;
    text-align: center;
    text-transform: lowercase;
}

#sectionGallery .codrops-header__title::before,
#sectionGallery .codrops-header__title::after {
    font-size: 22px;
    font-weight: bold;
    display: inline-block;
    padding: 0 0.25em;
    color: #42454c;
}

#sectionGallery .codrops-header__title::after {
    content: '\2309';
    vertical-align: sub;
}

#sectionGallery .codrops-header__title::before {
    content: '\230A';
}

/* GitHub corner */
#sectionGallery .github-corner {
    position: absolute;
    top: 0;
    right: 0;
}

#sectionGallery .github-corner__svg {
    fill: #82888a;
    color: #2c2d31;
    position: absolute; 
    top: 0; 
    border: 0; 
    right: 0;
}

#sectionGallery .img-title{
    position: absolute;
    top: 23px;
    left: 30px;
    width: 85%;
    z-index: 1;
}

#sectionGallery .img-title .name1{
    font-size: 26px;
    opacity: 0.75;
    filter: alpha(opacity=75);
    line-height: 23px;
}
#sectionGallery .img-title .name2{
    line-height: 33px;
    font-size: 15px;
    font-weight: 300;
}

#sectionGallery .caption{
    position: absolute;
    bottom: 20px;
    left: 30px;
    width: 85%;
}

#sectionGallery .caption span{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 300;
    opacity: 0.75;
    filter: alpha(opacity=75);
}

#sectionGallery .github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
    0%,
    100% {
        transform: rotate(0);
    }
    20%,
    60% {
        transform: rotate(-25deg);
    }
    40%,
    80% {
        transform: rotate(10deg);
    }
}

@media (max-width:500px) {
    #sectionGallery .github-corner:hover .octo-arm {
        animation: none;
    }
    #sectionGallery .github-corner .octo-arm {
        animation: octocat-wave 560ms ease-in-out;
    }
}


/* Top Navigation Style */
#sectionGallery .codrops-links {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2.75em;
    margin: 0 0 0 2.25em;
    text-align: center;
    white-space: nowrap;
    background: #1f2125;
}

#sectionGallery .codrops-links::after {
    content: '';
    position: absolute;
    top: -10%;
    left: calc(50% - 1px);
    width: 2px;
    height: 120%;
    background: #2c2d31;
    transform: rotate3d(0,0,1,22.5deg);
}

#sectionGallery .codrops-icon {
    display: inline-block;
    padding: 0 0#sectionGallery .65em;
}

/* Controls */
#sectionGallery .control--grids {
    margin: 0 0 2.5em;
    text-align: right;
}

#sectionGallery .control__title {
    font-size: 0.85em;
    display: block;
    width: 100%;
    margin: 0 0 1em;
    color: #e6629a;
}

#sectionGallery .control__item {
    position: relative;
    display: block;
    margin: 0 0 0.5em;
}

#sectionGallery .control__radio {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

#sectionGallery .control__label {
    white-space: nowrap;
}

#sectionGallery .control__radio:checked + .control__label {
    color: #fff;
    background: #673ab7;
}

#sectionGallery .control__radio:not(:checked):hover + .control__label,
#sectionGallery .control__btn:hover {
    color: white;
}

#sectionGallery .control__btn {
    display: block;
    width: 100%;
    margin: 0 0 0.5em;
    padding: 0;
    text-align: left;
    color: inherit;
    border: none;
    background: none;
}

#sectionGallery .control__btn:focus {
    outline: none;
}

/* Grid */

#sectionGallery .grid {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 auto;
}

#sectionGallery .grid--hidden {
    position: fixed !important;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
}

#sectionGallery .js .grid--loading::before,
#sectionGallery .js .grid--loading::after {
    content: '';
    z-index: 1000;
}

#sectionGallery .js .grid--loading::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #2c2d31;
}

#sectionGallery .js .grid--loading::after {
    position: absolute;
    top: calc(25vh - 20px);
    left: 50%;
    width: 40px;
    height: 40px;
    margin: 0 0 0 -20px;
    border: 8px solid #383a41;
    border-bottom-color: #565963;
    border-radius: 50%;
    animation: animLoader 0.8s linear forwards infinite;
}

#sectionGallery .grid__sizer {
    margin-bottom: 0 !important;
}

#sectionGallery .grid__link,
#sectionGallery .grid__img {
    display: block;
}

#sectionGallery .grid__img {
    width: 100%;
    filter: grayscale(100%);
    opacity: 0.5;
    filter: alpha(opacity=50);
}

#sectionGallery a:hover .grid__img,
#sectionGallery a:active .grid__img,
#sectionGallery a:focus .grid__img{
    filter: grayscale(0%);
    opacity: 1;
    filter: alpha(opacity=100);
}

#sectionGallery .grid__deco {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

#sectionGallery .grid__deco path {
    fill: none;
    stroke: #fff;
    stroke-width: 2px;
}

#sectionGallery .grid__reveal {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    background-color: #2c2d31;
}

#sectionGallery .grid .grid__item,
#sectionGallery .grid .grid__sizer {
    width: 50%;
}



@media screen and (min-width: 60em) {
    #sectionGallery .grid .grid__item,
    #sectionGallery .grid .grid__sizer {
        width: calc(100% / 3);
    }
}

@media screen and (min-width: 70em) {
    #sectionGallery .grid .grid__item,
    #sectionGallery .grid .grid__sizer {
        width: calc(25% - 30px);
    }
    /* Grid types */
    #sectionGallery .grid--type-b .grid__item,
    #sectionGallery .grid--type-b  .grid__sizer {
        width: calc(20% - 20px);
    }

    #sectionGallery .grid--type-c .grid__item,
    #sectionGallery .grid--type-c .grid__sizer {
        width: 25%;
    }
}

@media screen and (max-width: 50em) {

    #sectionGallery .grid--type-c .grid__item,
    #sectionGallery .grid--type-c .grid__sizer {
        width: 100%;
    }

    #sectionGallery main {
        display: block;
    }
    #sectionGallery .codrops-header {
        padding: 1em;
        flex-wrap: wrap;
    }
    #sectionGallery .codrops-links {
        margin: 0;
    }
    #sectionGallery .codrops-header__title {
        width: 100%;
        text-align: left;
        flex: none;
        margin: 1em 0;
    }
    #sectionGallery .content--side {
        width: 100%;
    }
    #sectionGallery .content--right {
        order: 3;
    }
    #sectionGallery .content--center {
        max-width: 100vw;
    }
    #sectionGallery .control {
        margin: 0 0 1em;
        text-align: left;
    }
    #sectionGallery .control__item,
    #sectionGallery .control__btn {
        display: inline-block;
    }
    #sectionGallery .control__btn {
        width: auto;
    }
}
