@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');

@font-face {
    font-family: 'body';
    src: url('../fonts/Lora-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'headings';
    src: url('../fonts/OpenSans-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}
:root {
      --colour1: hsl(216, 62%, 10%);
      --colour2: hsl(216, 62%, 25%);
      --colour3: hsl(216, 62%, 50%);
      --colour4: hsl(216, 62%, 75%);
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	font-family: body;
	color: rgb(92, 91, 91);
	display: unset; /*WEIRD - NECESSARY FOR POSITION: STICKY TO WORK ON THE NAV*/
}
.topWrapper {
	display: unset;
}
main {
    padding: 1em 1em 15em 1em;
    margin: 0 auto;
    width: 100%;
}
article {
	font-size: 1.1rem;
}
ul {
	list-style-type: none;
}
section {
	/*overflow: auto;*/
	width: 70%;
	margin: 0 auto;
	padding: 0 1em;
}
section p {
	line-height: 1.8;
	margin: 1em 0;
	font-size: 1em;
}
section ul {
	padding: 0;
}
header {
    display: flex;
    align-items: center;
    font-size: 10vw;
    padding: 0;
    height: 70vh;
    background-color: var(--colour1);
    background-image: url(../images/backgroundShaded.png);
    background-size: contain;
}
#index header {
	font-size: 1.5rem;
	color: #fff;
}
header div {
	width: 50%;
}
header div ul {
    columns: 2;
}
header div li {
	margin-bottom: 2rem;
	position: relative;
	width: 85%;
	transition: .3s;
}
header div li:hover {
	opacity: .5;
}
header div a::after {
    content: "";
    border-color: transparent transparent transparent #fff;
    border-style: solid;
    border-width: 14px;
    width: 0;
    height: 0;
    display: inline-block;
    position: absolute;
    right: 0;
}
header div p {
    font-size: 2rem;
    padding-left: 2.6rem;
}
header div a {
    display: block;
    padding: 1rem 0;
    background-color: var(--colour2);
    backdrop-filter: unset;
    font-family: headings;
    position: relative;
    padding-left: 1rem;
}
header h1 {
	flex: 1;
	text-align: center;
	font-weight: normal;
}
header h2 {
	color: #fff;
}
.nameLogo {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.logoContainer {
    display: grid;
    grid-template-columns: 1fr 0fr;
    color: var(--colour2);
    text-align: right;
    justify-items: end;
}
.logoContainer p {
	padding-right: 1rem;
}
img[src*="logo"] {
	width: 100px;
}
.imageContainer {
	width: 50%;
	height: 100%;
	background-size: cover;
    background-repeat: no-repeat;
}
#index .imageContainer {
    background-image: url(../images/lawyers4.jpg);
}
#contracts .imageContainer {
    background-image: url(../images/l1.jpg);
}
#blog .imageContainer {
    background-image: url(../images/lawyers9.jpg);
}
#about .imageContainer {
    background-image: url(../images/lawyers10.jpg);
}
[id*="services"] .imageContainer {
    background-image: url(../images/lawyers11.jpg);
}
#contact .imageContainer {
    background-image: url(../images/lawyers12.jpg);
}
#family-law .imageContainer {
    background-image: url(../images/l13.jpg);
}
#estate-planning .imageContainer {
    background-image: url(../images/family.jpg);
 }
#workplace .imageContainer {
    background-image: url(../images/l4.jpg);
 }
#contracts .imageContainer {
    background-image: url(../images/lawyers3.jpg);
 }
#commercial .imageContainer {
    background-image: url(../images/lawyers6.jpg);
 }
#conveyancing .imageContainer {
    background-image: url(../images/lawyers5.jpg);
 }
#the-team .imageContainer {
    background-image: url(../images/18.jpg);
 }
.group {
    display: grid;
    grid-template-columns: 1fr 4fr;
    align-items: center;
    border-bottom: 1px solid var(--colour3);
    margin-bottom: 2rem;
    padding-bottom: 1.7rem;
}
.group:last-of-type {
	border-bottom: none;
}
h2 {
	color: var(--colour3);
}
footer {
	font-size: 2rem;
	padding: .5em 0;
}
h1 {
	font-size: 7rem;
	color: #fff;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: body;
}
header p,
footer p {
	margin: 0;
    font-weight: lighter;
	font-family: headings;
}
.topWrapper {
	font-family: headings;
}
.topWrapper p a[href*="professional"] {
	text-decoration: none;
	color: inherit;
	color: var(--colour2);
	font-size: 4rem;
	padding-left: 3rem;
	font-family: body;
}
header a,
footer a {
	color: inherit;
	text-decoration: none;
	display: block;
}
header a {
    backdrop-filter: grayscale(.9)/* blur(5px)*/;
    height: 100%;
    display: flex;
    align-items: center;
}
.hiddenbreak {
	display: none;
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    background-color: var(--colour1);
    color: #fff;
    width: 100%;
    max-height: 100px;
    transition: .1s;
    z-index: 1;
}
footer a {
    display: inline-block;
    width: 50px;
    margin-right: 1em;
}
.social {
    display: flex;
    width: 30%;
    justify-content: center;
    align-items: center;
}
.social img {
    display: none;
}
.social a:hover {
    color: var(--colour2);
}
.social a {
    width: 40px;
    height: 40px;
    display: block;
    margin-right: 1em;
    margin-top: .5em;
    font: normal normal normal 14px/1 FontAwesome;
    color: var(--colour4);
    text-decoration: none;
    font-size: 1.5rem;
    transition: .3s;
}
.social a[href*="facebook"]::before {
	content:"\f09a";
}
.social a[href*="twitter"]::before {
	content:"\f099";
}
.social a[href*="linkedin"]::before {
	content:"\f0e1";
}
.phone {
    padding-right: 2em;
    display: flex;
    align-items: center;
}
.phone a {
    text-decoration: none;
    color: inherit;
}
.booking {
    width: 200px;
    height: 75px;
    display: flex;
    align-items: center;
}
#Setmore_button_iframe {
    display: block;
    width: 68%;
    height: 67%;
    background-color: var(--colour4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--colour1);
    text-decoration: none;
    font-family: 'body';
    font-size: 1rem;
    font-family: headings;
    text-shadow: 1px 1px 5px #fff;
    transition: .3s;
}
#Setmore_button_iframe:hover {
    opacity: .5;
}
#menubutton {
	display: none;
}
nav,
nav ul {
	background-color: var(--colour1);
	color: #fff;
}
nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 1;/*WAS 2*/
    position: sticky;
    top: 0;
    border-bottom: 1px solid #fff;
}
nav ul {
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 50%;
    align-items: center;
}
nav ul ul {
	margin-left: -9999px;
	position: absolute; /*WITHOUT THIS, THE MENU ITEMS "JUMP" ON HOVER*/
	flex-direction: column;
	padding: .5em;
	width: 100%;
	top: 100%;
    background-color: var(--colour1);
}
nav li:hover ul,
.nav li.sfHover ul {
	margin-left: 0;
}
nav ul a {
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 1em;
	transition: .3s;
}
nav ul a:not(.current a):hover {
	color: var(--colour4);
	opacity: .5;
}
nav .current a {
	opacity: .3;
	cursor: context-menu;
}
a[href*="parent-"]:not(ul ul a):not(.largeGallery a) {
    cursor: pointer;
    pointer-events: none;
}
nav li {
	position: relative;
	min-width: 7em;
	text-align: center;
	text-transform: uppercase;
    font-size: .9em;
    letter-spacing: 3px;
}
nav .credits {
	display: none;
}
[id*="blog"] main a {
	color: var(--colour2);
}
[id*="blog"] main {
	    display: unset;
}
[id*="blog"] article {
	float: left;
	width: 80%;
	margin-bottom: 4rem;
}
[id*="blog"] aside {
	float: right;
	width: 20%;
	position: sticky;
	top: 5rem;
	margin-bottom: 4rem;
}
[id*="blog"] aside ul {
	padding: 0;
	margin-top: 3rem;
}
[id*="blog"] aside li {
	margin-bottom: 2rem;
}
[id*="blog"] aside a {
    text-decoration: none;
    color: var(--colour2);
}
[id*="blog"] input[type="text"] {
    border: 1px solid var(--colour2);
    height: 2rem;
    margin-right: 0.5rem;
}
[id*="blog"] input[type="submit"] {
    background-color: var(--colour1);
    color: #fff;
    height: 2rem;
}
[id*="blog"] .nm_post_title a {
	text-decoration: none;
	color: var(--colour2);
}
.nm_post_date {
	font-family: headings;
}
.nm_post_meta {
    display: none;
}
.nm_post_image {
    float: left;
    margin-right: 3rem;
    margin-bottom: 3rem;
    width: 10vw;
    height: 10vw;
}
.nm_post_image img {
    object-fit: cover;
    width: 100%;
    max-height: 100%;
}
.nm_post_title {
    clear: both;
    border-top: 1px solid var(--colour2);
    padding-top: 2rem;
}
.nm_post:first-of-type .nm_post_title {
	border-top: none;
}
.nm_post_single .nm_post_image {
	float: none;
	width: 100%;
}
@media only screen and (max-width: 1875px) {
	#gigs section {
		width: 70%;
	}
}
@media only screen and (max-width: 1510px) {
	nav li:not(.simple-audio-player li) {
		letter-spacing: initial;
	}
	#gigs section {
		width: 90%;
	}
}
@media only screen and (max-width: 1302px) {
	nav li:not(.simple-audio-player li) {
		min-width: initial;
	}
	.social {
		justify-content: flex-start;
	}
}
@media only screen and (max-width: 1230px) {
	.social a {
		margin-right: .5em;
	}
	.social a:last-of-type {
		margin-right: 0;
	}
	.social {
		justify-content: flex-end;
		padding-right: 70px;
	}
	section {
		width: 60%;
	}
	.gallery-lightbox div.gallery {
	    grid-template-columns: repeat(5, 1fr);
	}
}
@media only screen and (max-width: 1100px) {
	nav ul:not(.simple-audio-player ul) {
		align-items: center;
	}
	nav ul a {
		padding: 0;
	}
	section {
		width: 70%;
	}
	#gigs .date {
	    width: 17%;
	}
	.gallery-lightbox div.gallery {
	    grid-template-columns: repeat(4, 1fr);
	}
	#contact form {
	    width: 95%;
	}
}
@media only screen and (max-width: 900px) {
	header {
		justify-content: center;
		align-items: flex-end;
		background-position: 80% 0;
	}
	nav {
		flex-direction: column;
		width: 0;
		/*overflow: hidden;*/
		transition: .3s;
	}
	#main-nav:target {
		width: 30%;
		background-color: rgba(0, 0, 0, .5);
		border-radius: 0 110px 110px 0;
	}
	.social {
		order: 1;
		padding: 0;
		width: 100%;
		justify-content: center;
		margin-top: 3em;
	}
	nav ul {
		order: 2;
	}
	nav ul:not(.simple-audio-player ul) {
	    flex-direction: column;
	    align-items: flex-start;
	    margin-top: 1.5em;
	    width: 100%;
	}
	nav li:not(.simple-audio-player li) {
		width: 100%;
		margin-bottom: 1em;
	}
	nav ul a {
		padding: .5em;
	}
	#menubutton {
	    display: block;
	    position: absolute;
	    /* top: 0; */
	    left: 16px;
	    color: white;
	    z-index: 20;
	    font-size: 2rem;
	    text-decoration: none;
	}
	#menubutton span {
    font-size: 1.5rem;
	}
	#menubutton:has(+#main-nav:target) {
		display: none;
	}
	section {
		width: 80%;
	}
	#videos section p:nth-of-type(odd),
	#videos section p:nth-of-type(even) {
		float: none;
		width: 100%;
	}
	div.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	.gallery-lightbox div.gallery {
	    grid-template-columns: repeat(3, 1fr);
	}
	#music section ul {
	    grid-template-columns: repeat(3, 1fr);
	}
	blockquote {
		width: 30%;
		margin-left: .5em;
	}
}
@media only screen and (max-width: 635px) {
	#videos section, 
	#index section,
	section {
		width: 90%;
	}
	section p {
		margin-left: 0;
		margin-right: 0;
	}
	#main-nav:target {
	    width: 50%;
	}
	blockquote p {
		margin-left: 1.3em;
	}
	#gigs .date,
	#gigs .venue {
		display: inline-block;
		width: 50%;
		border-bottom: none;
	}
	#gigs .tickets {
		display: block;
	}
	.gallery-lightbox div.gallery {
	    grid-template-columns: repeat(2, 1fr);
	}
	.hiddenbreak {
		display: block;
	}
	header {
		font-size: 15vw;
	}
	h1 {
		font-size: 4rem;
	}
	blockquote {
		width: 40%;
	}
}
@media only screen and (max-width: 615px) {
	#contact textarea {
		width: 99%;
	}
}
@media only screen and (max-width: 520px) {
	#videos section, 
	#index section,
	section {
		width: 97%;
	}
	#main-nav:target {
	    width: 60%;
	}
	div.gallery {
		grid-template-columns: repeat(1, 1fr);
	}
	#gallery-2 .gallery-prettyphoto {
		pointer-events: none;
		cursor: context-menu;
	}
	#music section ul {
	    grid-template-columns: repeat(2, 1fr);
	}
	blockquote,
	blockquote:nth-of-type(even) {
		float: none;
		width: 80%;
		border-top: 3px double var(--colour1Contrast);
		border-right: none;
		border-bottom: 3px double var(--colour1Contrast);
		border-left: none;
		background-color: initial;
	    margin: 0 auto;
	    box-shadow: initial;
	}

}
@media only screen and (max-width: 480px) {
	#videos section, 
	#index section,
	section {
		width: 98%;
	}
	main {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}
	#gigs td {
		padding-top: .5em;
		padding-bottom: .5em;
	}
	#gigs .date,
	#gigs .venue {
		display: block;
		width: 100%;
	}
	#gigs .tickets {
		padding-bottom: 1.5em;
	}
	.gallery-lightbox div.gallery {
	    grid-template-columns: repeat(1, 1fr);
	}
	#music section ul {
	    grid-template-columns: 1fr;
	}
}
@media only screen and (max-width: 420px) {
	.credits {
		display: none;
	}
	nav .credits {
		display: block;
	}
}