body {
	padding: 0;
	margin: 0;
}

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

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

#header { 
	grid-area: header;
	position: fixed;
	display: grid;
	grid-template-columns: repeat(2, 50%);
	width: 100%; 
	height: 39px;
	z-index: 100;
}

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

#title {
    grid-area: title;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 40px;
    width: 100%;
    height: 60px;
    text-align: center;
    z-index: 10;
}

#title .center {
    margin: 0 50px;
}
    
#title .left {
    flex-shrink: 2;
    width: 100%;
}

#title .right {
    flex-shrink: 2;
    width: 100%;
}

#aside {
	grid-area: aside;
    width: 100%;
}

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

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

/*
#title .center {
	padding: 0 0;
	width: 34%;
	height: 60px;
}
	
#title .left, .title .right {
	width: 33%;
	height: 60px;
	flex-grow: 1;
	flex-shrink: 0;	
}
*/
#content .core {
	margin: 89px 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;
}

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

#content .grid-game div.desc{
	display:none;
}
	
#content .grid .autofit {
	grid-column: 1/-1;
	margin: auto;
}

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

#psp-block-grid {
	grid-area: content;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: auto; 
	grid-column-gap: 20px;
	grid-row-gap: 20px;
	row-gap: 0;
	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: 15.5px;
}

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;
	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) {

	#content .title .center {
		width: 50%;
	}
		
	#content .title .left, .title .right {
		width: 25%;
	}
	
	#lightbox, #lightboxMap {
		left: 15%;
	    right: 15%;
	}
	
	#lightbox-close, #lightbox-close-map {
		position: fixed;
	    top: 0;
		right: calc(15% - 15px);
	}

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

#content {
    width: 95%;
}

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

	#content .grid-game {
		grid-template-columns: 31% 31% 31%;
	}

}

@media only screen and (max-width: 899px) {
	
    #content .grid { 
        grid-template-columns: 95%;
    }
    
    #content {
        width: 95%;
    }
    
	#lightbox, #lightboxMap {
		left: 7%;
	    right: 7%;
	}
	
	#lightbox-close, #lightbox-close-map {
		position: fixed;
	    top: 0;
		right: calc(7% - 15px);
	}

}
/*
@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: 799px) {

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

	#content .grid-game {
		grid-template-columns: 45% 45%;
	}

    #title {
        margin-top: 80px;
    }

	#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) {
	
	#content .grid-game {
		grid-template-columns: 100%;
	}

	#content .core {
		width: 96%;
	}

    #title {
        margin-top: 50px;
    }
	
	#title .center, #title .left, #title .right {
		height: 36px;
	}
	
	#title h1 {
        font-size: 40px;
	}
	
	#content .grid { 
		margin-top: 40px;
		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;
    }

}
