/*
Theme Name: Craig Jamieson 2025
Theme URI: https://craigjamieson.com/wp-content/themes/craig
Author: Craig Jamieson
Author URI: ../../../index.bin
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;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  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;
}

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,
.section img,
.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: 4rem;
}

.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;
  height: 3rem;
  display: flex;
  justify-content: left;
  align-items: center;
  margin-right: 2rem;
  width: 6rem;
  padding: 1rem 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-svg svg {
  width: 100%;
  height: auto;
  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: 3rem;
}

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,
.agencies,
.speaking,
.awards,
.section.contact {
  background-size: cover;
  background-position: center;
}

.posts-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.posts-section .posts-wp-prev-next {
  position: absolute;
  bottom: 5rem;
  left: 0;
  width: 100vw;
  padding: 1rem 1.5rem;
  text-decoration: none;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem !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 {
  justify-content: center;
  flex: none;
}

.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;
}

.row img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.wp-block-columns {
  display: block !important;
}

.wp-block-column {
  width: 100% !important;
  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;
}

/* MOBILE-FIRST LAYOUT: always stack columns vertically */
.split-text,
.split-text-left-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
}

.split-text > *,
.split-text-left-right > *,
.split-text-left,
.split-text-right {
  width: 100%;
  padding: 0;
}

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

.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;
}

.split-text-right {
  padding: 0 1.5rem;
}

@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;
}

/* 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) {
  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; /* avoid inline baseline offsets */
  }

  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;
  }

  .row img {
    width: auto;
    margin: auto;
    max-width: 100%;
  }

  .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 {
    animation: fadeInOut 1.5s ease-in-out both;
    animation-timeline: view();
    animation-range: entry 15% exit 15%;
  }

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

  .end {
    justify-content: flex-end;
    padding: 2rem 2rem 5rem 2rem;
  }

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

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

  /* Footer: keep fixed and align content vertically centre */
  .footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 7rem;
    display: flex;
    flex-direction: row;
    align-items: center;        /* vertical centring */
    justify-content: space-between;
    pointer-events: auto;
  }

  .footer-bottom .copyright,
  .footer-bottom .social {
    display: flex;
    align-items: center;
    justify-content: center;        /* align text and icons on the same centre line */
    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;
    
  }
}

@media (max-width: 600px) {
  ul.thumb li {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

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

.spacer {
  min-height: 5rem;
}
