/* 128kb — ported 1:1 from the WordPress theme (style.css). Keep it close to the original;
   app-specific additions go in app.css. */

/* ======================================================================
   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/suisse/SuisseWorks-Book-WebXL.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

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

@font-face {
  font-family: "SuisseIntl";
  src: url("/fonts/suisse/SuisseIntl-Black-WebM.woff2") format("woff2"),
       url("/fonts/suisse/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;
  border: 1px solid #000000;
  padding: 10px;
  color: #000000;
  font-size: var(--fs-sm);
}

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

.container-narrow {
  width: 100%;
  max-width: 700px;
  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: transparent;
  border: 1px solid #000000;
  padding: 10px;
  color: #000000;
}
.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 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 {
  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;
  }
}

/* ======================================================================
   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;
}
.gif-grid-item {
  flex: 0 0 calc(16.6667% - 1rem);
  max-width: calc(16.6667% - 1rem);
}
@media (max-width: 991px) {
  .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: #aaaaaa;
  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;
}

/* ----- 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__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;
}

/* ----- Start page content (components/start-content.php) ----- */
#start-content {
  padding: 0 0 60px;
}

/* ----- Category archive (category.php) ----- */
.category-archive-header {
  padding: 100px 0;
}
.category-archive-title {
  font-size: var(--fs-lg) !important;
  font-weight: normal;
  margin: 0;
  color: #000000 !important;
}
.category-archive-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-archive-nav a {
  color: #aaaaaa !important;
  font-size: var(--fs-md);
  text-decoration: none;
}
.category-archive-nav a:hover,
.category-archive-nav a.is-current {
  color: #000000 !important;
}

/* ----- Category archive + What's on (front page): 4:3 thumb, title + excerpt below ----- */
#category-archive > .container,
#category-archive-grid,
#whats-new-grid {
  max-width: 1600px;
  margin: 0 auto;
}
#whats-new-grid .blog-grid-item__thumb,
#whats-new-grid .blog-grid-item__thumb--empty,
#category-archive-grid .blog-grid-item__thumb,
#category-archive-grid .blog-grid-item__thumb--empty {
  aspect-ratio: 4 / 3;
}
#whats-new-grid .blog-grid-item__thumb,
#category-archive-grid .blog-grid-item__thumb {
  height: auto;
  object-fit: cover;
}
#whats-new-grid .blog-grid-item__title,
#category-archive-grid .blog-grid-item__title {
  margin-bottom: 8px;
}
#whats-new-grid .blog-grid-item__title a,
#category-archive-grid .blog-grid-item__title a {
  color: #000000;
}

/* ----- Blog posts grid component (components/blog-grid.php + blog-grid-item.php) -----
   The excerpt always uses the normal body text size and line height, set apart by grey. */
.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;
}
.blog-grid-item__thumb {
  width: 100%;
  height: auto;
  display: block;
}
.blog-grid-item__thumb--empty {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid #000000;
}
.blog-grid-item__body {
  padding-top: 14px;
}
.blog-grid-item__title {
  margin: 0 0 8px;
  font-size: var(--fs-preset-medium);
  font-weight: normal;
}
.blog-grid-item__title a {
  text-decoration: none;
}
.blog-grid-item__excerpt,
#content .blog-grid-item__excerpt {
  margin: 0 0 10px;
  font-size: var(--fs-base);
  line-height: 140%;
  color: #aaaaaa;
}
.blog-grid-item__meta {
  font-size: var(--fs-sm);
  color: #000000;
}
.blog-grid-item__meta a {
  color: #0000ff;
  text-decoration: none;
}
.blog-grid-item__meta a:hover {
  color: #000000;
}

/* ----- What's new, two-up (front page, above Random GIFs) ----- */
#whats-new {
  margin-bottom: 50px;
  background: #f1f1f1;
  padding-top: 50px;
}

/* ----- Team grid component (components/team-grid.php) ----- */
.team-grid-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}
@media (max-width: 1200px) {
  .team-grid-items {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 991px) {
  .team-grid-items {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .team-grid-items {
    grid-template-columns: 1fr;
  }
}
.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;
}


/* ----- 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;
}
#gif-stage {
  width: 100%;
  background: transparent;
  border-top: 1px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 15px 50px;
  perspective: 1200px;
}
#gif-stage .gif {
  width: 100%;
  max-width: 512px;
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
#gif-stage .gif.tilt-left {
  transform: rotateY(-24deg);
}
#gif-stage .gif.tilt-right {
  transform: rotateY(24deg);
}
@media (min-width: 792px) {
  #gif-stage {
    padding-top: 175px;
    padding-bottom: 100px;
  }
}
#gif-stage .gif-img-wrapper {
  width: 100%;
}
#single-gif-wrapper {
  max-width: 512px;
  margin: 0 auto;
  padding: 0 15px 100px;
}
body.single-gifs .section-title {
  padding-bottom: 100px;
}
#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;
  border: 1px solid #000000;
  padding: 2px 6px;
  border-radius: 3px;
  color: #000000;
  font-size: var(--fs-sm);
}
.wiki-content pre {
  background: transparent;
  border: 1px solid #000000;
  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;
  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: #000000;
  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: #aaaaaa;
  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: #f1f1f1;
  color: #000000;
}

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