/* Mira Lobe: retain a usable mobile filter with the upgraded theme. */
.mobile_trigger_filter button.mobile_trigger { width:100%; border:0; background:transparent; color:inherit; text-align:left; font:inherit; padding:0; cursor:pointer; }
.mobile_trigger_filter button.mobile_trigger:focus-visible { outline:2px solid #eb5e2c; outline-offset:5px; }
.mobile_trigger_filter button.mobile_trigger .fa { float:right; margin-top:4px; }

/* Preserve the reference gallery layout and make the full scan clickable. */
.tiergarten-ausgaben .tiergarten-gallery figure { position:relative; }
.tiergarten-ausgaben .tiergarten-gallery figure > a { display:block; }
.tiergarten-ausgaben .tiergarten-gallery figure > a:focus-visible { outline:2px solid #eb5e2c; outline-offset:3px; }


/* Keep the retained three-column flyout attached to the header hover area. */
@media (min-width: 1024px) {
  .header .inside { position:relative; }
  .header .mainmenu,
  .header .mainmenu .level_1,
  .header .mainmenu .floatbox,
  .header .mainmenu .floatbox > .inner,
  .header .mainmenu .level_1 .inner > li.megamenu { position:static; }
  .header .mainmenu .megamenu-wrapper { left:0; right:0; top:100%; width:100%; z-index:20; }
  .header .mainmenu li.megamenu:focus-within > .megamenu-wrapper { display:table; }
}

/* Gallery overlays: one centered plus on every gallery, including legacy templates. */
.ce_gallery .image_container { position:relative; }
.ce_gallery .content { display:flex; align-items:center; justify-content:center; background:rgba(235,94,44,.8); }
.ce_gallery .content-outside { display:flex; align-items:center; justify-content:center; }
.ce_gallery .content-inside { display:block; text-align:center; }
.ce_gallery .image_container i.fa.fa-plus-circle { display:block; position:relative; width:50px; height:50px; margin:0 auto; line-height:0; }
.ce_gallery .image_container i.fa.fa-plus-circle::before,
.ce_gallery .image_container i.fa.fa-plus-circle::after { content:''; position:absolute; left:0; top:50%; width:50px; height:1px; background:#fff; }
.ce_gallery .image_container i.fa.fa-plus-circle::before { transform:rotate(90deg); }
.ce_gallery a:focus-visible .content { opacity:1; }
.tiergarten-ausgaben .tiergarten-gallery figure > a { aspect-ratio:2 / 3; position:relative; }
.tiergarten-ausgaben .tiergarten-gallery figure > a > img { width:100%; height:100%; object-fit:contain; background:transparent; }
.tiergarten-ausgaben .tiergarten-gallery figure { background:transparent; }

/* The original site's Colorbox graphics and sizing, shared by all lightboxes. */
#cboxPrevious,
#cboxNext,
#cboxClose {
	z-index: 100;
}

#cboxWrapper .mod_article > .container {
	padding: 30px;
}

#cboxWrapper #wrapper {
	padding: 10px;
}

#cboxWrapper .mod_article {
	max-width: none!important;
}

#cboxNext,
#cboxPrevious {
	width: 75px!important;
	opacity: 0.8;
	transition: opacity 0.3s ease;
	-webkit-transition: opacity 0.3s ease;
}

#cboxNext:hover,
#cboxPrevious:hover {
	opacity: 1;
}

#cboxClose:hover {
	background-position: top center!important;
}

#cboxClose {
	width: 26px!important;
	height: 30px!important;
	top: -28px!important;
	right: 0px!important;
}

#cboxTitle {
	top: -25px!important;
	font-size: 0.9rem;
}

#cboxContent {
	margin-top: 25px!important;
}

#cboxLoadedContent {
	border: 0!important;
}

#cboxCurrent {
	display: none!important;
}

body.no_scroll {
	overflow: hidden;
}

#cboxOverlay {
	opacity: 0.8!important;
}

#cboxNext,
#cboxPrevious,
#cboxClose {
	background-image: url('/files/ml/lightbox-controls-original.svg');
}

#cboxNext {
	right: 0!important;
}

#cboxPrevious {
	left: 0!important;
}

body #colorbox,
body #cboxOverlay,
body #cboxWrapper {
	z-index: 99999;
}


#cboxPrevious, #cboxNext, #cboxClose { background-color:transparent; background-repeat:no-repeat; background-size:auto; transform:none; text-indent:-9999px; font-size:0; }
#cboxPrevious, #cboxNext { height:65px; top:50%; margin-top:-32px; }
#cboxPrevious, #cboxPrevious:hover { background-position:top left; }
#cboxNext, #cboxNext:hover { background-position:top right; }
#cboxClose { background-position:top center; }
#cboxPrevious::before, #cboxNext::before, #cboxClose::before,
#cboxPrevious::after, #cboxNext::after, #cboxClose::after { content:none; }


/* Home: original artwork ratio and square pagination; equal news teaser cards. */
.home .ce_revolutionslider .tparrows { display:none !important; }
.home .ce_revolutionslider .miralobe-square .tp-bullet { width:12px; height:12px; border:1px solid #fff; border-radius:0; background:rgba(255,255,255,.65); box-sizing:border-box; }
.home .ce_revolutionslider .miralobe-square .tp-bullet.selected,
.home .ce_revolutionslider .miralobe-square .tp-bullet:hover { background:#26333b; }
.home .mod_newslist .autogrid_wrapper { display:flex; flex-wrap:wrap; align-items:stretch; }
.home .newsteaser { display:flex; flex-direction:column; }
.home .newsteaser .image_container { width:100%; margin:0; }
.home .newsteaser .image_container > a { display:block; aspect-ratio:1; overflow:hidden; }
.home .newsteaser .image_container img { display:block; width:100%; height:100%; object-fit:contain; }
.home .newsteaser > .content { flex:1; }
.home .newsteaser .date, .home .newsteaser .info, .home .newsteaser .info-v2, .home .newsteaser .info-v3 { display:none; }

.home .newsteaser .teaser { display:none; }

/* Original full-screen search design. */
.body_bottom .mod_search .search-content {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0,0,0,0.8);
	z-index: 1000000;
	display: none;
}

.body_bottom .mod_search .search-content:before {
	content: '';
	height: 50%;
	display: block;
	margin-bottom: -120px;
	box-sizing: inherit;
}

.body_bottom .mod_search.show-search .search-content form {
	display: block;
}

.body_bottom .mod_search form {
	max-width: 500px;
	margin: 0 auto;
	height: 100%;
	display: none;
	text-align: center;
}

.body_bottom .mod_search.show-search .search-content{
	display: block;
	-webkit-animation: fadeInDown 0.5s;
	animation: fadeInDown 0.5s;
}

.body_bottom .mod_search.show-search {
	overflow: visible!important;
}

.body_bottom .mod_search .close-window i {
	position: fixed;
	right: 50px;
	top: 50px;
}

.body_bottom .mod_search .close-window i:before {
	color: #fff;
	font-size: 20px;
	border: 3px solid #fff;
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 100%;
	text-align: center;
	cursor: pointer;
	display: inline-block;
	transition: background 0.3s ease;
	-webkit-transition: background 0.3s ease;
}

.body_bottom .mod_search .close-window i:hover:before {
	background: rgba(255,255,255,0.3);
}

.body_bottom .mod_search input:not(.submit),
.body_bottom .mod_search button:not(.submit) {
	background: transparent;
	border: 0;
	border-bottom: 3px solid #fff;
	font-size: 32px;
	color: #fff;
	line-height: 40px;
	width: 100%;
	float: none;
	padding: 0;
	border-radius: 0;
}

.body_bottom .mod_search input.submit,
.body_bottom .mod_search button.submit {
	margin: 25px auto 0 auto;
	float: none;
	width: auto;
	background: transparent;
	border-color: #fff;
	color: #fff;
	transition: All 0.3s linear;
	-webkit-transition: All 0.3s linear;
}

.body_bottom .mod_search input.submit:hover,
.body_bottom .mod_search button.submit:hover {
	background: rgba(255,255,255,0.3);
}

.body_bottom .mod_search .label {
	display: block;
	text-align: center;
	font-size: 34px;
	color: #fff;
	margin-bottom: 25px;
	font-weight: bold;
}


/* Keep the original full-screen search above the upgraded page/header. */
body.search_overlay { overflow:hidden; }
body.search_overlay div.body { filter:none; transform:none; }
body.search_overlay .body_bottom { position:relative; z-index:1000001; }
.body_bottom .mod_search .search-content { inset:0; background:#ef5d24; }
.body_bottom .mod_search.show-search .search-content { display:flex; flex-direction:column; justify-content:center; align-items:center; }
.body_bottom .mod_search .search-content::before { display:none; }
.body_bottom .mod_search .search-content form { height:auto; width:calc(100% - 48px); max-width:500px; margin:0; }
.body_bottom .mod_search .search-content .label { margin-bottom:25px; }
.body_bottom .mod_search .search-content .close-window { position:fixed; top:50px; right:50px; transform:none; margin:0; width:46px; height:46px; background:none; border:0; }
.body_bottom .mod_search .search-content .close-window i { position:static; transform:none; }
.body_bottom .mod_search .search-content .close-window:hover i { transform:none; }
@media(max-width:767px) { .body_bottom .mod_search .search-content .close-window { top:24px; right:24px; } }

.body_bottom .mod_search .search-content input.text, .body_bottom .mod_search .search-content input.text:focus { border:0; border-bottom:3px solid #fff; outline:0; box-shadow:none; }
.body_bottom .mod_search .search-content .close-window, .body_bottom .mod_search .search-content .close-window i, .body_bottom .mod_search .search-content .close-window i::before { box-shadow:none; text-shadow:none; }

/* Remove the theme underline animation from dropdown links. */
.header .mainmenu ul ul li a > span:not(.ribbon)::before { content:none; display:none; }

/* Restore the original spacing below news-reader reference buttons. */
.mod_newsreader .ce_hyperlink.reflink .hyperlink_txt { margin-bottom:15px; }

/* Restore the original Mira Lobe download bar. */
.ce_download_default { background:rgb(40,49,78); color:#fff; padding:0 0 0 7px; border-radius:3px; position:relative; }
.ce_download_default a { background:transparent; color:#fff; border-radius:0; display:block; position:relative; padding:12px 110px 16px 12px; line-height:27px; }
.ce_download_default::after { content:none; }
.ce_download_default a::after { font-family:FontAwesome; content:"\f0ed"; position:absolute; right:35px; top:50%; margin-top:-35px; font-size:70px; line-height:70px; color:rgba(255,255,255,.1); pointer-events:none; }
.ce_download_default .size::before { content:" "; white-space:pre; }
.ce_download_default:hover { background:#868fae; }

/* Tiergarten anniversary: match the existing news-detail design. */
.newsreader .tiergarten-jubilaeum-abschnitt {padding:0; margin:0 0 40px; clear:both; overflow:auto; background:transparent;}
.newsreader .tiergarten-bildpaar {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;margin:28px 0 12px;clear:both;}
.newsreader .tiergarten-bildpaar > .ce_image {min-width:0;width:100%;max-width:360px;margin:0;float:none;justify-self:center;}
.newsreader .tiergarten-jubilaeum-bild figure {margin:0;width:100%;}
.newsreader .tiergarten-jubilaeum-bild img {display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;background:transparent;}
.newsreader .tiergarten-ausgabe {display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px;align-items:start;}
.newsreader .tiergarten-ausgabe > .ce_image {margin:0;width:100%;float:none;}
.newsreader .tiergarten-quiz {font-size:22px;margin:24px 0 10px;}
@media(max-width:800px){.newsreader .tiergarten-ausgabe{grid-template-columns:1fr}.newsreader .tiergarten-ausgabe>.ce_image{max-width:360px}.newsreader .tiergarten-bildpaar{gap:20px}}
@media(max-width:520px){.newsreader .tiergarten-bildpaar{grid-template-columns:1fr}}

/* Keep article and image areas white; captions use the standard theme background. */
.newsreader .tiergarten-jubilaeum-abschnitt,
.newsreader .tiergarten-jubilaeum-abschnitt .ce_image,
.newsreader .tiergarten-jubilaeum-abschnitt figure {background:transparent;}

/* Mega-menu column headings stay unfilled, including the active books overview. */
.header .mainmenu .megamenu-wrapper .level_2 > li > a.a-level_2.megamenu,
.header .mainmenu .megamenu-wrapper .level_2 > li > a.a-level_2.megamenu:hover {
  background: transparent !important;
}

/* Active flyout links need white text on the theme's orange background. */
.header .mainmenu ul ul a.active:not(.megamenu),
.header .mainmenu ul ul a.active:not(.megamenu) > span,
.header .mainmenu ul ul li.active > a:not(.megamenu),
.header .mainmenu ul ul li.active > a:not(.megamenu) > span {
  color: #fff !important;
}
