* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --off-black: #222;
  --off-white: #f5f1ed;
  --grey: #777;
  --blue: #3FA7D6;
  --color-text: var(--off-black);
  --color-background: var(--off-white);
  /* Rubik: Light 300 / Light 300 italic / Regular 400 / Regular 400 italic / Medium 500 / Medium 500 italic */
  --font-family-sans: 'Rubik', Helvetica, Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-size: 100%;
  font-family: var(--font-family-sans);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-background);
}

body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
}
/* larger screens */
@media screen and (min-width: 60em) {
  body {
    --padding: 3rem;
  }
}

/* Typography */
/* Reset headings */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit; 
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 0.8rem;
}
h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
/* intro */
.intro h1 span {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}
.intro h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

strong, b {
  font-weight: 400;
}

p {
  padding-bottom: 1rem;
}

a {
	color: currentColor;
  font-weight: 400;
	text-decoration: none;
  border-bottom: solid 2px #ccc;
  transition: color ease-in-out 0.2s, background-color ease-in-out 0.2s;
}
a:focus{
  background-color: var(--off-black);
  color: var(--off-white);
}
/* Remove the style on focused links when they are also active/hovered. */
a:hover,
a:active {
  background-color: transparent;
  color: var(--off-black);
}
a:hover {
  border-color: var(--blue);
}

hr {
  border: 0;
  background-color: var(--grey);
  height: 1px;
  margin: 0.75rem auto;
}

/* images and video */
img {
  width: 100%;
}
.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
}


/* layout */
.section {
  padding: 3rem 0;
}

/* simple 12 column grid */
.grid {
  --columns: 12;
  --gutter: 0.5rem;
  display: grid;
  grid-gap: 1.5rem;
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}
/* larger screens - 6 col */
/* @media screen and (min-width: 25em) {
	.grid {
		grid-template-columns: repeat(6, 1fr);
    background-color: blue;
	}
	.grid > .column {
		grid-column: span var(--columns);
	}
} */
/* even larger screens - 12 col */
@media screen and (min-width: 48em) {
	.grid {
		grid-template-columns: repeat(12, 1fr);
    /* background-color: green; */
	}
	.grid > .column {
		grid-column: span var(--columns);
	}
}


/* MAIN */
#main {
  /* boost font size to 20px */
  font-size: 1.25rem; 
  line-height: 1.5;
}

/* intro & body - Home and About */
.intro, .body {
  max-width: 40rem;
}

/* header */
[href="#main"] {
	padding: 1rem;
  position: absolute;
  top:0;
  right: 100%;
}
[href="#main"]:focus {
  right: auto;
  z-index: 999;
}
[href="#main"]:hover {
  background-color: var(--off-white);
}

.header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: -0.5rem;
  margin-bottom: 1.5rem;
}
/* larger screens */
@media screen and (min-width: 34em) {
  .header {
    flex-direction: row;
    margin-bottom: 3rem;
  }
}

a.logo, a.logo:hover {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-color: transparent;
}

.logo svg path {
  fill: var(--off-black);
}
a.logo:focus svg path {
  fill: var(--off-white);
}

/* Remove the style on focused links when they are also active/hovered. */
a.logo:hover svg path, a.logo:active svg path {
  background-color: transparent;
  fill: var(--off-black);
}

a.logo:hover svg path#line-1,
a.logo:hover svg path#line-2
/* , a.logo:hover svg path#tagline */
 {
  transition: all ease-in-out 0.2s;
  fill:var(--blue);
}

.menu {
  display: flex;
  gap: 1rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.1rem;
}

.menu a {
  padding: 0.5rem;
  display: block;
  border-color: transparent;
}
.menu a:hover {
  border-color: var(--blue);
}
.menu a[aria-current] {
  border-color: var(--off-black);
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

/* footer */
.footer {
  margin-top: var(--padding);
}
.footer-contact{
  max-width: 34rem;
}
.footer-smallprint {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  font-size: 0.8rem;
}
/* larger screens */
@media screen and (min-width: 34em) {
  .footer-smallprint {
    flex-direction: row;
  }
}

.footer-smallprint p {
  padding-bottom: 0;
}


/* use this grid for home, work and project pages */
.photo-grid {
  display: grid;
  list-style: none;
  grid-gap: 1.5rem;
  line-height: 0;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-flow: dense;
}
.photo-grid li {
  position: relative;
  --cols: 1;
  --rows: 1;
  overflow: hidden;
  background: var(--off-black);
  line-height: 0;
}
.photo-grid li:first-child {
  --cols: 2;
  --rows: 2;
}
.photo-grid li:nth-child(5) {
  --cols: 2;
}
.photo-grid li:nth-child(6) {
  --rows: 2;
}
.photo-grid li:nth-child(7) {
  --cols: 2;
}

.photo-grid a {
  display: block;
  height: 10rem;
  border: none;
  transition: all ease-in-out 0.2s;
}
/* for Work */
@media screen and (min-width: 45em) {
  .work-grid a {
    height: auto;
  }
}

.photo-grid img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  
  transition: all ease-in-out 0.2s;
  filter: grayscale(0);
}
.photo-grid a:hover img {
  filter: grayscale(1);
}
.photo-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-family: var(--font-family-sans);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  padding: 0.5rem;
  background: rgba(34,34,34, .5);
  transition: all ease-in-out 0.2s;
}
.photo-grid a:focus figcaption {
  background: rgba(34,34,34, 1);
}
.photo-grid a:hover figcaption {
  background: rgba(34,34,34, .8);
}



/* larger screens - let's have a varied grid */
@media screen and (min-width: 45em) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-grid li {
    grid-column-start: span var(--cols);
    grid-row-start: span var(--rows);
  }
  .photo-grid a {
    padding-bottom: 52.65%;
  }
}

/* HOME */
a.home-all-work {
  display: inline-block;
  margin-top: 1rem;
}


/* WORK */
.filter ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter a {
  padding: 0.3rem 0.5rem 0.15rem 0.5rem;
  border: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.1rem;
  background-color: rgba(34,34,34,.05);
}
.filter a:focus {
  color: var(--off-black);
  outline: solid 2px;
}
.filter a:hover {
  background-color: var(--off-black);
  color: var(--off-white);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.1rem;
}

.filter a[aria-selected] {
  background-color: rgba(63, 167, 214, 0.3);
  /* background-color: burlywood; */
}
.filter a[aria-selected]:focus {
  outline: solid 2px var(--off-black);
  color: var(--off-black);
}
.filter a[aria-selected]:hover, .filter a[aria-selected]:active {
  color: var(--off-black);
}

/* PROJECT */
.project-description {
  font-size: 1rem;
}

.project-filter {
  margin-bottom: 1rem;
}

.project-contact {
  /* margin-top: 3rem; */
  padding: 1rem 1rem 0.5rem 1rem;
  border: 2px solid #EAE7E4;
  background-color: #F9F6F4;
  font-size: 1rem;
}

/* Project photos in CCS columns */
.project-photo-cols {
  columns: 1;
  column-gap: 1.5rem;
  list-style: none;
}
.project-photo-cols li {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
}
.project-photo-cols span {
  /* outline: solid 1px brown; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  font-family: var(--font-family-sans);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: rgba(34,34,34, .8);
  opacity: 0;
  transition: opacity ease-in-out 0.2s;
}
.project-photo-cols a:focus span {
  background: rgba(34,34,34, 1);
  opacity: 1;
}
.project-photo-cols a:hover span {
  background: rgba(34,34,34, .8);
  opacity: 1;
}
/* larger screens */
@media screen and (min-width: 40em) {
  .project-photo-cols {
    /* background-color: blueviolet; */
    columns: 2;
    widows: 10;
  }
}

/* ABOUT */

.services {
  margin-top: 2rem;
}
.services ul {
  /* list-style-position: inside; */
  padding: 1.5rem;
  border: 2px solid #EAE7E4;
  background-color: #F9F6F4;
}
/* larger screens */
@media screen and (min-width: 50em) {
  .services ul {
    columns: 2;
    column-gap: 1.5rem;
    /* column-rule: 2px solid #EAE7E4; */
    /* column-fill: balance; */
  }
}
.services ul li {
  break-inside: avoid;
  margin-bottom: 1rem;
  margin-left: 1rem;
  padding-left: 0.5rem;
}


.testimonials {
  margin-top: 2rem;
}
.testimonial {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.testimonial figure {
  flex: 1 1 auto;
  border: 2px solid rgba(63, 167, 214, 0.1);
  background-color: rgba(63, 167, 214, 0.1);
  padding: 3rem;
}
/* larger screens */
@media screen and (min-width: 50em) {
  .testimonial figure {
    flex: 1 1 20%;
  }
}
.testimonial figcaption {
  text-align: right;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}
blockquote {
  position: relative;
}
blockquote::before {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  font-size: 3rem;
  content: " \201C"; /* Hexadecimal for Unicode Left Double Quotation Mark */
}
blockquote::after {
  content: " \201D"; /* Hexadecimal for Unicode Right Double Quotation Mark */
} 

/* utilities */
/* spacing */
.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}
/* colour */
.bg-light {
  background-color: var(--color-light);
}
/* alignment */
.align-center {
  text-align: center;
}



/*------------------------------------*\
    #Animation
\*------------------------------------*/

/*
 * Use smooth-scrolling if user has not specified that they
 * prefer reduced motion in their browser. See
 * https://css-tricks.com/almanac/properties/s/scroll-behavior/
 */
 @media (prefers-reduced-motion: no-preference) {
  :root {
      scroll-behavior: smooth;
  }
}

/*
* Respect the choices of users who do not want animations.
*/
@media (prefers-reduced-motion: reduce) {
  * {
      animation-play-state: paused!important;
      scroll-behavior: auto!important;
      transition: none!important;
  }
}

/* Kirby Panel */
.featured-tag {
  padding: 0.3rem 0.5rem 0.15rem 0.5rem;
  border: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.1rem;
  background-color:yellowgreen);
}

/* LIGHTBOX STYLES */
.basicLightbox{
  position:fixed;
  display:flex;
  justify-content:center;
  align-items:center;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:rgba(0,0,0,.8);
  opacity:.01;
  transition:opacity .4s ease;
  z-index:1000;
  will-change:opacity;
}

.basicLightbox--visible{
  opacity:1
}
.basicLightbox__placeholder{
  max-width:100%;
  -webkit-transform:scale(.9);
  transform:scale(.9);
  transition:-webkit-transform .4s ease;
  transition:transform .4s ease;
  transition:transform .4s ease,-webkit-transform .4s ease;
  z-index:1;
  will-change:transform
}
.basicLightbox__placeholder>iframe:first-child:last-child,
.basicLightbox__placeholder>img:first-child:last-child,
.basicLightbox__placeholder>video:first-child:last-child{
  display:block;
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  margin:auto;
  max-width:95%;
  max-height:95%
}
.basicLightbox__placeholder>iframe:first-child:last-child,
.basicLightbox__placeholder>video:first-child:last-child{
  pointer-events:auto
}
.basicLightbox__placeholder>img:first-child:last-child,
.basicLightbox__placeholder>video:first-child:last-child{
  width:auto;
  height:auto
}
.basicLightbox--iframe .basicLightbox__placeholder,
.basicLightbox--img .basicLightbox__placeholder,
.basicLightbox--video .basicLightbox__placeholder{
  width:100%;
  height:100%;
  pointer-events:none
}
.basicLightbox--visible .basicLightbox__placeholder{
  -webkit-transform:scale(1);
  transform:scale(1)
}
