:root {
	--custom-max-width: 1399px;
}

body {
	padding: 0;
	margin: 0;
}

#layout { 
    display: grid; 
    grid-template-columns:  300px 1fr;  
    grid-template-rows: 90px;
    gap: 0; 
    grid-template-areas: 'header header header' 
                         'title title title'
                         'content content content'
                         'footer footer footer'; 
}

#layout.programme { 
	display: grid; 
	grid-template-columns:  300px 1fr;  
	grid-template-rows: 90px;
	gap: 0; 
	grid-template-areas: 'header header header' 
                         'title title title'
                         'content content content'
                         'footer footer footer'; 
}

#header {
	position: fixed;
	left: 0;
	right: 0;
	height: 80px;
	z-index: 2500;
	
}

#header .container { 
	grid-area: header;
	position: fixed;
	margin: auto;
	left: 0;
	right: 0;
	display: grid;
	grid-template-columns: 30% 70%;
	width: var(--custom-max-width); 
	height: 80px;
	z-index: 100;
}
/*
#nav {
	grid-area: nav;
	position: fixed;
	top: 39px;
	width: 50%;
	height: 50px;
	text-align: center;
	z-index: 100;
}
*/

#nav {
	position: fixed;
	top: 0;
	right: 0;
	width: 50%;
	height: 50px;
	text-align: center;
	z-index: 100;
}

#title {
    grid-area: title;
    width: 100%;
    z-index: 10;
}
/*
#title {
    grid-area: title;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    height: 60px;
    z-index: 10;
}
*/
#aside {
	grid-area: aside;
    width: 100%;
}

#content { 
	grid-area: content;
	width: 100%;
	margin: auto;
	min-height: 600px;
	max-width: var(--custom-max-width) !important;
}

#content.programme {
	max-width: 100% !important;
}


#content h1 {
	margin: 30px 0;
}

#content .core {
	margin: 5px auto 50px;
	max-width: 1140px; 
}

#content .core.calendar {
    margin: 50px;
    max-width: none;
}

#content .grid { 
	/*grid-area: content;*/
	display: grid;
	grid-template-columns: 30% 30% 30%;
	grid-template-rows: auto; 
	column-gap: 1%;
	row-gap: 55px;
	justify-items: stretch;
	justify-content: space-around;
	max-width: inherit;
}

#psp-block {
	margin: 30px 0;
}

#psp-block-grid {
	grid-area: content;
	display: grid;
	grid-template-columns: 25% 25% 25% 25%;
	grid-template-rows: auto; 
	column-gap: 1%;
	row-gap: 10px;
	justify-items: stretch;
	justify-content: stretch;
	margin: 0 auto;
	max-width: 1140px;
}

#footer { 
	grid-area: footer;
	background-color: black;
}

#header > div {
	padding: 7px 10px;
	/*box-sizing: border-box;*/
}

#header img {
	position: relative;
	padding-top: 2px;
	max-height: 60px;
}

div.events {
	width: 100%;
}

div.events .detail .label {
	display: flex;
	flex-direction: row;
  	flex-wrap: nowrap;
}

#footer {
	padding: 15px;
	margin-top: 100px;
}
	
#footer h2 {
	padding: 30px 0 40px 0;
	text-transform: none;
}

#footer .grid {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
	padding: 0;
	margin: 0 auto;
	max-width: 1140px;
}

#footer .grid .footer-content{
	padding: 0;
	width: 50%;
}

/*
	LAYOUT EVENT

#layout-event { 
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
	padding: 0;
	margin-top: 50px;
	box-sizing: border-box;
}
*/

.events.page header {
	width: 100%;
}

.events.page section { 
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: start;
	gap: 20px;
	/*
	display: grid;
	grid-template-columns: repeat(2, 50%);
	*/
}

.events.page section > div {
	width: 50%;
}

.prices-section {
    width: 100%;
    /*max-width: 350px;*/
}

.prices-container {
	clear: both;
}

.prices-container hr {
	padding-top: 15px;
	clear: both;
}

.prices-block {
	width: 100%;
}

.prices-block .price {
	display: grid;
	grid-template-columns: 1fr 120px 120px ;  
	/*grid-template-rows: 32px;*/
	column-gap: 10px;
	margin-bottom: 20px; 
	width: 100%;
}

.prices-block .price .label {
	padding-top: 5px;
	margin: 0 !important;
}
.prices-block .price .value {
	padding-top: 5px;
}

.prices-button {
	float: right;
	display: flex;
	justify-content: space-between;
	align-content: center;
	align-items: stretch;
	gap: 20px;
	height: 40px;	
}

span.button-item {
	display: block;
} 

/*
 OSM
*/
#maposm {
	width: 100%;
	height: 700px;
}

#maptooltip {
	position: relative;
	top: -120px;
	left: -115px;
	padding: 12px;
    background: #fff;
	width: 220px;
	height: 80px;
	border-radius: 15px;
	text-align: center;
	filter: drop-shadow(0 3px 5px #777);
	line-height: 1.5; 
}

#maptooltip:after {
	content: "";
	position: absolute;
	bottom: -9px;
	left: 50%;
	margin-left: -9px;
	width: 18px;
	height: 18px;
	background: white;
	transform: rotate(45deg);
}

#maptooltip p {
	margin: 0;
	font-size: 14px;
}

@media only screen and (max-width: 1599px) {
	#content .grid { 
	    grid-template-columns: 30% 30% 30%;
	}
}

@media only screen and (max-width: 1399px) {

	:root {
		--custom-max-width: 95%;
	}
	
	#header .container {
		width: 95%; 
	}
		
	#content .title .center {
		width: 50%;
	}
		
	#content .title .left, .title .right {
		width: 25%;
	}

}

@media only screen and (max-width: 1250px) {

    #content {
        width: 95%;
    }

}

@media only screen and (max-width: 899px) {
	
    #content .grid { 
        grid-template-columns: 95%;
    }
    
    #content {
        width: 95%;
    }
    
}
/*
@media only screen and (max-width: 800px) {
	
	#content .grid { 
		grid-template-columns: 45% 45%;
		grid-template-rows: auto; 
		column-gap: 1%;
		row-gap: 55px;
		justify-items: stretch;
		justify-content: space-around;
		margin: 89px auto 50px;
	}
	
	#lightbox, #lightboxMap {
		left: 2%;
	    right: 2%;
	}
	
	#lightbox-close, #lightbox-close-map {
		position: fixed;
	    top: 0;
		right: calc(2% - 15px);
	}
	
	#content .core.calendar {
	    margin: 20px;
	    max-width: none;
	}	

}
*/
@media only screen and (max-width: 849px) {

	#layout, #layout.programme { 
	    display: grid; 
	    grid-template-columns: 100%;  
	    grid-template-rows: inherit; 
	    gap: 0; 
	    grid-template-areas: 'header' 
                         'nav' 
                         'title'
                         'content'
                         'footer'; 
	}

    #title {
        margin-top: 120px;
    }

	#content h1 {
		margin: 0;
	}

	#content .title {
		flex-wrap: wrap;
		flex-direction: column;
	}

	#content .title .center, #content .title .left, #content .title .right {
		width: 100%;
	}

	#content .grid { 
		grid-template-columns: 95%;
		grid-template-rows: auto; 
		column-gap: 1%;
		row-gap: 45px;
		justify-items: stretch;
		justify-content: space-around;
		margin: 60px auto 50px;
	}
	
	.events.page section { 
		flex-direction: column;
	}
	
	.events.page section > div {
		width: 100%;
	}

	.prices-block {
		padding: 20px 0;
		margin: 20px 0;
		max-width: 100%;
		text-align: right;
		/*
		border-top: 1px dashed #fff;
		border-bottom: 1px dashed #fff;
		*/
	}
	
	.prices-block .price {
		display: grid;
		grid-template-columns: 100% ;  
		/*grid-template-rows: 32px;*/
		margin-bottom: 20px; 
		width: 100%;
	}

	.prices-block .touchspin {
		margin-top: 20px;
	}

	#content .calendar {
        margin: 10px;
        max-width: none;
    }
    
    #lightbox, #lightboxMap {
        margin-top: 35px;
        left: 10px;
        right: 10px;
        border-radius: 10px;
    }
    
    #lightbox-close, #lightbox-close-map {
       margin-top: 40px;
       right: 0;
    }

}

@media only screen and (max-width: 469px) {

	#header img {
		padding-top: 0;
		max-height: 30px;
	}

	#content .core {
		width: 96%;
	}

	#title {
		margin-top: 60px;
	}

	#title h1 {
		padding: 0;
        font-size: 60px;
	}
	
	#content .grid { 
		row-gap: 35px;
	}
	
	#footer h2 {
		display: none;
	}
	
	#footer .grid .footer-content {
		width: 100%;
	}

	#footer .footer-content.medium {
		display: none;
	}
	
	#lightbox h1, #lightboxMap h1 {
		font-size: 40px;
	}
	
	#maposm {
	   position: absolute;
	   top: 100px;
	   left: 5px;
	   right: 5px;
	   bottom: 180px;
	   width: inherit;
	   height: inherit;
	}

	#content .core.calendar {
        margin: 0;
        width: 100%;
        max-width: none;
    }

}
