/*
Theme Name: Schnapskasino
Theme URI: https://schnapskasino.de
Author: Thomas Ruh
Version: 1.0.0
*/
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}
/* sticky header push footer to bottom
 * regardless of the amount of content
 * is templatepart
 */
header.site-header {
	position:fixed;
	top:0px!important;
	width:100%;
	z-index:999!important;
}
/* wrapper autogenerated by wp
 * calc and padding depends
 * on navigation height 
 */
.wp-site-blocks {
	min-height: calc(100vh - 120px);
	padding-top: 120px;
	display: flex;
	flex-direction: column;
}
/* push footer to bottom
 * is templatepart
 */
footer.site-footer {
	margin-top: auto;
}
/* navigation links current style
 * missing in theme.json
*/
.current-menu-item,
.current-menu-ancestor {
	color: var(--wp--preset--color--secondary)!important;
	background: var(--wp--preset--color--primary)!important;
}
/* single post navigation chevron style
 * against wp default
 */
span.is-arrow-chevron {
	color: var(--wp--preset--color--tertiary);
	font-size: 25px;
}
/*
 * add breakpoint to core/paragraph block
 * block-style-variation via block.json
 * is unable to handle complex breakpoints
 * path to block.json
 * theme > styles > blocks > text-zweispaltig.json
 */
@media only screen and (max-width: 768px) {
	.is-style-text-zweispaltig {
		column-count:1!important;
	}
}
/*
 * add breakpoint to core/columns block
 * block-style-variation via block.json
 * is unable to handle complex breakpoints
 * path to block.json
 * theme > styles > blocks > grid-columns-change.json
 */
@media only screen and (max-width: 1120px) and (min-width: 840px) {
  .columns-3.wp-block-post-template.is-layout-grid {
    grid-template-columns: 2fr 2fr !important;
  }
}
@media only screen and (max-width: 839px) and (min-width: 320px) {
  .columns-3.wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
/* test */
/* same height for cpt events with two cols on archiv-page
 * push more link to bottom
 * ul and li autogenerated by wp
 * add class event-item to group-block
 * witch hold the post content
*/
ul.columns-3 {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
li.type-veranstaltungen,
li.type-katalog {
	display: flex;
	flex-direction: column;
}
li.pt-event-img {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: 100%;
}
/* add class event-item to group-block */
.wp-block-group.event-item {
    display: flex;
	flex: 1;
    flex-direction: column;
	width: 100%;
	height: 100%;
}
/* push last event-item to bottom - right align */
.wp-block-group.event-item>*:last-child {
	margin-top: auto !important;
	margin-right: auto !important;
	width: 100% !important;
}
/* cpt events */
.veranstaltung-missed {
    padding: 1em;
    margin: 1em 0;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-size: 1rem;
}
.veranstaltung-missed a {
    font-weight: bold;
    color: #856404;
}