.ImageGridInner {
    margin: 0 auto;
}

.ImageGridInner .GalleryImage {
    display: inline-block;
    text-align: center;
}

.GalleryImage img {
    display: block;
    height: auto;
    margin: 0 auto 4px auto;
}

.GalleryAlbum {
    border-radius: 3px;
    margin: 2px 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    height: 170px;
    width: 170px;
    box-shadow: 0 0 2px 1px transparent;
    transition: box-shadow 0.4s;
    overflow: hidden;
}

.GalleryAlbum:hover,
.GalleryAlbum:focus {
    border-color: rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.15s;
}

.GalleryAlbum:active {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.GalleryAlbum .Thumbnail {
    padding-top: 5px;
    display: table-cell;
    vertical-align: middle;
    width: 170px;
    height: 125px;
}

.GalleryAlbum .Thumbnail  img {
    max-width: 146px;
    max-height: 130px;
}

.GalleryAlbum .Title {
    line-height: 1.4em;
}

.GalleryAlbum.New .Title:after {
    content: '*';
    font-weight: bold;
}

.AlbumGridInner {
    text-align: center;
}

.GridOptions {
    text-align: center;
    padding-top: 7px;
    margin-bottom: -5px;
}

.GridOptions .OptionsMenu {
    text-align: left;
}

.GridTop {
    text-align: center;
    padding-bottom: 7px;
    margin-top: -5px;
}

#Uploading {
    display: none;
}

.GalleryUpload {
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 20px 20px;
}

.GalleryUpload .BigButton {
    width: 230px;
    margin: 5px auto;
}

.GalleryUpload label {
    font-size: 14px;
}

.GalleryUpload label.CheckBoxLabel {
    font-weight: normal;
}

.GalleryUpload #Uploaded {
    display: none;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 2px dashed rgba(0, 0, 0, 0.05);
}

.GalleryUpload #Uploaded img {
    width: auto;
    max-height: 100px;
}

.GalleryUpload .dz-preview {
    display: none;
}

.UploadNote {
    font-size: .9em;
    text-align: left;
    opacity: .8;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.GalleryComments {
    margin-top: 15px;
}

.GalleryComments #Form_Comment .Author {
    display: none;
}

.LatestImageModule p,
.UserImagesModule .Images {
    text-align: center;
}

.LatestImageModule p .UserLink {
    font-weight: bold;
}

.LatestImageModule img {
    max-width: 180px;
    height: auto;
}

.UserImagesModule .Images {
    white-space: nowrap;
    overflow: auto;
}

.UserImagesModule img {
    max-height: 150px;
    width: auto;
}

.Changeable,
.Changeable .Edit {
    display: inline-block;
}

.Changeable .Edit {
    margin: -1px 0;
}

.Changeable .Value,
.Changeable .EnterButton {
    cursor: pointer;
}

.Changeable .EditButton,
.GridOptions > a.pnIcon {
    opacity: .5;
    text-decoration: none;
}

.Changeable:hover .EditButton,
.GridOptions > a.pnIcon:hover  {
    opacity: 1;
}

.Changeable .Edit,
.Changeable.Active .Value {
    display: none;
}

.Changeable.Active .Edit {
    display: inline-block;
}

.Changeable .InputBox {
    padding: 0 3px;
    width: auto;
    font-size: inherit;
    vertical-align: bottom;
}

.Changeable select {
    padding: 2px;
    vertical-align: bottom;
}

.Changeable em {
    font-style: italic;
    opacity: .5;
}

.GalleryContent {
    text-align: center;
}

.ImageBox, .ImageWrap {
    display: inline-block;
    max-width: 100%;
}

.ImageWrap {
    position: relative;
    min-width: 150px;
    min-height: 240px;
    overflow: hidden;
}

.ImageWrap img {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

.ImageWrap .Prev,
.ImageWrap .Next {
    position: absolute;
    top: 0;
    bottom: 0;
    font-size: 100px;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,.75);
}

.ImageWrap .Prev span,
.ImageWrap .Next span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    line-height: 100px;
    margin: auto;
}

.ImageWrap .Prev {
    left: 50%;
    right: 0;
    text-align: right;
}

.ImageWrap .Next {
    left: 0;
    right: 50%;
    text-align: left;
}

.ImageWrap a {
    opacity: 0;
    transition: opacity .2s;
}

.ImageWrap:hover a {
    opacity: .5;
}

.ImageWrap a:hover {
    opacity: 1;
}

.ImageSetName {
    font-style: italic;
}

.ImageMeta {
    min-width: 400px;
    text-align: left;
    position: relative;
}

.ImageMeta .ImageTitle {
    text-align: center;
    padding: 4px;
    font-size: 1.1em;
}

/*.ImageMeta .Options > a,*/
.ImageMeta .EditButton,
.ImageMeta time {
    opacity: 0;
    transition: opacity .3s;
}

/*.ImageMeta:hover .Options > a,*/
.ImageMeta:hover .EditButton,
.ImageMeta:hover time {
    opacity: 1;
}

.ImageMeta .Options .pnIcon {
    vertical-align: baseline;
}

.ImageMeta .TagsWrap,
.ImageMeta .Description {
    padding-top: 5px;
}

.ChangeDescription .TextBox {
    display: block;
    margin-bottom: 5px;
}

.ChangeDescription .Edit {
    text-align: right;
}

.ChangeDescription .EnterButton {
    font-size: 13px;
}

.ChangeDescription .EnterButton::before {
    display: none;
}

.TagsWrap a.Tag:hover,
.ValleryTags  a.Tag:hover {
    color: white;
}

.ChangeTagimage {
    min-height: 28px;
}

.ChangeTagimage .InputBox {
    width: 365px;
}

.ValleryTags .Tag {
    white-space: nowrap;
}

.ValleryTags .Tags {
    line-height: 2em;
}

abbr.AlbumOwner,
.Changeable .EditButton,
.Changeable .EnterButton {
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    text-decoration: none;
}

.Changeable .EnterButton {
    font-weight: bold;
}

@media (max-width: 960px) {
    /*.ImageMeta .Options > a,*/
    .ImageMeta .EditButton,
    .ImageMeta time {
        opacity: 1;
    }

    .GalleryBody .Button.Hidden {
        display: block;
        margin-top: 6px;
    }

    .ImageMeta {
        min-width: 320px;
    }
    
    .GalleryAlbum {
        width: 160px;
    }
}

.GalleryContent .Reactions {
    text-align: left;
    min-height: 24px;
}

.GalleryContent .Reactions .ReactMenu {
    background: none;
    box-shadow: none;
}

.GalleryContent span.UserReactionWrap {
    padding-top: 0;
}

.GalleryContent .ReactionRecord {
    padding: 0 20px;
}

.Section-Gallery .ProfileOptions {
    display:none;
}

.Section-Gallery abbr {
    cursor: help;
}
