/* palette: https://colorswall.com/palette/247224 */

@font-face {
    font-family: SansPro;
    src: url(./SourceSansPro-Light.ttf);
}

:root {
  --bg-color: #E1E6E1;
  --primary-color: #5F464B;
  --secondary-color: #c4bda3;
}

body {
    /*background-color: #444c44;*/
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-family: SansPro, sans-serif;
    overflow: hidden;
    transition: all 200ms ease-out 50ms;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#bg-cover {
    display: none;

    filter: blur(3px);
    -webkit-filter: blur(3px);
    background-color: #1E1E1E;
    opacity: .5;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    /*width: 80%;*/
    min-width: 500px;
    /*padding-top: 30px;*/

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 60px;
    gap: 60px;
    align-content: space-between;
    height: -webkit-fill-available;
    overflow: hidden;
    width: 100%;
}

/*.col-1, .col-2 {*/
/*    width: 45%;*/
/*    margin: auto;*/
/*}*/
.col-1 {
    width: 30%;
}
.col-2 {
    width: 60%;
    overflow: hidden;
    height: inherit;
    position: relative;
}
.col-2 .gradient {
    position: absolute;
    width: 100%;
    height: 100px;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: #fffdf8;
    background: linear-gradient(0deg, #fffdf8 0%, rgba(255,255,255,0) 100%);
}

.gallery {
    overflow: auto;
    height: inherit;
    display: inline-block;
    width: 100%;
}

.gallery a img {
    width: 100%;
    height: auto;
    float: left;
}

.gallery a {
    /*width: 25%;*/
    width: calc(100% / 8);
    transition: all 0.1s;
    display: block;
    float: left;
    opacity: 1;
    height: auto;
}

@media only screen and (min-width: 1500px) {
    .gallery a {
        width: 10%;
    }
}

/* width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: unset;
    border-radius: 0;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 0;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.gallery h2 {
    width: fit-content;
}
.gallery img {
    transition: opacity 200ms ease-out 50ms
}
.gallery :not(.big) img:not(:hover) {
    opacity: .8;
}
.gallery .big {
    width: 100%;
}
.gallery .big img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.end {
    border-top: 1px solid var(--secondary-color);
    text-align: center;
    padding: 12px;
    margin: 0;
}

a, .year {
    /*color: #E1E1E1 !important;*/
    color: var(--secondary-color) !important;
    text-decoration: none;
    transition: color 200ms ease-out 50ms
}
a:hover {
    color: #444c44 !important;
}

.year {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}
.year>h3 {
    margin-right: 10px;
}
.year>.line {
    border-bottom: 1px solid var(--secondary-color);
    height: 1px;
    flex-grow: 1;
}

.info>div {
    padding-bottom: 50px;
}

.flags>span, .flags>a, .contacts>a, .filter>a {
    cursor: pointer;
    padding: 5px;
}

#mail-modal:not(.hide) {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, .5);
    overflow: auto;
    text-align: center;
    padding-top: 25vh;
}
#modal-form {
    display: inline-block;
    /*background-color: #1E1E1E;*/
    padding: 20px;
    border-radius: 10px;
    /*border: 1px solid #E1E1E1;*/
    width: 400px;
    background-color: #fffdf8;
    color: #444c44;
    border: 1px solid var(--secondary-color);
}
#modal-form>.modal-content {
    position: relative;
    text-align: left;
}
#modal-form>.modal-content>h2 {
    text-align: center;
}
#modal-form>.modal-content>.close {
    position: absolute;
    top: -20px;
    right: 0;
    cursor: pointer;
}
#modal-form>.modal-content>input, #modal-form>.modal-content>button, #modal-form>.modal-content>textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #E1E1E1;
    margin-top: 10px;
    resize: vertical;
}
.hide {
    display: none;
}
#modal-success {
    text-align: center;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #c7ffd6;
    color: #679172;
    background-color: rgba(199, 255, 214, .3);
    margin-top: 10px;
}
#modal-error {
    text-align: center;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ff7d7d;
    color: #916767;
    background-color: rgba(255, 125, 125, .3);
    margin-top: 10px;
}

.grey {
    color: grey !important;
}

.flags, .contacts, .filter.center, .logo {
    text-align: center;
    padding-bottom: 20px;
}

.logo>img {
    width: 70px;
    /*padding-bottom: 50px;*/
    padding-bottom: 30px;
    filter: brightness(.6) sepia(.5);
}

p {
    margin-block-start: 10px;
    margin-block-end: 10px;
}

ul{
    list-style: none outside none;
    padding-left: 0;
    margin: 0;
}

.filter, .filter.center {
    transition: text-align 1s ease-out 1s
}
.filter {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.category-filter {
    gap: 10px;
}
.category-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    width: fit-content;
    margin: auto;
}

.tags {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (min-width: 1500px) {
    .container {
        min-width: 500px;
        margin: auto;
        overflow: hidden;
        height: -webkit-fill-available;
    }
}

@media only screen and (max-width: 1000px) {
    body {
        font-size: 40px;
        height: fit-content;
        overflow: auto;
    }
    .container {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        flex-direction: column;
        height: fit-content;
    }
    .logo>img {
        padding-top: 10px;
    }
    .col-1, .col-2 {
        width: 100%;
        height: fit-content;
    }
    .flags {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    .controls {
        padding: 20px;
    }
    .category-filter {
        gap: 20px;
    }
    .contacts, .filter {
        padding-bottom: 30px;
    }
    .col-2 .gradient {
        display: none;
    }
    .gallery {
        height: fit-content;
    }
    .gallery a {
        width: 20%;
    }
    .gallery .big img {
        opacity: 1;
    }
    .gallery :not(.big) img {
        opacity: .8;
    }
}

.hidden {
    display: none !important;
}

.lazy {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 420ms cubic-bezier(.2,.8,.2,1), transform 420ms cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
    filter: blur(6px);
}
.lazy.loaded {
    opacity: 1;
    transform: translateY(0);
    filter: none;
}