@media only screen and (max-width: 499px) and (min-width: 315px), only screen and (max-device-width: 499px) and (min-width: 315px) {
	#main-container {
		width: 100%;
	}
	div.photos {
		
	}

		#photocontainer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

	div.photo-container {
		gap: 5px;
	}
	div.photo-column {
		gap: 2px;
	}

	img.front {
		height: 300px;
		object-fit: cover; /* Maintain aspect ratio while covering the area */
    	object-position: center; /* Center the image */
		/*height: 144px;
		background-image: attr(data-mobile url) !important;
		content: attr(data-mobile url) !important;*/
	}
	#label {
		/*display: none;*/
		left: 0px;
		top: -35px;
		width: 200px;
	}
	.fp-albums{
		flex-direction: row;
		gap: 0px !important;
		display: flex !important;
	}
	ul.albums {
		width: 100%;
		overflow: clip;
		display: flex;
		flex-wrap: wrap;
	}
	
	ul.albums li {
		width: 50%;
		min-width: 100px;
		height: 200px;
		overflow: clip;
	}
	ul.albums li a {
		display: block;
		height: 100%;
	}
	ul.albums li a img {
    flex: 1 1 calc(50% - 10px); /* Responsive items with space adjustment */
		height: 100%;
		    object-fit: cover; /* Maintain aspect ratio while covering the area */
    object-position: center; /* Center the image */
		/*height: 64px;
		background-image: attr(data-mobile url) !important;
		content: attr(data-mobile url) !important;*/
	}
	ul.albums li a.album-label {
		/*display: none;*/
		width: 100%;
		font-size: 0.7em;
		bottom: 25px;
		right: 10px;
	}
	div.about {
		display: none;
	}
	ul.recent {
		padding: 0px;
		width: 315px;
	}
	div#header { width: 100%;}
	.logo{
		width: 90px !important;
		height: 50px !important;
	}
	ul.menu li#headersocialm {
		display: none;
	}

	ul.menu li a{
		font-size: 10px;
	}
	
	.last{
	width:}
	
	#header {
		font-size: 25%;
	}
	#header h1 {
		font-size: 150%;
		line-height: 1.2;
	}
	#header h1, #header p {
		text-align: center;
	}
	div#footer { width: 315px; }
	hr { width: 315px !important; }
	ul.menu { margin-left: 5px; }
	/*ul.menu li:nth-last-child(3) { display: none; }*/
	div#footer ul.menu+span {
		clear: left;
		width: 315px;
		text-align: center;
		display: block;
		margin-top: 1em;
	}
	div#footer ul.menu+span+span {
		width: 315px;
		text-align: center;
		display: block;
	}
	div#footer span {
		padding: 0 0 0 0;
		line-height: 1.75;
	}
	/* Photo pages */
	/* Photos {{{ */
ul.photos {
	margin: 2px 20px 20px 20px;
	padding: 0;
}
ul.photos li {
	background: #eee;
	float: left;
	margin: 0 6px 13px 0;
	padding: 0;
	height: 50px;
	width: 85px;
}

ul.photos li a img {
	height: auto;
	width: 85px;
}
h2.album {
	padding-left: 30px;
	font-size: 1.0em;
	white-space: nowrap;
}
/* }}} End Photos */
	#photo, #photo a {
		width: 315px;
		display: flex;
		justify-content: center;
		position: relative;
		float: none;
		margin: 0 auto;
				align-content: center;

	}
	#photo a { display: inline-block; }
	#photo a img {
		max-width: 315px;
		justify-content: auto;
		display: flex;
		margin: 0px auto;
		align-content: center;
	}
	#info-panels {
		width: 100%;
		overflow: auto;
		display: flex;
		position: relative;
		justify-content: center;
		padding: 0;
		flex-direction: column;
		align-content: center;
		margin: 0px auto;
	}
	#info-panels #navigation-photos {
		text-align: center;
		display: flex;
		position: relative;
		justify-content: center;
		margin: 5px auto;

	}
	#info-panels #navigation-photos a .hidden-text {
				display: flex;
		position: relative;
		justify-content: center;
		font-size: 0.8em;
	}
	#info-panels #navigation-photos a img {
		display: none;
	}
	#info-panels .info {
		float: none;
		height: 93px;
		margin: .8em auto;
		padding: 0 0 7px 0;
	}
	#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;
	}
	/* other pages */
	.images, img.contact {display: none;}
	.text-box { margin: 0 !important; padding: 0 !important; }
	#address-box, #contact-box, #ordf-box {
		width: 315px;
		float: none;
		margin: 3px 0;
	}
	img.contact+.clear { clear: both !important; }
	/* members */
	div.members {
		list-style-type: none;
	}
	div.member {
		float: none;
		width: 315px;
		padding: 0;
		display: list-item;
		background: transparent url(../gfx/bullet.png) left 7px no-repeat;
		padding-left: 24px;
		margin: 0 !important;
	}
	div.member div h4 {
		text-align: left !important;
	}
	.member img, .member br { display: none; }
	div.member-info {
		margin-bottom: 0;
		width: 315px;
		text-align: left !important;
	}
	div.member-info * { display: block; }
	div.member-info>span {display: none;}
	/* banner (NEEDS FIXING) */
	.banner img {
		/*display: none;*/
		width: 315px;
	}
	.committe{
		padding: 5px 15px;
	}
	#contactcontainer2{
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
		.contact{
		font-size: 4vw !important;
			line-height: 5vw !important;
		padding: 10px 15px !important;
				width: 300px!important;
	}
}