/* Lodz - The Museum HTML Template*/

@media only screen and (max-width: 1340px){
	
	.page-wrapper{
		overflow:hidden;	
	}
	
	.hidden-bar .hidden-bar-closer,
	.hidden-bar .nav-toggler{
		display:block;	
	}
	
	.hidden-bar.left-align {
		left: -302px;
	}

	.has-side-nav .page-wrapper{
		padding-left:0px;	
	}
	
	.feature-section-two .feature-column .inner-column{
		margin-left: 15px;
		padding: 50px 40px 20px 40px;
	}

	.contact-page-section .map-column{
		position: relative;
		width: 100%;
		height: 500px;
		float: left;
	}

	.contact-page-section:before{
		width: 50%;
		left: 0;
	}
	
	.contact-page-section .form-column,
	.contact-page-section .info-column{
		width: 50%;
		margin-left: 0;
	}

	.contact-page-section .form-column{
		padding-left: 15px;
		padding-right: 15px;
	}
	

}

@media only screen and (max-width: 1140px){
	.feature-section-two .text-column{
		width: 100%;
		padding-top: 60px;
		padding-bottom: 0;
	}
	
	.feature-section-two .feature-column{
		width: 100%;
		padding: 35px 15px 60px;
	}

	.feature-section-two .feature-column .inner-column{
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.feature-section-two .text-column .inner-column{
		float: left;
		max-width: 100%;
		padding-right: 15px;
	}

	.feature-section-two .image-layer{
		display: none;
	}

	.info-section{
		margin-top: 0;
		background-color: #333333;
	}

	.event-form button{
		margin-top: 0;
	}

	.sidebar .search-box{
		padding: 30px 30px;
	}

	.event-detail .two-column .venue-column{
		padding-left: 15px;
	}

	.error-page-section{
		padding: 300px 0 200px;
	}
	
	.main-slider h1{
		font-size:64px;	
	}
	
	.event-list,
	.blog-detail{
		padding-right:0px;	
	}
	
	.gallery-full-width .small-column{
		width:50%;	
	}
	
	.gallery-full-width .big-column{
		width:50%;	
	}
}

@media only screen and (min-width: 768px){
	.main-menu .navigation > li > ul,
	.main-menu .navigation > li > ul > li > ul{
		display:block !important;
		visibility:hidden;
		opacity:0;
	}
}

@media only screen and (max-width: 1023px){
	.main-slider h1{
		font-size: 54px;
	}

	.main-slider h2{
		font-size: 50px;
	}

	.main-slider p{
		max-width: 500px;
		margin: 0 auto;
	}

	.main-menu .navigation > li{
		margin: 0 15px;
		padding: 60px 5px;
	}

	.main-menu .navigation > li > a:before{
		display: none;
	}

	.info-banner .content-box h3{
		font-size: 22px;
		line-height: 1.3em;
	}

	.project-tab .tab-btns-box, 
	.project-tab .sec-title,
	.history-section .content-column,
	.history-section .image-column{
		position: relative;
		width: 100%;
	}

	.history-section .content-column .inner-box{
		max-width: 100%;
	}

	.history-section .image-column .image-box{
		display: block;
	}
	
	.gallery-full-width .small-column{
		width: 50%;
	}

	.gallery-full-width .gallery-item{
		padding: 0 5px;
		margin-bottom: 10px;
	}

	.gallery-full-width{
		padding-left: 5px;
		padding-right: 5px;
	}

	.gallery-full-width .items-container{
		margin: 0 -5px;
	}

	.info-section-two .info-box{
		padding: 0 15px;
		margin-bottom: 30px;
	}

	.info-section-two .row{
		margin: 0 -15px;
	}

	.gallery-section .sec-title,
	.exhibition-block .content-column .inner-column,
	.exhibition-block.style-two .content-column .inner-column,
	.project-section .project-tab,
	.gallery-full-width .inner-container{
		text-align: center;
	}

	.project-tab .product-tab-btns{
		margin-bottom: 30px;
		padding-top: 0;
	}

	.project-tab .product-tab-btns .p-tab-btn{
		float: none;
		display: inline-block;
	}

	.gallery-full-width .sec-title{
		float: none;
	}
	
	.gallery-section .filters,
	.gallery-section .sec-title,
	.project-tab .sec-title,
	.gallery-full-width .filters{
		margin-top: 0;
		margin-bottom: 30px;
		width: 100%;
	}

	.main-header .sticky-header{
		display: none;
	}

	.main-header .header-lower{
		margin-top: 0;
		background-color: rgba(0,0,0,.70);
	}

	.main-header .main-box{
		padding: 0;
		background-color: transparent;
	}

	.fun-fact-section .video-column .inner-column,
	.exhibition-block.style-two .image-column .inner-column,
	.history-section-two .blocks-column .inner-column{
		margin-left: 0;
	}

	.exhibition-block .image-column .inner-column{
		margin-right: 0;
	}

	.history-section-two .history-image{
		margin-top: 0;
	}

	.blog-detail,
	.feature-section.style-two .text-column .inner-column,
	.fun-fact-section .content-column .text,
	.fun-fact-section .content-column .inner-column,
	.exhibition-block.style-two .content-column .inner-column,
	.history-section-two .image-column .text{
		padding-right: 0;
	}

	.exhibition-block .content-column .inner-column{
		padding-left: 0;
	}

	.sec-title-two > p br{
		display: none;
	}

	.video-section .video-box .image a .heading{
		font-size: 20px;
	}

	.error-page-section{
		padding: 200px 0 200px;
	}

	.error-page-section h1{
		font-size: 150px;
	}

	.contact-page-section .info-column,
	.contact-page-section .form-column .inner-column{
		padding: 100px 0;
	}

}

@media only screen and (max-width: 767px){	
	.main-header,
	.main-header .header-lower{
		position: relative;
		background-color: #333333;
	}

	.main-header .main-box .logo-box{
		width: auto;
		padding: 10px 0;
	}
	
	.main-header .main-box .logo-box .logo h3{
		font-size: 20px;
		letter-spacing: 1px;
	}
	
	.sticky-header .logo h3{
		font-size: 18px;
		letter-spacing: 1px;
	}
	
	.search-box-outer{
		display: none;
	}
	
	.main-header .nav-outer{
	    width: 100%;
	    margin-top: -63px;
	}
	
	.main-header .main-menu{
		padding-top: 0px;
		width: 100%;
		margin: 0px;
	}

	.main-menu .navbar-header {
	    position: relative;
	    float: none;
	    display: block;
	    text-align: right;
	    width: 100%;
	    padding: 0px 0px 20px;
	    right: 0px;
	}

	.main-menu .collapse {
	   overflow:auto;
		float:none;
		width:100%;
		padding:10px 0px 0px;
		border:none;
		margin:0px 0px 15px;
		-ms-border-radius:0px;
		-moz-border-radius:0px;
		-webkit-border-radius:0px;
		-o-border-radius:0px;
		border-radius:0px;
		box-shadow:none;
   }
   
	.main-menu .collapse.in,
	.main-menu .collapsing{
		max-height:320px;
		padding:10px 0px 0px;
		border:none;
		margin:0px 0px 15px;
		-ms-border-radius:0px;
		-moz-border-radius:0px;
		-webkit-border-radius:0px;
		-o-border-radius:0px;
		border-radius:0px;
		box-shadow:none;	
	}
	
	.main-menu .navbar-header .navbar-toggle{
		display:inline-block;
		z-index:20;
		border:1px solid #d1af78;
		float:none;
		margin:0px 0px 0px 0px;
		-webkit-border-radius:0px;
		-moz-border-radius:0px;
		-ms-border-radius:0px;
		-o-border-radius:0px;
		border-radius:0px;
		background:#d1af78;
	}
	
	.main-menu .navbar-header .navbar-toggle .icon-bar{
		background:#ffffff;	
	}
	
	.main-menu .navbar-collapse > .navigation{
		float:none !important;
		margin:0px !important;
		width:100% !important;
		
		border:1px solid #ffffff;
		border-top:none;
	}
	
	.main-menu .navbar-collapse > .navigation > li{
		margin:0px !important;
		float:none !important;
		padding:0px !important;
		width:100%;
	}
	
	.main-menu .navigation > li > a,
	.main-menu .navigation > li > ul:before{
		border:none;	
	}
	
	.main-menu .navbar-collapse > .navigation > li > a{
		padding:10px 10px !important;
		border:none !important;
		font-size:15px !important;
	}
	
	.main-menu .navigation li.dropdown > a:after,
	.main-menu .navigation > li.dropdown > a:before,
	.main-menu .navigation > li > ul > li > a::before,
	.main-menu .navigation > li > ul > li > ul > li > a::before{
		color:#ffffff !important;
		right:15px;
		font-size:16px;
		display:none !important;
	}
	
	.main-menu .navbar-collapse > .navigation > li > ul,
	.main-menu .navbar-collapse > .navigation > li > ul > li > ul{
		position:relative;
		border:none;
		float:none;
		visibility:visible;
		opacity:1;
		display:none;
		margin:0px;
		left:auto !important;
		right:auto !important;
		top:auto !important;
		padding:0px;
		outline:none;
		width:100%;
		background:#333333;
		-webkit-border-radius:0px;
		-ms-border-radius:0px;
		-o-border-radius:0px;
		-moz-border-radius:0px;
		border-radius:0px;
		transition:none !important;
		-webkit-transition:none !important;
		-ms-transition:none !important;
		-o-transition:none !important;
		-moz-transition:none !important;
	}
		
	.main-menu .navbar-collapse > .navigation > li > ul,
	.main-menu .navbar-collapse > .navigation > li > ul > li > ul{
		border-top:1px solid rgba(255,255,255,1) !important;	
	}
	
	.main-menu .navbar-collapse > .navigation > li,
	.main-menu .navbar-collapse > .navigation > li > ul > li,
	.main-menu .navbar-collapse > .navigation > li > ul > li > ul > li{
		border-top:1px solid rgba(255,255,255,1) !important;
		border-bottom:none;
		opacity:1 !important;
		top:0px !important;
		left:0px !important;
		visibility:visible !important;
	}
	
	.main-menu .navbar-collapse > .navigation > li > ul > li:first-child,
	.main-menu .navbar-collapse > .navigation > li > ul > li > ul > li:first-child{
		border-top:none !important;	
	}
	
	.main-menu .navbar-collapse > .navigation > li:first-child{
		border:none;	
	}
	
	.main-menu .navbar-collapse > .navigation > li > a,
	.main-menu .navbar-collapse > .navigation > li > ul > li > a,
	.main-menu .navbar-collapse > .navigation > li > ul > li > ul > li > a{
		padding:12px 20px !important;
		line-height:22px;
		color:#ffffff;
		font-weight:500;
		font-size:15px;
		background:#333333;
		text-align:left;
	}
	
	.main-menu .navbar-collapse > .navigation > li > a:hover,
	.main-menu .navbar-collapse > .navigation > li > a:active,
	.main-menu .navbar-collapse > .navigation > li > a:focus{
		background:#ff5926;
	}
	
	.main-menu .navbar-collapse > .navigation > li:hover > a,
	.main-menu .navbar-collapse > .navigation > li > ul > li:hover > a,
	.main-menu .navbar-collapse > .navigation > li > ul > li > ul > li:hover > a,
	.main-menu .navbar-collapse > .navigation > li.current > a,

	.main-menu .navbar-collapse > .navigation > li.current-menu-item > a{
		background:#333333;
		color:#ffffff !important;
	}
	
	.main-menu .navbar-collapse > .navigation li.dropdown .dropdown-btn{
		display:block;
	}
	
	.main-menu .navbar-collapse > .navigation li.dropdown:after,
	.main-menu .navigation > li > ul:before,
	.main-slider .bordered-layer{
		display:none !important;	
	}

	.main-menu .navigation > li.current:after, 
	.main-menu .navigation > li:hover:after{
		display: none;
	}

	.sec-title-two > h2,
	.sec-title > h2{
		font-size: 28px; 
	}

	.page-title{
		padding: 80px 0;
	}

	.page-title h1{
		font-size: 40px;
	}

	.main-slider h1{
		font-size: 40px;
	}

	.main-slider p br{
		display: none;
	}

	.news-section-two,
	.video-section,
	.subscribe-section,
	.fun-fact-section,
	.news-section,
	.testimonial-section,
	.event-section,
	.info-banner{
		padding: 70px 0;
	}

	.feature-section{
		padding: 70px 0 60px;
	}
	
	.event-form-section,
	.info-section-two,
	.feature-section.style-two{
		padding: 70px 0 40px;
	}

	.project-section,
	.gallery-section,
	.sidebar-page-container{
		padding: 70px 0 30px;
	}
	
	.main-footer .widgets-section,
	.history-section-two{
		padding: 70px 0 20px;
	}

	.event-section.event-grid,
	.exhibitions-section{
		padding: 70px 0 0px;
	}

	.history-section .content-column .inner-box{
		padding: 70px 15px 50px;
	}

	.news-section.style-two{
		padding-bottom: 70px;
	}

	.feature-section .features-list li{
		margin-bottom: 10px;
	}

	.news-section.style-two .styled-pagination{
		margin-top: 10px;
	}

	.testimonial-block .inner-box{
		padding-left: 0;
		text-align: center;
	}

	.gallery-full-width{
		padding: 70px 15px 60px;
	}

	.testimonial-block .image-box{
		position: relative;
		top: 0;
		margin:0 auto;
	}

	.subscribe-section .sec-title-two{
		margin-bottom: 30px;
	}

	.main-footer .footer-logo{
		margin-top: 0;
	}

	.main-footer .footer-column .widget-title{
		margin-bottom: 10px;
		font-size: 18px;
	}

	.history-section-two{
		text-align: center;
	}

	.event-form button{
		margin-top: 30px;
		display: block;
		width: 100%;
	}

	.event-detail .event-block-two{
		margin-bottom: 0;
	}

	.blog-detail blockquote{
		padding: 50px 20px ;
		font-size: 16px;
		line-height: 22px;
	}

	.testimonial-block .content-box:before{
		display: none;
	}

	.testimonial-block .content-box{
		padding-bottom: 0;
	}

	.video-section .video-box .caption-box{
		position: relative;
	}

	.video-section .video-box .caption-box h3{
		font-size: 14px;
		line-height: 20px;
	}

	.contact-page-section:before,
	.video-section .video-box .image a .heading{
		display: none;
	}

	.contact-page-section .info-column{
		width: 100%;
		padding: 70px 0 20px;
	}

	.contact-page-section .form-column{
		width: 100%;
	}

	.contact-page-section .form-column .inner-column{
		padding: 70px 0 70px;
	}

	.gallery-item .overlay-box .content .icon,
	.gallery-item .overlay-box .content h3{
		font-size: 14px;
		line-height: 20px;
	}
	
	.gallery-item .overlay-box .content{
		padding: 15px 15px;
	}
	
	.gallery-section .filters li:before,
	.gallery-section .filters li:after,
	.gallery-full-width .filters li:before,
	.gallery-full-width .filters li:after{
		display: none;
	}

	.gallery-section .filters .filter-tabs,
	.gallery-full-width .filters .filter-tabs{
		border-bottom: 0;
		padding: 0;
		display:block;
	}
	
	.gallery-section .filters li,
	.gallery-full-width .filters li{
		width: 100%;
		margin:0;
		border: 0;
		border-bottom: 1px solid #555555;
		padding:15px 0px;
		margin-bottom: 0px;
	}
	
	.fact-column .inner{
		padding:0px;
		text-align:center;
	}
	
	.fact-column .inner .icon-box{
		position:relative;
		left:0px;
		top:0px;
		margin:0 auto 20px;	
	}

}

@media only screen and (max-width: 599px){

	.main-slider h2{
		font-size: 24px;
	}
	
	.main-header .main-box .logo-box .logo h3{
		font-size: 18px;
		letter-spacing: 0.8px;
	}
	
	.sticky-header .logo h3{
		font-size: 16px;
		letter-spacing: 0.8px;
	}
	
	.main-slider p{
		font-size: 14px;
		line-height: 1.3em;
		max-width: 300px;
		margin: 0 auto;
	}
	
	.main-header .header-top .top-left{
		display: none;
	}
	
	.main-header .header-top .top-right{
		width: 100%;
		padding: 15px 0;
	}
	
	.main-header .header-top .top-right ul li{
		width: 100%;
		margin-right: 0;
		padding:0;
		text-align: center;
	}
	
	.exhibition-block .image-column{
		margin-bottom: 20px;
	}
	
	.subscribe-form .form-group{
		padding-right: 0;
		background: none;
	}
	
	.subscribe-section .title-column h2{
		font-size: 26px;
	}
	
	.subscribe-form .form-group input[type="submit"], 
	.subscribe-form button{
		position: relative;
		display: block;
		margin-top: 10px;
		width: 100%;
	}
	
	.comments-area .comment{
		padding-right: 0;
		padding-top: 0;
		text-align: center;
	}
	
	.comments-area .comment-box .reply-btn{
		position: relative;
		display: inline-block;
		margin-top: 10px;
		top: 0;
		bottom: 0;
	}
	
	.comments-area .comment-box{
		padding: 20px 15px;
	}
	
	.comments-area .comment-box .author-thumb{
		position: relative;
		margin: 0 auto 20px;
	}
	
	.comments-area .comment{
		padding-left: 0;
	}
	
	.news-block .caption-box{
		-webkit-transform: translateY(-80px);
		-moz-transform: translateY(-80px);
		-ms-transform: translateY(-80px);
		-o-transform: translateY(-80px);
		transform: translateY(-80px);
	}
	
	.contact-form button,
	.comment-form button{
		display: block;
		width: 100%;
	}
	
	.gallery-full-width .big-column{
		width: 100%;
	}
	
	.gallery-full-width .small-column{
		width: 100%;
	}
	
	.blog-detail blockquote:before{
		display: none;
	}

	.fun-fact-section .video-box .caption-box h3{
		font-size: 18px;
		line-height: 20px;
	}

	.info-banner .content-box h3{
		font-size: 18px;
	}

	.news-block-two .content-box .info{
		position: relative;
		margin-top: 10px;
		bottom: 0;
	}
	
	.news-block-two .content-box,
	.news-block-two .image-box{
		position: relative;
		width: 100%;
	}

	.news-block-two{
		margin-bottom: 40px;
	}

	.testimonial-section.style-two .owl-nav .owl-prev{
		left: 0;
	}
	
	.testimonial-section.style-two .owl-nav .owl-next{
		right: 0;
		left: auto;
	}	

	.tags-widget,
	.meta-widget,
	.post-widget,
	.categories-widget,
	.news-widget,
	.testimonial-widget,
	.sidebar .search-box{
		padding: 20px 15px;
	}

	.sidebar-widget{
		margin-bottom: 30px;
	}

	.tag-list li{
		min-width: 45%;
	}

	.error-page-section{
		padding: 100px 0 100px;
	}

	.error-page-section h1{
		font-size: 100px;
	}

	.fun-fact-section .video-box .caption-box{
		position: relative;
	}

	.project-tab .product-tab-btns .p-tab-btn{
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #666666;
		margin-bottom: 10px;
		padding-bottom: 15px;
	}

	.project-tab .product-tab-btns{
		border-bottom: 0;
	}

	.project-tab .product-tab-btns .p-tab-btn:before,
	.project-tab .product-tab-btns .p-tab-btn:after{
		display: none;
	}
	
	.page-title h1{
		font-size: 30px;
	}
	
	.page-title .bread-crumb li{
		font-size:16px;	
	}
	
	.error-page-section h2{
		font-size:30px;	
	}

}

@media only screen and (max-width: 479px) {

	.main-slider h1{
		font-size: 24px;
	}
	
	.main-header .main-box .logo-box .logo h3{
		font-size: 16px;
		letter-spacing: 0.5px;
		line-height: 1.2;
	}
	
	.sticky-header .logo h3{
		font-size: 14px;
		letter-spacing: 0.5px;
	}
	
	.main-footer .footer-bottom .copyright-text,
	.main-footer .footer-bottom .contact-link{
		width: 100%;
		text-align: center;
	}

	.exhibition-block .content-column h3{
		font-size: 18px;
	}

	.main-footer .footer-bottom p{
		font-size: 13px;
		float: none;
	}

	.scroll-to-top{
		right: 15px;
	}

	.testimonial-block .content-box p{
		font-size: 16px;
		line-height: 1.5em;
	}

	.fun-fact-section .video-box .image .icon{
		transform: scale(.7);
	}

	.event-detail .two-column li{
		font-size: 12px;
		line-height: 18px;
	}

	.event-detail .two-column li span{
		margin-left: 0;
	}


}

/* Sponsors Carousel Responsive */
@media only screen and (max-width: 767px){
	.clients-section.style-two{
		padding: 40px 0;
	}
	
	.clients-section.style-two .sponsors-outer .image-box{
		min-height: 120px;
		padding: 15px;
	}
	
	.clients-section.style-two .sponsors-outer .image-box img{
		max-height: 100px;
		max-width: 150px;
	}
}

@media only screen and (max-width: 479px){
	.clients-section.style-two{
		padding: 30px 0;
	}
	
	.clients-section.style-two .sponsors-outer .image-box{
		min-height: 100px;
		padding: 10px;
	}
	
	.clients-section.style-two .sponsors-outer .image-box img{
		max-height: 80px;
		max-width: 120px;
	}
}

/* Loading Screen Responsive */
@media only screen and (max-width: 767px){
	.loading-logo h2{
		font-size: 28px;
		letter-spacing: 2px;
	}
	
	.loading-logo p{
		font-size: 12px;
		margin-bottom: 30px;
	}
	
	.loading-percentage{
		font-size: 16px;
	}
	
	.loading-status{
		font-size: 12px;
	}
}

@media only screen and (max-width: 479px){
	.loading-logo h2{
		font-size: 22px;
		letter-spacing: 1.5px;
	}
	
	.loading-logo p{
		font-size: 11px;
		margin-bottom: 25px;
	}
	
	.loading-percentage{
		font-size: 14px;
	}
	
	.loading-status{
		font-size: 11px;
	}
	
	.loading-content{
		width: 85%;
	}
}

/* Info Panel Mobile Responsive */
@media only screen and (max-width: 768px) {
    #info-panel {
        max-width: 85%;
        padding: 15px 20px;
        top: 8%;
        font-size: 13px;
    }
    
    #info-panel h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    #info-panel .year {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    #info-panel .content {
        font-size: 13px;
        line-height: 1.5;
    }
    
    #info-panel .highlights {
        font-size: 12px;
    }
}

@media only screen and (max-width: 480px) {
    #info-panel {
        max-width: 90%;
        padding: 12px 15px;
        top: 5%;
    }
    
    #info-panel h2 {
        font-size: 18px;
    }
    
    #info-panel .year {
        font-size: 13px;
    }
    
    #info-panel .content {
        font-size: 12px;
    }
}


/* Mobile Info Panel - Compact Badge Style */
@media only screen and (max-width: 768px) and (orientation: landscape) {
    #info-panel {
        /* Compact badge at top */	
        max-width: auto;
        width: auto;
        padding: 8px 15px;
        top: 10px;
        left: 10px;
        transform: none;
        border-radius: 25px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(209, 175, 120, 0.5);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    /* Hide content by default, show only title and year */
    #info-panel .content,
    #info-panel .highlights {
        display: none;
    }
    
    #info-panel h2 {
        font-size: 14px;
        margin: 0;
        display: inline;
        margin-right: 8px;
    }
    
    #info-panel .year {
        font-size: 12px;
        margin: 0;
        display: inline;
        opacity: 0.8;
    }
    
    /* Expanded state */
    #info-panel.expanded {
        width: 100%;
        padding: 15px 20px;
        border-radius: 15px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
		height: 100%;
    }
    
    #info-panel.expanded h2 {
        font-size: 18px;
        display: block;
        margin-bottom: 8px;
    }
    
    #info-panel.expanded .year {
        font-size: 14px;
        display: block;
        margin-bottom: 10px;
    }
    
    #info-panel.expanded .content,
    #info-panel.expanded .highlights {
        display: block;
        font-size: 13px;
    }
    
    /* Close button for expanded state */
    #info-panel.expanded::after {
        content: '✕';
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 20px;
        color: #c9a961;
        cursor: pointer;
    }
}

/* Portrait mode - hide everything except rotate screen */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    #info-panel {
        display: none !important;
    }
}

/* Fullscreen API support */
@media only screen and (max-width: 768px) and (orientation: landscape) {
    .exhibitions-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
    }
    
    #canvas-container {
        width: 100vw !important;
        height: 100vh !important;
    }
}


/* Mobile Detection - Using aspect ratio and touch support */
/* Landscape mobile devices (aspect ratio wider than 16:10) */
@media only screen 
  and (orientation: landscape) 
  and (max-height: 900px) 
  and (hover: none) 
  and (pointer: coarse) {
    
    /* This targets touch devices in landscape with height < 900px */
    
    /* Keep other sections normal, only fullscreen exhibitions */
    body {
        overflow-x: hidden;
    }
    
    /* Full viewport ONLY for exhibitions section */
    .exhibitions-section {
        position: relative !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #canvas-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Compact info panel for mobile landscape - like image reference */
    #info-panel {
        position: absolute !important;
        max-width: none !important;
        width: auto !important;
        padding: 8px 20px !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 30px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(15px) !important;
        border: 2px solid rgba(209, 175, 120, 0.5) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        opacity: 1 !important;
    }
    
    /* Hide content by default */
    #info-panel .content,
    #info-panel .highlights {
        display: none !important;
    }
    
    #info-panel h2 {
        font-size: 16px !important;
        margin: 0 !important;
        display: inline !important;
        margin-right: 10px !important;
        font-weight: 500 !important;
        color: #d1af78 !important;
    }
    
    #info-panel .year {
        font-size: 14px !important;
        margin: 0 !important;
        display: inline !important;
        opacity: 0.8 !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* Expanded state - Full canvas area */
    #info-panel.expanded {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        padding: 40px 30px !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: rgba(0, 0, 0, 0.95) !important;
    }
    
    #info-panel.expanded h2 {
        font-size: 28px !important;
        display: block !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    #info-panel.expanded .year {
        font-size: 18px !important;
        display: block !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    #info-panel.expanded .content {
        display: block !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        max-width: 600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    #info-panel.expanded .highlights {
        display: block !important;
        font-size: 14px !important;
        line-height: 1.8 !important;
        margin-top: 15px !important;
        text-align: center !important;
    }
    
    /* Close button - larger for full screen */
    #info-panel.expanded::after {
        content: '✕';
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 32px;
        color: #c9a961;
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        border: 2px solid #c9a961;
    }
}

/* Help/Info Button and Panel */
.help-toggle {
    position: absolute;
    top: 100px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(209, 175, 120, 0.5);
    border-radius: 50%;
    color: #d1af78;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-toggle:hover {
    background: rgba(209, 175, 120, 0.9);
    color: #1a1a1a;
    transform: scale(1.1);
}

.help-panel {
    position: absolute;
    top: 80px;
    left: 20px;
    width: 400px;
    max-height: 70vh;
    background: linear-gradient(135deg, rgba(27, 26, 28, 0.98), rgba(47, 46, 50, 0.98));
    border: 3px solid #d1af78;
    border-radius: 15px;
    padding: 0;
    z-index: 1000;
    display: none;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.help-panel.active {
    display: block;
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.help-header {
    background: rgba(209, 175, 120, 0.2);
    padding: 20px;
    border-bottom: 2px solid #d1af78;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-header h3 {
    color: #d1af78;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    font-family: 'Frank Ruhl Libre', serif;
}

.help-close {
    background: none;
    border: none;
    color: #d1af78;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.help-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.help-content {
    padding: 25px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    color: #ffffff;
}

.help-content h4 {
    color: #d1af78;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    font-family: 'Frank Ruhl Libre', serif;
}

.help-content h4:first-child {
    margin-top: 0;
}

.help-content p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.help-content ul li {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.help-content ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #d1af78;
    font-weight: bold;
}

.help-content strong {
    color: #ffffff;
    font-weight: 600;
}

.help-tip {
    background: rgba(209, 175, 120, 0.1);
    border-left: 3px solid #d1af78;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.help-content::-webkit-scrollbar {
    width: 8px;
}

.help-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.help-content::-webkit-scrollbar-thumb {
    background: #d1af78;
    border-radius: 10px;
}

.help-content::-webkit-scrollbar-thumb:hover {
    background: #c9a961;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .help-panel {
        width: calc(100% - 40px);
        max-height: 60vh;
        left: 20px;
        right: 20px;
    }
    
    .help-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 15px;
    }
}

/* Slider Detail Button */
.slider-detail-button-wrapper {
    text-align: center;
    margin: 30px 0 20px 0;
}

.slider-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    background: linear-gradient(135deg, #d1af78, #c9a961);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(209, 175, 120, 0.3);
}

.slider-detail-btn:hover {
    background: linear-gradient(135deg, #c9a961, #b89850);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(209, 175, 120, 0.5);
    color: #ffffff;
}

.slider-detail-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.slider-detail-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 767px) {
    .slider-detail-button-wrapper {
        margin: 20px 0 15px 0;
    }
    
    .slider-detail-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}
