/******************************************************************
Theme Name: JJMDJR
Theme URI: http://www.themble.com/bones
Description: Built on Bones Development Theme.
Author: James Dunphy
Author URI: http://www.jjmdjr.com
Version: 1.7
Tags: fluid-layout, responsive-layout, accessibility-ready, translation-ready, microformats, rtl-language-support

License: WTFPL
License URI: http://sam.zoy.org/wtfpl/
******************************************************************/

/*
WordPress Probz (Theme Check)
*/
.sticky {}          /* DO NOT EDIT THIS */
.gallery-caption {} /* THESE ARE USELESS */
.bypostauthor {}    /* THEY ARE ONLY TO KEEP THEME CHECK HAPPY */

/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* ===============================
   Fonts
   =============================== */

@font-face {
  font-family: 'Union';
  src: url('../theme-bones-1.07/library/fonts/Union/Union-Regular.woff2') format('woff2'),
       url('../theme-bones-1.07/library/fonts/Union/Union-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Union';
  src: url('../theme-bones-1.07/library/fonts/Union/Union-Italic.woff2') format('woff2'),
       url('../theme-bones-1.07/library/fonts/Union/Union-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Union';
  src: url('../theme-bones-1.07/library/fonts/Union/Union-BoldItalic.woff2') format('woff2'),
       url('../theme-bones-1.07/library/fonts/Union/Union-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Union';
  src: url('../theme-bones-1.07/library/fonts/Union/Union-Bold.woff2') format('woff2'),
       url('../theme-bones-1.07/library/fonts/Union/Union-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cardinal Photo';
  src: url('../theme-bones-1.07/library/fonts/CardinalPhoto/CardinalPhoto-Regular.woff2') format('woff2'),
       url('../theme-bones-1.07/library/fonts/CardinalPhoto/CardinalPhoto-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cardinal Photo';
  src: url('../theme-bones-1.07/library/fonts/CardinalPhoto/CardinalPhoto-Italic.woff2') format('woff2'),
       url('../theme-bones-1.07/library/fonts/CardinalPhoto/CardinalPhoto-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}


/* ==========================================================================
   Base styles
   ========================================================================== */

html {
  color: #000;
  font-size: 1em;
  line-height: 1.4;
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  text-rendering: geometricPrecision;

  /* Fallback */
  background-color: #FBFBF9;

  /* Top: FBFBF9; Bottom: footer blue */
  background-image: linear-gradient(
    to bottom,
    #FBFBF9 0,
    #FBFBF9 calc(100% - 200px),
    #75A3DB calc(100% - 200px),
    #75A3DB 100%
  );
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Let the html gradient show when content rubber-bands */
body {
  margin: 0;
  background-color: transparent;
}

/* Fade only the main content, not the nav */
#page-content {
  opacity: 1;
  transition: opacity 250ms ease-out;
}

/* Fade OUT only when navigating away */
body.page-transition-out #page-content {
  opacity: 0;
}


/* Cinematic Page Transition Overlay */
#transition-overlay {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FBFBF9;
  opacity: 0;
  transition: opacity 450ms ease-out;
  z-index: 999999;
}

#transition-overlay.fade-out {
  opacity: 1;
}

#transition-overlay-page {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FBFBF9;
  opacity: 0;
  transition: opacity 450ms ease-out;
  z-index: 999999;
}

#transition-overlay-page.fade-out {
  opacity: 1;
}


::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

a {
  cursor: pointer;
}

/* Make taps snappier on mobile */
a, button {
  touch-action: manipulation;
}

/* Skew (wrapped so it won't create "sticky hover" on touch) */
.hvr-skew {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  -webkit-transition-property: transform;
  transition-property: transform;
}

@media (hover: hover) and (pointer: fine) {
  .hvr-skew:hover,
  .hvr-skew:focus,
  .hvr-skew:active {
    -webkit-transform: skew(12deg);
    transform: skew(12deg);
  }
}

#navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 84vw;
  text-align: center;
  height: 75px;
  margin-top: 80px;
  opacity: 1;
  transition: opacity 2000ms ease-out;
}

.nav {
  opacity: 1;
  font-size: 2.2em;
  font-family: 'Cardinal Photo', serif;
  font-style: italic;
  z-index: 1000001;
  overflow: visible;
  pointer-events: none;
}

/* First visit only: start hidden */
html.nav-first-load #navbar {
  opacity: 0;
}

/* When JS says "ready", fade in */
html.nav-first-load.nav-ready #navbar {
  opacity: 1;
}

.nav a, .nav a:visited {
  text-decoration: none;
  color: black;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover{
    transition-duration: .2s;
    color:#75A3DB;
  }
}

.nav-logo{
  width:128px;
  float:left;
  color:black;
  pointer-events: all;
  cursor: pointer;
}

.padding{
  padding-right: 8vw;
  padding-left: 8vw;
}

.container {
  width: 84vw;
  padding-top:12em;
  padding-bottom: 5em;
}

.featured-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-media__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .featured-media video { display: none; }
}

img {
  width:100%;
}

h3, .project-info h3 p {
  font-size: 40px;
  line-height: 115%;
  font-weight: normal;
  margin-top: 0px;
  margin-bottom: 10px;
  letter-spacing: -.03em;
}

p {
  font-size: 21px;
  color: #303030;
  margin-bottom:8px;
  margin-top: 0px;
}

p.gallery-caption {
  width:80%;
  margin-top:10px;
  margin-bottom:0px;
}

p.gallery-number {
  width:10%;
  margin-top:10px;
  margin-bottom:0px;
}

.wp-element-caption {
  font-size: 13px;
}

.grid-project a {
  color:#000000;
}


body.list-view-test .projects-list-overlay {
  /* new overlay styles */
}



@media (hover: hover) and (pointer: fine) {
  .grid-project a:hover {
    transition-duration: .2s;
    color:#75A3DB !important;
  }
}

.grid a, .grid a:visited {
  color:#000000;
}

footer{
  background-color: #75A3DB;
  padding-top:8em;
  padding-bottom:1em;
  letter-spacing:-.03em;
  color:#001C3F;
}

.footer-text{
  width: 84vw;
  font-size: 2em;
  color: #000000;
}

.footer h3 a, .footer h3 a:hover{
  border-bottom: 0px black solid;
  text-decoration: none;
  color:black;
}


/* =========================================
   FOOTER GRID
========================================= */
.site-footer {
  width: 100%;
  padding: 40px 8vw;
  margin-top: 4rem;
  border-top: 1px solid #eee;
  font-size: 14px;
  line-height: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 4vw;
  align-items: start;
}

/* Left column */
.footer-left h4, .footer-right h4 {
  margin: 0 0 6px 0;
  font-weight:normal;
}

.footer-left a {
  color: inherit;
  text-decoration: none;
}

/* Right column */
.footer-right {
  text-align: left;
}

.footer-time {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 3px;
}

.footer-date,
.footer-location,
.footer-weather {
  opacity: 0.8;
}

.footer-lower.footer-right h4{
  font-size:50% !important;
}

.footer-lower{
  padding-top:128px;
}

/* Mobile footer */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    row-gap: 20px;
  }
  .footer-right {
    text-align: left;
  }
}


.card {
  position: relative;
}

.card-image--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 4/3);
  overflow: hidden;
}

/* Fix image stretch */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.card-image img.loaded {
  opacity: 1;
}

.info {
  line-height: 110%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(24,minmax(0,1fr));
  grid-column-gap: 1.5vw;
}

.nav a:hoverXX{
  /** old experiment **/
}

.nav-links{
  float:right;
  padding-top: 3px;
  pointer-events: all;
}

.nav-links a{
  border-bottom: 1px black solid;
  margin-left:1em;
  padding:2px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover{
    transition-duration: .2s;
    border-bottom: 1px #75A3DB solid;
  }
}

.grid .grid-item {
  width: 100%;
  margin-bottom: 8vw;
}

.grid .grid-item .info{
  padding-top:.5em;
  font-size:1.5em;
}

.grid-item a{
  text-decoration:none !important;
}

/* =========================================================
   HOME GRID: Rounded corners from the start + desktop hover
   (Fixes mobile "double tap" / sticky hover)
   ========================================================= */

/* Default: start rounded everywhere */
.grid-item .card-image {
  border-radius: 6px;      /* <-- rounded from the start */
  overflow: hidden;
}

/* Default: stable image */
.grid-item .card-image img {
  transform: scale(1);
}

/* Desktop / fine pointer only: allow hover interactions */
@media (hover: hover) and (pointer: fine) {
  .grid-item .card-image {
    transition: border-radius 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  }

  .grid-item .card-image img {
    transition: transform 0.55s ease, opacity 0.45s ease;
    will-change: transform;
  }

  .grid-item:hover .card-image {
    border-radius: 24px;
  }

  .grid-item:hover .card-image img {
    transform: scale(1.02);
  }

  .grid-item:hover .imageoverlay {
    opacity: 1;
  }

  .grid-item:hover .link-arrow img{
    opacity:1;
    margin-left: 0px;
  }
}


/* Make the wrapper behave like your link block */
.project-link-disabled {
  display: block;
  cursor: default;
}

/* Coming soon badge (hidden until hover) */
.is-coming-soon .coming-soon-badge {
  left: 16px;
  bottom: 16px;
  font-family: "Geist Mono", monospace;
  font-size: 10px !important;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

/* Show on hover */
.is-coming-soon .project-link-disabled:hover .coming-soon-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Kill the arrow hover behavior on coming soon cards
   (replace .your-arrow-class with whatever you use) */
.is-coming-soon .link-arrow {
  display: none !important;
}

/* Touch devices: neutralize :hover so taps open immediately */
@media (hover: none) and (pointer: coarse) {
  /* On touch, keep tiles visually identical in all states */
  .grid-item:hover .card-image,
  .grid-item:active .card-image,
  .grid-item:focus .card-image,
  .grid-item:focus-within .card-image {
    border-radius: 18px !important; /* lock it */
  }

  .grid-item:hover .card-image img,
  .grid-item:active .card-image img {
    transform: none !important;
  }

  .grid-item:hover .imageoverlay,
  .grid-item:hover .link-arrow img {
    opacity: 0 !important;
    margin-left: -34px !important; /* restore default arrow position */
  }

  /* Optional: reduce iOS highlight flash */
  .grid-item a { -webkit-tap-highlight-color: transparent; }
}


/* ========================================================= */

.grid .grid-item-post_right {
  grid-column: 11/25;
}

.grid .grid-item-post_left {
  grid-column: 1/15;
}

.grid .grid-item-post_center {
  grid-column: 6/20;
}

.grid .grid-item-0 { grid-column: 1/25; }
.grid .grid-item-1 { grid-column: 1/14; }
.grid .grid-item-2 { grid-column: 17/23; }
.grid .grid-item-3 { grid-column: 9/25; }
.grid .grid-item-4 { grid-column: 2/11; }
.grid .grid-item-5 { grid-column: 14/25; }
.grid .grid-item-6 { grid-column: 1/25; }
.grid .grid-item-7 { grid-column: 1/15; }
.grid .grid-item-8 { grid-column: 18/22; }
.grid .grid-item-9 { grid-column: 1/13; }
.grid .grid-item-10 { grid-column: 16/23; }
.grid .grid-item-11 { grid-column: 4/25; }
.grid .grid-item-12 { grid-column: 1/8; }
.grid .grid-item-13 { grid-column: 11/25; }
.grid .grid-item-14 { grid-column: 1/25; }
.grid .grid-item-15 { grid-column: 2/7; }
.grid .grid-item-16 { grid-column: 12/25; }
.grid .grid-item-17 { grid-column: 1/13; }
.grid .grid-item-18 { grid-column: 16/25; }
.grid .grid-item-19 { grid-column: 1/25; }

.grid .grid-item-project-title {
  grid-column: 1/25;
  margin-bottom: 4vw !important;
}

.grid .grid-item-project-info {
  grid-column: 1/25;
}

.grid-item-gallery {
  grid-column: 3/23;
  margin-bottom: 8vw;
}

.grid-item-gallery p {
  margin-bottom: 0vw !important;
}

.grid-item p, .grid-item figure {
  margin-bottom: 8vw !important;
}

.grid .grid-item-project-title .info{
  font-size: 11vw;
  padding-top:0;
  flex-wrap: wrap;
  display: flex;
  line-height: 90%;
}

.grid.grid-project p{
  grid-column: 2 / 24;
  margin-bottom: 8vw;
}

.client {
  padding-right:.4em;
}

.project {
  font-family: 'Cardinal Photo', serif;
  font-style: italic;
}

.info .client {
  display: contents;
  letter-spacing: -0.65vw;
  padding-right: .5em;
}

.info .project {
  display: contents;
  letter-spacing: -0.04em;
}

.home-grid .client {
  display: contents;
  letter-spacing: -0.05em !important;
}

.home-grid .project {
  display: contents;
  letter-spacing: -0.02em !important;
}

.project-info {
  padding-top:10px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-column-gap: 1.5vw;
}

.project-info p {
  margin-bottom: 0vw !important;
}

.client-logos{
  margin-bottom:0px !important;
}


/* PROJECT INFO BLOCK (Two-column layout) */
.grid-item-project-info-block {
  grid-column: 1 / 25;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-column-gap: 1.5vw;
  width: 100%;
}

/* LEFT — Credits */
.project-info-credits {
  grid-column: 2 / 9;
}

.project-info-credits a{
  text-decoration:underline !important;
}

.project-info-credits .credits-block p,
.footer-left h4,
.footer-right h4,
.info-page h4, .strip-gallery-caption{
  font-family: "Geist Mono", monospace;
  font-size: 12px !important;
  text-transform: uppercase;
  line-height: 28px !important;
  font-weight:normal;
}

/* RIGHT — Intro */
.project-info-intro {
  grid-column: 10 / 24;
}

.project-info-intro h3 {
  margin-top: 0;
}

.desktop-only { display:block; }
.mobile-only { display:none; }

.alignright{
  margin-left: auto;
  margin-right: 0;
}


/* ===========================================
   STRIP GALLERY (Embla — Collins-style)
   =========================================== */

.strip-gallery {
  margin: 0 0 8vw 0;
  width: 100%;
  overflow: visible;
  position: relative; /* needed for absolute arrows */

  /* OUTER: full-bleed breakout */
  grid-column: 1 / 25 !important;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.embla__viewport {
  overflow: visible;
}

.embla__container {
  display: flex;
  gap: 2vw;
}

.strip-slide {
  flex: 0 0 auto;
  width: auto;
}

.strip-img-wrap {
  width: 42vw;
  height: 28vw;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f3f3;
}

.strip-img-wrap img.strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .strip-slide:hover .strip-img {
    transform: scale(1.04);
  }
}



.strip-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 64px;
  height: 64px;
  border-radius: 999px;

  border: 0px solid rgba(0,0,0,0.15);
  background:none;
  color: #fff;

  display: grid;
  place-items: center;

  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.strip-gallery-arrow img {
  width: 64px;
  height: auto;
  display: block;
}


.strip-gallery-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.strip-gallery-arrow-left {
  left: 16px;
}

.strip-gallery-arrow-right {
  right: 16px;
}

/* Optional: keep arrows off on touch devices (or leave them on!) */
@media (hover: none) and (pointer: coarse) {
  .strip-gallery-arrow {
    /* display: none; */
  }
}



.strip-caption {
  margin-top: 0.6em;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.65;
  width: 42vw;
}

.strip-gallery-slide {
  flex: 0 0 auto;
  width: fit-content;
}

/* One sizing system only */
/* Default */
.strip-gallery-img,
.strip-gallery-video {
  height: 42vw;
  width: auto;
  display: block;
  max-width: none;
  object-fit: cover;
}

/* Small gallery */
.strip-gallery.strip--sm .strip-gallery-img,
.strip-gallery.strip--sm .strip-gallery-video {
  height: 28vw;
}

/* Large gallery */
.strip-gallery.strip--lg .strip-gallery-img,
.strip-gallery.strip--lg .strip-gallery-video {
  width: 52vw;
}

/* Tall gallery */
.strip-gallery.strip--tall .strip-gallery-img,
.strip-gallery.strip--tall .strip-gallery-video {
  height: 70vh;
  width: auto;
}

/* Tablet */
@media (max-width: 900px) {
  .strip-gallery-img,
  .strip-gallery-video {
   /*  width: 80vw;  */
  }
	 .strip-gallery.strip--sm .strip-gallery-img,
  .strip-gallery.strip--sm .strip-gallery-video { width: 72vw; }

  .strip-gallery.strip--lg .strip-gallery-img,
  .strip-gallery.strip--lg .strip-gallery-video { width: 90vw; }
}

/* Phone */
@media (max-width: 560px) {
  .strip-gallery-img,
  .strip-gallery-video {
    /*  width: 92vw;  */
  }
	
  .strip-gallery.strip--sm .strip-gallery-img,
  .strip-gallery.strip--sm .strip-gallery-video { width: 78vw; }

  .strip-gallery.strip--lg .strip-gallery-img,
  .strip-gallery.strip--lg .strip-gallery-video { width: 92vw; }
	

}

.strip-gallery-img-lessTall,
.strip-gallery-video-lessTall {
  height: 30vh !important;
}

/* Smooth fade of videos (optional) */
.strip-gallery-video {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.strip-gallery-video[src] {
  opacity: 1;
}

/* INNER: scroll container */
.strip-gallery-inner {
  padding-left: 8vw;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
	 position: relative;
}
.strip-gallery-inner::-webkit-scrollbar {
  display: none;
}

.strip-gallery-inner.is-dragging {
  cursor: grabbing;
}

/* TRACK */
.strip-gallery-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 2vw;
  padding: 0px 25vw 0px 0;
}

.strip-gallery-img.loaded {
  opacity: 1;
}

.strip-gallery-caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.7;
}

/* Tablet-ish */
@media (max-width: 900px) {
  .strip-img-wrap {
    width: 80vw;
    height: 55vw;
  }
  .strip-caption {
    width: 80vw;
  }
  .strip-gallery-img {
    height: 45vh;
  }
}

/* Phone */
@media (max-width: 560px) {
  .strip-gallery-track {
    padding-right: 35vw;
  }
  .strip-gallery-img {
    height: 40vh;
  }
  .strip-gallery-caption {
    font-size: 8px !important;
  }
}


/* ===========================================
   Swipe / arrows
   =========================================== */

.swipe {
  overflow: hidden;
  visibility: hidden;
  position: relative;
}

.swipe-wrap {
  overflow: hidden;
  position: relative;
}

.swipe-wrap > div {
  float: left;
  width: 100%;
  position: relative;
  flex-wrap: wrap;
  display: flex;
}

.demo-controls{
  position: absolute;
  top: 0;
  cursor: pointer;
}

#prev{
  position: fixed;
  left:-8px;
  width:33%;
  height:100%;
}

#next{
  position: fixed;
  right:-8px;
  width:33%;
  height:100%;
}

.prev-arrow, .next-arrow{
  width:18px;
  display: block;
  position: absolute;
  top: 50%;
}

.next-arrow{
  right:0;
}

@media (hover: hover) and (pointer: fine) {
  #prev:hover .prev-arrow{
    margin-left:-5px;
    transition-duration: .1s;
  }

  #next:hover .next-arrow{
    margin-right:-5px;
    transition-duration: .1s;
  }
}


/* Overlay */
.imageoverlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  background-image: url("../theme-bones-1.07/library/images/bluecheck-pattern.png");
}

/* Hover overlay handled above in desktop hover block */

.grid-item .gallery {
  margin-bottom: 2vw;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}


/* Responsive iframe */
.container-iframe {
  position: relative;
  overflow: hidden;
  grid-column: 1 / 25;
  padding-top: 0 !important;
  width: 84vw;
  margin-bottom: 8vw;
	width: 100%;
  aspect-ratio: 16 / 9;   
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
height: 100% !important;
	  border: 0;
  display: block;
}


/* Link arrow */
.link-arrow img{
  height: 21px;
  width: 42px;
  margin-top: -5px;
  opacity: 0;
  transition: 0.1s;
  margin-left: -34px;
}

.link-arrow{
  width: 37px;
  overflow: hidden;
  display: inline-table;
}


/* Projects nav */
.projects-nav{
  background-color: #E7E8EA;
  display: grid;
  grid-column-gap: 1.5vw;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  padding-top: 5em;
  padding-bottom: 5em;
}

.projects-nav a, .projects-nav a:visited{
  color:black;
  text-decoration: none;
}

.nav-block-left{
  grid-column: 1 / 12;
}

.nav-block-right{
  grid-column: 13 / 25;
}

.project-arrow{
  padding-bottom:15px;
}

.project-nav-block {
  margin-top: 5em;
  margin-bottom: 5em;
  z-index: 300;
  display:grid;
}

@media (hover: hover) and (pointer: fine) {
  .project-nav-block:hover {
    color:#75A3DB;
  }
}

.project-nav-block .project-arrow {
  width: 8vw;
  display: inline-table;
  position: relative;
  z-index: 99999;
}

.project-nav-block .client, .project-nav-block .project{
  font-size: 6vw;
  line-height: 1em;
  z-index: 9999;
  position: relative;
  display: block;
}

.project-nav-block .client {
  letter-spacing: -0.06em;
}

.project-nav-block .project {
  letter-spacing: -0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .project-nav-block a:hover .project-arrow.right{
    transition: 0.1s;
    margin-left: 12px;
  }

  .project-nav-block a:hover .project-arrow.left{
    transition: 0.1s;
    margin-left: -12px;
  }
}

img.follow{
  position:absolute;
  width:33%;
  z-index: 1;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav-block-left:hover + img.follow,
  .nav-block-right:hover + img.follow{
    display: block !important;
  }
}

.rotate180 {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}


/* ==========================================================================
   Client Logo Flex
   ========================================================================== */

.flex-grid {
  display: flex;
}

.flex-grid .col {
  flex: 1;
}

.flex-grid-thirds {
  display: flex;
  flex-flow: wrap;
  justify-content: space-between;
  row-gap:20px;
}

.flex-grid-thirds .col {
  max-height: 70px;
  width:12%;
}

/* FIX: previously had nested Sass-like rules; this is valid CSS */
@media (max-width: 560px) {
  .flex-grid,
  .flex-grid-thirds {
    flex-wrap: wrap;
  }

  .flex-grid .break,
  .flex-grid-thirds .break {
    display: none;
  }

  .flex-grid .col,
  .flex-grid-thirds .col {
    width: 30%;
    margin: 0 0 10px 0;
  }
	
	.grid-item .card-image {
	    border-radius: 18px !important;
}
}

.flex-grid {
  margin: 0 0 20px 0;
}

.col img{
  height: 100%;
  text-align: center;
  max-height: 82%;
}

.break {
  flex-basis: 100%;
  width: 0px;
  height: 0px;
  overflow: hidden;
  display: inline-block;
}


.grid-item .card-image {
	    border-radius: 6px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden,
[hidden] {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}


/* ==========================================================================
   Responsive (Consolidated)
   - Tablet-ish: 900px
   - Phone: 560px
   ========================================================================== */

/* Phone */
@media (max-width: 560px) {

  .nav-logo { width: 25vw; }

  .desktop-only { display:none; }
  .mobile-only { display:block; }

  .project-info-grid { grid-template-columns: repeat(24, minmax(0, 1fr)); }

  .project-info-credits {
    grid-column: 1 / 25;
    margin-bottom: 2em;
  }

  .project-info-intro,
  .grid.grid-project p {
    grid-column: 1 / 25;
  }

  /* Legacy 35em block merged in */
  .grid .center { grid-column: 1/25 !important; }
  .grid .left { grid-column: 1/17 !important; }
  .grid .right { grid-column: 8/25 !important; }

  .grid .grid-item-project-title,
  .grid .grid-item-project-info {
    grid-column: 1/25 !important;
  }

  .nav-block-left,
  .nav-block-right{
    grid-column: 1 / 25;
  }

  .project-nav-block {
    margin-top: 5em;
    margin-bottom: 5em;
  }

  .nav { font-size: 6vw; }

  .nav-links { padding-top: 1px; }

  .nav-links a {
    padding: 0px;
    margin-left: .4em;
  }

  .container { padding-top: 20vw; }

  #navbar { margin-top: 5vw; }

  .grid-item-gallery { grid-column: 1 / 25 !important; }

  .grid .grid-item-project-title .info { font-size: 18vw; }

  .project-nav-block .project-arrow { width: 16vw; }

  .project-nav-block .client,
  .project-nav-block .project{
    font-size: 14vw;
  }
	
 .container, #navbar {
  width: 92vw;
}

.padding {
    padding-right: 4vw;
    padding-left: 4vw;
}

.strip-gallery-inner {
  padding-left: 4vw;
 }
}


/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


/* ================================
   MOBILE: lock tile radius on tap
   ================================ */
@media (hover: none) and (pointer: coarse) {

  /* No morphing / no anim on touch */
  .grid-item .card-image,
  .grid-item .card-image img {
    transition: none !important;
  }

  /* Lock radius no matter what state */
  .grid-item .card-image,
  .grid-item:active .card-image,
  .grid-item:focus .card-image,
  .grid-item:focus-within .card-image,
  .grid-item a:active .card-image,
  .grid-item a:focus .card-image,
  .grid-item a:focus-within .card-image {
    border-radius: 18px !important;
  }

  /* Also prevent any tap-scale/zoom */
  .grid-item .card-image img,
  .grid-item:active .card-image img,
  .grid-item a:active .card-image img {
    transform: none !important;
  }

  /* Prevent iOS tap highlight “flash” (optional) */
  .grid-item a {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Strip gallery: never fade media in on mobile */
  .strip-gallery img,
  .strip-gallery video,
  .strip-gallery .strip-gallery-img,
  .strip-gallery .strip-gallery-video {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* iOS/Safari video flicker / blink guard */
video {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* If videos live inside your rounded card-image masks, keep them stable */
.card-image video,
.featured-media video {
  opacity: 1 !important;
  transition: none !important;
  transform: none !important; /* prevents flicker from transforms on video itself */
}

/* Mobile-only full-bleed breakout */
@media (max-width: 560px) {
 /* 1) Full-bleed breakout */
  .full-bleed-mobile {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }

 
}

@media (max-width: 560px) {
  .project-info-intro {
    grid-column: 1 / 25;
    grid-row: 1;
  }

  .project-info-credits {
    grid-column: 1 / 25;
    grid-row: 2;
  }
	
	h3 {
		margin-bottom:40px;
	}
}


@media (max-width: 900px) {
  /* Strip gallery: never animate in on mobile/tablet */
  .strip-gallery [data-aos],
  .strip-gallery [data-aos] * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Also prevent any image/video fade-ins in the strip */
  .strip-gallery img,
  .strip-gallery video {
    opacity: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  /* iOS Safari flicker guard for all videos */
  video {
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* If AOS is touching video wrappers, kill it */
  .featured-media,
  .featured-media__el,
  .card-image,
  .card-image video {
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
  }
}


/* ============================
   LIST VIEW TOGGLE BUTTON (single location)
   ============================ */

/* Always-visible toggle (only exists when ?list_test=1 because PHP) */
.projects-list-toggle{
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  gap: 10px;
}

/* Base button styling for both states */
.projects-list-open,
.projects-list-close{
  font-size: 13px;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

/* Default state: show ListView button only */
.projects-list-open{ display: inline-flex; }
.projects-list-close{ display: none; }

/* Open state: hide ListView, show big X */
body.list-overlay-open .projects-list-open{ display: none; }
body.list-overlay-open .projects-list-close{ display: inline-flex; }

/* Make the close button a big circular X */
.projects-list-close{
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  align-items: center;
  justify-content: center;

  /* hide any existing "Close" text */
  font-size: 0;

  opacity: 0.75;
  text-decoration: none;
}
.projects-list-close:hover{ opacity: 1; }

.projects-list-close::before{
  content: "×";
  font-size: 28px;
  line-height: 1;
  color: rgba(0,0,0,0.75);
}


/* ============================
   LIST VIEW OVERLAY (fade in/out)
   ============================ */
.projects-list-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* key: animate opacity, not display */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}

.projects-list-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease-out, visibility 0s linear 0s;
}

/* optional: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .projects-list-overlay{
    transition: none;
  }
}

/* Lock background scroll while overlay is open (JS also sets overflow) */
body.list-overlay-open{
  overflow: hidden;
}


/* ============================
   LIST VIEW LAYERING (bg < follow < text)
   ============================ */

/* White background sits on its own layer */
.projects-list-overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Ensure the overlay content sits ABOVE the follow image */
.projects-list-overlay .container,
.projects-list-overlay .grid,
.projects-list-header,
.projects-list-headrow,
.projects-list,
.projects-list-row-wrap,
.projects-list-row{
  position: relative;
  z-index: 2;
}

/* Floating follow image used only for the List View overlay */
.projects-list-overlay img.follow.follow-list-float{
  position: absolute;  /* IMPORTANT: absolute + scrollTop in JS */
  pointer-events: none;
  z-index: 1;
  display: none;       /* JS toggles */
}

/* Never show the inline follows inside the overlay (we use the floating one) */
.projects-list-overlay img.follow.follow-list{
  display: none !important;
}

/* Only neutralize AOS within the overlay (not everything) */
.projects-list-overlay [data-aos]{
  transform: none !important;
}

/* Keep overlay from creating unexpected transform stacking contexts */
.projects-list-overlay,
.projects-list-overlay .container,
.projects-list-overlay .grid{
  transform: none !important;
}


/* ============================
   LIST VIEW HEADER STYLES
   ============================ */
.projects-list-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  margin-bottom: 14px;
}

.projects-list-title{
  font-size: 18px;
}

.pl-client, .pl-project {
	letter-spacing: -.25px;
}


img.follow-list{
  position: fixed !important;
  display: none !important;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ListView: never show the inline follow images (we use the floating one instead) */
.projects-list-overlay img.follow.follow-list {
  display: none !important;
}


/* Floating follow image used ONLY for list overlay */
img.follow-list-float{
  width: 33%;
  display: none;
}



/* Show only when hovering the list row */
@media (hover: hover) and (pointer: fine) {
  .projects-list-row-wrap:hover img.follow-list{
    display: block !important;
  }
}



/* Column labels row */
.projects-list-headrow{
  display: grid;
  grid-template-columns: 6fr 8fr 8fr 2fr; /* client / project / tags / year */
  gap: 18px;
  font-size: 12px;
  opacity: 0.55;
  padding: 10px 0;
}

/* Rows */
.projects-list{
  width: 100%;
}

.projects-list-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.projects-list-row-wrap{
  position: relative; /* for the sibling follow behavior and layering */
}

.projects-list-row{
  display: grid;
  grid-template-columns: 6fr 8fr 8fr 2fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
}

/* Coming soon row */
.projects-list-row-disabled{
  cursor: default;
  opacity: 0.6;
}

/* little badge */
.pl-badge{
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  opacity: 0.7;
}

/* Make sure hover-follow displays behind text like your nav */
.projects-list-row-wrap img.follow{
  z-index: 0;
}
.projects-list-row{
  position: relative;
  z-index: 2;
}

/* Hover-follow: same sibling strategy as your nav */
@media (hover: hover) and (pointer: fine) {
  .projects-list-row:hover + img.follow{
    display: block !important;
  }
}

/* Responsive: stack columns on small screens */
@media (max-width: 800px){
  .projects-list-headrow{
    display: none;
  }
  .projects-list-row{
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .pl-year{
    opacity: 0.7;
  }
}
