:root {
    --site-width: 1280px;

    /* colour palette */
    --primary: rgb(246,246,246); /* f2f0ed */
    --secondary: 45,64,89;

   
    --accent: #C02A1B;
    --accent-hover: #91180d;


    


    --modal-background-overlay: rgba(5, 15, 29, .85);
    --on-modal-background-overlay: #FAF1E6;

    /* font styles */
    /* --font-hero: 'Libre Baskerville', serif; */
    --font-hero: 'Open Sans', sans-serif;


    /* --font-weight-hero: 700; */
    --font-weight-hero: 400;
    /* --font-size-hero: 2.35em; */
    --font-size-hero: 2.65em;


    --font-headings: 'Open Sans', sans-serif;

    --font-weight-headings: 700;

    --font-body: 'Open Sans', sans-serif;
    --font-body-weight: 500;

    --swiper-theme-color: var(--accent) !important;
    /* --swiper-navigation-size: 40px !important; */
}

::selection {
    color: var(--primary);
    background: var(--accent);
}

/* needs body attribute data-theme="dark" */
html[data-theme='dark'] {
    --primary: rgb(19,28,38);
    --secondary: 246,246,246;
    --accent: #EA5455;
    --accent-hover: #91180d;
    --modal-background-overlay: rgba(5, 15, 29, .75);
    --on-modal-background-overlay: #FAF1E6;
}

body.theme-change:not(#projectModal) {
    /* --primary: #EAECED; 
    --secondary: 0,0,0; 
    --accent: green;
    --accent-hover: blue;  */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    position: relative;
  }

html, 
body {
    /* height: 100%; */
    min-height: 100%;
    overflow-x: hidden;
}

/* hide default cursor */
html, body, body *, body *:hover {
    /* cursor: none !important; */
}

/* if mobile device reset to default cursor */
body.mobileCursor, body.mobileCursor *, body.mobileCursor *:hover {
    /* cursor: auto !important; */
}
body.mobileCursor div.cursor {
    /* display: none !important; */
}

body * { 
    box-sizing: border-box;
}

body {
    background: var(--primary);
    color: rgb(var(--secondary));
    font-family: var(--font-body);
    font-weight: var(--font-body-weight);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    font-size: 17px;
    margin: 0 0 100px; /* bottom = footer height */
    /* font-size: clamp(1.2rem, 0.75rem + 1.5vw, 1.6rem); */
    transition: all 250ms;

    text-wrap:pretty;
}

body.disableScroll {
    overflow: hidden;
}

.hero-heading {
    font-family: var(--font-hero);
    font-weight: var(--font-weight-hero);
    font-size: var(--font-size-hero);
    color: rgb(var(--secondary));
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--font-headings);
    font-weight: var(--font-weight-headings);
    color: var(--secondary);
    margin-bottom: .5em;
}

h1, .h1 {
    font-size: 2.0em;
    line-height: 1.3;
    /* font-family: 'Libre Baskerville', serif; */
    font-weight: 700;
}

h2, .h2 {
    font-size: 1.5em;
}

h3, .h3 {
    font-size: 1.24em;
    /* font-family: 'Libre Baskerville', serif; */
    line-height: 1.2;
}

.section {
    width: 100%;
    padding: 45px 0;
    z-index: 5;
    /* background: #e4e4e4; */
}

.row {
    width: 100%;
    max-width: var(--site-width);
    padding: 0 25px;
    margin: 0 auto;
    display: flex;

    /* background: #cecece; */

}

.column {
    flex-grow: 1;

    /* background: #a2d3ea; */
}


.column + .column {
    margin-left: 2%;
}

/* site-wide link styles */
#wrapper p a, #wrapper a:not(.projects a, #closeModal, #shareProject), .fauxLink {
    text-decoration: none;
    color: rgb(var(--secondary));
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0;
    white-space: nowrap;
    transition: all 250ms;
    display: inline-block;
    /* line-height: 1.1; */
    cursor: pointer;
}

   /* main link styles hover */
   #wrapper a:hover:not(.project)  {
    background-color: rgba(var(--secondary), .1);
    border-color: var(--accent-hover) !important;
    transition: all 250ms;
}


p {
    margin-top: 0;
    margin-bottom: .9em;
}

  /* modify spacing for headings IF they follow a paragraph */
  p + h1,
  p + h2,
  p + h3,
  p + h4,
  p + h5,
  p + h6,
  ul + h1,
  ul + h2,
  ul + h3,
  ul + h4,
  ul + h5,
  ul + h6 {
    margin-top: 1.75em;
    /* background-color: red; */
  }

/* utility classes */
.text-center {
    text-align: center;
}

iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;

}

figcaption {
    background: rgba(var(--secondary), .08);
    display: inline-block;
    padding: 5px 12px;
    font-size: .85em;
    max-inline-size: 60ch;
    line-height: 1.5;
    margin-top: 16px;
    border-left: 2px solid var(--accent);
    /* border-right: 2px solid var(--accent); */
}

.subtle-border {
    border: 1px solid rgba(var(--secondary), .1);
}

.client {
    color: var(--accent);
    text-transform: uppercase;
    /* font-size: .75em; */
    font-size: clamp(.5em, .5em + .5vw, .7em);
    letter-spacing: 1.8px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0px 0 4px;
    display: block;
    text-wrap: pretty;
}

  hr {
    border: 0;
    border-top: 1px solid rgba(var(--secondary), .15);
    margin: 55px 0;
  }

  .swiper-slide-active > a {
      cursor: pointer !important;
  }
 

  /* do not allow selecting swiper text */
  .noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
  }

  /** <span class="tooltip">Featured projects</span> **/
 .tooltip {
    display: none;
    position: absolute;
    content: attr(data-tooltip);
    white-space: nowrap;
    color: var(--primary);
    background: rgb(var(--secondary));
    /* margin-left: 50px; */
    padding: 4px 8px;
    font-size: 0.7rem;
    z-index: 999;
  }



a:hover .tooltip {
      display: block;
  }
  
/*   
  @media screen and (min-width: 960px) {
    .swiper {
      width: 960px;
    }
  } */

  body.chrome img {
    image-rendering: -webkit-optimize-contrast;
}


.introCover {
    position: absolute;
    background: var(--primary);
    min-height: 100vh;
    min-width: 100vw;
    top: 0;
    left: 0;
    z-index: 9999999;
    visibility: visible;
}

.responsive-video {
    overflow: hidden;
    position: relative;
    width:100%;
}

.responsive-video::after {
    padding-top: 56.25%;
    display: block;
    content: '';
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.swiper-pagination {
    position: relative;
    bottom: 0px;
    margin-top: 28px;
}


@media only screen and (max-width: 960px) {
    .row {
      flex-wrap: wrap;
    }
    .column + .column, .column {
        margin: 6px 0;
        width: 100%;
    }
  }
