* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    overflow: hidden scroll;
}

body {
    position: relative;
}

.eccra-green-color {
    color: rgb(79,186,0);
}

header {
    top: 0px;
    width: 100%;
    height: 100px;
    position: fixed;
    z-index: 1000;
    background-color: white;
    transition: box-shadow .2s;
}

header:hover,
header.scrolled {
    box-shadow: rgba(0,0,0,.05) 0 5px 20px;
}

#header-inner {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.background-image-cover {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#logo-horizontal,
#logo-sun {
    flex-grow: 0;
}

#logo-horizontal img,
#logo-sun img {
    width: auto;
    height: 100%;
    padding: 10px;
}

#header-tools {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
    margin: 0 -10px;
}

#header-tools > *:not(:last-child) {
    margin-right: 30px;
}

.page-margins {
    width: 100%;
    max-width: 2560px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

.center-vertically-wrapper {
    display: table;
    width: 100%;
    height: 100%;
    margin: 0;
}

.center-vertically {
    vertical-align: middle;
    display: table-cell;
}

.user-icon {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-icon .hover-tint {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    opacity: 0;
    background-color: black;
    transition: opacity .2s;
}

.user-icon:hover .hover-tint {
    opacity: .2;
}

.button-outline-rounded {
    display: inline-block;
    padding: 6px 24px;
    min-width: 140px;
    font-family: 'Valentina';
    font-size: 15px;
    border: 1.5px solid black;
    border-radius: 5px;
    text-decoration: none;
    color: black;
    background: none;
    transition: color .2s, background-color .2s;
    text-align: center;
    cursor: pointer;
}

.button-outline-rounded:hover {
    color: white;
    background-color: black;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Valentina';
    color: #707070;
    font-weight: normal;
}

h1 {
    font-size: 50px;
}

.input-wrapper > input {
    outline: none;
    border: none;
    font-family: 'Valentina';
    font-size: 20px;
    padding: 5px;
    border-bottom: 1px solid #a0a0a0;
}

.input-label-below {
    font-family: 'Valentina';
    font-size: 14px;
    font-weight: normal;
    width: 100%;
    display: block;
    text-align: right;
    line-height: 20px;
    color: #a0a0a0;
}

.has-error .input-label-below,
.has-error input {
    color: red;
    border-color: red;
}

.edit {
    position: absolute;
    bottom: 100%;
    left: 100%;
    width: 15px;
    height: 15px;
    background-image: url();
    opacity: 0;
    transition: opacity .1s, transform .2s;
    fill: #6a6a6a;
    transform: translateX(10px) rotate(45deg);
}

.input-wrapper:hover .edit {
    transform: none;
    opacity: 1;
}


#links {
    margin: -10px;
}

.discrete-link {
    font-family: 'Valentina';
    font-size: 14px;
    color: #a0a0a0;
    transition: color .2s;
    text-decoration: none;
    margin: 10px;
}

.discrete-link:hover {
    color: black;
    text-decoration: underline;
}

#logo-sun {
    display: none;
}

.follow-button {
    position: relative;
}

.following-label,
.unfollow-label {
    opacity: 0;
}

.follow-button.following .follow-label {
    opacity: 0;
}

.follow-button.following  {
    background-color: #203FFF;
    border-color: #203FFF;
    color: white;
}

.follow-button.following:hover {
    background-color: #FF2020;
    border-color: #FF2020;
    color: white;
}

.follow-button.following:hover .unfollow-label {
    opacity: 1
}

.follow-button.following:not(:hover) .following-label {
    opacity: 1;
}

.following-label,
.unfollow-label,
.follow-label {

    border-radius: 5px;
    transition: opacity .2s;
}

.following-label,
.unfollow-label {
    position: absolute;
    top: 6px; left: 24px; right: 24px; bottom: 6px;
}

ul.user-list {
    max-width: 600px;
}

li.user-list-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

a.user-link {
    text-decoration: none;
    color: black;
}

.user-name {
    font-family: 'Valentina';
    font-size: 14px;
}

.user-icon {
    margin-right: 10px;
}

a.user-link:hover .user-username {
    text-decoration: underline;
    text-decoration-color: #4FBA00;
}

/* TABS */
#content-section {
    position: relative;
    padding-bottom: 10px;
}

.count {
    color: #203fff;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: 'Valentina';
    font-size: 17px;
    color: black;
    flex-wrap: nowrap;
    justify-self: center;
}

#tabs {
    position: sticky;
    top: 100px;
    z-index: 100;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    border-bottom: 1px solid rgba(0,0,0,.2);
    flex-wrap: wrap;
    margin-bottom: 10px;
    height: 55px;
}

.tab {
    display: inline-block;
    line-height: 34px;
    /*border-bottom: 1.5px solid black;*/
    margin-bottom: -1.5px;
    font-family: 'Valentina';
    font-size: 18px;
    position: relative;
    text-decoration: none;
    color: black;
    margin-right: 20px;
    margin-left: 20px;
    white-space: nowrap;
}

.tab:hover {
    color: grey;
}

.display.gallery {
    z-index: 300;
    background-color: white;
    position: fixed;
    top: 0px;
    left: 0px;
    padding-top: 100px;
    padding-bottom: 10px;
    width: 100%;
    height: 100%;
}

.display.gallery > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-image-info {
    flex-grow: 1;
}

.single-image-navigation {
    flex-basis: 0;
    text-align: center;
    user-select: none;
    border-bottom: 1px solid rgba(0,0,0,.2);
    margin-bottom: 10px;
}

.single-image-navigation > * {
    display: inline-block;
    align-self: center;
    vertical-align: middle;
}

.single-image-browsing {
    min-width: 250px;
    font-family: 'Valentina';
    font-size: 14px;
}

.disabled {
    opacity: .1;
    cursor: not-allowed !important;
}

.single-image-close,
.single-image-prev,
.single-image-next {
    position: relative;
    width: 55px;
    height: 55px;
    transition: transform .2s, background-color .3s, fill .3s, box-shadow .3s;
    cursor: pointer;
    border-radius: 50%;
}

.single-image-close svg,
.single-image-prev svg,
.single-image-next svg {
    content: '';
    position: absolute;
    top: 20px; left: 20px; bottom: 20px; right: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.single-image-close:hover:not(.disabled),
.single-image-prev:hover:not(.disabled),
.single-image-next:hover:not(.disabled) {
    transform: scale(.8);
    box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.single-image-close {
    float: left;
}

.single-image-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}

.single-image {
    width: 50%;
    flex-basis: 50%;
    flex-grow: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
}

.single-image-info {
    width: 50%;
    flex-basis: 50%;
    flex-grow: 1;
    flex-basis: 50%;
    padding: 20px;
}

.single-image-title {
    font-family: 'Valentina';
    font-size: 50px;
    margin-top: 20px;
}

.single-image-creation-date {
    font-family: 'Tex Gyre Heros';
    font-size: 10px;
    color: #a0a0a0;
    text-transform: uppercase;
}

.single-image-description {
    font-family: 'Valentina';
    font-size: 16px;
    margin-top: 20px;
}

.thumb .gallery-image-wrapper {
    display: inline-block;
    position: relative;
}

.spacer {
    width: 100%;
    height: 0px;
    padding-top: 100%;
} 

.thumb .gallery-image {
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0px; left: 0px;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 400px) {

    #logo-sun {
        display: initial;
    }

    #logo-horizontal {
        display: none;
    }
}


.thumb .gallery-image-wrapper {
    width: 16.66666667%;
}

@media only screen and (max-width: 1500px) {
    .thumb .gallery-image-wrapper {
        width: 20%;
    }
}

@media only screen and (max-width: 1200px) {
    .thumb .gallery-image-wrapper {
        width: 25%;
    }
}

@media only screen and (max-width: 900px) {
    .thumb .gallery-image-wrapper {
        width: 33.3333333%;
    }
}

@media only screen and (max-width: 700px) {
    .thumb .gallery-image-wrapper {
        width: 50%;
    }
}


@media only screen and (max-width: 500px) {
    .thumb .gallery-image-wrapper {
        width: 100%;
    }
}