/* 
Theme Name: BlankSlate
Theme URI: https://opencollective.com/blankslate
Author: Web Guy
Author URI: https://opencollective.com/blankslate#section-contributors
Description: ...
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2026
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: blankslate

BlankSlate WordPress Theme 2011-2026
BlankSlate is distributed under the terms of the GNU GPL
*/


/* Loader overlay */
#tk-loader {
  position: fixed;
  inset: 0;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  transition: opacity 0.5s ease;
}

/* Spinner */
.tk-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #44415a;
  border-radius: 50%;
  animation: tkSpin 0.8s linear infinite;
}

@keyframes tkSpin {
  to { transform: rotate(360deg); }
}

/* hide loader */
#tk-loader.tk-hide {
  opacity: 0;
  pointer-events: none;
}

body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.tk-loaded {
  opacity: 1;
}
.tk-portfolio-block .item,
.tk-portfolio-block .tall {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tk-portfolio-block .item.tk-visible,
.tk-portfolio-block .tall.tk-visible {
  opacity: 1;
  transform: translateY(0);
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1;
}
body {
  padding: 0;
  line-height: 1;
  margin: 0;
  height: 100vh;
  overflow-y: auto;
}
a {
  text-decoration-skip-ink: auto;
}
a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}
button {
  outline: 0;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
q {
  display: inline;
  font-style: italic;
}
q:before {
  content: '"';
  font-style: normal;
}
q:after {
  content: '"';
  font-style: normal;
}
textarea,
input[type="text"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="search"],
input[type="password"] {
  appearance: none;
  border-radius: 0;
}
input[type="search"] {
  appearance: textfield;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th,
td {
  padding: 2px;
}
big {
  font-size: 120%;
}
small,
sup,
sub {
  font-size: 80%;
}
sup {
  vertical-align: super;
}
sub {
  vertical-align: sub;
}
dd {
  margin-left: 20px;
}
kbd,
tt {
  font-family: courier;
  font-size: 12px;
}
ins {
  text-decoration: underline;
}
del,
strike,
s {
  text-decoration: line-through;
}
dt {
  font-weight: bold;
}
address,
cite,
var {
  font-style: italic;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --tk-bg-color: #ddd; /* default */
}

.entry-content {
  padding: 0;
  background-color: var(--tk-bg-color);
  height: auto;

  /* optional: smooth transition */
  transition: background-color 0.35s ease;
}

/* =========================
   NAV: headline-card on top
   ========================= */

/* Topmost fixed navigation */
.headline-card {
  position: ;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  /* background-color: #f5f5f59e; */
  z-index: 1000;
  pointer-events: auto;
  padding: 12px;
  overflow: visible;
  align-content: center;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  flex-wrap: wrap;
}

/* Center the clock in header */
.headline-card svg.tk-watch {
  display: block;
  margin: 0 auto;
}
.item-container {
  display: flex;
  margin: 0;
  height: auto;
  padding: 0;
  border-radius: 6vh;
  /* padding: 6vh 3vh; */
  align-items: flex-start;
  justify-content: center;
  /* background-color: #fff; */
  flex-wrap: nowrap;
  align-content: flex-start;
}
/* =========================
   GRID: Desktop = horizontal scroll with ALWAYS visible scrollbar
   ========================= */
/* =========================
   GRID: Desktop = vertical 2-column layout
   ========================= */

.tk-portfolio-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
  grid-auto-rows: minmax(50vh, auto);
  gap: 3.0vh 1.5vw;
  width: 95%;
  height: auto;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3vh 1vw;
  border-radius: 3vw;
  background-color: #eee;
  overflow-y: hidden;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
  align-content: start;
}
/* vertical scrollbar styling */
.tk-portfolio-block__grid {
  scrollbar-width: auto;
}
.tk-portfolio-block__grid::-webkit-scrollbar {
  width: 12px;
}
.tk-portfolio-block__grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}
.tk-portfolio-block__grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}
.tk-portfolio-block__grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.38);
}

/* Tile styles */
.item,
.tall {
  cursor: pointer;
  border-radius: 3vh;
  background-color: #e0def4;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: stretch;
  justify-content: center;

  overflow: hidden;
  position: relative;
}

/* Tall spans TWO ROWS (same behavior, now vertical grid) */
.tall {
  grid-row: span 2;
  background-size: contain;
}

/* Prevent collapse */
.thumbnail.placeholder {
  width: 100%;
  height: 100%;
  opacity: 0.12;
}
/* =========================
   Hover scroll preview: fill remainder below titlebar
   Fix: viewport/preview should fill remaining height
   ========================= */

.tk-portfolio-block .item .hover-scroll-preview {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;

  overflow: hidden;
  border-radius: 3vh;

  pointer-events: none;
  opacity: 1;

  background-color: #908caa;
  z-index: 5;
}
.tk-portfolio-block .item:hover{  color: #908caa;}
.tk-portfolio-block .item{  color: transparent;}

/* Titlebar is fixed-height at top */
.tk-portfolio-block .item .hover-scroll-preview__titlebar {
  flex: 0 0 38px;
  height: 38px;

  width: 100%;
  background: #e0def4;
  z-index: 2;

  background-repeat: no-repeat;
  background-position: center left;
  background-image: url("/wp-content/themes/blankslate/img/zoom-titlebar-caption.svg");

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 0 14px;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Google Sans", sans-serif;
}

/* Viewport MUST fill remaining height */
.tk-portfolio-block .item .hover-scroll-preview__viewport {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;

  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}

/* Image inside viewport */
.tk-portfolio-block .item .hover-scroll-preview__img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  will-change: transform, opacity;
}

/* Only animate when JS adds is-ready and when hovering scroll-image tiles */
.tk-portfolio-block
  .item[data-type="Scroll Image"]:hover
  .hover-scroll-preview.is-ready
  .hover-scroll-preview__img {
  animation: tkHoverScroll var(--tk-scroll-duration, 3.2s) linear infinite;
}

@keyframes tkHoverScroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  84% {
    transform: translateY(calc(-1 * var(--tk-scroll-distance, 0px)));
    opacity: 1;
  }
  90% {
    transform: translateY(calc(-1 * var(--tk-scroll-distance, 0px)));
    opacity: 0;
  }
  91% {
    transform: translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tk-portfolio-block
    .item[data-type="Scroll Image"]:hover
    .hover-scroll-preview.is-ready
    .hover-scroll-preview__img {
    animation: none;
  }
}

/* =========================
   Modal (your existing styles, unchanged)
   ========================= */

.tk-portfolio-modal[hidden] {
  display: none;
}

.tk-portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.tk-portfolio-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--tk-bg-color);
}

.tk-portfolio-modal__panel {
  position: absolute;
  inset: 5vh 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tk-portfolio-browser {
  font-family: "Google Sans", sans-serif;
  position: relative;
  width: min(1100px, 90vw);
  top: 3%;
  bottom: 3%;
  height: min(820px, 90vh);
  pointer-events: auto;
}

.tk-portfolio-browser__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tk-portfolio-browser__content {
  position: absolute;
  background-color: #e0def4;
  border-radius: 0 0 30px 30px;
  overflow: auto;
  width: 100%;
  height: 78vh;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.browser-nav {
  height: 60px;
  display: flex;
  background-color: #44415a;
  border-radius: 30px 30px 0 0;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
}

.red {
  background-color: #ec979a;
  height: 20px;
  width: 20px;
  border-radius: 30px;
  cursor: pointer;
}
.green {
  background-color: #96c4a8;
  height: 20px;
  width: 20px;
  border-radius: 30px;
}
.yellow {
  background-color: #f4b68b;
  height: 20px;
  width: 20px;
  border-radius: 30px;
}

.summary {
  margin: 0 auto;
  cursor: pointer;
  display: flex;
  max-width: 500px;
  width: 100%;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}
.tk-portfolio-block__headline {
  display: flex;
}
.info {
  width: 20px;
  height: 20px;
  padding-left: 6px;
  padding-right: 6px;
  -webkit-mask: url("/wp-content/themes/blankslate/img/info.svg") no-repeat center /
    contain;
  mask: url("/wp-content/themes/blankslate/img/info.svg") no-repeat center / contain;
  background-color: #eee;
}

.arrow-left {
    background-position: center center;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  -webkit-mask: url("/wp-content/themes/blankslate/img/arrow-left.svg") no-repeat center /
    contain;
  mask: url("/wp-content/themes/blankslate/img/arrow-left.svg") no-repeat center / contain;
  background-color: #000;
}

.arrow-right {
    background-position: center center;
  background-repeat: no-repeat;
  width: 40px;
  height: 40px;
  -webkit-mask: url("/wp-content/themes/blankslate/img/arrow-right.svg") no-repeat center /
    contain;
  mask: url("/wp-content/themes/blankslate/img/arrow-right.svg") no-repeat center / contain;
  background-color: #000;
}

.browser-titlebar {
  background-color: #6e6a86;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  color: #ddd;
  padding: 10px;
  min-width: 200px;
  border-radius: 30px;
  width: 100%;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}

.direction {
  width: 10%;
  padding-right: 3%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
}

.three-circles {
  display: flex;
  flex-direction: row;
  width: 10%;
  flex-wrap: nowrap;
  padding-left: 3%;
  justify-content: space-between;
}

.next {
  opacity: 0.7;
  height: 40px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 60px;
  -webkit-mask: url("/wp-content/themes/blankslate/img/next.svg") no-repeat center;
  mask: url("/wp-content/themes/blankslate/img/next.svg") no-repeat center;
  background-color: #eee;
}

.prev {
  height: 40px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 60px;
  -webkit-mask: url("/wp-content/themes/blankslate/img/prev.svg") no-repeat center;
  mask: url("/wp-content/themes/blankslate/img/prev.svg") no-repeat center;
  background-color: #eee;
  opacity: 0.7;
}
.prev:hover,
.next:hover {
  opacity: 1;
}

.tk-portfolio-browser__content img {
  max-width: 100%;
  height: auto;
  display: block;
}

html.tk-portfolio-modal-open,
html.tk-portfolio-modal-open body {
  overflow: hidden;
}

/* Tooltip */
.about-wrap {
  position: absolute;
  display: inline-block;
  z-index: 999999;
}

.about {
  cursor: help;
  display: inline-block;
}

.about-tooltip {
  position: fixed;
  z-index: 999999;
  max-width: 320px;
  font-family: "Google Sans";
  padding: 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  background: rgb(110 106 134);
  color: #fff;
  pointer-events: none;
  transform: translate(12px, 12px);
}

/* Bubble */
.tk-bubble[hidden] {
  display: none;
}
.tk-portfolio-modal__description {
  font-size: 15px;
  line-height: 1.4;
}
.tk-bubble {
  position: fixed;
  left: 40px;
  top: 40px;
  max-width: 430px;
  display: flex;
  padding: 16px 24px;
  min-height: 70px;
  border-radius: 6px;
  background: #ffffff;
  color: #000;
  cursor: grab;
  user-select: none;
  z-index: 1000000;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: flex-end;
}

.tk-bubble:active {
  cursor: grabbing;
}

.tk-bubble__close {
    -webkit-mask: url("/wp-content/themes/blankslate/img/close.svg") no-repeat center /
    contain;
  mask: url("/wp-content/themes/blankslate/img/close.svg") no-repeat center / contain;
  background-color: #1f1f1f;
  position: absolute;
  display: flex;
  border-radius: 20px;
  border: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
  top: 0;
  right: 0;
  opacity: 0.85;
  align-items: center;
  align-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
}
.tk-bubble__close:hover {
  opacity: 1;
}

.tk-bubble__content {
  padding-right: 18px;
  font-size: 14px;
  line-height: 1.35;
}

.tk-bubble__tail {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px;
  pointer-events: none;
}

svg.tk-watch {
  width: 135px;
  height: 135px;
  z-index: 99999;
}
.copyright {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 60px;
  padding-top: 12px;
  color: #44415a;
  text-align: center;
  font-family: 'Google Sans',sans-serif;
  font-size: 12px;
  font-weight: 500;
}
/* =========================
   Responsive: MOBILE header half-size + masonry
   ========================= */
footer#footer {
  display: none;
}
@media (max-width: 980px) {
    .tk-portfolio-block__grid {
  grid-template-columns: 1fr;
 
}
  /* header becomes a compact top bar (half of the old 180px) */
  .headline-card {
    width: 100%;
    height: 120px; /* half size */
    flex-direction: row;
    justify-content: center; /* clock centered */
    padding: 0 12px;
    z-index: 10; /* ensure modal frame overlays cleanly */
  }

  .headline-card svg.tk-watch {
    width: 120px;  /* roughly half size of desktop clock */
    height: 120px;
    margin: 0 auto;
  }

  /* marginless container, just offset by header */
  .item-container {
    margin: 0 auto;
    margin-top: ;
   
  }

  /* MOBILE: vertical masonry (columns) */
  .tk-portfolio-block__grid {
 
    /* masonry via columns */
    column-count: 1;
    column-gap: 12px;

    /* vertical scroll for masonry */
    overflow-y: auto;
    overflow-x: hidden;

    /* keep scrollbar space stable */
    scrollbar-gutter: stable both-edges;

    /* spacing handled by columns; keep flush */
    padding: 12px;
    margin: 0;
  }
  

  /* masonry children must be inline-block to flow into columns */
  .tk-portfolio-block__grid .item,
  .tk-portfolio-block__grid .tall {
    display: inline-block;
    width: 100%;
    height: auto;          /* allow variable heights for masonry */
    min-height: 180px;     /* sensible baseline */
    margin: 0 0 12px 0;
    break-inside: avoid;
  }

  /* tall no longer spans rows in masonry */
  .tk-portfolio-block__grid .tall {
    grid-row: auto;
    background-size: cover;
  }

  .three-circles,
  .direction {
    display: none;
  }
}

@media (max-width: 700px) {
  .browser-titlebar {
    background-color: transparent;
  }

  /* tighter masonry on very small screens */
  .tk-portfolio-block__grid {
    column-count: 1;
  }
}
