/* ************************ */
/* MEDIA QUERIES - 666px AND UNDER */
/* ************************ */

/* ****************** */
/* FONTS & TEXT */
/* ****************** */

.header-email,
.header-location {
    margin: 0;
    line-height: 1.3em;
}

.header-email p,
.header-email p a,
.header-location p,
.header-location p a {
    font-family: 'futura_cyrillic_book', 'sourcesanspro_regular', Tahoma, Arial, sans-serif;
    color: #abb0b3;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 12px;
    line-height: 1.2em;
    font-style: normal;
    margin-bottom: 25px;
}

.header-tagline {
    margin-bottom: 0;
}

.header-tagline p {
    font-weight: 400;
    letter-spacing: 0.2em;
    font-size: 14px;
    font-family: 'georgia_italic';
    line-height: 1.4em;
    color: #ffd675;
    text-align: center;
}

.header-title,
.header-title-tagline {
    display: inline-block;
    position: relative;
    margin: 25px 0 15px 0;
    width: 100%;
}

.header-title h1,
.header-title h1 a {
    text-decoration: none;
    color: #fbfbfb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 24px;
    font-family: 'futura_cyrillic_book', 'sourcesanspro_regular', Tahoma, Arial, sans-serif;
    line-height: .9em;
    font-style: normal;
    text-align: center;
}

#main-content h1 {
    font-size: 17px;
}

#main-content ul {
    margin: 0 0 25px 25px !important;
}

#main-content ul li,
#main-content ul li ul li {
    font-size: 14px !important;
}

#main-content ul ul {
    maring: 0 0 0 15px !important;
}

#main-content .input[type="text"],
#main-content .input[type="password"],
#main-content .uneditable-input {
    width: 95%;
}

#main-content .main-content-title-center-small h1 {
   font-family: 'futura_cyrillic_heavy', 'sourcesanspro_regular', Tahoma, Arial, sans-serif;
   letter-spacing: 0.8px;
   font-size: 22px;
   color: #000000;
   text-align: center;
   text-decoration: underline;
   margin: 0;
}

#recommendation-item ul {
    margin: 0 10px 10px 10px !important;
}

#recommendation-item ul li,
#recommendation-item ul li ul li,
#recommendation-item ul ul li,
#resume-item ul li,
#resume-item ul li ul li,
#resume-item ul ul li {
    font-size: 14px !important;
}

#recommendation-item ul li h2,
#resume-item ul li h2 {
    font-size: 16px !important;
}

#recommendation-item ul ul,
#resume-item ul ul {
    margin: 8px 0 0 15px !important;
}

#recommendation-item .recommendation-item-title-small h1,
#resume-item .resume-item-title-small h1 {
   font-family: 'futura_cyrillic_medium', 'sourcesanspro_regular', Tahoma, Arial, sans-serif;
   letter-spacing: 0.8px;
   font-size: 16px;
   color: #000000;
   text-decoration: none;
   margin-bottom: 0 !important;
}

#recommendation-item .recommendation-item-title-small h2,
#resume-item .resume-item-title-small h2 {
   font-family: 'futura_cyrillic_book', 'sourcesanspro_regular', Tahoma, Arial, sans-serif;
   letter-spacing: 0.8px;
   font-size: 13px;
   color: #000000;
}

.site-location p,
.site-location p a,
.site-location-email p,
.site-location-email p a {
    font-size: 14px;
}

.site-title h1,
.site-title h1 a {
    font-size: 32px;
}

/* ****************** */
/* LAYOUTS */
/* ****************** */

.header-contact {
    display: flex;
    justify-content: space-between;
    width: 92%;
    margin: 0 auto;
    padding: 15px 0 15px 0;
}

.header-content {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

#main-content {
    margin: 15px;
}

#main-content-border {
    padding-top: 0px;
    border: 0px;
}

#main-content .main-content-title a img {
    width: 30px;
    height: auto;
}

#main-content .main-content-title-center-large {
    display: none;
}

#main-content .main-content-title-center-small {
    display: block;
}

#mainOverlay {
    width: 90%;
    padding: 40px;
}

#recommendation-item .recommendation-item-title-large,
#resume-item .resume-item-title-large {
    display: none;
}

#recommendation-item .recommendation-item-title-small,
#resume-item .resume-item-title-small {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 4px;
    margin: 0 10px 15px 10px;
    align-items: start;
    padding-bottom: 8px;
    border-bottom: 1px solid #000000;
}

#recommendation-item .recommendation-item-title-small > :nth-child(1),
#resume-item .resume-item-title-small > :nth-child(1) {
    justify-self: start;
}

#recommendation-item .recommendation-item-title-small > :nth-child(2),
#resume-item .resume-item-title-small > :nth-child(2) {
    justify-self: end;
    text-align: right;
}

#recommendation-item .recommendation-item-title-small > :nth-child(3),
#resume-item .resume-item-title-small > :nth-child(3) {
    grid-column: 1 / -1;
}

/* ***************** */
/* LIGHT GALLERY */
/* ***************** */

#mainimg-mobilesmall {
    display:block;
    position:relative;
    height:auto;
    width:100%;
    z-index: 1;
    margin: 7px 0 7px 0;
}

#mainimg-mobilesmall .mainimg-overlay {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 50px;
}

#mainimg-mobilesmall .mainimg-overlay-title {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
}

#mainimg-mobilesmall img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

#mainimg,
#mainimg-grid {
    display: none;
}

#mainimg-grid-mobilesmall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-column-gap: 14px;
    margin-bottom: 20px;
}

/* ****************** */
/* NAV MENU */
/* ****************** */

.mm-wrapper--opened .header-contact,
.mm-wrapper--opened .header-tagline,
.mm-wrapper--opened #main-content {
    display: none !important;
}

.mm-wrapper--opened #header {
    position: fixed;
    top: 0;
}

#mmenu-header a {
    top: 0 !important;
    left: 0 !important;
}