@media screen and (max-height: 599px) {    
	header {
		position: absolute; 
		top: 0px; 
		z-index: 99;
	}
}

@media screen and (min-width: 1024px) and (max-width: 1152px) {

    #MainMenu .mainmenu {
	    padding: 10px 15px !important; 
		letter-spacing: -0.5px
	}

}

@media screen and (min-width: 0px) and (max-width: 1023px) {

	main {
		padding: 69px 10px 10px 10px;	
    }
	
	body {
		font-size: 22px;
	    line-height: 36px; 
	}

	header {
		background: linear-gradient(to bottom, #ff000000, #e8e8e8);
		background-color: rgb(251,251,251);
	    border-bottom: 0px;
	}

	header #shortcuts {
	    display: none !important;
	}

	footer {
		font-size: 90%;
		padding-top: 10px;
	}

	#ChangesBox {
	    border-bottom: 1px dotted silver;
		border-right: none;
	}

	#MainGrid {
	    grid-template-columns: 100%;
	}

	#BannerContainer {
		width: 100%;
	}
	
	#ProductImages #ImageThumbnails {
	    overflow-x: auto !important;
	}

	#AdsHeader {
		flex-direction: column;
	}


	#AdsHeader > div {
		width: 100% !important;
		padding: 0px !important;
	}
	
    #Content404Image {
		
		display: none;
	}
}

@media screen and (min-width: 560px) and (max-width: 1023px) {
	
	#footer-grid {
		display: grid; 
		grid-template-columns: 1fr 1fr; 
		grid-template-rows: 1fr 1fr; 
		grid-column-gap: 20px; 
		grid-row-gap: 20px;
		text-align: left;
	}

	#footer-shop-images {
		grid-area: 2 / 1 / 3 / 3;
		padding-top: 0px;
	}
	
	#CategoryList .SubmenuItemContainer > li {
       width: 30% !important;
    }
}

	
@media screen and (min-width: 560px) and (max-width: 799px) {
	
 #main_categories_container div.photo {
	 flex-basis: 46%;
 }
 
 #AboutUs {
	max-height: 200px; 
	overflow: scroll; 
	padding: 8px;
 }

}

@media screen and (min-width: 0px) and (max-width: 767px) {
	
	#BannerContainer img {
		
		aspect-ratio: 1 / 1;
	}
	
	div.wp-content-thumbnail-container {
		flex-direction: column;
	}
	
}

	 
@media screen and (min-width: 0px) and (max-width: 559px) {
	
	 #main_categories_container {
		 row-gap: 0px;
	 }
	
	 #main_categories_container div.photo {
		 flex-basis: 100%;
		 margin: 15px 40px;
	 }
	 
	#footer-grid {
		display: grid; 
		grid-template-columns: 1fr; 
		grid-template-rows: unset; 
		grid-column-gap: 20px; 
		grid-row-gap: 20px;
		text-align: left;
	}

	#footer-shop-images {
		grid-area: 2 / 1 / 3 / 3;
		padding-top: 0px;
	}
	
	#div_forgotten_password {
		
		width: 90% !important;
		height: 260px !important;
		margin-top: -130px !important;
	}
	
		
	#ContentPosts {
	    padding: 8px !important;
	}

	#AboutUs {
		max-height: 200px; 
		overflow: scroll; 
		padding: 8px;
    }
	
	#CategoryList .SubmenuItemContainer > li {
        width: 45% !important;
    }

    

}