/*
Theme Name: 128kb
*/

/* ======================================================================
   Typography scale (perfect-fourth, fluid)
   Each step interpolates min→max across the viewport via clamp().
   ====================================================================== */

:root {
  --fs-sm:   clamp(13px, 12px + 0.45vw, 15px);  /* captions, meta, ui, menus */
  --fs-base: clamp(16px, 15px + 0.35vw, 18px);  /* body */
  --fs-md:   clamp(22px, 17px + 1.30vw, 32px);  /* subheads, titles */
  --fs-lg:   clamp(34px, 20px + 3.50vw, 64px);  /* section heads, display */
  --fs-xl:   clamp(39px, 19.5px + 5.64vw, 121px); /* h1, hero */

  /* Editor presets (mirror theme.json fontSizes; fluid 320px → 1600px viewport) */
  --fs-preset-small:  16px;
  --fs-preset-medium: clamp(16px, 13px + 0.9375vw, 28px);
  --fs-preset-large:  clamp(22px, 19.25px + 0.859vw, 33px);
}

/* ======================================================================
   Preloader
   ====================================================================== */

#preloader {
  background: #ffffff;
  color: #000000;
  font-size: 32vw;
  line-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  cursor: pointer;
  padding: 100px 0 0 0;
  overflow: hidden;
  height: 100vh;
}
#preloader.hidden {
  display: none;
}

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

@font-face {
  font-family: "SuisseWorks";
  src: url("./fonts/SuisseWorks-Book-WebXL.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SuisseIntl";
  src: url("./fonts/SuisseIntl-Regular-WebXL.woff2") format("woff2"),
       url("./fonts/SuisseIntl-Regular-WebXL.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SuisseIntl";
  src: url("./fonts/SuisseIntl-Black-WebM.woff2") format("woff2"),
       url("./fonts/SuisseIntl-Black-WebM.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

/* Never use bold anywhere — only normal font-weight. */
h1, h2, h3, h4, h5, h6,
b, strong, th, dt, optgroup {
  font-weight: normal;
}

body {
  margin: 0 !important;
  overflow-x: hidden;
  font-family: SuisseIntl, "Helvetica", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  font-size: var(--fs-base);
}
body.logged-in #menu-secondary .accent,
body.logged-in #menu-secondary-mobile .accent {
  display: none;
}
body.main-navigation-mobile-overlay-visible #main-navigation-mobile-overlay {
  left: 0;
}
body.main-navigation-mobile-overlay-visible #nav-silk {
  opacity: 0.6 !important;
  pointer-events: all !important;
  cursor: pointer !important;
  z-index: 9999;
}

.nav-avatar {
  width: 30px;
  height: 30px;
  max-width: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
#user-menu-trigger,
#user-menu-trigger-mobile {
  display: inline-flex;
  align-items: center;
}
#main-navigation-mobile-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

a {
  text-decoration: none;
  color: #0000ff;
}
a:hover {
  color: #000000;
}

p, li {
  color: #000000;
}

h1 {
  margin: 0 auto;
  padding: 25vh 10px;
  color: #000000;
  font-family: "SuisseIntl", "Helvetica", Arial, sans-serif;
  font-size: calc(var(--fs-xl) * 1.1);
  font-weight: normal;
  letter-spacing: -0.02em;
  max-width: 1600px;
  line-height: 95%;
  text-align: center;
}

h2, h3, h4, h5 {
  color: #000000;
  font-weight: normal;
  line-height: 110%;
  margin-top: 0;
}

h2, h3, p {
  margin-top: 0;
}

img {
  width: 100%;
  height: auto;
}

.pixelate,
.pixelated {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

input {
  width: 100%;
  padding: 10px;
}

button {
  border: none;
  outline: none;
  box-shadow: none;
}

code {
  background: transparent;
  padding: 10px;
  color: #000000;
  font-size: var(--fs-sm);
}

/* ======================================================================
   Layout
   ====================================================================== */

.container-narrow {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}
.content h2,
.content h3,
.content h4 {
  font-size: var(--fs-md);
  color: #000000;
}
.content pre {
  background: #f1f1f1;
  padding: 10px;
  color: #000000;
  overflow-x: auto;
}
.content pre code {
  font-size: var(--fs-base);
}

#content {
  margin: 0;
  padding: 0 0 100px 0;
  background: transparent;
}
#content h2 {
  font-size: var(--fs-md);
}
.content h2,
#content h2 {
  color: #0000ff;
  line-height: 140%;
}
.content h3,
#content h3 {
  color: #aaaaaa;
  line-height: 140%;
}
#content p {
  line-height: 140%;
  font-size: var(--fs-base);
}
#content li {
  font-size: var(--fs-base);
}
#content table {
  font-size: var(--fs-base);
}
#content h1 {
  padding-bottom: 0;
}
/* Custom page templates only — page.php and single.php use .post-header. */
body.page #content > h1 {
  padding-bottom: 75px;
}
#content h1 + p,
#content .post-header + p {
  padding-top: 30px;
}
/* Posts and pages (single.php, page.php): the header owns the top spacing, so the title sits
   at the same height whether or not an overline is shown above it. */
#content .post-header {
  padding-top: 150px;
}
#content .post-header h1 {
  padding: 0 10px;
}

/* ----- Post overline (single.php): small headline above the title ----- */
#content .post-overline {
  margin: 0;
  padding: 0 10px 20px;
  font-size: var(--fs-md);
  text-align: center;
  color: #000000;
}

#single p,
#single li,
#single h2,
#single h3 {
  font-size: calc(var(--fs-base) * 1.25);
}


/* ======================================================================
   Navigation — Desktop
   ====================================================================== */

nav a {
  color: #ffffff;
}
nav .current-menu-item a {
  color: #ffffff;
}

#main-navigation-wrapper {
  display: none;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999999999999;
}
#main-navigation {
  display: none;
  grid-template-columns: 320px 1fr 320px;
  align-items: center;
  box-sizing: border-box;
  background: #0000ff;
  color: #ffffff;
  width: 100%;
  padding: 0 10px;
}
#main-navigation a {
  color: #ffffff;
}
#main-navigation a:hover,
#main-navigation .current-nav-item > a {
  color: #ffffff;
}
#main-navigation #logo,
#main-navigation #logo:hover {
  color: #ffffff;
}
#main-navigation a[target=_blank]::after {
  display: none !important;
}
#main-navigation .accent a {
  background: #000000;
  color: #ffffff;
  padding: 0 8px;
  border-radius: 25px;
}
#main-navigation .accent a:hover {
  background: #ffff00;
}

#main-navigation-left,
#main-navigation-mobile-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#main-navigation-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-navigation-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#main-navigation .menu {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
#main-navigation .menu li {
  display: flex;
  align-items: center;
  padding: 0 5px;
}

#menu-primary {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
#menu-primary li {
  display: flex;
  align-items: center;
  padding: 0 5px;
}
#menu-primary .menu-item-has-children {
  position: relative;
}
#menu-primary .menu-item-has-children > a::after {
  content: " ▼";
  font-size: 0.8em;
}
#menu-primary .menu-item-has-children:hover .sub-menu {
  display: block;
}
#menu-primary .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  z-index: 99999;
  padding: 0;
}
#menu-primary .sub-menu li {
  padding: 0;
  display: block;
  width: 100%;
}
#menu-primary .sub-menu li:last-child a {
  border-bottom: none;
}
#menu-primary .sub-menu a {
  display: block;
  padding: 8px 15px;
  color: #000000;
  text-decoration: none;
}
#menu-primary .sub-menu a:hover {
  background: transparent;
}

#menu-secondary {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
#menu-secondary li {
  padding-left: 10px;
}

.menu-secondary-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#nav-right {
  display: flex;
  justify-content: flex-end;
}
#nav-right a {
  padding-left: 15px;
}

#logo {
  color: #ffffff;
  font-family: "SuisseIntl", "Helvetica", Arial, sans-serif;
  font-weight: normal;
}
#logo-mobile {
  color: #ffffff;
  font-family: "SuisseIntl", "Helvetica", Arial, sans-serif;
  font-weight: normal;
}

#nav-logo-desktop,
#nav-logo-mobile {
  max-width: 100px;
}

#main-navigation #logo,
#main-navigation-mobile #logo-mobile {
  font-weight: normal;
  display: block;
  padding: 0;
  margin: 0;
  font-size: 25px;
  text-decoration: none;
}

@media (min-width: 792px) {
  #main-navigation-wrapper {
    display: block;
  }
  #main-navigation {
    display: grid;
    height: 40px;
  }
  #main-navigation-left,
  #main-navigation-center,
  #main-navigation-right {
    height: 40px;
  }
  #main-navigation .menu {
    height: 40px;
  }
}

/* ======================================================================
   Navigation — Aside
   ====================================================================== */

#nav-aside {
  display: none;
  position: fixed;
  left: 10px;
  font-size: var(--fs-md);
  top: 60px;
  width: 200px;
}
#nav-aside ul {
  padding: 0;
  margin: 0;
}
#nav-aside ul a:hover {
  color: #000000;
}

/* ======================================================================
   Navigation — Mobile
   ====================================================================== */

#main-navigation-mobile {
  display: none;
  justify-content: space-between;
  align-items: center;
  background: #0000ff;
  position: fixed;
  top: 0;
  left: 0;
  padding: 5px 10px;
  width: 100%;
  z-index: 9999999;
}

#main-navigation-mobile-left-logo {
  width: 80px;
  font-weight: normal;
}

#main-navigation-mobile-overlay-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
}

#main-navigation-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  background: #0000ff;
  width: 80%;
  height: 100%;
  z-index: 999999;
  padding: 40px 10px;
  transition: left 0.4s ease;
  overflow-y: auto;
}
#main-navigation-mobile-overlay a {
  color: #ffffff;
}
#main-navigation-mobile-overlay a[target=_blank]::after {
  display: none !important;
}
#main-navigation-mobile-overlay ul {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--fs-md);
}
.mobile-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 50px;
}

#menu-primary-mobile {
  width: 100%;
  margin: 0;
  list-style: none;
  font-size: var(--fs-md);
}
#menu-primary-mobile li a {
  color: #000000;
}

#menu-secondary-mobile {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav-silk {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
  z-index: 9999;
}

@media (max-width: 791px) {
  #main-navigation-mobile {
    display: flex;
  }
  #main-navigation-mobile-overlay {
    display: block;
  }
  #nav-silk {
    display: block;
  }
  #main-navigation-mobile-overlay-trigger {
    font-size: var(--fs-md);
  }
  #main-navigation-mobile-right .nav-avatar {
    width: 40px;
    height: 40px;
    max-width: 40px;
  }
  .gif-grid .go-meta__year { display: none; } /* no year in grids on small screens (as on the live site) */

  /* top: notch when started from the home screen */
  body { padding-top: env(safe-area-inset-top); }
}

/* ======================================================================
   Grid
   ====================================================================== */

#grid {
  margin: 0 auto;
  padding: 0 10px;
}

.grid-item {
  flex: 0 0 calc(16% - 16px);
  min-width: 200px;
  display: block;
  text-align: center;
  transition: background 0.3s ease;
  padding-top: 20px;
}
@media (max-width: 1024px) {
  .grid-item {
    flex: 0 0 calc(33.333% - 14px);
  }
}
@media (max-width: 700px) {
  .grid-item {
    flex: 0 0 calc(50% - 10px);
  }
}
@media (max-width: 500px) {
  .grid-item {
    flex: 0 0 100%;
  }
}
.grid-item img {
  transition: transform 0.5s;
  transform: rotateY(0deg) scale(1);
  display: block;
}
.grid-item:hover img {
  transform: rotateY(45deg) scale(0.8);
}
.grid-item:hover .grid-item-meta p {
  color: #000000;
}
.grid-item .grid-item-meta p {
  color: #000000;
  transition: 0.5s ease;
}
.grid-item p .file-size {
  color: #000000;
  transition: all 0.4s ease;
}
.grid-item p .gif-title {
  color: #000000;
  transition: all 0.4s ease;
}
.grid-item:hover p .file-size {
  color: #000000;
}
.grid-item:hover p .gif-title {
  color: #000000;
}

.grid-item-img-wrapper {
  transform-style: preserve-3d;
  perspective: 1000px;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
}
.grid-item-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.grid-item-caption {
  font-size: var(--fs-sm);
}

/* ======================================================================
   GIF Components
   ====================================================================== */

#gifs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 100px;
}
#gifs-grid .gif-item {
  display: block;
  margin-bottom: 30px;
  width: 300px;
  padding: 30px;
}

.gif-item {
  display: block;
  margin-bottom: 30px;
  text-align: center;
}
.gif-item:hover .gif-item-meta p {
  color: #000000;
}
.gif-item .gif-item-meta p {
  color: #000000;
}
.gif-item .gif-item-caption {
  font-size: var(--fs-sm);
}

.gif-item-img-wrapper {
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
}
.gif-item-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gif-img-wrapper {
  aspect-ratio: 1/1;
  display: flex;
  overflow: hidden;
}

.gif img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid transparent;
}

a.gif:hover img {
  border: none;
}

.gif-meta {
  padding: 15px 0;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Single-gif metadata table */
.gif-meta-table {
  width: 100%;
  table-layout: fixed;
  border: none;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.gif-meta-table td {
  padding: 0.25em 0.75em 0.25em 0;
  vertical-align: top;
  color: #000000;
  border: none;
}
.gif-meta-table td:first-child {
  width: 30%;
  white-space: nowrap;
  padding-right: 1.5em;
  opacity: 0.5;
}
.gif-meta-table td:last-child {
  width: 70%;
}

.gif-caption-copy {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.75em;
  font-size: var(--fs-sm);
  color: #000000;
  cursor: pointer;
  text-decoration: none;
}
.gif-caption-copy:hover {
  color: #000000;
}

.gif-meta-table a,
.gif-meta-table a:visited,
.gif-tag-link,
.gif-tag-link:visited {
  color: #0000ff;
  text-decoration: none;
}
.gif-meta-table a:hover,
.gif-tag-link:hover {
  color: #000000;
}

/* ----- Gifs grid component (components/grid.php) ----- */
.gif-grid-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 1rem;
}
/* Fluid column ladder: 8 columns on wide screens down to 2 on phones */
.gif-grid-item {
  flex: 0 0 calc(12.5% - 1rem);
  max-width: calc(12.5% - 1rem);
}
@media (max-width: 1600px) {
  .gif-grid-item {
    flex-basis: calc(14.2857% - 1rem);
    max-width: calc(14.2857% - 1rem);
  }
}
@media (max-width: 1399px) {
  .gif-grid-item {
    flex-basis: calc(16.6667% - 1rem);
    max-width: calc(16.6667% - 1rem);
  }
}
@media (max-width: 1199px) {
  .gif-grid-item {
    flex-basis: calc(20% - 1rem);
    max-width: calc(20% - 1rem);
  }
}
@media (max-width: 991px) {
  .gif-grid-item {
    flex-basis: calc(25% - 1rem);
    max-width: calc(25% - 1rem);
  }
}
@media (max-width: 791px) {
  .gif-grid-item {
    flex-basis: calc(33.3333% - 1rem);
    max-width: calc(33.3333% - 1rem);
  }
}
@media (max-width: 575px) {
  .gif-grid-item {
    flex-basis: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}
.gif-grid .gif {
  display: block;
  position: relative;
}
.gif-grid .gif-img-wrapper {
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}
.gif-grid .gif-img-wrapper img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}
.gif-grid .gif.tilt-left .gif-img-wrapper img {
  transform: rotateY(-24deg);
}
.gif-grid .gif.tilt-right .gif-img-wrapper img {
  transform: rotateY(24deg);
}
.gif-grid .gif-info {
  padding: 12px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}
/* Title + meta keep their own link (not nested inside .gif, which only
   wraps the thumbnail) so both remain clickable to the gif page. */
.gif-grid .gif-info-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.gif-grid .gif-info .go-title {
  font-size: var(--fs-sm);
  color: #000000;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gif-grid .gif-info .go-meta {
  color: #555555;
  margin-top: 2px;
  transition: color 0.2s ease;
}
.gif-grid .gif-grid-item:hover .go-meta {
  color: #000000;
}
.gif-grid .gif-render-video {
  display: block;
  text-align: center;
  margin-top: 2px;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: #aaaaaa;
  text-decoration: none;
}
.gif-grid .gif-render-video:hover {
  color: #ff0000;
  text-decoration: none;
}

/* ----- Framed gif (test): light-gray square frame around the gif on all screen
   sizes, same look as the responsive feed view (.gif-grid.is-feed) ----- */
.gif-img-wrapper.gif-frame {
  aspect-ratio: 1 / 1;
  padding: 10%;
  background: #f1f1f1;
  perspective: none;
}
a:hover .gif-img-wrapper.gif-frame {
  background: #e6e6ff;
}
.gif-img-wrapper.gif-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none !important;
  border: none;
}

/* ----- Shortcode {{< gifs >}} in posts: linked gif frames.
   1 gif = normal content width; 2-3 gifs = breakout-wide gallery. ----- */
.gif-gallery {
  margin: 30px 0;
}
.gif-gallery .gif {
  display: block;
}
.gif-gallery--multiple {
  display: grid;
  gap: 20px;
}
.gif-gallery--count-2 {
  grid-template-columns: repeat(2, 1fr);
}
.gif-gallery--count-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 749px) {
  .gif-gallery--count-2,
  .gif-gallery--count-3 {
    grid-template-columns: 1fr;
  }
}
/* breakout-wide: out of the 700px .content column, same math as .alignwide (max 1200px) */
@media (min-width: 750px) {
  #content .gif-gallery.breakout-wide {
    margin-left: max(-250px, calc(50% - 50vw + 20px));
    margin-right: max(-250px, calc(50% - 50vw + 20px));
    max-width: 1200px;
  }
}

/* ----- Index hero (components/index-hero.php) ----- */
#index-hero {
  position: relative;
  text-align: center;
  width: 100%;
  height: 90vh;
  background: #ffffff;
  margin-bottom: 50px;
}
#index-hero > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.index-hero__gifs {
  z-index: 2;
  perspective: 1200px;
}
.index-hero__gifs .gif-img-wrapper {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
.index-hero__gifs .gif-img-wrapper.tilt-left {
  transform: rotateY(-24deg);
}
.index-hero__gifs .gif-img-wrapper.tilt-right {
  transform: rotateY(24deg);
}
.index-hero__gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.index-hero__gifs .gif-img-wrapper { max-height: 62%; }
.index-hero__credit {
  position: relative;
  z-index: -1; /* under the gif, so the tilted gif (preserve-3d) paints over the credit */
  font-size: var(--fs-sm);
  color: #888888 !important;
  text-decoration: none;
  background: #ffffff;
  padding: 2px 8px;
}
.index-hero__credit:hover { color: #0000ff !important; }
.index-hero__headline {
  z-index: 1;
  margin: 0;
  max-width: none;
  font-size: 36.5vw;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000000;
}

/* ----- Index hero — p5.js variant (components/index-hero-p5.php) ----- */
.index-hero--p5 .index-hero__p5-bg {
  z-index: 1;
  overflow: hidden;
}
.index-hero--p5 .index-hero__p5-bg canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
.index-hero--p5 .index-hero__scrim {
  z-index: 2;
  background: #ffffff;
  opacity: 0.3;
  pointer-events: none;
}
.index-hero--p5 .index-hero__headline {
  z-index: 3;
  padding: 0 24px;
}

/* ----- Home on phones (< 576px): big logo, one-sentence intro, creator stories,
     then the feed — no hero gif above (as on the live site) ----- */
.home-phone { display: none; }
@media (max-width: 575px) {
  body.home .home-phone { display: block; padding: 64px 0 30px; }
  body.home #index-hero, body.home #start-content { display: none; }
  body.home #latest-submissions .section-title { display: none; } /* on phones the feed follows the stories directly, no heading (as on the live site) */
  /* Logo above the lead text, exactly as wide as the screen: "128KB" is 2.731em
     wide from ink to ink (letter-spacing -0.04em like the desktop hero), so
     (100vw - 10px) / 2.731 fills the width minus 5px each side. */
  .home-phone__logo {
    margin: 0 0 22px;
    padding: 0 5px;
    max-width: none;
    font-size: calc((100vw - 10px) / 2.731);
    letter-spacing: -0.04em;
    line-height: .75;
    white-space: nowrap;
    text-align: left;
    color: #000000;
  }
  .home-phone__intro {
    margin: 0 0 28px;
    padding: 0 15px;
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  /* "Learn more" on phones: a plain blue link inside the intro, not a button */
  .home-phone__intro a {
    color: #0000ff;
  }
  .home-phone__intro a:hover { color: #000000; }
  .home-stories {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 15px;
    padding: 2px 15px 6px;
    margin-bottom: 18px;
    scrollbar-width: none;
  }
  .home-stories::-webkit-scrollbar { display: none; }
  .home-stories__item {
    flex: 0 0 auto;
    width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    scroll-snap-align: start;
    color: #000000 !important;
    text-decoration: none;
  }
  .home-stories__ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f1;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0000ff;
    margin-top: 4px;
  }
  .home-stories__ring img { width: 100%; height: 100%; object-fit: cover; }
  .home-stories__ring img.pixelate { image-rendering: pixelated; }
  .home-stories__ring--all {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #e5e5e5;
    color: #0000ff;
    font-size: var(--fs-sm);
  }
  .home-stories__name {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
}

/* ----- Start page content (components/start-content.php) ----- */
#start-content {
  padding: 0 0 60px;
}
/* Home intro: same short text as the mobile home-phone__intro, display-sized like the section headlines */
#start-content .home-intro-text {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
}
.home-intro-cta {
  margin: 32px 0 0;
  text-align: center;
}
.home-intro-cta .btn-primary {
  font-size: var(--fs-md);
}

/* ----- Team grid component (components/team-grid.php) ----- */
.team-grid-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}
.team-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-grid-item__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.team-grid-item__thumb--empty {
  background: transparent;
  border: 1px solid #000000;
}
.team-grid-item__name {
  margin: 14px 0 6px;
  font-size: var(--fs-base);
  font-weight: normal;
}
.team-grid-item__excerpt {
  margin: 0;
  font-size: var(--fs-sm);
  color: #000000;
  line-height: 1.5;
}
@media (max-width: 575px) {
  .team-grid-items { grid-template-columns: 1fr; }
}


/* ----- Single gif page (single-gifs.php) ----- */
#single-gif-section {
  background: transparent;
  color: #000000;
}
#single-gif-section a {
  color: #0000ff;
  text-decoration: none;
}
#single-gif-section a:hover {
  color: #000000;
}
/* Top area: two columns on wider screens — square gif frame (gif-frame
   partial) on the left, gif-details__main + gif-details__data on the right */
#single-gif-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
.gif-single-top__media .gif {
  width: 100%;
  max-width: none;
}
#single-gif-wrapper {
  padding: 0;
}
body.single-gifs .section-title {
  padding-bottom: 100px;
  font-size: var(--fs-md);
  color: #aaaaaa;
}
#gif-single-meta {
  font-size: var(--fs-sm);
  line-height: 1.5;
}
#gif-single-meta p,
#gif-single-meta .gif-meta p {
  font-size: inherit;
}
#gif-single-meta .gif-meta-title { font-size: 1.4em; }
#gif-single-meta .gif-description { font-size: 2em; line-height: 115%; }
#gif-single-meta .gif-meta-info,
#gif-single-meta .gif-meta-tags { font-size: 1.15em; }

/* Meta colors */
#single-gif-wrapper .gif-meta,
#single-gif-wrapper .gif-meta p,
#single-gif-wrapper .gif-meta-title,
#single-gif-wrapper .gif-meta-info,
#single-gif-wrapper .gif-meta-tags,
#single-gif-wrapper .gif-meta-title span {
  color: #000000;
}
/* Links: brand blue, black on hover, no underline */
#single-gif-wrapper .gif-tag-link,
#single-gif-wrapper #gif-single-meta a,
#single-gif-wrapper #gif-single-meta .gif-meta-table a,
.gif-meta-table a,
.gif-meta-table .gif-tag-link {
  color: #0000ff;
  text-decoration: none;
}
#single-gif-wrapper .gif-tag-link:hover,
#single-gif-wrapper #gif-single-meta a:hover,
.gif-meta-table a:hover {
  color: #000000;
}

/* ======================================================================
   Articles
   ====================================================================== */

article {
  padding: 0;
}
article a {
  color: #0000ff;
}
article p {
  padding: 0;
  margin: 0;
}

/* ======================================================================
   Wiki
   ====================================================================== */

.wiki-layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  margin: 0 auto;
  padding: 40px 10px;
  min-height: 80vh;
}
@media (max-width: 768px) {
  .wiki-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 10px;
  }
}

.wiki-sidebar {
  height: fit-content;
  position: sticky;
  top: 100px;
}
@media (max-width: 768px) {
  .wiki-sidebar {
    position: relative;
    top: auto;
  }
}
.wiki-sidebar h3 {
  margin: 0 0 20px 0;
  font-size: var(--fs-base);
  padding-bottom: 10px;
  color: #000000;
}

.wiki-nav {
  list-style: none;
  padding: 0;
}
.wiki-nav li {
  margin-bottom: 5px;
}
.wiki-nav a {
  color: #0000ff;
  text-decoration: none;
  display: block;
  padding: 2px 0;
}
.wiki-nav a:hover {
  color: #000000;
}
.wiki-nav a.current {
  color: #000000;
}
.wiki-nav .children {
  list-style: none;
  padding-left: 20px;
  margin-top: 5px;
}
.wiki-nav .children a {
  font-size: var(--fs-sm);
  color: #0000ff;
}

.wiki-content {
  padding: 40px;
}
@media (max-width: 768px) {
  .wiki-content {
    padding: 20px;
  }
}
.wiki-content h1 {
  color: #000000;
  margin: 0 0 20px 0;
  padding: 5vh 10px;
  background: #ff0000;
  font-size: var(--fs-md);
}
.wiki-content h2 {
  color: #000000;
  margin: 30px 0 15px 0;
  font-size: var(--fs-md);
}
.wiki-content h3 {
  margin: 25px 0 10px 0;
  font-size: var(--fs-base);
}
.wiki-content p {
  line-height: 1.6;
  margin-bottom: 15px;
}
.wiki-content ul,
.wiki-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}
.wiki-content code {
  background: transparent;
  padding: 2px 6px;
  border-radius: 3px;
  color: #000000;
  font-size: var(--fs-sm);
}
.wiki-content pre {
  background: #f1f1f1;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 15px 0;
  color: #000000;
}

.wiki-content-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ======================================================================
   UI Components
   ====================================================================== */

.btn {
  all: revert;
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}

.pagination {
  margin: 100px 0;
}
.pagination .page-numbers {
  background: transparent;
  border: 1px solid #000000;
  color: #000000;
  border-radius: 10px;
}
.pagination .page-numbers.current {
  background: transparent;
  border: 2px solid #000000;
  color: #000000 !important;
}
.pagination .page-numbers:hover {
  color: #0000ff;
}

#tags-list {
  list-style: none;
  margin: 0;
  padding-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 15px;
}
#tags-list a {
  font-size: var(--fs-md);
  color: #0000ff;
  display: block;
}
#tags-list a:hover,
#tags-list a.active {
  color: #000000;
}

.section-title {
  color: #555555;
  font-size: var(--fs-lg);
  font-weight: normal;
  padding: 50px 10px;
  text-align: center;
  line-height: 100%;
  margin: 0;
  display: block;
}

.section-cta {
  text-align: center;
  padding: 100px 15px 80px;
}
.section-cta .btn-primary {
  font-size: var(--fs-md);
}

.btn-primary {
  display: inline-block;
  color: #000000;
  background: #f1f1f1;
  font-size: var(--fs-base);
  font-weight: normal;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary:hover {
  background: #0000ff;
  color: #ffffff;
}

.edit-link {
  display: table;
  margin: 30px auto 0;
  font-size: var(--fs-sm);
  background: transparent;
  border: 1px solid #000000;
  padding: 5px 10px;
  border-radius: 5px;
}
.edit-link a {
  color: #000000;
}

.content-edit-link {
  color: #ff0000;
  text-decoration: none;
}
.content-edit-link:hover {
  text-decoration: underline;
}

.scrollOnClick {
  cursor: pointer;
}

.wp-block-image {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#wpcf7-f147-o1 {
  background: transparent;
  border: 1px solid #000000;
  padding: 50px;
  margin-top: 30px;
}
#wpcf7-f147-o1 label {
  color: #000000;
}

/* ======================================================================
   Typography Utilities
   ====================================================================== */

.noselect {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-small  { font-size: var(--fs-sm); }

.headline-xl       { font-size: var(--fs-xl); }
.has-small-font-size  { font-size: var(--fs-preset-small); }
.has-medium-font-size { font-size: var(--fs-preset-medium); }
.has-large-font-size  { font-size: var(--fs-preset-large); }

.creator { color: #000000; }
.m-0     { margin: 0 !important; }

/* ======================================================================
   Tables — raw 1995 styling
   ====================================================================== */

table {
  border-collapse: collapse;
  width: 100%;
}

table, th, td {
  border: 1px solid #000000;
}

th, td {
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
  color: #000000;
}

th {
  background: transparent;
  color: #000000;
  font-weight: normal;
}

/* ======================================================================
   Footer
   ====================================================================== */

#colophon {
  background: transparent;
  padding: 50px 0;
  border-top: 1px solid #000000;
}

.footer-1 a,
.footer-2 a {
  color: #0000ff;
}

/* ======================================================================
   Cards
   ====================================================================== */

.card {
  background: transparent !important;
  border: 1px solid #000000 !important;
}
.card .card-body {
  color: #000000;
}

/* ======================================================================
   Bootstrap Overrides
   ====================================================================== */

.text-muted { color: #000000 !important; }

.bg-success,
.badge.bg-success {
  background-color: #28a745 !important;
}

/* ======================================================================
   Forms
   ====================================================================== */

.form-table th,
.form-table td {
  color: #000000;
}

/* ======================================================================
   WordPress Admin Bar
   ====================================================================== */

#wpadminbar {
  background: transparent !important;
}

/* ======================================================================
   Gutenberg — Alignwide / Alignfull
   ====================================================================== */

@media (min-width: 750px) {
  #content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
  }
  #content .alignwide {
    /* max -250px keeps us at 1200px wide (700 + 2×250);
       the calc kicks in on narrower viewports to prevent overflow */
    margin-left: max(-250px, calc(50% - 50vw + 20px));
    margin-right: max(-250px, calc(50% - 50vw + 20px));
    max-width: 1200px;
  }
  #content .wp-block-group__inner-container {
    max-width: 85.7143rem;
    margin: auto;
  }
  #content .wp-block-video.alignfull,
  #content .wp-block-embed.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  #content .wp-block-video.alignfull video,
  #content .wp-block-embed.alignfull iframe {
    width: 100%;
  }
}

#content video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

#content .wp-block-embed,
#content .wp-block-embed__wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#content .wp-block-embed iframe {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ======================================================================
   Single GIF page — live design: wide grey stage, two-column details
   ====================================================================== */
.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #000000;
  border-radius: 999px;
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: #000000;
  text-decoration: none;
  transition: background .1s, color .1s, border-color .1s;
}
a.pill:hover { border-color: #0000ff; color: #0000ff; }
button.pill { background: #ffffff; cursor: pointer; font-family: inherit; }
button.pill:hover { border-color: #0000ff; color: #0000ff; }

.size-meter__size { font-size: var(--fs-md); margin-bottom: 8px; }
.size-meter__bar { height: 6px; background: #f1f1f1; }
.size-meter__bar span { display: block; height: 100%; width: 0; background: blue; transition: width .3s; }


#single-gif-top {
  margin: 0 auto;
  padding: 60px 0 100px;
}
@media (min-width: 792px) {
  #single-gif-top { padding-top: 80px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
}
.gif-details { display: grid; grid-template-columns: 1fr; gap: 30px; }
#gif-single-meta { font-size: var(--fs-base); }
.gif-head { margin-bottom: 20px; }
#single-gif-section h1.gif-title {
  margin: 0;
  padding: 0;
  max-width: none;
  text-align: left;
  font-size: var(--fs-md);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
#gif-single-meta .gif-byline { margin: 6px 0 0; font-size: var(--fs-base); }
#gif-single-meta .gif-description { margin: 0 0 12px; max-width: 34em; font-size: var(--fs-base); line-height: 1.4; color: #aaaaaa; }
.gif-size { margin-top: 0; }
#gif-single-meta .gif-facts { margin: 8px 0 0; font-size: var(--fs-sm); color: #555555; }

#single-gif-wrapper .gif-meta-table { margin-top: 24px; border-top: 1px solid #e5e5e5; }
#single-gif-wrapper .gif-meta-table tr { border-bottom: 1px solid #e5e5e5; }
#single-gif-wrapper .gif-meta-table td { padding: 9px 0; }
#single-gif-wrapper .gif-meta-table td:first-child { width: 120px; padding-right: 16px; opacity: 1; color: #888888; }
#single-gif-wrapper .gif-meta-table td:last-child { width: auto; }
.gif-tags a { display: inline-block; margin-right: 10px; }

.gif-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
#single-gif-wrapper #gif-single-meta .gif-actions .pill {
  margin: 0;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: #f1f1f1;
  color: #000000;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.3;
  cursor: pointer;
}

hr {
	border: 0;
	color: transparent;
	margin: 30px 0;
}


#single-gif-wrapper #gif-single-meta .gif-actions .pill:hover { background: #aaaaaa; color: #000000; }

.gif-series { margin-bottom: 50px; }

@media (max-width: 791px) {
  #single-gif-top { padding-top: 50px; padding-bottom: 60px; }
}


/* trcc wordmark (logo from timrodenbroeker.de) in the footer, below "Built with Hugo" */
#trcc-logo-link {
  display: block;
  width: 112px;
  line-height: 0;
}
#trcc-logo {
  display: block;
  width: 112px;
  height: auto;
  fill: #ff4500;
}
#trcc-logo-link:hover #trcc-logo { fill: #00ff00; }
@media (max-width: 791px) {
  #trcc-logo-link, #trcc-logo { width: 80px; }
}


/* H1 on the blog / gifs / submit pages: 50px bottom padding */
body.section.posts #content .post-header h1,
body.section.gifs #content .post-header h1,
#content .post-header h1.h1-pb-50 {
  padding-bottom: 50px;
}

/* H1 on tag / series / dimension archive pages: 75px bottom padding */
body.term #content .post-header h1 {
  padding-bottom: 75px;
}

/* 75px below the gif grid on tag / series / dimension archive pages */
body.term #content .gif-grid {
  margin-bottom: 75px;
}

/* Latest Submissions headline on the home page */
#latest-submissions .section-title {
  padding-bottom: 100px;
}

/* ----- FAQ: collapsible <details>, styled like timrodenbroeker.de ----- */
.faq-item summary {
  cursor: pointer;
  color: #000000;
  user-select: none;
  position: relative;
  padding: 5px 5px 5px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid #000000;
  list-style: none;
  font-size: calc(var(--fs-base) * 1.25);
}
.faq-item summary::marker {
  display: none;
  content: "";
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #000000;
  transform: translateY(-50%);
}
.faq-item[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}
.faq-item summary:hover {
  color: #0000ff;
}
.faq-item summary:hover::before {
  border-left-color: #0000ff;
}
.faq-item > *:not(summary) {
  user-select: text;
}
.faq-answer {
  padding: 12px 5px 12px 18px;
}

/* Workshops / Instagram CTA at the end of the home page: no space above the button */
#workshops-cta .section-cta,
#instagram-cta .section-cta {
  padding-top: 0;
}


/* ======================================================================
   Creator profile /gifs/<handle>/ — same look as the old /@handle pages
   (Instagram-style header: round avatar, handle, stats, bio; GIF grid below)
   ====================================================================== */
.profile { max-width: 935px; margin: 0 auto; padding: 140px 15px 60px; }
.profile-header { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
.profile-avatar { justify-self: center; grid-row: 1 / -1; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: #f1f1f1; display: flex; align-items: center; justify-content: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar img.pixelate { image-rendering: pixelated; }
.profile-avatar span { font-size: 64px; color: #0000ff; }
.profile-handle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
#content h1.profile-handle { font-size: var(--fs-md); line-height: 1.2; margin: 0; padding: 0; text-align: left; }
.profile-stats { display: flex; gap: 36px; list-style: none; margin: 0 0 20px; padding: 0; font-size: var(--fs-base); }
.profile-stats li { margin: 0; color: #555555; }
.profile-stats__n { color: #000000; }
.profile-bio { grid-column: 2; }
.profile-bio p { margin: 0 0 4px; font-size: var(--fs-base); line-height: 1.4; }
#content .profile-bio p { font-size: var(--fs-base); }
.profile-country { color: #888888; }
.profile-frameworks, .profile-links { display: flex; flex-wrap: wrap; }
.profile-frameworks a, .profile-links a { color: #0000ff; text-decoration: none; margin-right: 10px; }
.profile-frameworks a:hover, .profile-links a:hover { color: #000000; }
.profile-empty { text-align: center; padding: 80px 0; color: #888888; font-size: var(--fs-md); }
@media (max-width: 735px) {
  .profile { padding-top: 90px; }
  .profile-header { grid-template-columns: 77px 1fr; gap: 20px; align-items: start; }
  .profile-avatar { width: 77px; height: 77px; grid-row: 1; }
  .profile-avatar span { font-size: 34px; }
  .profile-stats { gap: 20px; font-size: var(--fs-sm); }
  /* Bio on its own row, full width below avatar/handle/stats; stats stay directly under the handle */
  .profile-bio { grid-column: 1 / -1; }
}

/* ----- Feed on phones only, < 576px: one GIF per row on a grey square, like a post ----- */
.feed-toggle, .gif-feed-head { display: none; }
@media (max-width: 575px) {
  .feed-toggle { display: flex; justify-content: center; gap: 8px; margin: 0 0 24px; }
  .feed-toggle .pill { background: none; font-family: inherit; cursor: pointer; }
  .feed-toggle .pill.is-active { background: #000000; border-color: #000000; color: #ffffff; }

  .gif-grid.is-feed .gif-grid-items { flex-direction: column; flex-wrap: nowrap; gap: 36px; padding: 0 15px; }
  .gif-grid.is-feed .gif-grid-item { flex-basis: auto; max-width: none; width: 100%; }
  .gif-grid.is-feed .gif-feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #000000; text-decoration: none; font-size: var(--fs-sm); }
  .gif-feed-head__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #f1f1f1; }
  .gif-feed-head__avatar--initial { display: flex; align-items: center; justify-content: center; color: #888888; font-size: 14px; }
  .gif-grid.is-feed .gif-img-wrapper { aspect-ratio: 1 / 1; padding: 10%; background: #f1f1f1; perspective: none; }
  .gif-grid.is-feed .gif-img-wrapper img { width: 100%; height: 100%; transform: none !important; }
  .gif-grid.is-feed .gif-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; text-align: left; }
  .gif-grid.is-feed .gif-info-link { display: flex; justify-content: space-between; gap: 12px; flex: 1; }
  .gif-grid.is-feed .go-meta { margin: 0; white-space: nowrap; }
  .gif-grid.is-feed .go-meta__name, .gif-grid.is-feed .go-meta__sep { display: none; }
}

/* ======================================================================
   Single GIF page
   ====================================================================== */
#gif-single-meta .gif-notes { margin: 0 0 12px; font-size: var(--fs-sm); line-height: 1.5; color: #888888; }
.blog-grid-items > [class*="col-"] { margin-bottom: 16px; }
@media (max-width: 767.98px) {
  .blog-grid-items { --bs-gutter-x: 10px; }
}
.blog-grid-item { display: flex; flex-direction: column; height: 100%; }
.blog-grid-item__thumb-link { display: block; }
.card-thumb { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; background: #f1f1f1; overflow: hidden; }
.card-thumb:hover { background: #e6e6ff; }
.card-thumb__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-thumb__img.is-pixel { width: 70%; height: 70%; image-rendering: pixelated; }
.card-thumb__img--fill { object-fit: cover; } /* photos fill the thumb square instead of letterboxing */
.blog-grid-item__body { padding-top: 14px; }
.blog-grid-item__title { margin: 0 0 4px; font-size: var(--fs-preset-medium); font-weight: normal; }
.blog-grid-item__title a { text-decoration: none; color: #000000; }
.blog-grid-item:hover .blog-grid-item__title a,
.blog-grid-item:hover .blog-grid-item__overline,
.blog-grid-item:hover .blog-grid-item__meta { color: #0000ff; }
.blog-grid-item__overline { margin: 0; font-size: var(--fs-sm); color: #aaaaaa; }
.blog-grid-item__meta { margin: 0; font-size: var(--fs-sm); color: #aaaaaa; }
.profile-page .blog-grid-items { justify-content: center; }
