/* @package poll_st */

body {
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', Verdana, sans-serif;
}

/* Defaults */

#preloader {
  display: none;
}

/* #main_wrap > div,
#main_wrap h1,
#main_wrap > h2,
footer > ul {
  padding-left: 18px;
} */

button {
  border: none;
  cursor: pointer;
  background: transparent;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}
a:hover {
  color: grey;
}

/* HEADER */

.webpage_title_link {
  grid-column: 2 / -3;
  grid-row: 1 / 2;
  position: relative;
}

/* MAIN NAV */

.gallery_block {
  grid-row: 4 / 6;
}

.gallery_block img {
  max-width: 100%;
  margin-bottom: 18px;
}

/* TABELLEN */

.wp-block-table {
  margin: 0;
  max-width: 650px;
  margin-top: -2px;
}
.wp-block-table > table > tbody > tr {
  vertical-align: top;
}
.wp-block-table > table > tbody > tr > td {
  padding-bottom: 0px;
  line-height: 19px;
}
.wp-block-table > table > tbody > tr > td:nth-child(1) {
  width: 100px;
}
.wp-block-table tr > * {
  border: none !important;
  font-size: 15px;
}

/* KATALOG */

.main_content.katalog {
  grid-row: 3/5;
  grid-column: 4/-3;
}
.katalog img {
  max-height: 40vh;
  width: auto;
  height: auto;
  max-width: 50vw;
  object-fit: contain;
  object-position: top;
}

.page-template-kuenstler-kataloge .schleider_galerie .galerie_item img {
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-template-kuenstler-kataloge .schleider_galerie_column,
.page-template-kuenstler-kataloge .schleider_galerie .galerie_item {
  width: 49.2%;
}
.page-template-kuenstler-kataloge .schleider_galerie {
  grid-row: 2/5;
  grid-column: 4/-3;
}
.main_content.katalog {
  grid-row: 2/5;
  grid-column: 4/-3;
}

.lightbox_vorschau {
  margin: 29px 0 6px 0;
  cursor: pointer;
  margin-top: 29px !important;
}

/* NEWS */

.news .wp-block-image {
  margin-left: 0;
}

.news .wp-block-image img {
  max-width: 50%;
  height: auto;
}
.news .wp-block-columns img {
  max-width: 100%;
  /* max-width: 100% !important; */
}
.news .main_content_item::after {
  content: ' ';
  display: block;
  width: 30%;
  height: 1px;
  background: #dcdcdc;
  position: absolute;
  bottom: -40px;
}
.news .main_content_item:last-of-type::after {
  content: unset;
}
.news .wp-block-image {
  margin-top: 24px;
}

/* MESSE */

.main_content.messen {
  grid-template-rows: min-content;
}
a.messe_jahr {
  display: block;
}
/* .main_content.messen {
  grid-row: 3/5;
  margin-top: 0;
} */
.messe #schleider_slider {
  margin-top: 24px;
}
.messen h3 {
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 4px;
}
.messen h3:first-of-type {
  margin-top: 0;
}
.messe h4 {
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 10px;
}
.main_content.messe {
  /* grid-column: 3/-3;
  grid-row: 2/5; */
  /* margin-top: 15px */
}
.messe .wp-block-image {
  margin-top: 0;
  margin-left: 0;
}

.messe .wp-block-image img {
  max-width: 50%;
  height: auto;
}

/* AUSSTELLUNGEN */

.main_content.ausstellung {
  /* grid-column: 3/-3; */
  /* grid-row: 3/5;
  margin-top: 24px; */
}
.main_content.ausstellung.mobileInhalt {
  display: none;
}
.main_content.ausstellung_sub {
  grid-column: 4/-2;
  /* grid-row: 3/5;
  margin-top: 0; */
}

h1.for_ausstellung {
  grid-column: 3/-3;
  grid-row: 2/3;
  font-weight: normal;
  color: black;
}
h1.for_ausstellung.mobileInhalt {
  display: none;
}
h1.for_ausstellung_sub {
  grid-column: 4/-2;
  grid-row: 2/3;
  font-weight: normal;
  margin-bottom: 32px;
}
h1.for_ausstellung_sub p:first-of-type {
  margin-top: 0;
}
.ausstellung_sub p:first-of-type {
  /* margin-top: 0; */
}
.ausstellung img,
.ausstellung_sub img {
  width: auto;
  height: auto;
  object-fit: contain;
  max-height: 42vh;
  max-width: 100%;
}

.page-template-ausstellen-austellung .ausstellung img {
  margin-top: 16px;
}

.page-template-ausstellen-text .main_content.ausstellung_sub,
.page-template-ausstellen-text_bild .main_content.ausstellung_sub,
.page-template-ausstellen-katalog .main_content.ausstellung_sub {
  display: block;
}

.schleider_galerie.of_links {
  grid-column: 3/-2;
}
.schleider_galerie.of_links .schleider_galerie_column,
.schleider_galerie.of_links .galerie_item {
  width: 23%;
  padding-right: 15px;
  margin-bottom: 17px;
}

.schleider_galerie.of_links .galerie_wrap {
  /* background: #e3e1e1; */
}

.onepic .schleider_lightbox .lightbox_item {
  flex-direction: column;
  display: flex;
}
.onepic .lightbox_info_item.lightbox_anfrage {
  justify-self: flex-start;
  width: 100%;
  margin-top: 12px;
}

.akutell_item {
  margin: 10px 0;
  /*! height: auto; */
  grid-row-start: span 2;
}
.akutell_item:first-of-type {
  /* grid-row: 2/4;
  margin: 0; */
}
.akutell_item h1 {
  margin-top: 0;
  font-weight: normal;
  color: black;
}

.page-template-ausstellen-archive .schleider_galerie {
  grid-row: 2 / 5;
  /* display: flex; */
}

.wp-block-image {
  margin: 20px 0;
}
.page-id-120 .wp-block-image {
  margin: 20px 0 0 0;
}

/* ÜBER UNS */

.main_content.uberuns {
  grid-column: 3/-3;
  /* grid-row: 3/5; */
  /* margin-top: 24px; */
}
.uberuns img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.page-template-uber-uns-kataloge .schleider_galerie {
  grid-row: 2/5;
}

.page-template-uberuns-start .lightbox_info_item.lightbox_anfrage {
  display: none !important;
}

/* IMAGES */

.wp-block-gallery.is-cropped .blocks-gallery-item img {
  height: 100%;
  flex: unset;
  object-fit: contain;
  width: unset;
}

/* PAGE DEFAULT */

/* .page-template-default .main_content h2:first-of-type {
  margin-top: 0;
}
.page-template-default .main_content {
  grid-column: 3/-2;
}
#mailinger {
  margin: 12px 0 22px 0;
}
.page-template-default .subpage_subs {
  grid-row: 2/5;
}

.main_content ul {
  padding-left: 32px;
  margin: 12px 0;
  list-style: circle;
} */

/* TEST */
.page-id-441 .akutell_item h1 {
  font-weight: normal;
}

/* NEWSLETTER ANMELDUNG */

#newsletter_wrap {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000000;
  /* display: none; */
}

#newsletter_wrap > div {
  position: relative;
  background: white;
  padding: 22px 42px;
}

#newsletter_closer {
  position: absolute;
  top: 2px;
  right: 12px;
  height: 18px;
  width: 18px;
  background: url(../schleider/img/close.png) center / contain no-repeat transparent;
  cursor: pointer;
}

/* EMBED */

.main_content embed {
  width: 100%;
  height: 80vh;
  margin-top: 16px;
}

/* Abstand nach oben */

h1.for_ausstellung_sub,
.akutell_item:first-of-type,
.page-template-ausstellen-archive .schleider_galerie,
h2.page_title,
h2.page_title,
.page-template-kuenstler-uebersicht h2,
.main_content.artist p:first-of-type,
.main_content.katalog p:first-of-type,
.messe h4:first-of-type,
.page-template-kuenstler-kataloge .schleider_galerie,
.main_content.messen,
.main_content_item:first-of-type,
.subpage_title,
.main_content.ausstellung_sub,
.page-template-uber-uns-kataloge .schleider_galerie,
/* .page-template-default .main_content, */
.page-template-default .subpage_subs,
.main_content.katalog,
h1.for_ausstellung {
  margin-top: 29px;
}

.akutell_item p,
.view_option > button {
  margin: 29px 0 0;
}

/* .main_content,
.schleider_galerie {
  margin-bottom: 29px;
} */

/* COOKIE CONSENT */

#cookie-notice {
  /* background-color: rgba(50,50,58,1); */
  background-color: rgb(255, 255, 255) !important;
  color: black !important;
}

#cn-notice-text {
  color: black !important;
}

.cn-button.wp-default {
  /* background: #fbb03b;   */
  background: #a2a2a2 !important;
}
#cn-notice-buttons a {
  background: #a2a2a2 !important;
}

/* iPad Pro */
@media only screen and (max-width: 1236px) {
  .subpage_subs.columns ul {
    column-count: 1;
  }
  .main_content,
  h1.for_ausstellung {
    grid-column: 4/-2;
  }
}

/* iPad */
@media only screen and (max-device-width: 768px) {
  .schleider_galerie.of_links .schleider_galerie_column,
  .schleider_galerie.of_links .galerie_item {
    padding-right: 10px;
    margin-bottom: 22px;
  }
  .schleider_slider .schleider_slider_item.mittig {
    padding: 0 8vw;
  }

  /* mobile language switch */
  #menu-item-822 {
    display: inline-block;
  }
  #lang_switch {
    display: none;
  }

  .subpage_subs.columns ul {
    column-count: 1;
  }

  .main_content.news {
    grid-column: 3/-2;
  }

  .page-template-page_lightbox h1.for_ausstellung {
    grid-column: 2/-2;
  }

  .main_content.uberuns {
    grid-column: 3/-2;
    margin-left: 14px;
  }

  .schleider_galerie .galerie_item {
    /* padding-right: 32px; */
    /* margin-bottom: 28px; */
    padding-right: 16px;
    margin-bottom: 18px;
  }
}
/* smartphone */
@media only screen and (max-device-width: 414px) {
  #main_nav {
    top: 66px;
    right: 36px;
  }

  .webpage_title_link {
    grid-column: 2 / -2;
  }

  #burger_icon {
    margin-left: 12px;
  }
  #burger_menu {
    grid-column: -4 / -2;
  }

  #main_wrap {
    grid-template-columns: 12px repeat(5, 1fr) 12px;
    grid-template-rows: 88px 62px min-content min-content min-content min-content;
  }

  #preloader {
    display: none;
  }

  .subpage_subs {
    grid-column: 2 / 7;
  }
  .subpage_subs.columns ul {
    column-count: 1;
  }

  .page-template-kuenstler-uebersicht h2 {
    grid-column: 2/6;
  }

  .main_content {
    grid-template-rows: min-content;
    grid-column: 2/-2;
  }
  .main_content.ausstellung {
    grid-column: 2/-2;
    grid-row: 6;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .main_content.ausstellung_sub {
    grid-column: 2/-2;
    grid-row: 6;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .main_content.artist {
    grid-column: 2/-2;
    grid-row: 5/6;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .main_content.news {
    grid-column: 2/-2;
    grid-row: 3;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  h1.for_ausstellung {
    grid-column: 2/-2;
    grid-row: 5;
  }
  .page-template-page_lightbox h1.for_ausstellung {
    grid-row: 3;
  }
  h1.for_ausstellung_sub {
    grid-column: 2/-2;
    grid-row: 5;
  }
  .subpage_subs {
    margin-bottom: 32px;
  }

  .schleider_slider .schleider_slider_item.mittig {
    padding: 0 2vw;
  }
  .schleider_galerie {
    grid-column: 2/-1;
    grid-row: 5/6;
    margin-top: 52px;
  }
  .page-template-kuenstler-uebersicht .schleider_galerie {
    display: none !important;
  }
  .page-template-kuenstler-uebersicht .subpage_subs a {
    color: grey !important;
    display: inline-block;
  }
  .view_option {
    grid-column: 2;
    grid-row: 5;
  }
  .view_option.slider {
    grid-column: 2;
    grid-row: 2;
  }
  .schleider_galerie_column,
  .schleider_galerie .galerie_item {
    width: 100%;
  }
  #slider_overlay {
    grid-row: 2 / 6;
  }
  .lightbox_info_wrap {
    grid-row: 5;
  }
  .schleider_objekt {
    z-index: 300;
  }
  button#schleider_back {
    grid-row: 5;
  }
  button#schleider_forward {
    grid-row: 5;
  }
  .schleider_lightbox_wrap {
    grid-column: 2 / -2;
    grid-row: 3/5;
    height: calc(88vh - 140px);
  }
  .schleider_galerie.of_links {
    grid-column: 2/-2;
    grid-row: 5/6;
  }
  .schleider_galerie.of_links .schleider_galerie_column,
  .schleider_galerie.of_links .galerie_item {
    width: 100%;
  }
  .schleider_galerie.of_links .schleider_galerie_column,
  .schleider_galerie.of_links .galerie_item {
    padding-right: 0px;
  }

  /* hide gallery and show slider */
  .schleider_slider.kleiner {
    display: grid;
    grid-gap: 12px;
  }
  .view_option {
    display: none;
  }

  .schleider_slider .schleider_slider_item .slider_overlay {
    grid-row: 2;
  }

  /* hide stuff */
  .main_content.ausstellung {
    /* display: none; */
  }
  .main_content.ausstellung.mobileInhalt {
    /* display: block; */
  }
  h1.for_ausstellung {
    /* display: none; */
  }
  h1.for_ausstellung.mobileInhalt {
    /* display: block; */
  }

  .main_content.uberuns {
    /* grid-column: 3/-2; */
    grid-column: 1/-2;
    grid-row: 5/6;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  /* SCHLEIDER */

  .schleider_lightbox_wrap {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    left: 0;
    background: white;
    z-index: 1000;
  }

  .schleider_galerie .galerie_item {
    /* padding-right: 16px; */
    padding-right: 12px;
  }

  .schleider_galerie .galerie_wrap {
    /* width: 106%; */
    width: 100%;
  }

  button#schleider_close {
    position: fixed;
    top: 31px;
    right: 13px;
    z-index: 10000;
  }

  .view_option.slider {
    display: none !important;
    /* position: fixed;
    top: 31px;
    left: 13px;
    z-index: 10000; */
  }

  .lightbox_info_wrap {
    position: fixed;
    bottom: 2px;
    width: 90vw;
    left: 5vw;
    z-index: 10000;
  }
  #schleider_back {
    position: fixed;
    top: 31px;
    left: 5vw;
    z-index: 10000;
  }
  #schleider_forward {
    position: fixed;
    top: 31px;
    left: 15vw;
    z-index: 10000;
  }

  .schleider_lightbox .lightbox_item img {
    max-height: 70vh;
  }

  .main_content,
  .page-template-default .main_content {
    grid-row: 5/6;
    grid-column: 2/-2;
    margin-bottom: 12px;
  }
  .page-template-kuenstler-kataloge .schleider_galerie,
  .main_content.katalog {
    grid-row: 5/6;
    grid-column: 2/-2;
  }

  footer {
    grid-row: 7;
    max-height: 68px;
    align-self: flex-end;
  }
  .home footer {
    grid-row: 6;
    display: none;
  }
  a.page_title_link {
    grid-column: 2 / 5;
  }

  /* #menu-item-2076 {
    grid-column: 1/-4;
    margin-bottom: 12px;
  } */

  footer ul {
    /* grid-template-columns: auto auto auto 1fr auto auto auto; */
    grid-template-columns: auto auto auto auto auto auto;
  }

  footer ul li:nth-of-type(1) {
    grid-column: 1/-4;
    margin-bottom: 12px;
  }

  footer ul li:nth-of-type(1) a {
    padding-left: 4px;
  }
}

@media only screen and (max-device-width: 414px) and (orientation: landscape) {
  .schleider_slider .schleider_slider_item .slider_overlay {
    grid-row: 1;
  }
  .schleider_slider {
    height: calc(100vh - 96px);
  }
  #slider_control_wrap {
    display: none;
  }
}

/* DEBUGGING */

.schleider_lightbox_wrap:has(pre) {
  z-index: 1000000;
}

pre {
  font-size: 0.6rem;
  letter-spacing: -0.4px;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #bbb;
}
