/*
Author: Dominique Tepaß
Author URI: http://www.dominiquetepass.de/
*/

/*reset*/

* {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 16px;
    color: #1d1d1b;
    font-family: 'Source Sans Pro', sans-serif;
    text-decoration: none;
    list-style: none;
    outline: none;
    background: transparent;
    border: none;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
}

body {
    margin-top: -32px;
}

.noimage {
    background: transparent !important;
}


/*FADEIN ANIMATION*/

section:nth-child(n + 2) {
    opacity: 0;
}

/*CLEARFIX*/

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}

/*FONTS AND FONTSTYLES*/

/*Headlines*/

h2,
aside h1,
aside h2 a,
#contact #contact_vie h2,
#contact #contact_due h2,
#showroom h1,
#showroom h1 span,
#imprint h1 {

    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 32px;
}

/*Headlines for Tiles*/
/*subheadlines*/
h3,
.nexttoaside h2,
#team h1 {
    font-size: 20px;
    line-height: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

h4,
h4 span {
    font-size: 16px;
    line-height: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

h5 {
    text-transform: uppercase;
    font-size: 19px;
}

.info {
    font-size: 11px;
    line-height: 13px;
    text-transform: uppercase;
}

p.hashtag {
    font-size: 14px;
    line-height: 16px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    display: inline-block;
    padding-bottom: 2px;
    text-transform: none;
    margin-right: 10px;
}

.tile h3,
.tile2 h3 {
    margin-top: 12px;
}

.bold,
.wrapLinks a.active {
    font-weight: 700;
}


/* GENERAL : WIDTH AND MARGINS*/

body {
    width: 100%;
    /* height:100%;*/
}

main {
    margin-bottom: 72px;
    padding-right: calc(17.5% + 92px);
    padding-left: calc(17.5% + 92px);

    -webkit-transition: opacity 500ms ease-out;
    -moz-transition: opacity 500ms ease-out;
    -o-transition: opacity 500ms ease-out;
    transition: opacity 500ms ease-out;

    -webkit-transition: margin 100ms ease-out;
    -moz-transition: margin 100ms ease-out;
    -o-transition: margin 100ms ease-out;
    transition: margin 1000ms ease-out;
}

.section-head {
    margin: 80px 0 55px 0;
}

.image-wrap {
    overflow: hidden;
    width: 100%;
    background: #000;
    position: relative;
}

img {
    width: 100%;
    object-fit: cover;
    min-width: 100%;
    display: block;

    -webkit-transition: opacity 500ms ease-out;
    -moz-transition: opacity 500ms ease-out;
    -o-transition: opacity 500ms ease-out;
    transition: opacity 500ms ease-out;
}

.main-img {
    max-height: 400px;
    margin-bottom: 35px;
    display: flex;
}

/*
.main-img img{
    object-fit: unset;
}
*/
video {
    width: 100%;
}

.videowrap {
    margin-bottom: 30px;
    
}

.videowrap iframe{
    background: #1d1d1b;
}

.videowrap .button {
    width: 60px;
    width: fit-content;
    height: 28px;
}


aside {
    width: 220px;
    position: absolute;
    float: left;
    margin-right: 2.5%;
    box-sizing: border-box;
    z-index: 1001;
}

aside a.arrowlink,
#contact_due a.arrowlink,
#contact_vie a.arrowlink {
    margin-top: 0;
    border: none;
    cursor: pointer;
}

aside a.arrowlink:hover,
#contact_due a.arrowlink:hover,
#contact_vie a.arrowlink:hover {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

aside h2:after,
aside h1:after,
#contact #contact_vie h2:after,
#contact #contact_due h2:after,
.nexttoaside h2:before,
#artist.nocontent h2:after,
.dgsvoagb h2:before {
    width: 170px;
    height: 14px;
    background: #1d1d1b;
    position: relative;
    left: 0;
    content: '';
}

aside h2:after,
aside h1:after,
#contact #contact_vie h2:after,
#contact #contact_due h2:after,
#artist.nocontent h2:after {
    display: block;
    margin: 20px 0;
}

.nexttoaside h2:before,
.dgsvoagb h2:before {
    display: inline-flex;
    margin-right: 10px;
    margin-left: -180px;
}

aside h1 {
    margin-bottom: 30px;
}

aside a {
    line-height: 17px;
}

aside li ul li {
    margin-bottom: 15px;
}

aside li ul li a {
    margin-bottom: -20px;
}

.nexttoaside {
    width: 65.5%;
    float: right;
    margin-bottom: 72px;
}

.nexttoaside section {
    margin-bottom: 50px;
}

.nexttoaside h2 {
    padding-left: 180px;
    margin-bottom: 20px;
    display: inline-block;
}


#contact #contact_vie h2:before,
#contact #contact_due h2:before,
.nexttoaside #artist-life h2:before {
    display: none;
}

.nexttoaside #artist-life h2 {
    padding-left: 0;
}

.flexwrap,
.buttonwrap {
    display: flex;
}

.flexwrap {
    justify-content: space-between;
}

.buttonwrap {
    justify-content: flex-start;
    margin-top: 20px;
}

.crop-txt {
    display: block;
    /* or inline-block */
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    position: relative;
}

.crop-txt:before {
    content: '...';
    position: absolute;
    right: 0;
    bottom: 0;
    background: white;
}

.crop-txt:after {
    content: '';
    position: absolute;
    right: 0;
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
    background: white;
}

#cookienotice {
    position: fixed;
    height: 100px;
    bottom: 0;
    left: 0;
    z-index: 9001;
    background: rgba(135, 48, 60, 0.95);
    padding-right: calc(17.5% + 92px);
    padding-left: calc(17.5% + 92px);
    display: flex;
    align-items: center;
}

#cookienotice p,
#cookienotice a {
    color: #fff;
}

#cookienotice p {
    padding-right: 10%;
}

#cookienotice button {
    color: rgba(135, 48, 60);
    background-color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    text-transform: uppercase;
    border: #fff solid 1px;
    cursor: pointer;
}

#cookienotice a,
#cookienotice button {
    font-weight: 600;
    min-width: 110px;
}

#cookienotice button:hover {
    background-color: transparent;
    color: #fff;
}

@media only screen and (max-width: 800px) {

    .main-img {
        width: 111%;
        margin-left: -5.5%;
        margin-bottom: 25px;
    }

}

/*PREVIEW EXHIBITIONS & PREVIEW ART FAIR & ARTSHOW OVERVIEW TILES*/

.wrap-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}

.tile {
    width: 31.5%;
}

.tile:nth-child(3n-5),
.tile:nth-child(3n-4) {
    margin-right: 2.75%;
}

.tile2 {
    width: 65.5%;
    cursor: pointer;
}

.tile2 .info,
.tile .info {
    margin-bottom: 10px;
}

.tile:hover img,
.exhibitionhighlight:hover .tile img,
.masonry-item:hover img {
    opacity: 0.5;
}

.tile img, .tile2 img  {
    min-height: 200px;
}

#main-img img,
#contact .tile:hover img {
    opacity: 1;
}

.tile p.hashtag {
    margin-top: 20px;
}

.tile .image-wrap {
    height: 200px;
}

.tile .crop-txt,
.tile2 .crop-txt {
    max-height: 65px;
}

.nexttoaside .tile {
    width: 48.5%;
}

.nexttoaside .tile:nth-child(3n-5),
.nexttoaside .tile:nth-child(3n-4) {
    margin-right: 0;
}

.nexttoaside .tile:nth-child(2n+1) {
    margin-right: 2.75%;
}

/*BUTTONS AND LINKS*/

button.backtotop {
    border: 1px solid #1d1d1b;
    background: url(../img/arrow-backtotop.svg) no-repeat #1d1d1b center 14px;
    background-size: 25px;
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 30px;
    right: 5%;
    z-index: 1000;
    display: none;
}

button.backtotop:hover {
    background: url(../img/arrow-backtotop-hover.svg) no-repeat #fff center 14px;
    background-size: 25px;
}


a,
button {
    cursor: pointer;
}

a.button,
button.shareopen,
#newsletter button {
    border: none;
    background-color: #1d1d1b;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 10px;
    border: #1d1d1b solid 1px;
}

a.button:hover,
button.shareopen:hover,
#newsletter button:hover {
    background-color: #fff;
    color: #1d1d1b;
}

a.ghostbutton {
    border: none;
    background-color: #fff;
    color: #1d1d1b;
    text-transform: uppercase;
    font-weight: 600;
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 10px;
    border: #1d1d1b solid 1px;
}

a.ghostbutton:hover {
    background-color: #1d1d1b;
    color: #fff;
}

a.arrowlink,
button.arrowlink {
    background: url('../img/icon_link.svg') no-repeat 0px 5px;
    background-size: 8px;
    padding-left: 18px;
    border-bottom: 1px solid #1d1d1b;
    margin-top: 15px;
    display: inline-block;
    padding-bottom: 2px;
}

a.arrowlink:hover,
button.arrowlink:hover {
    background: url('../img/icon_link.svg') no-repeat 0px 3px;
    background-size: 10px;

}

/*INCLUDE ALL WYSIWYG FIELDS*/
.section-head a,
a.arrowlink,
.underline,
a.hoverline:hover,
#about a,
aside h2 a:hover {
    border-bottom: 1px solid #1d1d1b;
}


a.underline:hover,
a.arrowlink:hover,
.section-head a:hover,
#about a:hover {
    font-weight: 600;
}




@media only screen and (max-width: 800px) {
    aside a.arrowlink {
        border: none;
        background: #1d1d1b;
        color: #fff;
        text-transform: uppercase;
        font-weight: 600;
        padding: 5px 10px;
        font-size: 12px;
        margin-right: 10px;
        border: #1d1d1b solid 1px;
    }

    aside a.arrowlink:hover {
        background: #fff;
        color: #1d1d1b;
        border: #1d1d1b solid 1px;
    }
}


/*GENERAL MEDIA QUERIES*/

@media only screen and (max-width: 1400px) {

    main,
    #cookienotice {
        padding-right: calc(5% + 92px);
        padding-left: calc(5% + 92px);
    }
}

@media only screen and (max-width: 1024px) {

    main {
        margin-top: 140px !important;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 500px) {
    #cookienotice {
        height: 170px;
        align-items: stretch;
        flex-direction: column;
    }

    #cookienotice p {
        margin: 20px 0;
    }
}

@media only screen and (max-width: 500px) {

    main {
        margin-top: 122px !important;
    }

}

@media only screen and (max-width: 420px) {

    main {
        margin-top: 122px !important;
    }

}


/* CAROUSEL */


.carousel .item-wrap {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 400px;
}

.carousel {
    overflow: hidden;
    position: relative;
    background: #000;
}

.carousel-item {
    position: relative;
    overflow: hidden;
    opacity: 0.2;
    -webkit-transition: opacity 1s;
    /* Safari */
    transition: opacity 1s;

}

.carousel-item.active {
    opacity: 1;
}

.carousel-item.active:hover img {
    opacity: 0.5;
}

.carousel .image-wrap {
    z-index: 1;
    height: 100%;
    position: relative;
    -webkit-transition: opacity 0.5s;
    /* Safari */
    transition: opacity 0.5s;
}

.carousel-arrows {
    position: absolute;
    width: 100%;
    z-index: 10;
    margin-top: -15px;
    top: 50%;
    height: 30px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 10px;
}

.arrow-before,
.arrow-next {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.arrow-before {
    background: url(../img/arrow-back.svg) no-repeat;
    background-size: contain;
}

.arrow-next {
    background: url(../img/arrow-next.svg) no-repeat;
    background-size: contain;
}

.arrow-before:hover {
    background: url(../img/arrow-back-hover.svg) no-repeat;
    background-size: contain;
}

.arrow-next:hover {
    background: url(../img/arrow-next-hover.svg) no-repeat;
    background-size: contain;
}

/*READ MORE*/

.readmorecut {
    overflow: hidden;
    display: block;
}

/* MASONRY */

.nexttoaside.grid{
    width: 67.75%;
    margin-right: -3.25%;
}

.masonrywrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    overflow: hidden;
}

.masonry-item  {
    cursor: pointer;
    margin-right: 2.75%;
}

.grid-sizer  {
    cursor: pointer;
    margin-right: 0;
}

.col2 .masonry-item, .grid-sizer {
    width: 48.5%;
}

#publication_grid .col2 .masonry-item {
    padding-right: 5%;
    box-sizing: border-box;
}

#publication_overview .col2 .masonry-item {
    width: 50%;
}

.masonrywrap.col3 .masonry-item {
    width: 31.5%;
}

.masonrywrap .masonrywrap-item:hover img {
    opacity: 0.5;
}

figcaption, .figcaption,
.fakefigcaption{
    font-size: 11px;
    color: #9d9d9c;
    margin: 12px 0 15px 0;
}

.fakefigcaption, .figcaption {
    display: inline-block;
}


/* HEADER & NAV & FOOTER & LOGO*/

header {
    -webkit-transition: height 2s;
    /* Safari */
    transition: height 2s;
    top: -30px;
}

header,
footer {
    position: fixed;
    background: #ffffff;
    width: 100%;
    z-index: 1001;
    padding: 0 17.5%;
    box-sizing: border-box;
}

footer {
    bottom: 0;
    padding-top: 26px;
    padding-bottom: 7px;
}

footer .wrap-center {
    width: 86%;
    text-align: center;
}

footer .wrap-right {
    margin-top: -25px;
    padding-bottom: 11px;
    float: right;
}

footer .wrap-left {
    float: left;
}

nav li,
footer li {
    display: inline-block
}

nav a.activenav {
    font-weight: 600;
}

nav a,
footer a,
footer span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

nav li:nth-last-child(n+2):after,
footer span:nth-child(1):after,
footer span:nth-child(2):after,
footer span:nth-child(3):after {
    display: inline-block;
    content: ' ';
    width: 0px;
    height: 10px;
    background: url(../img/slash.svg) center 1px no-repeat;
    background-size: contain;
    padding-left: 12px;
    padding-right: 12px;
}

nav .white li:nth-last-child(n+2):after,
footer .white span:nth-child(1):after,
footer .white span:nth-child(2):after,
footer .white span:nth-child(3):after {
    background: url(../img/slash_white.svg) center 1px no-repeat;
    background-size: contain;
}

nav .wrapLinks {
    text-align: center;
}

nav {
    -webkit-transition: padding 2s;
    /* Safari */
    transition: padding 2s;
    margin-top: 75px;
}

nav .wrap-right {
    -webkit-transition: margin 2s;
    /* Safari */
    transition: margin 2s;
}

nav .wrap-right {
    right: 23px;
}

nav .wrapLinks hr {
    height: 15px;
    background: #fff;
    border: none;
    margin: 8px 0;
    display: none;
}

header svg.logoLong {
    display: none;
    width: 500px;
    margin: 100px auto;
    -webkit-transition: all 1.5s;
    /* Safari */
    transition: all 1.5s;
}

header svg.logoShort {
    position: absolute;
    margin: 55px 0 0 29px;
    width: 64px;
    top: 0;
    display: none;
}

.logo {
    width: 100%;
    -webkit-transition: width 2s;
    /* Safari */
    transition: width 2s;
    display: block;
    cursor: pointer;

}

#E2,
#E3,
#E4,
#E5,
#E6,
#E7,
#E8,
#B2,
#B3,
#B4,
#und,
#subline {
    -webkit-transition: opacity 1s;
    /* Safari */
    transition: opacity 1s;
}

#E1 {
    -webkit-transition: transform 1s;
    /* Safari */
    transition: transform 1s;
}

.lang {
    position: relative;
    top: -15px;
    right: -93.5%;
    display: flex;
    margin-right: 90px;
}

.lang a {
    font-weight: 900;
    margin-left: 10px;
    display: block;
}

/* BURGER MENU*/

burger {
    float: right;
}

.burger {
    display: none;
}

.lines-button {
    transition: .3s;
    transition-delay: 0.3s;
    cursor: pointer;
    user-select: none;
}

.burger button {
    height: 28px;
    top: 33px;
    display: inline-block;
    border: none;
    background: transparent;
    outline: none;
    position: fixed;
    right: 6%;
    z-index: 800;
    margin-right: -10px;
}

.lines {
    display: inline-block;
    width: 35px;
    height: 4px;
    background: #1d1d1b;
    transition: 0.3s;
    position: relative;
}

button span {
    display: block;
}

.lines:after {
    top: -13px;
}

.lines:before {
    top: 13px;
}

.lines:before,
.lines:after {
    display: inline-block;
    width: 35px;
    height: 4px;
    background: #1d1d1b;
    transition: 0.3s;
    position: absolute;
    left: 0;
    content: '';
    transition: background-color 0.5s ease;
    -webkit-transform-origin: 0.28571rem center;
    transform-origin: 0.28571rem center;
    transition-delay: 0.1s;
}

.lines.white,
.lines.white:before,
.lines.white:after {
    background: #fff;
}

.lines-button:hover .lines:after {
    top: -12px;
}

.lines-button:hover .lines:before {
    top: 12px;
}

.lines-button.x.close .lines:after {
    -webkit-transform: rotate3d(0, 0, 1, -45deg);
    transform: rotate3d(0, 0, 1, -45deg);
    background: #fff;
}

.lines-button.x.close .lines:before {
    -webkit-transform: rotate3d(0, 0, 1, 45deg);
    transform: rotate3d(0, 0, 1, 45deg);
    background: #fff;
}

.lines-button.x.close .lines {
    background: transparent;
}

.lines-button.x.close .lines:before,
.lines-button.x.close .lines:after {
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    top: 0;
    width: 35px;
}

.lines-button.x2 .lines {
    transition: background .3s .6s ease;

    &:before,
    &:after {
        //set transform origin back to center
        transform-origin: 50% 50%;
        transition: top .3s .6s ease, transform .3s ease;
    }
}

.lines-button.x2.close .lines {

    transition: background .3s 0s ease;
    background: transparent;

    &:before,
    &:after {
        transition: top .3s ease, transform .3s .5s ease;
        top: 0;
        width: $button-size;
    }

    &:before {
        transform: rotate3d(0, 0, 1, 45deg);
    }

    &:after {
        transform: rotate3d(0, 0, 1, -45deg);
    }
}


.lang input {
    display: none;
    width: 0;
    margin-left: 10px;
}


/*NAV & FOOTER & LOGO & HEADER & BURGER MEDIA QUERIES*/

@media only screen and (max-width: 1400px) {

    header,
    footer {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media only screen and (max-width: 1024px) {

    span.line,
    header svg.logoLong {
        display: none;
    }

    nav,
    main,
    #cookienotice {
        padding-left: 5%;
        padding-right: 5%;
    }

    main {
        padding-bottom: 70px;
    }

    #foot {
        margin-bottom: -70px;
    }

    nav .wrap-right {
        right: calc((10% + 160px)*-1);
        float: none;
    }

    header svg.logoLong {
        margin: 35px auto -40px auto;
        width: 380px;
    }

    header svg.logoShort {
        display: block;
        margin-left: 0;
    }

    #E2,
    #E3,
    #E4,
    #E5,
    #E6,
    #E7,
    #E8,
    #B2,
    #B3,
    #B4,
    #und,
    #subline {
        opacity: 0;
    }

    #E1 {
        transform: translate(-170px);
    }

    .lang {
        float: none;
        position: absolute;
        margin-right: 0;
        top: 38px;
        right: 75%;
        word-break: keep-all;
    }

    .lang input,
    .lang .search {
        position: fixed;
        top: 37px;
    }

    .lang input {
        margin-left: 20px;
        width: 0px;
        height: 27px;
        right: 15%;
        padding-left: 5px;
    }

    .lang .search {
        height: 30px;
        width: 21px;
        right: 11%;
    }

    nav .wrapLinks {
        position: absolute;
        width: calc(10% + 170px);
        right: calc((20% + 170px)*-1);
        top: 30px;
        background-color: #1d1d1b;
        padding: 100px 5%;
        height: 4000px;
        text-align: right;
        transition: 0.5s;
        margin-top: 0px !important;
        box-sizing: border-box;
    }

    nav .wrapLinks hr,
    .burger {
        display: block;
    }

    nav .wrapLinks .burger a {
        font-size: 15px;
    }

    nav a {
        padding: 0;
        font-size: 22px;
        color: #fff;
        line-height: 40px;
        font-weight: 500;
        display: block;
        text-align: right;
        border-bottom: 1px solid #1d1d1b;
    }

    nav a.hoverline:hover {
        border-bottom: 1px solid #fff;
    }

    nav .lang a {
        font-size: 15px;
    }


    nav li {
        display: block;
        margin-top: -2px;
        padding: 0;
    }

    nav li:nth-last-child(n+2):after,
    nav .white li:nth-last-child(n+2):after,
    footer {
        display: none;
    }
}

@media only screen and (max-width: 600px) {

    .lang input,
    .lang .search {
        top: 33px;
    }

    .lang input {
        right: 92px;
    }

    .lang .search {
        right: 60px;
    }

    nav .wrapLinks {
        top: 10px;
    }

    header svg.logoShort {
        margin-top: 54px;
        width: 49px;
        top: 0;
        display: none;
    }


    .burger button {
        top: 29px;
    }

    .lines,
    .lines:before,
    .lines:after {
        height: 3px;
        width: 30px;
    }

    .lines:before {
        top: 11px;
    }

    .lines:after {
        top: -11px;
    }

    header {
        height: 120px !important;
    }
}


/* SECTION HEADER*/

.section-head {
    text-align: center;
}

.section-head .wrap-center {
    display: inline-block;
}

.section-head .blackbox,
.pagination .blackbox,
#artshow_overview .blackbox {
    width: 170px;
    height: 18px;
    background-color: #1d1d1b;
    margin: 0 23px 16px 0;
}

.section-head .blackbox:nth-child(n + 2) {
    width: 0;
}

.section-head h2 {
    margin-bottom: 18px;
}

.section-head h2,
.section-head p {
    text-align: left;
}

.section-head .blackbox,
.section-head p {
    float: left;
}

.section-head p {
    margin-top: -3px;
    max-width: 400px;
}

/*SECTION (-HEADER) MEDIA QUERIES*/

@media only screen and (max-width: 1024px) {

    section:first-child .section-head {
        margin-top: 0;
    }

    section:nth-child(n+2) {
        opacity: 1;
    }

    .section-head .blackbox {
        width: 170px;
    }

    .section-head {
        margin: 40px 0 45px 0;
    }
}

@media only screen and (max-width: 700px) {

    .section-head p {
        max-width: 240px;
    }

    .section-head {
        margin: 20px 0 35px 0;
    }

}

@media only screen and (max-width: 500px) {

    .section-head p {
        max-width: 100%;
    }

}

/* PAGINATION */

#publication_overview .pagination {
    margin-top: -50px;
}

.pagination,
.pagination ul {
    display: flex;
    justify-content: flex-end;
}

.pagination ul {
    font-weight: 900;
    font-size: 16px;
}

.pagination a {
    font-weight: 900;
    font-size: 16px;
    margin-left: 10px;
    white-space: nowrap;
}

.pagination .blackbox {
    margin-right: 10px;
}

.pagination a:hover,
.pagination a.active,
.pagination .active a {
    text-decoration: underline;
}

.pagination_next,
.pagination_prev {
    width: 36px;
    height: 36px;
    background-color: #1d1d1b;
    display: inline-block;
    border: 1px solid #1d1d1b;
    display: none;
}

.pagination_prev {
    background-image: url(../img/arrow-pagination-prev.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    margin-left: 15px;
}

.pagination_next {
    background-image: url(../img/arrow-pagination-next.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    margin-right: 15px;
}

.pagination_prev:hover {
    background-image: url(../img/arrow-pagination-prev-hover.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
}

.pagination_next:hover,
.pagination_prev:hover {
    background-color: #fff;
}

.pagination_next:hover {
    background-image: url(../img/arrow-pagination-next-hover.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
}

.pagination.shrinkpag .pagnumber:nth-child(2):after,
.pagination.shrinkpag .pagnumber:nth-last-child(2):before {
    display: inline-block;
    content: '...';
    margin-left: 10px;
}

.pagination.shrinkpag .pagnumber{
    display:none;
}

.pagination.shrinkpag .active,
.pagination.shrinkpag .pagnumber:nth-child(2),
.pagination.shrinkpag .pagnumber:nth-last-child(2) {
    display: inline-block;
}

.pagination.shrinkpag .onlylast3dots.pagnumber:nth-last-child(2):before,
.pagination.shrinkpag .onlyfirst3dots.pagnumber:nth-child(2):after{
    display: none;
}

@media only screen and (max-width: 1024px) {

    .pagination_next,
    .pagination_prev {
        display: inline-block;
    }

    .pagination ul {
        align-items: center;
    }

    .pagination .blackbox {
        display: none;
    }

}

/* SOCIAL MENU*/

.icon_ocula,
.icon_fb,
.icon_ig,
.icon_tw,
.icon_yt,
.icon_an,
.icon_ay,
.icon_fb,
.icon_ig,
.icon_tw,
.icon_yt,
.icon_an,
.icon_ay,
.icon_pi,
.icon_wa {
    width: 30px;
    height: 30px;
    display: inline-flex;
    background-repeat: no-repeat;
    background-position: center;
}

.black .icon_fb {

    background-image: url('../img/socialIcons_black_facebook.svg');
    background-size: contain;
}

.black .icon_fb:hover {
    background-image: url('../img/socialIcons_black_facebook_hover.svg');
    background-size: contain;
}

.black .icon_ig {
    background-image: url('../img/socialIcons_black_instagram.svg');
    background-size: contain;
}

.black .icon_ig:hover {
    background-image: url('../img/socialIcons_black_instagram_hover.svg');
    background-size: contain;
}

.black .icon_tw {
    background-image: url('../img/socialIcons_black_twitter.svg');
    background-size: contain;
}

.black .icon_tw:hover {
    background-image: url('../img/socialIcons_black_twitter_hover.svg');
    background-size: contain;
}

.black .icon_yt {
    background-image: url('../img/socialIcons_black_youtube.svg');
    background-size: contain;
}

.black .icon_yt:hover {
    background-image: url('../img/socialIcons_black_youtube_hover.svg');
    background-size: contain;
}

.black .icon_an {
    background-image: url('../img/socialIcons_black_artnet.svg');
    background-size: contain;
}

.black .icon_an:hover {
    background-image: url('../img/socialIcons_black_artnet_hover.svg');
    background-size: contain;
}

.black .icon_ay {
    background-image: url('../img/socialIcons_black_artsy.svg');
    background-size: contain;
}

.black .icon_ay:hover {
    background-image: url('../img/socialIcons_black_artsy_hover.svg');
    background-size: contain;
}

.black .icon_pi {
    background-image: url('../img/socialIcons_black_pinterest.svg');
    background-size: contain;
}

.black .icon_pi:hover {
    background-image: url('../img/socialIcons_black_pinterest_hover.svg');
    background-size: contain;
}

.black .icon_wa {
    background-image: url('../img/socialIcons_black_whatsapp.svg');
    background-size: contain;
}

.black .icon_wa:hover {
    background-image: url('../img/socialIcons_black_whatsapp_hover.svg');
    background-size: contain;
}

.black .icon_ocula{
    background-image: url('../img/socialIcons_black_ocula.png');
    background-size: contain;
}

.black .icon_ocula:hover{
    background-image: url('../img/socialIcons_black_ocula_hover.png');
    background-size: contain;
}


header .icon_fb,
header .icon_ig,
header .icon_tw,
header .icon_yt,
header .icon_an,
header .icon_ay {
    width: 24px;
    height: 34px;
    display: inline-flex;
    background-repeat: no-repeat;
    background-position: center;
}

.white .icon_fb {
    background-image: url('../img/socialIcons_white_facebook.svg');
    background-size: contain;
}

.white .icon_fb:hover {
    background-image: url('../img/socialIcons_white_facebook_hover.svg');
    background-size: contain;
}

.white .icon_ig {
    background-image: url('../img/socialIcons_white_instagram.svg');
    background-size: contain;
}

.white .icon_ig:hover {
    background-image: url('../img/socialIcons_white_instagram_hover.svg');
    background-size: contain;
}

.white .icon_tw {
    background-image: url('../img/socialIcons_white_twitter.svg');
    background-size: contain;
}

.white .icon_tw:hover {
    background-image: url('../img/socialIcons_white_twitter_hover.svg');
    background-size: contain;
}

.white .icon_yt {
    background-image: url('../img/socialIcons_white_youtube.svg');
    background-size: contain;
}

.white .icon_yt:hover {
    background-image: url('../img/socialIcons_white_youtube_hover.svg');
    background-size: contain;
}

.white .icon_an {
    background-image: url('../img/socialIcons_white_artnet.svg');
    background-size: contain;
}

.white .icon_an:hover {
    background-image: url('../img/socialIcons_white_artnet_hover.svg');
    background-size: contain;
}

.white .icon_ay {
    background-image: url('../img/socialIcons_white_artsy.svg');
    background-size: contain;
}

.white .icon_ay:hover {
    background-image: url('../img/socialIcons_white_artsy_hover.svg');
    background-size: contain;
}



/* SHAREBUBBLE */

.buttonwrap {
    position: relative;
}

#bubble {
    position: absolute;
    background: url(../img/sharebubble_long.svg) no-repeat;
    background-size: cover;
    padding: 12px 2px 28px 4px;
    width: 150px;
    top: -80px;
    right: 0;
}


#bubble .black {
    display: flex;
    justify-content: space-evenly;
}

button.shareopen {
    cursor: pointer;
}

button.shareopen,
.button:last-child {
    margin-right: 0
}

@media only screen and (min-width: 700px) {

    .icon_wa {
        display: none;
    }


    #bubble {
        background: url(../img/sharebubble_short.svg) no-repeat;
        background-size: cover;
        width: 96px;
    }

}

/* INDEX / HOME PAGE */

/* MAIN SLIDER */

#home-carousel {
    margin: 19px 0 0 0;
    position: relative;
    background: #000;
}

#home .carousel-item {
    cursor: pointer;
    height: 400px;
}

#home .carousel-item img{
    min-height: 400px;
}

#publication_overview .carousel-item img{
    min-height: 400px;
}

#home-carousel .txt-wrap {
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    max-width: 50%;
    padding: 3%;
    box-sizing: border-box;
}

#home-carousel .txt-wrap:before {
    display: block;
    width: 80%;
    height: 18px;
    margin-top: -9px;
    background: #1d1d1b;
    position: absolute;
    left: -1px;
    top: 0;
    content: '';
}

@media only screen and (max-width: 1024px) {

    #home-carousel {
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 700px) {

    #home-carousel {
        margin-bottom: 40px;
    }
    
    #publication_overview .carousel-item img{
        min-height: 300px;
    }

}


/* PREVIEW EXHIBITIONS*/

.exhibitionhighlight {
    display: flex;
    justify-content: space-between;
    margin: 55px 0 30px 0;
}

.exhibitionhighlight p:last-child {
    margin: 10px 0 15px 0;
}

.exhibitionhighlight .bold {
    font-size: 11px;
    white-space: nowrap;
}

/*PREVIEW ART FAIRS*/

.fairhighlight {
    display: flex;
    justify-content: space-between;
    margin: 55px 0 30px 0;
    position: relative;
}

.fairhighlight .tile {
    cursor: auto;
}

.fairhighlight .tile {
    margin-right: 0;
    margin-left: 2.75%;
}

.fairhighlight .tile p.hashtag {
    margin-top: 0;
}

#artfairs .item-wrap {
    display: flex;
    justify-content: flex-start;
}

/* ART OF THE MONTH*/

#artofthemonth .image-wrap:after,
#artist-work .masonrywrap .image-wrap:after,
#selectedArtwork .masonrywrap .image-wrap:after,
#Artwork_of_artist .masonrywrap .image-wrap:after,
#Artwork_of_artshow .masonrywrap .image-wrap:after {
    display: block;
    color: #fff;
    font-weight: 700;
    /* content: 'ERFAHREN SIE MEHR ÜBER DIESES HIGHLIGHT';  */
    transition: opacity 0.5s;
    padding: 0 5%;
    width: 90%;
    opacity: 0;
    font-size: 20px;
    line-height: 26px;
    position: absolute;
    top: 45%;
    bottom: 55%;
    text-align: center;
}

#artofthemonth .image-wrap:hover:after,
#artist-work .masonrywrap .image-wrap:hover:after,
#selectedArtwork .masonrywrap .image-wrap:hover:after,
#Artwork_of_artist .masonrywrap .image-wrap:hover:after,
#Artwork_of_artshow .masonrywrap .image-wrap:hover:after {
    display: block;
    opacity: 1;
}

/*PREVIEW NEWS*/

#news .head-news,
.morenews {
    display: flex;
    justify-content: space-between;
}

.morenews .news-item {
    width: 31.5%;
}

#news .head-news .wrap-right {
    width: 65.5%;
    order: 2;
}

#news .head-news .wrap-left {
    width: 31.5%;
    order: 1;
}

#news .news-item:hover h3 {
    text-decoration: underline;
}

#news .news-item img {
    cursor: pointer;
}

#News-content .tile{
    margin-bottom:15px;
}

/* FOOTER HOME PAGE*/

#foot {
    background: #d0d0d0;
    padding-top: 75px;
    padding-bottom: 75px;
    display: flex;
    padding-right: calc(33.5% + 92px);
    padding-left: calc(33.5% + 92px);
    margin-left: calc(-33.5% - 92px);
    margin-top: 80px;
    width: 100%;
}

#foot h2:after {
    display: block;
    width: 170px;
    height: 18px;
    background: #1d1d1b;
    transition: 0.3s;
    position: relative;
    left: 0;
    top: 20px;
    content: '';
    margin-bottom: 20px;
}

#foot .tile {
    cursor: auto;
}

#foot p,
#foot ul {
    margin-top: 20px;
}

#foot ul:nth-child(2) {
    display: inline-block;
}

#foot h1 {
    font-size: 17px;
    line-height: 20px;
}

.logobgimg {
    margin-bottom: 20px;
    width: 100%;
    height: 50px;
    background-image: url(../img/logo_long.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

#home #artfairs .tile:nth-child(4), #home #news .tile:nth-child(4), #home #exhibitions .tile:nth-child(4){
        display:none;
    }

/*MAIN PAGE MEDIA QUERIES*/


@media only screen and (max-width: 800px) {
    
    
    #home #artfairs .tile:nth-child(4), #home #news .tile:nth-child(4), #home #exhibitions .tile:nth-child(4){
        display:block;
    }


    .tile,
    .tile2,
    .exhibitionhighlight,
    .fairhighlight {
        width: 48.5%;
        margin-top: 0;
    }

    #home .tile,
    #home .tile2,
    #home .exhibitionhighlight,
    #home .fairhighlight {
        margin-bottom: 50px;
    }

    #home .tile,
    .exhibitionhighlight {
        position: relative;
    }

    #home .buttonwrap {
        position: absolute;
        bottom: 0;
    }

    #home #exhibitions .tile .txt-wrap,
    #home #artfairs .tile .txt-wrap {
        margin-bottom: 47px;
    }


    .tile:nth-child(3n-5),
    .tile:nth-child(3n-4) {
        margin-right: 0;
    }

    .tile:nth-child(2n-3) {
        margin-right: 2.75%;
    }

    .exhibitionhighlight .tile,
    .fairhighlight .tile2 {
        width: 100%;
        max-height: 200px;
    }

    .fairhighlight .item-wrap {
        height: 200px;
    }

    .fairhighlight .tile {
        margin-left: 0;
    }

    .exhibitionhighlight,
    .fairhighlight {
        flex-direction: column;
    }

    .exhibitionhighlight .crop-txt,
    .exhibitionhighlight .buttonwrap a:first-child,
    .fairhighlight p:nth-child(4),
    .fairhighlight .buttonwrap,
    .fairhighlight .carousel-arrows,
    .fairhighlight .carousel-item {
        display: none;
    }

    .exhibitionhighlight .txt-wrap,
    .fairhighlight .tile {
        margin-top: -30px;
        width: 100%;
    }

    .fairhighlight .carousel-item.active {
        display: block;
    }

    .carousel-item p {
        margin: 6px 0 27px 0;
    }
    
    .carousel-item .hashtag{
        margin-bottom: 12px;
    }

    .news-item p {
        margin: 16px 0 27px 0;
    }

    .news-item h4 {
        margin-top: 0;
    }
    .tile p.hashtag,
    .tile2 p.hashtag {
        margin-top: 12px;
        margin
    }

    .fairhighlight .tile p.hashtag {
        margin-top: 13px;
    }

    

    #home .tile,
    #home .tile2,
    #home .exhibitionhighlight,
    #home .fairhighlight {
        margin-bottom: 30px;
    }

    #foot .tile:nth-child(1) {
        order: 2;
        margin-top: 30px;
        margin-bottom: 0;
    }

    #foot .tile:nth-child(2) {
        order: 3;
        width: auto;
        margin-top: 30px;
        margin-bottom: 0;
    }

    #foot .tile:nth-child(3) {
        order: 1;
        width: 100%;
    }

}

@media only screen and (max-width: 500px) {
    
    #home #artfairs .tile:nth-child(4), #home #news .tile:nth-child(4), #home #exhibitions .tile:nth-child(4){
        display:none;
    }

    #home-carousel {
        margin-bottom: -30px;
    }

    #home-carousel .carousel {
        margin-left: -6%;
        width: 112%;
    }

    #home-carousel .txt-wrap {
        max-width: 70%;
        width: 70%;
    }

    #home #artfairs {
        margin-top: 50px;
    }

    .tile,
    .tile2,
    .exhibitionhighlight,
    .fairhighlight,
    .masonry-item {
        width: 100% !important;
    }

    .tile:nth-child(2n-3),
    .nexttoaside .tile:nth-child(2n+1) {
        margin-right: 0;
    }

    .nexttoaside h2:before,
    .dgsvoagb h2:before,
    .dgsvoagb h3:before {
        display: none;
    }

    .nexttoaside h2 {
        padding-left: 0;
    }

    .nexttoaside h2:after {
        width: 100%;
        height: 14px;
        background: #1d1d1b;
        position: relative;
        margin: 25px 0;
        left: 0;
        content: '';
        display: block;
    }

    .masonrywrap {
        height: auto !important;
        flex-wrap: nowrap;
    }

    .tile .image-wrap,
    .tile2 .image-wrap {
        height: 300px;
    }
    
    .tile img, .tile2 img  {
        min-height: 300px;
    }

    .tile {
        margin-top: 15px;
    }

    .morenews .news-item {
        display: block;
    }

    .news-item h4 {
        float: right;
        margin-top: 5px;
    }

    .news-item h3 {
        margin-top: 8px;
    }

    .section-head {
        margin: 60px 0 25px 0;
        text-align: left;
    }

    .section-head .blackbox,
    .section-head .wrap-center {
        width: 100%;
    }

    #foot {
        padding-top: 45px;
        padding-bottom: 45px;
        margin-top: 30px;
    }

    #foot .tile:nth-child(1),
    #foot .tile:nth-child(2) {
        width: auto !important;
    }

    .exhibitionhighlight .tile,
    .fairhighlight .tile2 {
        max-height: none;
    }

    .exhibitionhighlight .tile2 p.hashtag {
        margin: 12px 0 0 0;
    }

    #artfairs .section-head,
    #artofthemonth .section-head {
        margin-top: -20px;
    }

    #news .section-head {
        margin-top: 30px;
    }
}

@media only screen and (max-width: 400px) {


    #home-carousel {
        background: transparent;
        margin-bottom: 20px;
    }

    #home #exhibitions {
        margin-top: -40px;
    }

    .tile .image-wrap,
    .tile2 .image-wrap,
    .news-wrap .tile:last-child .image-wrap {
        height: 200px;
    }
    
    .tile img, .tile2 img  {
        min-height: 200px;
    }

    .exhibitionhighlight .txt-wrap,
    .fairhighlight .tile {
        margin-top: 0;
        margin-bottom: 40px;
    }

    #home-carousel .txt-wrap {
        width: 80%;
    }

    .tile,
    .tile2,
    .exhibitionhighlight,
    .fairhighlight {
        margin-bottom: 0;
    }

    #foot .tile:nth-child(1),
    #foot .tile:nth-child(2) {
        width: 100% !important;
    }

}

/*ARTIST OVERVIEW*/


#art-trade .tile {
    width: 47.5%;
}

#art-trade .tile:nth-child(3n-5),
#art-trade .tile:nth-child(3n-4) {
    margin: 0;
}


#art-trade .tile:nth-child(2) {
    margin-right: 5%;
}


#art-trade .tile .image-wrap {
    height: 100px;
}

#art-trade .tile img, #art-trade .tile2 img  {
    min-height: 100px;
}

.artists div img {
    width: 100%;
}

#galerie-artist .wrap-tiles p {
    padding: 15px 0 25px 0;
    font-size: 14px;
}

#galerie-artist .wrap-tiles p,
#art-trade .wrap-tiles p {
    text-transform: uppercase;
    font-weight: 700;
}

#galerie-artist .wrap-tiles p {
    text-align: center;
}

#art-trade .wrap-tiles p {
    padding: 10px 0 20px 0;
}

#galerie-artist .section-head,
#art-trade .section-head,
#art-trade .wrap-tiles {
    margin-right: 10%;
}

#galerie-artist .section-head p,
#art-trade .section-head p {
    max-width: 300px;
}

#art-trade .wrap-tiles {
    margin: 0 auto;
    width: 593px;
}

/*ARTIST OVERVIEW MEDIA QUERIES*/

@media only screen and (max-width: 1700px) {

    #galerie-artist .section-head,
    #art-trade .section-head {
        margin-right: 20%;
    }

    #art-trade .wrap-tiles {
        padding-right: 8.5%;
    }
}

@media only screen and (max-width: 1500px) {

    #galerie-artist .section-head,
    #art-trade .section-head {
        margin-right: 30%;
    }

    #art-trade .wrap-tiles {
        padding-right: 16.5%;
    }
}


@media only screen and (max-width: 1400px) {

    #galerie-artist .section-head,
    #art-trade .section-head {
        margin-right: 20%;
    }

    #art-trade .wrap-tiles {
        padding-right: 10%;
    }
}

@media only screen and (max-width: 1300px) {

    #art-trade .wrap-tiles {
        padding-right: 9%;
    }
}

@media only screen and (max-width: 1200px) {

    #art-trade .wrap-tiles {
        padding-right: 8%;
    }
}

@media only screen and (max-width: 1100px) {

    #art-trade .wrap-tiles {
        padding-right: 7%;
    }
}

@media only screen and (max-width: 1024px) {

    #galerie-artist .section-head,
    #art-trade .section-head {
        margin-right: 0;
        text-align: left;
    }

    #art-trade .wrap-tiles {
        margin: 0;
        width: 80%;
    }
}

@media only screen and (max-width: 800px) {

    #galerie-artist .section-head,
    #art-trade .section-head {
        text-align: center;
    }

    #art-trade .wrap-tiles {
        margin: 0 auto;
        margin-right: -2%;
    }


}

@media only screen and (max-width: 550px) {
    #art-trade .tile {
        margin: 0;
        width: 100%;
    }

    #art-trade .wrap-tiles {
        margin: 0;
    }
}

@media only screen and (max-width: 500px) {


    #art-trade .lettersearch {
        display: none;
    }


}

@media only screen and (max-width: 400px) {}

/*SEARCH BY LETTER*/

.lettersearch {
    position: absolute;
    right: 0;
    width: 173px;
    margin-right: calc(17.5% + 92px);
    margin-top: -145px;
}

.lettersearch ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.lettersearch ul li {
    color: #ccc;
    font-size: 15px;
    font-weight: 700;
}

.lettersearch ul li {
    margin-left: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #fff;
}

.lettersearch ul li.hasentry a{
    cursor: pointer;
    color: #1d1d1b;
    font-size: 15px;
    font-weight: 700;
}

/*SEARCH BY LETTER MEDIA QUERIES*/

@media only screen and (max-width: 1400px) {

    .lettersearch {
        margin-right: calc(5% + 92px);
    }

}

@media only screen and (max-width: 1024px) {

    .lettersearch {
        margin-right: 5%;
        margin-top: -136px;
    }

}

@media only screen and (max-width: 800px) {

    .lettersearch {
        margin: 0 auto;
        position: initial;
        width: 102%;
        margin-left: -2%;
        margin-bottom: 50px;
    }

    .lettersearch ul li {
        font-size: 15px;
        margin: 0;
    }

}

@media only screen and (max-width: 500px) {

    .lettersearch {
        margin-bottom: 5px;
    }

    .lettersearch ul li {
        margin: 0 3.1% 10px 3.1%;
    }
}



/*ARTIST SINGLE PAGE*/


#artist .flexwrap .image-wrap:nth-child(n+2) {
    margin-left: 3.5%;
}

#artist .flexwrap .txt-wrap {
    width: 100%;
}

#artist .textToBox {
    margin-top: 20px;
}

#artist table td {
    padding-right: 20px;
    vertical-align: top;
    word-break: normal;
}

#artist-bio td:first-child {
    width: 80px;
}

#artist-bibliografie tr {
    padding-bottom: 15px;
    display: block;
}

#artist-bibliografie .arrowlink {
    margin-top: 20px;
}

#artist-bibliographie p {
    -webkit-box-shadow: inset 0px -163px 99px -104px rgba(255, 255, 255, 1);
    -moz-box-shadow: inset 0px -163px 99px -104px rgba(255, 255, 255, 1);
    box-shadow: inset 0px -163px 99px -104px rgba(255, 255, 255, 1);
}

.work-preview {
    position: relative;
    margin-bottom: 110px;
}

.work-preview .image-wrap {
    background: transparent;
    width: auto;
}

.work-preview .image-wrap:nth-child(n+7) {
    display: none;
}

.work-preview .image-wrap:nth-child(6) {
    position: absolute;
    left: -2px;
    bottom: -50px;
    width: 175px !important;
    padding: 0;
    overflow: initial;
    margin-left: 0 !important;
}

.work-preview .image-wrap:nth-child(6) img {
    display: none;
}

.publication-item .tile:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.publication-item .buttonwrap {
    justify-content: flex-end;
}

.publication-item h3 {
    margin-top: 0;
    margin-right: 10%;
}

.publication-item .minititle {
    margin-bottom: 20px;
}

.publication-item .image-wrap {
    background: transparent;
    overflow: inherit;
}

.publication-item .image-wrap a {
    background: #000;
    display: inline-block;
    margin-top: 1px;
    margin-left: 1px;
}

#publication_overview .publication-item .image-wrap a {
    width: 100%;
    margin-bottom: -4px
}

#artist-publications .publication-item {
    margin-bottom: 30px;

}

#artist-publications .ghostbutton,
#artist-work .ghostbutton {
    margin-top: 30px;
    display: block;
    width: 150px;
    width: fit-content;
}

#artist-work .ghostbutton img {
    display: none;
}

.lispacer {
    margin-bottom: 15px;
}

#artist-life span {
    display: block
}

#artist-life .moreartistinfo {
    margin-top: 15px;
    display: none;
    overflow: hidden;
}


#artist-life .readmore {
    margin-top: 21px;
}

#artist-life .image-wrap {
    float: right;
    margin: -40px 0 16px 20px;
    height: auto;
    width: 48.5%;
    background: transparent;
}

#artist.nocontent p.morews,
#artist.nocontent ul {
    margin-top: 20px;
}

#artist.nocontent li a {
    margin-top: 10px;
}


#artist.nocontent .image-wrap {
    width: 65.5%;
    margin-right: 2.5%;
}

/*ARTSHOW OVERVIEW PAGE*/

#artshow_overview .wrap-tiles {
    flex-wrap: wrap;
}

#artshow_overview .tile, #artfair_overview .tile{
    margin-bottom: 30px;
}

.buttonwrap a,
.buttonwrap button {
    min-width: fit-content;
}

/*#artshow_overview .head{
    display: flex;
    justify-content:space-between;
    width:100%;
    margin-bottom:50px;
    padding-top: 30px;
}

#artshow_overview .location:nth-child(1){
    margin-left:13%;
}

#artshow_overview .location:nth-child(2){
    margin-right:8%;
}

#artshow_overview .blackbox{
    -webkit-transition: width 1s; 
    transition: width 1s;
}

#artshow_overview .blackbox{
    width:0;
    margin-top:20px;
}

#artshow_overview .active .blackbox, #artshow_overview .location:hover .blackbox{
    width:185px;
}

#artshow_overview .section-head .blackbox{
    width:170px;
    margin-top:0;
}

#artshow_overview .location {
    cursor:pointer;
}

#artshow_overview .section-head.mobile{
    text-align:left;
    margin-bottom:0;
}

.location.active{
    border:none!important;
}


@media only screen and (max-width: 850px) {
    
    #artshow_overview .head h2:nth-child(1){
        margin-left:0;
    }
    
}

*/

#artshow_overview .head a,
#artfair_overview .head a {
    font-size: 20px;
    line-height: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    cursor: pointer;
    padding-bottom: 2px;
    border-bottom: 1px solid #fff;
    display: inline-block;
}

#artfair_overview .head,
#artshow_overview .head {
    float: right;
    margin-top: -138px;
}


#artshow_overview .category,
#artshow_overview .category a {
    text-align: right;
}

#artfair_overview .section-head,
#artshow_overview .section-head {
    width: calc(100% - 110px);
}

#artshow_overview .head .category a:hover,
#artfair_overview .head .category a:hover,
#artshow_overview .head .category a.active,
#artfair_overview .head .category a.active,
#artfair_overview .head.category a.active,
#artshow_overview .head.category a.active,
.lettersearch .active,
.lettersearch ul li.hasentry:hover {
    border-bottom: 1px solid #1d1d1b;

}

@media only screen and (max-width: 1024px) {

    #artfair_overview .head,
    #artshow_overview .head {
        margin-top: -125px;
    }

}

@media only screen and (max-width: 800px) {

    #artfair_overview .section-head,
    #artshow_overview .section-head {
        width: 100%;
    }

    aside {
        margin-bottom: 30px;
    }

    .asidenav,
    .asideshare,
    .grandopening {
        display: flex;
        flex-wrap: wrap;
    }

    .asideshare li:not(:first-child) {
        padding-top: 8px;
        padding-left: 10px;
        max-width: calc(100% - 110px);
    }

    .grandopening li:first-child {
        margin-right: 30px;
    }

    .grandopening .arrowlink {
        color: #1d1d1b;
        background: #fff;
    }

    .grandopening .arrowlink:hover {
        color: #fff;
        background: #1d1d1b;
    }

    #artfair_overview .head,
    #artshow_overview .head {
        float: none;
        margin: 0 0 30px 0;
    }

    #artfair_overview .head.mobile,
    #artshow_overview .head.mobile {
        margin-top: 60px;
    }

    .category,
    .mobile.category {
        display: flex;
        justify-content: space-around;
    }
}

@media only screen and (max-width: 500px) {

    .work-preview .image-wrap:nth-child(-n+5) {
        display: none;
    }

    #artist-life .image-wrap {
        float: none;
        width: 100%;
        margin: 0 0 25px 0;
    }

    .category {
        justify-content: space-between;
    }

    #artfair_overview .head,
    #artshow_overview .head {
        margin: 0 0 15px 0;
    }
}

/*ARTSHOW SINGLE PAGE*/

#artshow_single .tile:last-child {
    margin-right: 0;
}

#pressRelease .txt-wrap {
    position: relative;
}

#artshow_single #pressRelease p {
    margin-bottom: 20px;
}

#artshow_single #pressRelease .readmore {
    margin-top: -20px;
}

#artshow_single #pressRelease p.presstext {
    overflow: hidden;
}

#installationPreview .flexwrap .image-wrap,
#artshow_single #selectedArtwork .flexwrap .image-wrap {
    width: 48.5%;
}

#installationPreview .work-preview .image-wrap:nth-child(n+1),
#artshow_single #selectedArtwork .work-preview .image-wrap:nth-child(n+1),
#Artwork_of_artist .work-preview .image-wrap:nth-child(n+1),
#Artwork_of_artshow .work-preview .image-wrap:nth-child(n+1) {
    margin-left: 3%;
}

#artshow_single section h2 {
    margin-bottom: 25px;
    display: inline-block;
}

#artshow_single section#pressRelease h2 {
    padding-left: 0;
}

#artshow_single .flexwrap {
    align-items: flex-start;
}


#artshow_single .flexwrap .txt-wrap {
    margin-top: 13px;
}

#artshow_single section h2:before {
    display: inline-block;
    width: 170px;
    height: 18px;
    margin-right: 20px;
    background: #1d1d1b;
    transition: 0.3s;
    position: relative;
    left: 0;
    content: '';
}

#artshow_single section#pressRelease h2:before {
    display: none;
}

#home .masonry-item {
    width: 31.5%;
}

#artshow_single .masonry-item {
    width: 48.5%;
}

#selectedArtwork .masonrywrap .image-wrap:nth-child(2n+1),
#Artwork_of_artist .masonrywrap .image-wrap:nth-child(2n+1),
#Artwork_of_artshow .masonrywrap .image-wrap:nth-child(2n+1) {
    margin-right: 3%;
}

.fixed {
    position: fixed;
    top: 100px;
}

.buttonwrap.mobile,
#artshow_overview .mobile,
.mobile {
    display: none;
}

@media only screen and (max-width: 800px) {

    #home .masonry-item {
        width: 48.5%;
    }

    .mobile {
        display: block;
    }

    aside {
        display: block !important;
        width: 100%;
        position: inherit;
        float: none;
    }

    .nexttoaside {
        width: 100%;
        float: none;
    }
    
    .nexttoaside.grid{
        width:106%;
    }

    .buttonwrap.mobile,
    #artshow_overview .mobile {
        display: flex;
    }
}

@media only screen and (max-width: 500px) {

    #selectedArtwork .masonrywrap .image-wrap:nth-child(2n+1),
    #Artwork_of_artist .masonrywrap .image-wrap:nth-child(2n+1),
    #Artwork_of_artshow .masonrywrap .image-wrap:nth-child(2n+1) {
        margin-right: 0;
    }

    #artshow_single .publication-item .flexwrap,
    #artshow_video .flexwrap {
        flex-direction: column;
    }

    #artshow_single section h2:before {
        display: none;
    }
}

/* NEWS OVERVIEW */

#news_overview .tile {
    margin-bottom: 50px;
}

/* ART OF THE MONTH*/

#news_overview .image-wrap:after {
    display: block;
    color: #fff;
    font-weight: 700;
    transition: opacity 0.5s;
    padding: 0 5%;
    width: 90%;
    opacity: 0;
    font-size: 20px;
    line-height: 26px;
    position: absolute;
    top: 45%;
    bottom: 55%;
    text-align: center;
}

#news_overview .image-wrap:hover:after {
    display: block;
    opacity: 1;
}


/* NEWS SINGLE */

#Artwork_of_artist .button {
    display: inline-block;
    margin-top: 30px;
}

#pastExhibitions h3, #News-content .image-wrap, #publication-content .image-wrap {
    margin-top: 20px;
}


/* SHOWROOM */

#showroom p,
#showroom h2,
#showroom h1,
#showroom h3,
#showroom h4,
#showroom h5,
#showroom span,
#showroom a,
#showroom figcaption,
#showroom img {
    color: #fff;
}

#showroom .hoverline {
    border-bottom-color: #fff;
}

#showroom h1,
#showroom h1 span,
#showroom h2 {
    letter-spacing: 1px;
    text-align: left;
}

#showroom h1 span {
    padding-left: 10px;
    font-weight: 300;
}

#showroom figcaption {
    text-transform: uppercase;
}

#showroomInstallation {
    margin-bottom: 40px;
}

#showroomInstallation .image-wrap {
    margin-left: -40%;
    width: 180%;
    max-height: 800px;
    display: flex;
}

#showroomInstallation .image-wrap img {
    align-self: center;
}

#showroom .blackbox {
    width: 210px;
    background-color: #fff;
}

#showroom_bottom {
    margin-bottom: 200px;
}

#showroom_top {
    margin-bottom: 20px;
}

@media only screen and (max-width: 800px) {

    #showroomInstallation {
        display: none;
    }

}

@media only screen and (max-width: 500px) {

    #showroom .blackbox {
        width: 100%;
    }

    #showroom_bottom {
        margin-top: 50px;
        margin-bottom: 60px;
    }

    #showroom h1 span {
        padding-left: 0;
        display: block;
        margin-bottom: 10px;
    }

}


/*PUBLICATION OVERVIEW*/

#publication_overview .publication-item {
    margin-bottom: 45px;
    position: relative;
}

#publication_overview .publication-item .content-wrap {
    position: relative;
    padding-bottom: 40px;
}

#publication_overview .publication-item .buttonwrap {
    position: absolute;
    right: 0;
    bottom: 0;
}

#publication_overview .publication-item h3 {
    font-size: 16px;
    line-height: 18px;
    margin-top: 15px;
}

#publication_overview .publication-item .image-wrap,
#artist-publications .publication-item .image-wrap a {
    -webkit-box-shadow: 3px 3px 10px -2px rgba(51, 51, 51, 1);
    -moz-box-shadow: 3px 3px 10px -2px rgba(51, 51, 51, 1);
    box-shadow: 3px 3px 10px -2px rgba(51, 51, 51, 1);
}

#publication_overview .publication-item h3,
#publication_overview .publication-item p:nth-last-child(n + 2) {
    margin-bottom: 15px;
}

#publication_overview .lettersearch {
    position: inherit;
    margin: 0 0 20px 0;
}

#publication_overview aside p {
    margin-bottom: 20px;
}

#publication_overview .asidenav {
    margin-top: 50px;
}

#publication_overview h5 {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-bottom: 2px;
    display: initial;
}

#publication_overview .lettersearch,
#publication_overview .genresearch {
    margin-top: 20px;
}

#publication_overview .main-img {
    display: block;
}

.genresearch span,
#publication_overview h5,
#publication_overview label {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.genresearch span {
    padding-bottom: 2px;
    border-bottom: 1px solid #fff;
    cursor: pointer;
}

.genresearch span:after {
    content: '';
    display: block;
    margin-bottom: 13px;
}

.genresearch span:hover {
    border-bottom: 1px solid #1d1d1b;
}

#publication_overview input {
    margin: 0 10px;
}

input {
    border: 1px solid #1d1d1b;
}


.search {
    height: 17px;
    width: 14px;
    background: url(../img/icon_search.svg) no-repeat center 2px;
    background-size: contain;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.search.white {
    background: url(../img/icon_search_white.svg) no-repeat center 2px;
    background-size: contain;
}

.searchnav div {
    float: left;
}

@media only screen and (max-width: 800px) {

    #publication_overview .asidenav {
        display: block;
    }

}

/*PUBLICATION SINGLE*/

iframe,
object {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

i.videoframe {
    height: auto;
    margin-top: 25px;
}

#publication_single aside .button {
    margin: 10px 0;
    display: inline-block;
}

#publication_single #bookpreview .button {
    float: right;
    margin-right: 0;
}

#publication_single .viewSimilar .tile .image-wrap {
    height: auto;
}

#publication_single #publication_artshow .tile.txt-wrap {
    position: relative;
}

#publication_single #publication_artshow .button {
    right: 0;
    position: absolute;
    bottom: 0;
}

@media only screen and (max-width: 800px) {

    #publication_single aside .button {
        margin: 0 10px 0 0;
        display: inline-block;
    }

    #publication_single aside .asidenav {
        margin: 30px 0 20px 0;
    }

    #publication_single #publication_artshow .button {
        position: inherit;
        display: inline-block;
        margin-top: 20px;
    }

}

/* CONTACT */

.contact-img {
    position: relative;
    height: 400px;
    background: none;
}

.contact-img img,
.contact-img .logobgimg {
    position: absolute;
    top: 0;
}

.contact-img img {
    opacity: 0.5;
    min-height: 400px;
}

.contact-img .logobgimg {
    background-size: 60%;
    background-position: center;
    height: 100%;
}

#contact aside ul,
#contact .asideshare li:first-child,
#about p {
    margin-bottom: 15px;
}

#contact aside .location-wrap div:nth-child(n+2),
#contact aside .share-wrap {
    margin-top: 30px;
}

#contact #contact_vie h2,
#contact #contact_due h2 {
    padding-left: 0;
}

#about .wrap-tiles {
    margin: 30px 0 50px 0;
}

#contact_vie ul,
#contact_due ul {
    margin-bottom: 15px;
}

#contact aside .arrowlink.mobile {
    display: none;
}

#contact aside .asidenav li,
#contact aside .asidenav {
    margin-bottom: 10px;
}

#team h1 {
    margin-bottom: 30px;
}

#team .team-item {
    margin-bottom: 20px;
}

#team .team-item li:first-child {
    text-transform: uppercase;
}

#team .ceo:after,
#team .director:after {
    width: 150px;
    height: 14px;
    background: #1d1d1b;
    position: relative;
    margin: 25px 0;
    left: 0;
    content: '';
    display: block;
}

#team .team-item.flexwrap {
    justify-content: flex-start;
}

.team-item .image-wrap {
    width: 150px;
    margin-right: 2.75%;
}

.setlink {
    display: none;
}


@media only screen and (max-width: 800px) {
    #contact aside .location-wrap {
        display: flex;
        justify-content: space-around
    }

    #contact aside div:nth-child(2) {
        margin-top: 0;
    }

    #contact .asideshare {
        margin: 20px auto 0 auto;
    }

    aside .share-wrap {
        display: flex;
    }

    #contact .asidenav {
        display: flex;
        margin-bottom: 40px;
    }

    .location-wrap h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .location-wrap h2:after {
        display: none;
    }

    .setlink {
        display: none !important;
    }
}

@media only screen and (max-width: 500px) {
    #contact aside .location-wrap {
        display: block;
    }

    #contact .asideshare {
        margin: 20px 0 0 0;
    }
    
    #team .team-item.flexwrap {
        flex-direction: column;
    }
    
    .team-item .image-wrap {
        width: 100%;
        margin-right: 0;
        margin-bottom:15px;
    }
}

/* IMPRESSUM */

#imprint .top-wrap {
    display: flex;
    margin-bottom: 50px;
}

#imprint .top-wrap ul.center-wrap {
    margin: 0 auto;
}

#imprint .wrap-left {
    display: flex;
}

#imprint li,
#imprint h1,
#imprint h2,
#imprint h3 {
    margin-bottom: 15px;
}

.textonly_page .blackbox {
    width: 200px;
    height: 18px;
    background-color: #1d1d1b;
    margin: 0 23px 16px 0;
}

#imprint .top-wrap .last-item .blackbox {
    background-color: #fff;
}

#imprint .top-wrap .last-item {
    margin-top: 60px;
}

#imprint ol {
    counter-reset: my-counter;
}

#imprint ol li:before {
    content: counter(my-counter, decimal)'.';
    counter-increment: my-counter;
    display: block;
}

#imprint .textonly-item {
    margin-bottom: 50px;
}

.dgsvoagb h1 {
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 32px;
    margin-bottom: 50px;
    text-align: center;
}

.dgsvoagb h2,
.dgsvoagb h3 {
    font-size: 20px;
    line-height: 22px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.dgsvoagb h2 {
    padding-left: 180px;
}

.dgsvoagb p {
    margin-bottom: 30px;
}

@media only screen and (max-width: 700px) {
    #imprint .wrap-left {
        display: block;
    }

    #imprint .top-wrap ul.center-wrap {
        margin: 0;
    }

    #imprint ul li:nth-child(n+2) h2 {
        margin-top: 40px;
    }

    #imprint .top-wrap .last-item {
        margin-top: 20px;
    }

}

@media only screen and (max-width: 500px) {

    .dgsvoagb h2,
    .dgsvoagb h3 {
        padding-left: 0;
    }

    .dgsvoagb h1 {
        font-size: 6vw;
    }
}

/* SEARCH PAGE*/

#search_landingpage aside p {
    margin-bottom: 20px
}

#search_landingpage aside li {
    margin-bottom: 10px
}

#search_landingpage .search-item h4 {
    padding-bottom: 3px;
    display: inline-block;
}

/*#search_landingpage .search-item:hover h4{
    border-bottom: 1px solid #1d1d1b;
    padding-bottom:2px;
}*/

#search_landingpage p.info {
    margin-bottom: 14px;
}

#search_landingpage a.arrowlink {
    margin-top: 10px;
    display: table;
}

#search_landingpage .nexttoaside h2 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 32px;
    padding-left: 0px;
    margin-bottom: 20px;
}

#search_landingpage .nexttoaside h2:before {
    display: none;
}

#search_landingpage .nexttoaside h2:after {
    width: 170px;
    height: 14px;
    background: #1d1d1b;
    position: relative;
    left: 0;
    display: block;
    content: '';
    margin-top: 15px;
}

#search_landingpage .textonly-item {
    margin-bottom: 50px;
}

#search_landingpage .search-item {
    margin-bottom: 30px;
}

.searchhit {
    background: yellow;
    padding: 0 5px;
}

.moresearch, button.arrowlink.hidemoresearch{
    display:none;
}

/* Magnific Popup CSS */

.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0.8;
}

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
    overflow: hidden !important;
}

.mfp-container {
    margin: 0 auto;
    box-sizing: border-box;
}

.mfp-content {
    align-items: stretch;
    display: flex;
}

.mfp-content .txt-wrap {
    background: #ffffff;
    box-sizing: border-box;
    width: 300px;
    margin-left: 25px;
    padding: 35px 30px;
}

.mfp-content h3 {
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
}

.mfp-content h4 {
    font-style: italic;
    text-transform: none;
    font-size: 15px;
    margin-top: -10px;
}

.mfp-content h4,
#lightbox_artwork p {
    margin-bottom: 20px;
}

.mfp-content a,
.mfp-content .secondp {
    margin-top: 20px;
}

.mfp-content img {
    min-width: auto !important;
    max-width: none;
    object-fit: unset;
    height: auto;
    width: auto !important;
}

.mfp-content .txt-wrap,
.mfp-content img {
    -webkit-box-shadow: 3px 3px 10px -2px rgba(51, 51, 51, 1);
    -moz-box-shadow: 3px 3px 10px -2px rgba(51, 51, 51, 1);
    box-shadow: 3px 3px 10px -2px rgba(51, 51, 51, 1);
}

.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-ajax-cur {
    cursor: progress;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    color: #CCC;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 1044;
}

.mfp-preloader a {
    color: #CCC;
}

.mfp-preloader a:hover {
    color: #FFF;
}

.mfp-s-ready .mfp-preloader {
    display: none;
}

.mfp-s-error .mfp-content {
    display: none;
}

/* UI */

button.mfp-close,
button.mfp-arrow {
    z-index: 1046;
    touch-action: manipulation;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.mfp-close {
    background: url(../img/icon_closeoverlay.svg) no-repeat;
    width: 35px;
    height: 44px;
    right: 5%;
    top: 30px;
    position: absolute;
    opacity: 0.65;
    cursor: pointer;
}

.mfp-close:hover,
.mfp-close:focus {
    opacity: 1;
}


.mfp-arrow {
    position: absolute;
    opacity: 0.65;
    top: 50%;
    margin-top: -55px;
    width: 90px;
    height: 110px;
    -webkit-tap-highlight-color: transparent;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
    opacity: 1;
}

.mfp-arrow-left {
    left: 5%;
    background: url(../img/arrow-back.svg) no-repeat center left;
    background-size: 50px;
}

.mfp-arrow-right {
    right: 5%;
    background: url(../img/arrow-next.svg) no-repeat center right;
    background-size: 50px;
}

.mfp-arrow-left:hover {
    background: url(../img/arrow-back-hover.svg) no-repeat center left;
    background-size: 50px;
}

.mfp-arrow-right:hover {
    background: url(../img/arrow-next-hover.svg) no-repeat center right;
    background-size: 50px;
}


.catalog_p .thumbnails {
    margin-top: 50px;
}

.catalog_p .artwork_thumbnail {
    margin-right: 10px;
    display:inline-block;
    max-width: 31%;
}

.catalog_p .thumbnails .active img{
    border-bottom:3px solid black;
}

.catalog_p .thumbnails img {
    padding-bottom: 5px;
    display:inline-block;
    max-height: 100px;
    max-width: 100%;
    width: unset;
    min-width: unset;
}



@media screen and (max-width: 1024px) and (orientation: landscape),
screen and (max-height: 300px) {

    /**
       * Remove all paddings around the image on small screen
       */
    .mfp-img-mobile .mfp-image-holder {
        padding-left: 0;
        padding-right: 0;
    }

    .mfp-img-mobile img.mfp-img {
        padding: 0;
    }

    .mfp-img-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }

    .mfp-img-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }

    .mfp-img-mobile .mfp-bottom-bar {
        background: rgba(0, 0, 0, 0.6);
        bottom: 0;
        margin: 0;
        top: auto;
        padding: 3px 5px;
        position: fixed;
        box-sizing: border-box;
    }

    .mfp-img-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }

    .mfp-img-mobile .mfp-counter {
        right: 5px;
        top: 3px;
    }

    .mfp-img-mobile .mfp-close {
        top: 0;
        right: 0;
        width: 35px;
        height: 35px;
        line-height: 35px;
        background: rgba(0, 0, 0, 0.6);
        position: fixed;
        text-align: center;
        padding: 0;
    }
}

@media all and (max-width: 1200px) {
    .mfp-arrow {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
        right: 2.5%;
    }

    .mfp-close {
        width: 25px;
        right: 2.5%;
    }

    .mfp-arrow-left {
        -webkit-transform-origin: 0;
        transform-origin: 0;
        left: 2.5%;
    }

    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
        transform-origin: 100%;
    }

    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }


}

@media all and (max-width: 1024px) {


    .mfp-content {
        flex-direction: column;
    }

    .mfp-content img {
        width: 100% !important;
        height: auto !important;
    }

    .mfp-content .txt-wrap {
        margin: 10px 0 0 0;
        width: 100%;
        display: flex;
        align-content: space-between;
        position: relative;
        padding: 15px 30px 5px 30px;
        min-height: 120px;
    }

    .mfp-content .txt-wrap div:first-child {
        width: 40%;
    }

    .mfp-content .txt-wrap div:last-child {
        text-align: right;
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 20px;
    }

    .mfp-content .txt-wrap div p,
    .mfp-content .txt-wrap div a {
        display: inline-block;
        margin-left: 15px;
        margin-top: 0;
        line-height: 20px;
    }

    .mfp-content .txt-wrap div p,
    .mfp-content .txt-wrap div a,
    .mfp-content .txt-wrap div h3,
    .mfp-content .txt-wrap div h4 {
        word-break: normal;
    }
}

/* NEWSLETTER */

#newsletter .blackbox {
    width: 170px;
    height: 14px;
    background-color: #fff;
    margin: 16px 23px 0 0;
}

#newsletter h1 {
    text-transform: uppercase;
    font-size: 70px;
    line-height: 65px;
    letter-spacing: 3px;
    -webkit-hyphens: manual;
    -moz-hyphens: manual;
    -ms-hyphens: manual;
    hyphens: manual;
}

#newsletter h2 {
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 15px;
    margin-top: 35px;
    letter-spacing: 1px;
}

#newsletter .whitebg p {
    margin-bottom: 20px;
}

#newsletter .whitebg .flexwrap {
    justify-content: flex-start;
}

#newsletter .blackbg,
#newsletter .whitebg,
#newsletter .errorsmg{
    padding: 0 46%;
    width: 100%;
    margin-left: -46%;
}

#newsletter .blackbg .flexed {
    width: 47.5%;
}


#newsletter input[type=text] {
    background-color: #fff;
    height: 35px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left:10px;
}

#newsletter input[type=checkbox] {
    padding-left: 15px;
    box-sizing: border-box;
    display: block;
    margin-right: 10px;
    width: 25px;
    height: 25px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #1b1b1d;
    cursor:pointer;
}

#newsletter input[type=checkbox]:checked {
    color: #99a1a7;
    background: #1b1b1d url(../img/check.svg) no-repeat center;
}

#newsletter .button {
    margin-top: 25px;
    width: 100%;
}

#newsletter .button.unsubbutton {
    width:auto;
    border-color:#fff;
}

#newsletter .blackbg, #newsletter .errorsmg {
    background: #1b1b1d;
    padding-top: 35px;
    padding-bottom: 35px;
}

#newsletter form .blackbg {
    padding-bottom: 35px;
}

#newsletter .blackbg label {
    text-transform: uppercase;
    font-size: 12px;
}

#newsletter .blackbg h1,
#newsletter .blackbg h2,
#newsletter .blackbg p,
#newsletter .blackbg label {
    color: #fff;
}

#newsletter .errorsmg{
    color: #fff;
    padding-top: 31px;
    text-decoration: underline;
    text-transform: uppercase;
}

.morespacebtn{
    margin: 10px 0 40px;
    display: inline-block;
    }

/* Installationsansicht */
.info-button{
        position:absolute;
        width:20px;
        height:20px;
        background:url(../img/icon_info.svg);
        background-size:20px;
        border-radius: 10px;
        cursor:pointer;
    }

.info-button:hover{
    background:url(../img/icon_info_hover.svg);
    background-size:20px;
}

#background-image-container{
    position:relative;
}

.container .arrow-next{
    right: -9%;
    background:url(../img/info-arrow-next.svg);
    background-size: contain;
}

.container .arrow-next:hover{
    background:url(../img/info-arrow-next-hover.svg);
    background-size: contain;
}

.container .arrow-before{
    left: -9%;
    background:url(../img/info-arrow-back.svg);
    background-size: contain;
}

.container .arrow-before:hover{
    background:url(../img/info-arrow-back-hover.svg);
    background-size: contain;
}

#prev-image-container, #next-image-container{
    display:none;
}

.installationshot-back-link-right{
    display: inline-block;
    float:right;
    margin: 12px 0 15px 0;
}

.installationshot-back-link-right:after{
    clear:both;
}


.container{
    position:relative;
}

.container .arrow-before, .container .arrow-next{
    position:absolute;
    top:calc(50% - 15px);
    z-index:99;
}


#background-image-container img{
    max-height: 75vh; 
    margin: auto; 
    max-width: 100%;
    width: auto;
    min-width: initial;
}


.captioninstallation{
    width: 100%;
    text-align: center;
}

.installationshot-back-link-right a {
    position: absolute;
    margin-top: -71px;
    right: -9%;
}

@media all and (max-width: 1024px) {
    
.container{
    width: 85%;
    margin-left: 8%;
}
    
}

@media all and (max-width: 600px) {
    
#background-image-container img{
    max-height: 100%; 
}
    
}


/* 404 SEITE */

#wrap404 {
    background: no-repeat #000 url(../img/404.png) 20% 6%;
    background-size: 80%;
    height: calc(100vh - 190px);
    width: 193%;
    margin-left: -46%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wrap404 h1 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 32px;
}

#wrap404 .txt-wrap {
    max-width: 450px;
    margin-top: 13%;
}

#wrap404 .btn-wrap {
    margin-top: 30px;
}

@media all and (max-width: 1200px) {
    #wrap404 h1 {
        color: #fff;
        background: #1b1b1d;
        display: inline;
        padding: 0 10px 0 10px;
        line-height: 50px
    }

    #wrap404 .txt-wrap {
        max-width: 380px;
    }

    #wrap404 {
        background-position: center 7%;
        background-size: 100%;
        width: 140%;
        margin-left: -20%;
    }

}

@media all and (max-width: 1024px) {

    #wrap404 {
        height: calc(100vh - 140px);
    }

    #newsletter .blackbg .flexwrap {
        display: block;
    }

    #newsletter .blackbg .flexed {
        width: 100%;
    }

}


@media all and (max-width: 500px) {

    #wrap404 .txt-wrap {
        max-width: 330px;
    }

}

