@media only screen and (max-width: 959px) and (min-width: 500px), only screen and (max-device-width: 959px) and (min-device-width: 500px) {

	#main-container {
		width: 100%;
	}
	img.front {
		width: 100%;
		height: auto;
		/*height: 500px;
		background-image: attr(data-narrow url) !important;
		content: attr(data-narrow url) !important;*/
	}
	#photocontainer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
	
	#label {
		left: 0px;
		top: -60px;
		width: 350;
	}
		ul.menu li#headersocialm {
		display: none;
	}

	ul.albums {
    display: flex; /* Use flexbox for better alignment */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
}

ul.albums li {
	width: 50%;
	height: 200px; /* Set a fixed height for the images, adjust as needed */
    overflow: hidden; /* Hide overflow for any cropping */
}

ul.albums li a {
    display: block; /* Ensure anchor takes full space */
    height: 100%; /* Full height for the anchor */
}

ul.albums li a img {
    flex: 1 1 calc(50% - 10px); /* Responsive items with space adjustment */
    height: 100%; /* Full height to fill the container */
    object-fit: cover; /* Maintain aspect ratio while covering the area */
    object-position: center; /* Center the image */
}
	ul.albums li a.album-label {
		width: 100%;
		bottom: 26px;
		right: 20px;
		font-size: 0.7em;
	}
	#hidden-album { display: list-item; }
	ul.recent li:nth-last-child(2) { display: none; }
	div.about {
		background: transparent url(../gfx/about-narrow.png) no-repeat top left;
		width: 500px;
	}
	div.about div.black { width: 98%; }
	div.about div.grey { display: none; } 
	div.about-bottom {
		background: transparent url(../gfx/about-narrow.png) no-repeat bottom left;
	}
	ul.recent {
		padding: 0px;
		width: 500px;
	}
	div#header { width: 100%; }

	div#footer { width: 500px; }
	hr { width: 500px !important; }
	ul.menu { margin-left: 33px; }
	/*ul.menu li:nth-last-child(3) { display: none; }*/
	div#footer ul.menu+span {
		clear: left;
		width: 270px;
		text-align: right;
		margin-right: 20px;
	}
	div#footer ul.menu+span+span {
		width: 210px;
		text-align: left;
	}
	div#footer span {
		padding: 1.3em 0 0 0;
	}
	/* Photo pages */
	#photo, #photo a {
		width: 500px;
		display: flex;
		justify-content: center;
		position: relative;
		float: none;
		margin: 0 auto;
	}
	#photo a { display: inline-block; }
	#photo a img {
		max-width: 500px;
		margin: 0 auto;
		justify-content: auto;
		display: flex;
		position: relative;
		float: none;
	}
	#info-panels {
		width: 100%;
		overflow: auto;
		margin: 5px auto;
		display: flex;
		position: relative;
		justify-content: center;
		padding: 0;
		flex-direction: column;
		float: none;
	}
	#info-panels #navigation-photos {
		float: none;
		justify-content: center;
		margin: 5px auto;
		display: flex;
		
	}
	#info-panels .info {
		float: none;
		height: 93px;
		padding: 0 0 7px 0;
		margin: 0 auto;
	}
	#info-panels .info .basic dt:nth-last-child(2),
	#info-panels .info .basic dd:nth-last-child(1) {
		display: none;
	}
	#info-panels #photo-help {
		display: none;
	}
		/* Photos {{{ */
	ul.photos {
		margin: 2px 20px 20px 20px;
		padding: 0;
	}
	ul.photos li {
		background: #eee;
		float: left;
		margin: 0 23px 23px 0;
		padding: 0;
		height: 80px;
		width: 130px;
	}

	ul.photos li a img {
		height: auto;
		width: 130px;
	}
	h2.album {
		padding-left: 30px;
		font-size: 1.0em;
		white-space: nowrap;
	}
		/* }}} End Photos */
	/* other pages */
	.images, img.contact {display: none;}
	#address-box, #contact-box, #ordf-box {
		width: 235px;
		float: right;
	}
	img.contact+.clear { clear: none !important; }
	/* members */
	div.members {
		list-style-type: none;
	}
	div.member {
		float: none;
		width: 450px;
		padding: 0;
		display: list-item;
		background: transparent url(../gfx/bullet.png) left 7px no-repeat;
		padding-left: 24px;
		margin: 0 !important;
	}
	.member img, .member br { display: none; }
	div.member-info {
		margin-bottom: 0;
		width: 450px;
		text-align: left !important;
	}
	div.member-info * { display: inline; }
	/* banner (NEEDS FIXING) */
	.banner img {
/*		display: none;*/
	width: 500px;
	}
	#contactcontainer2{
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.textmember{
		width: 100% !important;
		display:flex;
		justify-content:center;
		text-align: center;
		margin: 0 auto !important;
		align-self: center;
		max-width: 100% !important;
	}
}