/* version 1.6.1 */

:root {
	/* Colors */
	--stickygroup-content-background: rgba(255,255,255,0.9);
	--stickygroup-content-padding-outer: 40px;
	--stickygroup-content-padding-inner: 10px;
}

.mgznkr-stickygroup {
	position: relative;
}

.entry-content > .mgznkr-stickygroup.alignfull {
	margin-left: calc( ( calc(100vw - var(--m2gscrollbarWidth,0px)) - 100% ) / -2 );
	max-width: calc(100vw - var(--m2gscrollbarWidth,0px));
	width: calc(100vw - var(--m2gscrollbarWidth,0px));
}



/* make .mgznkr-sticky-content with background and fitting -------------------------- */

.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull {
	min-height: calc(100vh);
	padding-top: 50vh;
	padding-bottom: 50vh;
	z-index: 1;
	position: relative;
}

.mgznkr-stickygroup .alignfull {
	margin-bottom: 0;
}

.mgznkr-stickygroup .mgznkr-sticky-content {
	min-height: calc(180vh);
}

.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull + .wp-block-columns.alignfull {
	/*margin-top: 50vh;*/
}

.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull:first-of-type {
	padding-top: 100vh;
}

.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull + .wp-block-columns.alignfull:last-of-type,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull:last-of-type {
	padding-bottom: 100vh;
}

/* if only two */
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull:first-of-type + .wp-block-columns.alignfull:last-of-type {
	/* margin-top: 70vh; */
}

.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > p,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > ul,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > h2,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > h3,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > h4,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > h5,
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull .wp-block-column > h6 {
	background: var(--stickygroup-content-background, rgba(255,255,255,0.9));
	padding: var(--stickygroup-content-padding-inner, 10px) var(--stickygroup-content-padding-outer, 40px);
	margin: 0;
}

.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull:not(:has(.wp-block-columns)) .wp-block-column > *:first-child {
	padding-top: var(--stickygroup-content-padding-outer, 40px);
}
.mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull:not(:has(.wp-block-columns)) .wp-block-column > *:last-child {
	padding-bottom: var(--stickygroup-content-padding-outer, 40px);
}

.entry-content > .mgznkr-stickygroup.alignfull,
.entry-content > .mgznkr-stickygroup.alignfull .mgznkr-sticky-content.alignfull,
.entry-content > .mgznkr-stickygroup .mgznkr-sticky-content .wp-block-columns.alignfull {
      margin-top: 0;
      margin-bottom: 0;
}



/* .mgznkr-sticky-group NO-subscenes -------------------------- */


.mgznkr-stickygroup .mgznkr-sticky-img {
	position: sticky;
    top: 0;
	z-index: -1;
	overflow: clip;
}

.mgznkr-stickygroup:not(.mgznkr-sticky-with-subscenes) .mgznkr-sticky-img {
	min-height: 100vh;
}

/* no parent element is allowed to have overflow: hidden!  */
#site-content {
	overflow: clip;
}



/* .mgznkr-sticky-with-subscenes -------------------------- */

.scrollmagic-pin-spacer {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}


.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img {
  	position: absolute;
  	left: 0;
    z-index: -1;
    margin-top: 0;
	width: 100%;
	max-height: 100vh;
	min-height: 100vh;
	overflow: hidden;
}


.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img > div,
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img > div > .wp-block-cover,
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img:not(:has(.wp-block-group__inner-container)),
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img:not(:has(.wp-block-group__inner-container)) > .wp-block-cover   {
  	min-height: 100dvh;
  	max-height: auto;
}

.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img > div > .wp-block-cover,
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img:not(:has(.wp-block-group__inner-container)) > .wp-block-cover  {
  	z-index: 0;
  	opacity: 0.1;
  	transition: opacity 0.3s ease-in;
  	position: absolute;
  	width: 100%;
}
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img > div > .wp-block-cover.active,
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img:not(:has(.wp-block-group__inner-container)) > .wp-block-cover.active {
  	opacity: 1;
  	z-index: 2;
  	position: absolute;
}
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img > div > .alignfull.wp-block-cover + .alignfull.wp-block-cover,
.mgznkr-stickygroup.mgznkr-sticky-with-subscenes .mgznkr-sticky-img:not(:has(.wp-block-group__inner-container)) > .alignfull.wp-block-cover + .alignfull.wp-block-cover {
	margin-top: 0;
}






/* header stuff -------------------------- */

body.mgznkr-sticky-header .featured-media {
	display: none;
}

body.mgznkr-sticky-header #site-header {
	position: absolute;
	width: 100%;
	z-index: 10;
}
body.mgznkr-sticky-header .post-inner {
	padding-top: 0
}

body.mgznkr-sticky-header h1.entry-title {
	position: absolute;
	top: 55vh;
	color: #fff;
	text-shadow: 1px 1px 15px black;
}


body.mgznkr-sticky-after-cover .cover-header + .post-inner {
  padding-top: 0;
}

