/* Services page specific content */

body {
	display: grid;
	grid-template-rows: auto;
	grid-template-columns: 100vw;
	grid-template-areas:
	"headergrid"
	"maingrid"
	"footergrid";
}

main {
	display: grid;
	justify-items: center;
	grid-area: "maingrid";
	background-image: url("/images/wood-mode-valance-detail-lightened.jpg");
	background-position: center;
	background-attachment: fixed;
	justify-items: center;
}

article {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3%;
	max-width: 35vw;
	margin-bottom: 4vh;
	margin-top: 1vh;
	background-color: rgb(250 250 250 / 50%);
	backdrop-filter: blur(5px);
	padding: 2%;
	box-shadow: 2px 2px 10px 2px rgb(005 005 005 / 10%);
}

h2 {
	display: grid;
	font-family: effra, sans-serif;
    font-weight: 600;
	color: #6a2bc7;
	font-size: 1.6rem;
	justify-self: left;
}

a {
	font-family: effra, sans-serif;
	color: #6a2bc7;
	text-decoration: none;
}

.H2Div {
	width: 100%;
	max-width: 40vw;
	border-bottom: 2px solid #6a2bc7;
	margin-bottom: 1vh;
}

.VendorLogo {
	max-height: 20vh;
	max-width: 100%;
}

/* Centers the logos */
.VendorLogoA {
	text-align: center;
	padding: 1vw;
}

.VendorSample1 {
	max-height: 25vh;
	width: 100%;
	object-fit: cover;
	overflow: clip;
}

p {
	font-family: effra, sans-serif;
    font-weight: 400;
	color: #595959;
	font-size: 1em;
}

.PDiv {
	grid-column: 2 / 3;
	grid-row: 1 / 3;
	align-content: center;
	padding: 1vw;
}

.PCredit {
	grid-column: 1 / 2;
	grid-row: 3;
	margin-block-start: 0em;
	font-size: .75em;
}

/* Media queries to fix article sizing on different viewport widths */

@media screen and (max-width:1700px){
	article {
		max-width: 45vw;
	}
	
	.H2Div {
		max-width: 50vw;
	}
}

@media screen and (max-width:1200px){
	article {
		max-width: 55vw;
	}
	
	.H2Div {
		max-width: 60vw;
	}
}

/* Media queries for mobile */

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

	/* Switches the articles to veritcal layout for mobile */
	article {
		grid-template-columns: 1fr;
		max-width: 80vw;
		gap: 0;
	}
	
	.VendorLogo {
		max-height: 15vh;
		margin: 1vw;
	}
	
	.VendorSample1 {
		grid-row: 1;
		width: 100%;
		object-fit: cover;
		overflow: clip;
	}
	
	.H2Div {
		max-width: 85vw;
	}
	
	.PDiv {
		grid-column: 1 / 2;
		grid-row: 4 / 5;
		margin-bottom: 1vh;
	}
	
	.PCredit {
		grid-column: auto;
		grid-row: 2;
		margin: 1vh;
	}

}

