
/* Schriftgroesse global */
html {
	font-size: 18px;
}

/* Navigation */
.navbar-item, .navbar-link {
	padding: 1.5rem 0.75rem 0.75rem 0.75rem;
}
.navbar-link:not(.is-arrowless)::after {
	margin-top: 0;
}
@media screen and (max-width: 1023px) {
	.navbar .navbar-brand {
		padding: 1.5rem 1.5rem 0.75rem 1.5rem;
		align-items: flex-start;
	}
	.navbar-item, .navbar-link {
		padding: 0.5rem 1.5rem;
	}
	.navbar > .container input[type="checkbox"] {
		height: 25px;
		width: 25px;
		left: 25px;
	}
	.navbar > .container .hamburger-lines {
		height: 18px;
		width: 25px;
	}
	.navbar > .container .navbar-menu {
		box-shadow: 5px 0px 10px 0px rgba(0,0,0,0.25);
		opacity: 1;
	}
}
@media screen and (max-width: 460px) {
  .is-size-4-touch {
    font-size: 1.25rem !important;
  }
}
@media screen and (max-width: 400px) {
  .is-size-4-touch {
    font-size: 1rem !important;
  }
}

/* Sprachumschalter */
@media screen and (min-width: 1024px) {
	.navbar > .container {
		align-items: flex-end;
	}
}
.navbar-brand-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.links-language a.language-link {
	padding: 0 0.75rem 0.75rem 0.75rem;
}
@media screen and (max-width: 1023px) {
	.links-language a.language-link {
		padding: 0.75rem 0;
	}
}

/* Startseite und Detailseite Ausstellung
   hier nur zu Testzwecken, besser diese CSS-Notation zum Entfernen der Linie unterhalb der Navigation für diese beiden Seiten aus der _overrides.scss komplett entfernen:
   body.page-node-type-exhibition .navbar > .container,
   body.path-frontpage .navbar > .container {
   border-bottom: 0;
   }
*/
@media screen and (min-width: 1024px) {
	body.path-frontpage .navbar > .container,
	body.page-node-type-exhibition .navbar > .container {
		border-bottom: 1px solid #e2deda;
	}
}

/* Abstaende im Hero auf der Startseite */
body.path-frontpage .frontpage-block-current .content {
	padding-bottom: 2rem;
}
body.path-frontpage .frontpage-block-current .content .column:first-child {
	padding-left: 0;
}
body.path-frontpage .frontpage-block-current .content .column:last-child {
	padding-top: 0;
	padding-right: 0;
}

/* Abstand zwischen Navigation, Hero und erstem Inhalt auf allen Seiten */
.hero .hero-body {
	padding: 2rem 1.5rem 1.5rem 1.5rem;
}

/* Abstand zwischen Hero und erstem Inhalt auf Startseite kleiner */
body.path-frontpage  .hero .hero-body {
	padding-bottom: 0;
}

/* Grosses Bild auf Startseite, Detailseite Ausstellung und Detailseite Kuenstler */
body.path-frontpage .frontpage-block .image img,
body.page-node-type-artist .artwork-list-item .image img,
.block-page-title-block .columns.title-with-header-image .column .image img {
	width: auto;
	height: auto;
	min-height: 20rem;
	max-height: 75vh;
}
@media screen and (max-width: 413px) {
	body.path-frontpage .frontpage-block .image img,
	body.page-node-type-artist .artwork-list-item .image img,
	.block-page-title-block .columns.title-with-header-image .column .image img {
		width: 100%;
		height: auto;
		min-height: auto;
		max-height: none;
	}
}

/* Bild im Hero innerhalb des Bildcontainers rechtsbuendig */
.hero .image {
	text-align: right;
}

/* Unterer Abstand des Titels groesser */
body.path-frontpage .frontpage-block-current .content .column-title,
.block-page-title-block .columns.title-with-header-image .column.column-title {
	margin-bottom: 10%;
}

/* Hero auf Startseite und Detailseite Ausstellung */
@media screen and (max-width: 1023px) {
	body.path-frontpage .frontpage-block-current .content {
		flex-direction: column-reverse;
	}
	body.path-frontpage .frontpage-block-current .content .column:first-child,
	body.path-frontpage .frontpage-block-current .content .column:last-child	{
		width: 100%;
		padding-right: 0;
		padding-left: 0;
		margin-bottom: 0;
	}
	.block-page-title-block .columns.title-with-header-image {
		align-items: flex-start;
	}
	.block-page-title-block .columns.title-with-header-image .column.column-title {
		width: 100%;
		margin-bottom: 0;
	}
	.column.column-header-image {
		width: 100%;
	}
}

/* Linie und Abstand oberhalb des Beschreibungstextes auf Detailseite Ausstellung ueber erstem Absatz p,
   damit sie nur angezeigt werden, wenn Text vorhanden ist */
.content.exhibition .content p:first-child {
	border-top: 1px solid #e2deda;
	padding-top: 1.5rem;
}

/* Unterdruecken von Linie und Abstand (s.o.) im Pressetext-Expandable,
   da sie sonst dort ebenfalls angezeigt wird */
.content.exhibition details .content p:first-child {
	border-top: none;
	padding-top: 0;
}

/* Teaser auf Startseite */
body.path-frontpage .main-content.column {
	column-gap: 4rem;
}
@media screen and (max-width: 1023px) {
	body.path-frontpage .main-content.column {
		flex-direction: column;
	}
}

/* Ueberschriften auf Startseite */
body.path-frontpage h1.title {
	font-weight: 400;
	text-transform: uppercase;
}
body.path-frontpage .content h2:not(:first-child),
body.path-frontpage .content h3:not(:first-child) {
	margin-top: 1em;
}
body.path-frontpage .content h2,
body.path-frontpage .content h3,
body.path-frontpage .content h4,
body.path-frontpage.content h5,
body.path-frontpage .content h6 {
	margin-bottom: 0.5rem;
}

/* Detailseite Ausstellung:
   hier nur zu Testzwecken, besser diese CSS-Notation zum Aendern der Linkfarbe in der Description zur Ausstellung aus der _overrides.scss komplett entfernen:
   .hero.is-primary a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current) {
      color: #000;
   }
*/
.hero.is-primary a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current) {
	color: inherit;
}

/* Abstaende und Linien auf Detailseite Ausstellung */
article.exhibition .node-content-wrapper {
	border-top: 1px solid #e2deda;
}
article.exhibition  details.collapsible-field:last-of-type {
	border-bottom: none;
	margin: 0;
}

/* Ausstellungstitel auf Detailseite Ausstellung */
.block-exhibition-inner .title, .title-with-header-image .title {
	font-weight: 400;
	text-transform: uppercase;
}

/* Label auf Detailseiten Ausstellungen und Kuenstler */
.field--name-field-view-artist-publication .label,
.field--name-field-view-artist-exhibition .label,
.field--name-field-view-artist-artwork .label,
.exhibition .label {
	font-size: 1.25rem;
}

/* Unterdruecken der automatischen Silbentrennung in Titeln auf Uebersichtseiten Ausstellungen und Publikationen */
.views-field.views-field-title {
	hyphens: none;
}

/* Formulartitel "Bestellen" auf Detailseite Publikation:
   hier nur zu Testzwecken, besser die Klasse "is-uppercase" aus HTML-Sourcecode entfernen,
   also <h2 class="subtitle is-4">Bestellen</h2>
   statt <h2 class="subtitle is-4 is-uppercase">Bestellen</h2>
*/
#gmw-order-form .is-uppercase {
	text-transform: none !important;
}

/* Label "Anzahl" im Bestellformular auf Detailseite Publikation */
.label {
	text-transform: none;
}

/* Rahmen um Katalog-Bilder, um weisse Raender optisch auszugleichen */
.publication-list-item img,
.publication img {
	border: 1px solid #e2deda;
}

/* Kleine Bilder auf Detailseite Ausstellung */
.exhibition .image img {
	width: 100%;
}

/* Detailseite Kunstler: Hinweis "See more" unter Bild im Abschnitt "Arbeiten" */
.artist .artwork-list-item figure.image::after {
	display: block;
	font-size: small;
	content: "See more";
	margin: 0.25rem 0 0 0;
}

/* Photoswipe */
.pswp {
	--pswp-bg: #fff;
	--pswp-placeholder-bg: #fff;
	--pswp-icon-color: #5c5c5c;
	--pswp-icon-color-secondary: #fff;
	--pswp-icon-stroke-color: #5c5c5c;
}
.pswp__img {
	padding: 30px;
}
.pswp__dynamic-caption {
	color: #5c5c5c;
}
.pswp__dynamic-caption--below {
	max-width: none;
	padding: 0 0 0 30px;
	margin-top: -20px;
}
.pswp__dynamic-caption--mobile {
	background: #fff;
	padding: 0 30px 30px 30px;
}
