/* Theme Name: Craig Jamieson 2025 Theme URI: https://craigjamieson.com/wp-content/themes/craig Author: Craig Jamieson Author URI: https://craigjamieson.com/ Description: Portfolio theme Version: 2.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: custom-background, custom-logo, custom-menu, featured-images, sticky-post Text Domain: craig */
@import url("variables.css");
@import url("media.css");

@view-transition {
  navigation: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

figure.media-surface {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: 0;
  width: 100%;
  height: 100%;
}

figure.media-surface img,
figure.media-surface video {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  border: 0.15rem solid #1b1b27;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.35);
  object-fit: contain;
}

.post-summary {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-main .blog-list {
    min-height: 50vh; /* Prevent layout shift */
}

#load-more-posts {
    transition: all 0.3s ease;
}

#load-more-posts:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

#loading-spinner {
    color: var(--text-color);
    font-size: 1rem;
}



/* All section images and videos start invisible */


.footer-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 50%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}


/* ===== MOBILE TWO-COL LAYOUT ===== */

.two-col {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  box-sizing: border-box;
}

.two-col > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.two-col .col-right {
  order: -1;
  flex: 0 1 auto;
  max-height: none;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  padding-top: 4rem;
  box-sizing: border-box;
}

.two-col .col-right.align-right {
  justify-content: flex-end;
  padding-right: 0;
}

.two-col .col-right figure,
.two-col .col-right > * {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.two-col .col-right .media-surface {
  padding: 0.5rem;
  box-sizing: border-box;
}

.two-col .col-right .media-surface img,
.two-col .col-right .media-surface video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  border: 0.15rem solid #1b1b27;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.35);
}

.two-col .col-left {
  flex: 1 0 50%;
  min-height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.two-col.cases .col-left {
  justify-content: flex-end;
  min-height: auto;
  flex: 1 1 auto;
  padding-bottom: 0;
}

.cases  {
  justify-content: flex-end;
  padding-bottom: 0;
}





html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

body {
  font-family: var(--font-family);
}

[data-barba="container"] {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

main {
  flex: 1 0 auto;
  height: auto;
}

p {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
  text-align: left;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: var(--link-color);
  transition: color var(--transition-speed) ease-in-out, filter var(--transition-speed) ease-in-out;
}

a:hover {
  filter: brightness(1.2);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 6rem);
  line-height: 1.2;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-align: left;
  padding: 0 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 300;
  margin-bottom: 1.2rem;
  max-width: 100%;
  text-align: left;
  padding: 0 1.5rem;
  max-width: 48rem;
}

h3 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  line-height: 1.2;
  font-weight: 300;
  margin-bottom: 0.4rem;
  max-width: 100%;
  text-align: left;
  padding: 0 1.5rem;
}

h4 {
  font-size: clamp(1rem, 4vw, 1.2rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 4rem 0 0 0;
  max-width: 100%;
  text-align: left;
  padding: 0 7rem;
  padding: 0 1.5rem;
}

h5 {
  font-size: clamp(0.8rem, 5vw, 1rem);
  line-height: 1;
  font-weight: 400;
  margin-bottom: 0.6rem;
  max-width: 100%;
  text-align: left;
  padding: 0 1.5rem;
  color: #666;
}

h6 {
  flex-grow: 1;
  text-align: left;
  font-weight: 400;
  font-size: 1.4rem;
}

.top-back {
  position: fixed;
  top: 4rem;
  left: 1.5rem;
  z-index: 1001;
  font-size: 1rem;
  font-weight: 300;
  pointer-events: auto;
}

@media (min-width: 56rem) {
  .top-back {
    top: 7rem;
    left: 7rem;
  }
}

h1,
h2,
h3,
h4,
h5 {
  text-wrap: balance;
}

ol,
ul {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1rem;
  padding: 0 1.5rem 0 3.5rem;
}

.section {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  scroll-snap-align: start;
  margin: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.section>* {
  margin-top: 0;
}

.section h1,
.section h2,
.section h3,
.section h4,
.section h5,
.section p,
.section ul,
.section li,
.section small,
.section .post-date,
.section .post-categories,
.section blockquote,
.image-container {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
  visibility: visible;
}

.case-study-background {
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  background-repeat: no-repeat;
  color: var(--text-color);
}

.cases .work-link {
  margin-top: 1rem !important;
  display: inline-block !important;
  padding: 0 1.5rem;
  font-size: 1.4rem;
}

.cases {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 5rem;
}

.case-studies-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10rem;
}

.case-study {
  padding-top: 0;
}

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  transition: color 0.5s ease-in-out;
}

header>* {
  pointer-events: auto;
}

.header-content {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 5rem;
  margin-right: 1rem;
  padding: 0.5rem 0;
  height: auto;
}

.logo-svg {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
}

.logo-svg svg {
  width: 100%;
  height: auto;
  max-height: 3rem;
  display: block;
}


.logo a {
  color: var(--text-color) !important;
  transition: color var(--transition-speed) ease-in-out;
}

.logo-svg svg a:hover {
  filter: brightness(1.2);
}

nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
  flex-grow: 1;
  position: fixed;
  bottom: 0;
  left: 0;
  height: 2rem;
}

nav a {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.5rem;
  color: var(--text-color) !important;
  transition: color var(--transition-speed) ease-in-out;
}

nav a:hover {
  filter: brightness(1.2);
}

.snap-scroll-disabled .blog-main {
  padding-top: 10rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.snap-scroll-disabled .blog-main .post-summary {
  max-width: 48rem;
  margin: 0 auto;
}

.snap-scroll-disabled p {
  padding: 1rem 0;
  margin: 0 auto;
}

.snap-scroll-disabled h2 {
  padding: 1rem 0;
  margin: 0 auto;
}

.transition-section {
  height: 5rem !important;
  min-height: 5rem !important;
}

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0;
  min-height: 100vh;
}

.contact {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: left;
  text-align: left;
  width: 100%;
  flex-grow: 1;
  padding: 0 1.5rem;
}

.footer-top p,
.footer-top a {
  text-align: left;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
  font-weight: 300;
  width: 100%;
  display: block;
}

.footer-top h2 {
  padding: 0 !important;
  margin: 0;
  text-align: left !important;
}

.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 11rem;
  padding: 0 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.footer-bottom .copyright {
  text-align: center;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.footer-bottom .social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.footer-bottom .social svg,
.other-svg-container svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--text-color);
  transition: fill var(--transition-speed) ease-in-out;
}

svg {
  fill: var(--text-color);
  transition: fill var(--transition-speed) ease-in-out;
}

.blog-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-main h1 {
  font-size: clamp(2.4rem, 5vw, 6rem);
  line-height: 1.2;
  font-weight: 300;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-align: left;
  padding: 0;
}

.blog-main h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 300;
  margin-bottom: 1.2rem;
  max-width: 100%;
  text-align: left;
  padding: 0;
}

.blog-main p {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 300;
  text-align: left;
  padding: 0;
}

.blog-main ol,
.blog-main ul {
  font-size: 1.4rem;
  line-height: 2rem;
  margin-left: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
  max-width: 48rem;
  text-align: left;
}

.blog-main .post-summary {
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.post-date {
  font-size: 0.8rem !important;
  line-height: 1rem;
  text-align: left;
}

.blog-post>* {
  margin-bottom: 0.1rem;
}

.blog-post>*:last-child {
  margin-bottom: 0;
}

.blog-main .pagination {
  display: flex;
  flex: 1;
  justify-content: left;
  align-items: center;
  padding: 2rem 0;
  flex-direction: row;
  gap: 1rem;
  height: 5rem;
}

.blog-main .pagination a,
.blog-main .pagination span {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: var(--link-color);
  transition: background-color var(--transition-speed) ease-in-out;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-posts-section {
  padding: 0;
  max-width: 70rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.blog-post {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.blog-post p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.blog-post h2,
.blog-post .post-excerpt {
  padding: 0;
}

.post-categories {
  font-size: 0.8rem !important;
  color: var(--link-color);
}

.work-section {
  padding: 0;
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.work-section h2 {
  font-size: 2.5rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.work-section p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.perenna-bg,
.taos-bg,
.taos-intro,
.taos-macbook,
.taos-mobile,
.taos-mobile-1,
.taos-mobile-2,
.taos-end,
.muov-bg,
.fluint-bg,
.alienware-bg,
.evo-bg,
.mohara-bg,
.nedbank-bg,
.standardbank-bg,
.perenna-logo,
.taos-logo,
.muov-logo,
.fluint-logo,
.evo-logo,
.mohara-logo,
.nedbank-logo,
.nedbank-app,
.standardbank-logo,
.agencies,
.speaking,
.awards,
.ogilvy-bg,
.jwt-bg,
.digiguru-bg,
.brfc-bg,
.mcsa-bg,
.digital-monarchy-bg,
.vw-amarok-bg,
.kfc-bg,
.h2o-bg,
.nikon-bg,
.hsbc-bg,
.puma-bg,
.aa-bg,
.oi-bg,
.aero-bg,
.edgars-bg,
.edgars-active-bg,
.euphonik-bg,
.bonang-bg,
.bonangmatheba-bg,
.djdizzy-bg,
.djspeedy-bg,
.rdc-bg,
.platform-music-bg,
.zaronline-bg,
.zarfest-bg,
.binary-noise-bg,
.bp-bg,
.miller-bg,
.kfc-snacks-bg,
.nicci-beach-bg,
.saa-bg,
.sa-tourism-bg,
.lucozade-bg,
.bean-my-valentine-bg,
.bcx-bg,
.adc-bg,
.discovery-vitality-bg,
.gimmee-jimmys-cookies-bg,
.graphis-bg,
.knicks-vision-bg,
.the99-bg,
.lingerie-bowl-bg,
.edgars-intimatewear-bg,
.mcsa-mobile-bg,
.nextel-bg,
.parlotones-bg,
.peter-stuyvesant-bg,
.studio-red-bg,
.twincare-bg,
.air-frisco-bg,
.wide-awake-shake-bg,
.kia-bg,
.kelso-bg,
.nielsen-bg,
.time-to-finish-bg,
.showpony-bg,
.digiguru-website-bg,
.dm-website-bg,
.studentvillage-bg,
.blackhistorymonth-bg,
.kidz-banking-bg,
.dulux-bg,
.home-about-bg,
.kid-kidz-banking-bg {
  background-size: cover;
  background-position: center;
}

.section.contact {
    background-image: none !important;
}

.posts-wp-prev-next a {
  text-decoration: none;
  font-weight: 400;
  color: var(--text-color) !important;
  transition: color var(--transition-speed) ease-in-out;
}

.posts-left {
  justify-content: flex-start;
  flex: 1;
  text-align: left;
  padding-left: 1rem;
}

.posts-right {
  justify-content: flex-end;
  flex: 1;
  text-align: right;
  padding-right: 1rem;
}

.posts-middle {
  display: none;
}

.posts-wp-prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  padding: 0 0.5rem;
}

.blog-main .posts-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 5rem;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

.posts {
  padding: 1rem;
  margin: 0 1.25rem;
  width: 100vw;
}

.posts li a {
  display: block;
  text-decoration: none;
  padding: 1rem;
}

.scroll-arrow-container {
  height: 5rem;
  margin-top: 1rem;
  padding-left: 1.5rem;
  display: flex;
  justify-content: center;
}

.scroll-arrow-svg {
  height: 100%;
  width: auto;
}

.arrow {
  fill: none;
  stroke: var(--text-color);
  transition: stroke var(--transition-speed) ease-in-out;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: pulse 2s infinite ease-in-out;
}

.left,
.right,
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.row {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

.row p {
  width: 100%;
  padding-top: 0;
  min-height: auto;
  box-sizing: border-box;
}



.wp-block-column {
  margin-bottom: 1.5rem;
}

#page-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #fff;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(0.25rem);
    opacity: 0.5;
  }
}

.blog-posts-section {
  align-items: flex-start;
}

.blog-posts-section>h2 {
  padding: 0 1.5rem;
}

.read-more-link {
  padding: 0 1.5rem;
  align-self: flex-start;
}

.read-more-link a {
  font-size: 1rem;
}

.section,
footer {
  min-height: 100vh;
  min-height: 100svh;
}

video {
  width: 90%;
  height: auto;
  max-width: 90%;
  display: block;
  margin: 0 auto;
}

.split-image {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100svh;
}

.split-image>.wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.split-image>.wp-block-group__inner-container>* {
  height: 50%;
  flex: none;
}

.split-image-left img,
.split-image-right img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@supports not (min-height: 100svh) {

  .section,
  footer {
    min-height: -webkit-fill-available;
  }
}

.wp-block-columns {
  max-width: 72rem !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.client-info {
  display: block;
  padding-top: 0;
}

.info-group {
  margin-bottom: 0.5rem;
}

.label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info {
  font-size: 1rem;
  margin-top: 0;
  padding-top: 0;
}

.cases h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.cases p {
  margin: 0;
}

.image-container {
  position: relative;
  padding: 10px;
  display: inline-block;
}

.image-container img {
  border-radius: 25px;
  display: block;
  width: 100%;
  height: auto;
}

.section h1 {
  margin-bottom: 1rem;
}

.section h2 {
  margin-top: 0.5rem;
}

.case-study p {
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.case-study h2 {
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.case-study .work-link {
  margin-top: 0.6rem;
  display: inline-block;
}



ul.thumb li {
  flex: 1 1 100%;
  max-width: 100%;
}

h6 {
  font-size: 1rem;
}

/* T A B L E T */
@media (min-width: 40rem) and (max-width: 55rem) {}

/* D E S K T O P */
@media (min-width: 56rem) {

.two-col {
  height: 100vh;
  max-height: 100vh;
  padding: 0;
}

.two-col > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  height: 100vh;
  max-height: 100vh;
}

.footer-image {
        width: 50%;
        height: 100%;
    }
    
    .footer-image img {
        object-position: center right;
    }

figure.media-surface img,
figure.media-surface video {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;

  border-radius: 1.25rem;
  border: 0.3rem solid #1b1b27;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.35);
}

figure.media-surface {
  padding: 5rem 1rem;
  max-height: 100vh; /* constrain the figure itself */
  display: flex;
  align-items: center; /* center the image vertically */
}

figure.media-surface img {
  max-height: calc(100vh - 14rem); /* 5rem top + 5rem bottom padding */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.two-col .col-left {
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 7rem;
  padding-bottom: 7rem;
  box-sizing: border-box;
}

.two-col.cases .col-left {
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.two-col .col-right {
  order: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1rem;
  box-sizing: border-box;
}

.two-col .col-right.align-right {
  justify-content: flex-end;
  padding-right: 0;
}

.two-col .col-right figure,
.two-col .col-right > * {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}


.two-col .col-right .media-surface {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.two-col .col-right .media-surface img,
.two-col .col-right .media-surface video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 1.25rem;
  border: 0.3rem solid #1b1b27;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.35);
}

.two-col .col-left p,
.two-col .col-left h1,
.two-col .col-left h2,
.two-col .col-left h3,
.two-col .col-left h4,
.two-col .col-left h5 {
  padding: 0 0 0 7rem;
}

  p {
    font-size: 1.4rem;
    line-height: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    max-width: 48rem;
    text-align: left;
    padding: 0 7rem;
  }

  .blog-main p {
    font-size: 1.4rem;
    line-height: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 48rem;
    text-align: left;
    padding: 0;
  }

  .blog-post p {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .work-section p {
    font-size: 1.4rem;
    line-height: 2rem;
  }

  h6 {
    flex-grow: 1;
    text-align: left;
    font-weight: 300;
    font-size: 2rem;
  }

  h1 {
    font-size: clamp(2.4rem, 5vw, 6rem);
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 100%;
    text-align: left;
    padding: 1rem 7rem;

  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
    font-weight: 300;
    margin-bottom: 1.2rem;
    max-width: 100%;
    text-align: left;
    padding: 1.5rem 7rem;
    max-width: 48rem;
  }

  h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 0.4rem;
    max-width: 100%;
    text-align: left;
    padding: 0 7rem;
  }

  h4 {
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.1;
    font-weight: 400;
    margin: 4rem 0 0 0;
    max-width: 100%;
    text-align: left;
    padding: 0 7rem;
    max-width: 48rem;
  }

  h5 {
    font-size: clamp(0.8rem, 5vw, 1rem);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0.6rem;
    max-width: 100%;
    text-align: left;
    padding: 0.5rem 7rem;
    color: #666;
  }

  ol,
  ul {
    font-size: 1.4rem;
    line-height: 2rem;
    margin-bottom: 1rem;
    padding: 0 1.5rem 0 9rem;
    max-width: 48rem;
  }

  .scroll-arrow-container {
    padding-left: 7rem;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 7rem;
    padding: 2rem;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    width: 150px;
  }

  nav {
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    height: 3rem;
    max-width: 16rem;
    width: fit-content;
    position: static;
  }

  nav a {
    color: var(--text-color) !important;
    transition: color var(--transition-speed) ease-in-out;
    padding: 0 0.8rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }

  .section {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    scroll-snap-align: start;
    margin: 0;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .section>* {
    margin-top: 0;
  }

  .case-study-background {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-repeat: no-repeat;
    color: var(--text-color);
  }

  .cases .work-link {
    margin-top: 2rem !important;
    display: inline-block !important;
    padding: 0 7rem;
    font-size: 1.4rem;
  }

  .cases {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    left: 0;
    height: 100vh;
  }

  .case-study {
    padding-top: 0;
  }

  #homeButton {
    display: none;
  }

  .footer-top p,
  .footer-top a {
    font-size: 1.4rem;
    line-height: 2rem;
    margin-bottom: 1.4rem;
    padding-left: 7rem;
    max-width: 45rem;
  }

  .footer-bottom .social {
    gap: 1.5rem;
  }

  .footer-bottom .copyright {
    text-align: left;
  }

  .footer-bottom .social {
    justify-content: flex-end;
    margin-bottom: 0;
  }

  .footer-bottom .social,
  .footer-bottom .logo {
    pointer-events: auto;
  }

  .footer-bottom .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit !important;
    transition: color var(--transition-speed) ease-in-out;
  }

  .footer-bottom .social a:hover {
    filter: brightness(1.2);
  }

  .footer-bottom .social a svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    transition: fill var(--transition-speed) ease-in-out;
    display: block;
  }

  header,
  .footer-bottom {
    padding: 0 7rem;
  }

  .blog-main {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 0;
  }

  .blog-main h1,
  .blog-main h2 {
    padding: 0;
  }

  .blog-main .post-summary,
  .blog-main .blog-list {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
  }

  .blog-main .post-title,
  .blog-main .post-date,
  .blog-main .post-categories,
  .blog-main .post-excerpt {
    text-align: left;
  }

  .content-wrapper .blog-post {
    padding: 0 7rem;
  }

  .post-date {
    font-size: 1rem !important;
    line-height: 1.2rem;
    text-align: left;
  }

  .post-categories {
    font-size: 1rem !important;
    color: var(--link-color);
  }

  .blog-post>* {
    margin-bottom: 0.5rem;
  }

  .blog-post>*:last-child {
    margin-bottom: 0;
  }

  .left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
  }

  .center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
  }

  .row {
    flex-direction: row;
    height: 100vh;
  }

  .row p {
    width: 50vw;
    padding-left: 7rem;
    padding-top: 0;
    min-height: auto;
  }

 

  .blog-posts-section>h2 {
    padding: 0 7rem;
  }

  .read-more-link {
    padding: 0 7rem;
  }

  .read-more-link a {
    font-size: 1.4rem;
  }

  .client-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .info-group {
    flex: 1 1 30%;
  }

  .label {
    font-size: 0.8rem;
  }

  .info {
    font-size: 1.4rem;
    margin-top: 0.25rem;
  }

  .cases .work-link {
    margin-top: 2rem !important;
    display: inline-block !important;
  }

  .footer-top {
    max-width: 43rem;
    box-sizing: border-box;
    align-items: flex-start;
    padding-left: 7rem;
  }

  .footer-top h2,
  .footer-top p,
  .footer-top a {
    padding-left: 0;
    margin-left: 0;
    text-align: left;
  }

  .footer-top h2 {
    white-space: nowrap;
    font-size: clamp(2.4rem, 5vw, 6rem);
  }

  @keyframes fadeInOut {

    0%,
    100% {
      opacity: 0;
      transform: scale(0.95);
    }

    30%,
    80% {
      opacity: 1;
      transform: scale(1);
    }
  }



  .image-container img {
    width: 100%;
    height: auto;
    animation: none;
  }

  .posts-wp-prev-next {
    position: relative;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;

  }

  .posts-middle {
    display: block;
  }

  .section .posts-wp-prev-next {
    justify-content: flex-end;
    padding: 0 6rem;
    height: 3rem;
  }

  .footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 7rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
  }

  .footer-bottom .copyright,
  .footer-bottom .social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
  }

  .footer-bottom .social {
    display: flex;
    gap: 1.5rem;
  }

  .footer-bottom .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
  }

  .cases .case-study p {
    font-size: 1.4rem;
    line-height: 2rem;
    margin: 0;
    padding: 0 7rem;
  }

  .cases .case-study h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding: 1.5rem 7rem;
  }

  .cases .case-study .work-link {
    font-size: 1.4rem;
    margin-top: 2rem;
    padding: 0 7rem;
  }

  .section-hero h1 {
    font-size: clamp(2rem, 12vw, 9rem);
    line-height: clamp(2rem, 12vw, 9rem);
  }

  .spacer {
    min-height: 5rem;
  }

/* Spacing between multiple sections */
.split-text-left-right + .split-text-left-right {
  margin-top: 6rem;
}

/* Split image fixes */
.split-image > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.split-image-left,
.split-image-right {
  flex: 1 1 50% !important;
  margin: 0 !important;
  height: 100% !important;
}

.split-image-left img,
.split-image-right img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}


  video {
    width: 100%;
    height: auto;
    max-width: 1080px;
    align-self: centre;
    margin: 0 auto;
    display: block;
  }

}

