/* =============================================
   André Almo - Website Stylesheet (FIXED)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Cherry+Bomb+One&family=Nunito+Sans:wght@600&family=Pixelify+Sans:wght@700&family=Potta+One&family=Press+Start+2P&display=swap');

:root {
  /* André Almo brand colors */
  --eminence-purple: #76428a;
  --eerie-black: #1c1c1c;
  --ghost-white: #fdffff;
  
  /* Light theme (default) */
  --primary-bg: #ffffff;
  --text-primary: #1c1c1c;
  --text-secondary: #4b5563;
  --accent-color: #76428a;
  --border-color: #e5e7eb;
  
  --spacing-unit: 1rem;
  --border-radius: 0.375rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 
               'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--primary-bg);
  font-size: 16px;
}

/* ===== Header & Navigation ===== */
.site-header {
  background-color: var(--ghost-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* When there's a banner image at the top - SOLID purple */
.site-header.with-banner {
  background-color: #76428a;
  box-shadow: none;
}

.site-header.with-banner .site-title {
  color: var(--ghost-white);
}

.site-header.with-banner .nav-menu a {
  color: var(--ghost-white);
}

.site-header.with-banner .nav-menu a:hover,
.site-header.with-banner .nav-menu a:focus {
  color: #e0d7f1;
  border-bottom-color: #e0d7f1;
}

/* Active link in banner state */
.site-header.with-banner .nav-menu a.active {
  color: var(--ghost-white);
  font-weight: 700;
}

/* Scrolled state - black background with white text (overrides with-banner) */
.site-header.scrolled {
  background-color: var(--eerie-black) !important;
}

.site-header.scrolled .site-title {
  color: var(--ghost-white);
}

.site-header.scrolled .nav-menu a {
  color: var(--ghost-white);
}

.site-header.scrolled .nav-menu a:hover,
.site-header.scrolled .nav-menu a:focus {
  color: #a871c4;
  border-bottom-color: #a871c4;
}

.main-nav {
  max-width: 100%;
  margin: 0;
  padding: 0 var(--spacing-unit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 0;
  padding-right: 3rem;
}

.nav-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

/* CRITICAL: Navbar icon sizing */
.nav-icon {
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  transition: opacity 0.3s ease;
}

.nav-icon:hover {
  opacity: 0.8;
}

.site-title {
  color: var(--eerie-black);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0px;
  transition: color 0.3s ease;
  white-space: nowrap;
  border: none;
  line-height: 1;
  display: inline-block;
}

.site-header.scrolled .site-title {
  color: var(--ghost-white);
  border: none;
}

.site-title:hover {
  opacity: 0.8;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  flex-wrap: nowrap;
  margin-left: auto;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  border: none;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0;
  transition: color 0.3s ease;
  display: inline-block;
  line-height: 1;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--accent-color);
  border: none;
  outline: none;
}

/* Active nav link - show current page in bold */
.nav-menu a.active {
  font-weight: 700;
  color: var(--text-primary);
}

.site-header.scrolled .nav-menu a {
  color: var(--ghost-white);
}

.site-header.scrolled .nav-menu a:hover,
.site-header.scrolled .nav-menu a:focus {
  color: #a871c4;
  border: none;
}

/* Active link in scrolled state */
.site-header.scrolled .nav-menu a.active {
  color: var(--ghost-white);
  font-weight: 700;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - 200px);
}

/* CRITICAL: Banner image styling */
.banner-image {
  margin: 0 !important;
  padding: 2.5rem 1rem !important;
  background-color: #76428a !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 280px !important;
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  border: none !important;
}

.banner-image img {
  max-width: 90% !important;
  max-height: 280px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

.banner-image img:hover {
  transform: none !important;
  box-shadow: none !important;
}

article {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem var(--spacing-unit);
}

article > * + * {
  margin-top: 2rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--eerie-black);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
  animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--eerie-black);
  padding-bottom: 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-family: inherit;
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
}

h5 {
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

h6 {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
}

.centered-text {
  text-align: center !important;
  font-size: 1.05rem;
}

strong {
  font-weight: 700;
  color: var(--text-primary);
}

em {
  font-style: italic;
  color: var(--accent-color);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--ghost-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transform: translateY(-3px);
  box-shadow:
    0 3px 0 0 #4a1a5e,
    0 5px 8px rgba(0, 0, 0, 0.22);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
}

.btn:hover,
.btn:focus {
  filter: brightness(110%);
  transform: translateY(-5px);
  box-shadow:
    0 5px 0 0 #4a1a5e,
    0 8px 10px rgba(0, 0, 0, 0.22);
  outline: none;
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 34ms, box-shadow 34ms;
}

.button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.button-group:first-of-type {
  margin-bottom: 2.5rem;
}

@media (max-width: 480px) {
  .button-group {
    gap: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Button group with icons - for Home page */
.button-group-with-icons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 3rem 0;
}

.button-with-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.button-with-icon .btn {
  width: 160px;
  padding: 0.75rem 2rem;
  text-align: center;
  white-space: nowrap;
}

.section-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.section-icon:hover {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .button-group-with-icons {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .section-icon {
    width: 120px;
    height: 120px;
  }
}

/* Portfolio Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.portfolio-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.portfolio-icon:hover {
  transform: scale(1.08);
}

.portfolio-item .btn {
  width: 160px;
  padding: 0.75rem 2rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .portfolio-icon {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-icon {
    width: 100px;
    height: 100px;
  }
}

/* Section layout with image floated to the right */
.section-with-image {
  display: flex;
  flex-direction: row-reverse;
  gap: 3rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.section-image {
  width: 280px;
  height: 280px;
  min-width: 280px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

/* Larger image for 'me' (first section) */
.section-with-image:nth-of-type(1) .section-image {
  width: 360px;
  height: 360px;
  min-width: 360px;
}

/* Larger image for 'book' (second section) */
.section-with-image:nth-of-type(2) .section-image {
  width: 320px;
  height: 320px;
  min-width: 320px;
}

@media (max-width: 768px) {
  .section-with-image {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  /* Larger image for 'me' on tablets */
  .section-with-image:nth-of-type(1) .section-image {
    width: 260px;
    height: 260px;
    min-width: 260px;
  }

  /* Larger image for 'book' on tablets */
  .section-with-image:nth-of-type(2) .section-image {
    width: 230px;
    height: 230px;
    min-width: 230px;
  }
}

@media (max-width: 480px) {
  .section-image {
    width: 150px;
    height: 150px;
  }

  /* Larger image for 'me' on mobile */
  .section-with-image:nth-of-type(1) .section-image {
    width: 180px;
    height: 180px;
    min-width: 180px;
  }

  /* Larger image for 'book' on mobile */
  .section-with-image:nth-of-type(2) .section-image {
    width: 170px;
    height: 170px;
    min-width: 170px;
  }
}
figure {
  margin: 2.5rem 0;
  padding: 0;
}

/* Constrain ALL images to prevent overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Regular content images - NOT banner */
figure:not(.banner-image) img {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure:not(.banner-image) img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(118, 66, 138, 0.15);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

/* ===== Video Embeds ===== */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  background-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* ===== Lists ===== */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

li:has(> ul),
li:has(> ol) {
  margin-bottom: 1rem;
}

/* ===== Code ===== */
code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #d946ef;
  border: 1px solid var(--border-color);
}

pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
}

pre code {
  background-color: transparent;
  padding: 0;
  color: var(--text-primary);
  border: none;
}

/* ===== Blockquotes ===== */
blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
  background-color: rgba(118, 66, 138, 0.05);
  padding: 1rem 1rem 1rem 1rem;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--eerie-black);
  color: var(--ghost-white);
  padding: 2rem var(--spacing-unit);
  margin-top: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer p {
  color: var(--ghost-white);
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

/* CRITICAL: Footer icon sizing */
.footer-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 1rem auto !important;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  flex-shrink: 0 !important;
}

.footer-icon:hover {
  opacity: 1;
}

.site-footer p {
  color: var(--ghost-white);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    min-height: auto;
  }

  .nav-menu {
    margin-left: 0;
    gap: 1rem;
    justify-content: center;
  }

  article {
    padding: 1.5rem var(--spacing-unit);
  }

  h1 {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }

  h2 {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  h3 {
    font-size: 1.15rem;
  }

  article > * + * {
    margin-top: 1rem;
  }

  .video-embed {
    margin: 1rem 0;
  }

  .banner-image {
    min-height: 250px !important;
    padding: 2rem 1rem !important;
  }

  .banner-image img {
    max-height: 200px !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .main-nav {
    min-height: auto;
    padding: 0.75rem;
  }

  .site-title {
    font-size: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  h1 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  article {
    padding: 1.5rem 0.75rem;
  }

  .banner-image {
    min-height: 200px !important;
    padding: 1.5rem 0.75rem !important;
  }

  .banner-image img {
    max-height: 150px !important;
  }
}

/* ===== CV Carousel ===== */
.cv-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-container {
  position: relative;
  flex: 1;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 800px;
  object-fit: contain;
}

.carousel-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.carousel-button {
  background-color: var(--accent-color);
  color: var(--ghost-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px 0;
  line-height: 1;
  letter-spacing: 0;
  flex-shrink: 0;
  position: relative;
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 0 #4a1a5e,
    0 4px 7px rgba(0, 0, 0, 0.22);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
}

.carousel-button:hover {
  filter: brightness(110%);
  transform: translateY(-4px);
  box-shadow:
    0 4px 0 0 #4a1a5e,
    0 7px 10px rgba(0, 0, 0, 0.22);
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.carousel-button:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 34ms, box-shadow 34ms;
}

.carousel-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.carousel-button:disabled:hover {
  background-color: #ccc;
  transform: none;
}

.carousel-prev {
  order: -1;
}

.carousel-next {
  order: 1;
}

@media (max-width: 768px) {
  .cv-carousel {
    gap: 1rem;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-container {
    max-width: 400px;
  }

  .carousel-image {
    max-height: 600px;
  }
}

@media (max-width: 480px) {
  .cv-carousel {
    flex-direction: column;
    gap: 1.5rem;
  }

  .carousel-button {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .carousel-prev,
  .carousel-next {
    order: unset;
  }

  .carousel-container {
    max-width: 100%;
    width: 100%;
  }

  .carousel-image {
    max-height: 500px;
  }
}

/* ===== Profiles Page ===== */
.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

article h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.profile-link {
  display: inline-block;
  text-decoration: none;
}

.profile-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-link:hover .profile-icon {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.profile-description {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin: 1rem 0 3rem 0;
}

.intro-text,
.contact-text {
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1.5rem 0 2rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-text {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

/* Floating Ghost */
.floating-ghost {
  display: flex;
  justify-content: center;
  margin: -1rem 0 2rem 0;
  padding: 2rem 0;
}

.floating-ghost img {
  width: 250px;
  height: auto;
  /*animation: float 3s ease-in-out infinite;*/
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

@media (max-width: 768px) {
  article h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  .profiles-grid {
    gap: 1.5rem;
  }

  .profile-icon {
    width: 70px;
    height: 70px;
  }

  .floating-ghost {
    margin: -1rem 0 2rem 0;
  }

  .floating-ghost img {
    width: 200px;
  }
}

@media (max-width: 480px) {
  article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }

  .profiles-grid {
    gap: 1rem;
  }

  .profile-icon {
    width: 60px;
    height: 60px;
  }

  .floating-ghost {
    margin: -1rem 0 1rem 0;
  }

  .floating-ghost img {
    width: 160px;
  }

  .profile-description,
  .intro-text,
  .contact-text {
    font-size: 0.9rem;
  }
}

/* ===== Travel Page ===== */
/* ===== Travel Page ===== */

.travel-map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3rem 0;
  gap: 1rem;
}

.travel-map {
  max-width: 900px;
  width: 100%;
  height: auto;
}

.map-caption {
  font-size: 1.8rem;
  color: #1C1C1C;
  margin-top: 0.5rem;
  font-family: 'Press Start 2P', cursive;
}

/* Toggle button row */
.travel-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  margin: 0 auto;
}

.travel-toggle-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  color: #1C1C1C;
  line-height: 1.8;
}

.travel-toggle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 0 #4a1a5e,
    0 4px 7px rgba(0, 0, 0, 0.22);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
}

.travel-toggle-btn:hover {
  filter: brightness(110%);
  transform: translateY(-4px);
  box-shadow:
    0 4px 0 0 #4a1a5e,
    0 7px 10px rgba(0, 0, 0, 0.22);
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.travel-toggle-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 34ms, box-shadow 34ms;
}

.travel-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FDFFFF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.travel-toggle-btn.open svg {
  transform: rotate(180deg);
}

.travel-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0.75rem 0 0 0;
}

/* Collapsible list */
.countries-list {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.countries-list.open {
  max-height: 2000px;
}

.countries-list ol {
  list-style: none;
  padding: 1rem 0 0.5rem 0;
  margin: 0;
  counter-reset: country-counter;
}

.countries-list ol li {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: #444;
  padding: 0.4rem 0 0.4rem 2.5rem;
  position: relative;
  line-height: 1.6;
  counter-increment: country-counter;
}

.countries-list ol li::before {
  content: counter(country-counter) ".";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .travel-map { max-width: 100%; }
  .map-caption { font-size: 1.5rem; }
  .travel-toggle-text { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .map-caption { font-size: 1.2rem; }
  .travel-toggle-text { font-size: 0.6rem; }
  .countries-list ol li { font-size: 0.6rem; }
}

/* ===== Category Buttons (Portfolio Detail Pages) ===== */
.category-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.category-buttons .btn {
  width: 160px;
  text-align: center;
  padding: 0.75rem 2rem;
  white-space: nowrap;
}

/* Wider buttons for Research page */
.research-buttons .btn {
  width: 240px;
}

@media (max-width: 768px) {
  .category-buttons {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .category-buttons {
    gap: 1rem;
    margin: 2rem 0;
  }
}

/* ===== Academic Service Page ===== */
article h2 {
  font-size: 1.4rem;
  margin: 3rem 0 2rem 0;
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 0.05em;
}

.service-entry {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.service-entry:last-child {
  border-bottom: none;
}

.service-entry h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.service-roles {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.service-count {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 500;
  margin: 1rem 0 0.5rem 0;
}

.service-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0 0;
}

.service-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .service-entry {
    margin: 2rem 0;
    padding: 1rem 0;
  }

  .service-entry h3 {
    font-size: 1rem;
  }

  .service-roles,
  .service-count {
    font-size: 0.9rem;
  }

  .service-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .service-entry {
    margin: 1.5rem 0;
    padding: 1rem 0;
  }

  .service-entry h3 {
    font-size: 0.95rem;
  }

  .service-roles,
  .service-count,
  .service-list li {
    font-size: 0.85rem;
  }
}

/* ===== Outreach Projects Page ===== */
.project-entry {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.project-entry:last-child {
  border-bottom: none;
}

.project-entry h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.project-info {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.project-label {
  font-weight: 600;
  color: #1C1C1C;
}

.project-summary {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.6;
  text-align: justify;
}

.project-experience-label {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.project-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.75rem 0 0 0;
}

.project-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.project-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .project-entry {
    margin: 1.5rem 0;
    padding: 1.25rem 0;
  }

  .project-entry h3 {
    font-size: 1.05rem;
  }

  .project-info,
  .project-summary,
  .project-experience-label {
    font-size: 0.9rem;
  }

  .project-list li {
    font-size: 0.9rem;
  }

  .project-summary {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .project-entry {
    margin: 1.25rem 0;
    padding: 1rem 0;
  }

  .project-entry h3 {
    font-size: 0.95rem;
  }

  .project-info,
  .project-summary,
  .project-experience-label,
  .project-list li {
    font-size: 0.85rem;
  }

  .project-summary {
    text-align: left;
  }
}

/* ===== Research Projects Page ===== */
.research-entry {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.research-entry:last-child {
  border-bottom: none;
}

.research-entry h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.research-info {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.research-label {
  font-weight: 600;
  color: #1C1C1C;
}

.research-summary {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.6;
  text-align: justify;
}

.research-experience-label {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.research-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.75rem 0 0 0;
}

.research-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.research-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .research-entry {
    margin: 1.5rem 0;
    padding: 1.25rem 0;
  }

  .research-entry h3 {
    font-size: 1.05rem;
  }

  .research-info,
  .research-summary,
  .research-experience-label {
    font-size: 0.9rem;
  }

  .research-list li {
    font-size: 0.9rem;
  }

  .research-summary {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .research-entry {
    margin: 1.25rem 0;
    padding: 1rem 0;
  }

  .research-entry h3 {
    font-size: 0.95rem;
  }

  .research-info,
  .research-summary,
  .research-experience-label,
  .research-list li {
    font-size: 0.85rem;
  }

  .research-summary {
    text-align: left;
  }
}

/* ===== Research Publications Page ===== */
.intro-text {
  font-size: 0.95rem;
  color: #444;
  margin: 2rem 0;
  line-height: 1.6;
  text-align: center;
}

.publication-entry {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.publication-entry:last-child {
  border-bottom: none;
}

.publication-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}

.publication-title:hover {
  color: #5a2f7d;
  transition: color 0.3s ease;
}

.publication-year {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 600;
  margin: 0.25rem 0 1rem 0;
}

.publication-abstract {
  font-size: 0.95rem;
  color: #444;
  margin: 1rem 0;
  line-height: 1.6;
  text-align: justify;
}

.publication-info {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.publication-label {
  font-weight: 600;
  color: #1C1C1C;
}

/* Posters & Short Papers */
.poster-entry {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.poster-entry:last-child {
  border-bottom: none;
}

.poster-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.poster-info {
  font-size: 0.95rem;
  color: #444;
  margin: 0.25rem 0;
  line-height: 1.5;
}

.poster-label {
  font-weight: 600;
  color: #1C1C1C;
}

.poster-year {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .intro-text {
    font-size: 0.9rem;
  }

  .publication-entry {
    margin: 1.5rem 0;
    padding: 1.25rem 0;
  }

  .publication-title {
    font-size: 1rem;
  }

  .publication-abstract,
  .publication-info {
    font-size: 0.9rem;
  }

  .publication-abstract {
    text-align: left;
  }

  .poster-title {
    font-size: 0.95rem;
  }

  .poster-info {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .intro-text {
    font-size: 0.85rem;
  }

  .publication-entry {
    margin: 1.25rem 0;
    padding: 1rem 0;
  }

  .publication-title {
    font-size: 0.95rem;
  }

  .publication-abstract,
  .publication-info,
  .poster-info {
    font-size: 0.85rem;
  }

  .publication-abstract {
    text-align: left;
  }

  .poster-title {
    font-size: 0.9rem;
  }
}

/* ===== Awards Page ===== */
.award-entry {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.award-entry:last-child {
  border-bottom: none;
}

.award-entry h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.award-year {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 600;
}

.award-organization {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.5;
}

.award-description {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0 0 0;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  .award-entry {
    margin: 1.5rem 0;
    padding: 1.25rem 0;
  }

  .award-entry h3 {
    font-size: 1rem;
  }

  .award-organization,
  .award-description {
    font-size: 0.9rem;
  }

  .award-description {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .award-entry {
    margin: 1.25rem 0;
    padding: 1rem 0;
  }

  .award-entry h3 {
    font-size: 0.95rem;
  }

  .award-year,
  .award-organization,
  .award-description {
    font-size: 0.85rem;
  }

  .award-description {
    text-align: left;
  }
}

/* ===== Civic Engagement Page ===== */
.civic-entry {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.civic-entry:last-child {
  border-bottom: none;
}

.civic-entry h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.civic-info {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.civic-label {
  font-weight: 600;
  color: #1C1C1C;
}

.civic-summary {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.6;
  text-align: justify;
}

.civic-experience-label {
  font-size: 0.95rem;
  color: #1C1C1C;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.civic-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.75rem 0 0 0;
}

.civic-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.civic-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .civic-entry {
    margin: 1.5rem 0;
    padding: 1.25rem 0;
  }

  .civic-entry h3 {
    font-size: 1.05rem;
  }

  .civic-info,
  .civic-summary,
  .civic-experience-label {
    font-size: 0.9rem;
  }

  .civic-list li {
    font-size: 0.9rem;
  }

  .civic-summary {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .civic-entry {
    margin: 1.25rem 0;
    padding: 1rem 0;
  }

  .civic-entry h3 {
    font-size: 0.95rem;
  }

  .civic-info,
  .civic-summary,
  .civic-experience-label,
  .civic-list li {
    font-size: 0.85rem;
  }

  .civic-summary {
    text-align: left;
  }
}

/* ===== Coding Page ===== */
.coding-intro {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0 2rem 0;
  line-height: 1.6;
  text-align: justify;
}

.coding-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  padding-bottom: 8px;
}

.coding-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  position: relative;
  transform: translateY(-3px);
  box-shadow:
    0 3px 0 0 #4a1a5e,
    0 5px 8px rgba(0, 0, 0, 0.22);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
}

.coding-btn:hover {
  filter: brightness(110%);
  transform: translateY(-5px);
  box-shadow:
    0 5px 0 0 #4a1a5e,
    0 8px 10px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.coding-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 34ms, box-shadow 34ms;
}

.coding-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.coding-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
  font-family: 'Press Start 2P', cursive;
}

@media (max-width: 768px) {
  .coding-buttons {
    gap: 0.75rem;
    margin: 1.5rem 0;
  }

  .coding-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    flex: 0 1 calc(50% - 0.375rem);
  }

  .coding-intro {
    font-size: 0.9rem;
    text-align: left;
  }

  article h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .coding-buttons {
    gap: 0.5rem;
    margin: 1.25rem 0;
  }

  .coding-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    flex: 0 1 calc(50% - 0.25rem);
  }

  .coding-intro {
    font-size: 0.85rem;
    margin: 1rem 0 1.5rem 0;
  }

  article h3 {
    font-size: 0.95rem;
  }
}

/* ===== Kibble Game Page ===== */

/* Custom Banner */
.kibble-banner {
  position: relative;
  width: 100%;
  background-color: #73BED3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

/* Only the direct-child background image gets stretched/faded — NOT the icon */
.kibble-banner > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.kibble-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kibble-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.8rem;
  color: #1C1C1C;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kibble-icon {
  width: auto;
  height: 300px;
  object-fit: contain;
  z-index: 3;
}

/* Text and Content */
.kibble-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.kibble-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.kibble-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.kibble-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.kibble-bold {
  font-weight: 600;
  color: #1C1C1C;
}

/* Links */
.kibble-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.kibble-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* Play Button */
.kibble-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.kibble-play-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.kibble-play-btn:hover {

}

/* Image Galleries */
.kibble-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem -5rem;
}

.kibble-screenshot {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kibble-gallery-large {
  margin: 3rem -5rem;
}

/* First row of assets (bigger) */
.kibble-gallery-large > .kibble-gallery-row:first-child {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Second row of assets (smaller, centered) — max-width matches ~2 images of top row */
.kibble-gallery-large > .kibble-gallery-row:last-child {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
  max-width: 52%;
  margin-left: auto;
  margin-right: auto;
}

.kibble-asset {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Top row assets: force square crop */
.kibble-gallery-large > .kibble-gallery-row:first-child .kibble-asset {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Clipping Section - Centered */
.kibble-clipping-intro {
  text-align: center !important;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.kibble-clipping {
  margin: 2rem 0;
  text-align: center;
}

.kibble-clipping > p:first-of-type {
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0 2rem 0;
  line-height: 1.6;
}

.kibble-clipping h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1C1C1C;
  margin: 2rem 0 1rem 0;
  font-family: monospace;
  text-align: center;
}

.kibble-clipping img {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 1.5rem auto 2.5rem auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Smaller image variant for compact clippings (e.g. Stray Bulletin screenshot) */
.kibble-clipping-small {
  width: auto !important;
  max-width: 380px !important;
  height: auto;
  margin: 1.5rem auto 2.5rem auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.kibble-clipping-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.kibble-clipping-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kibble-title {
    font-size: 2rem;
  }

  .kibble-icon {
    height: 220px;
  }

  .kibble-banner {
    min-height: 220px;
  }

  .kibble-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .kibble-gallery-large {
    margin: 3rem 0;
  }

  .kibble-gallery-large > .kibble-gallery-row:first-child {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .kibble-gallery-large > .kibble-gallery-row:last-child {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 100%;
  }

  .kibble-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .kibble-list li {
    font-size: 0.9rem;
  }

  article h2 {
    font-size: 1.2rem;
  }

  .kibble-clipping h3 {
    font-size: 0.95rem;
  }

  .kibble-clipping-small {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .kibble-title {
    font-size: 1.5rem;
  }

  .kibble-icon {
    height: 160px;
  }

  .kibble-banner {
    min-height: 160px;
  }

  .kibble-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
  }

  .kibble-gallery-large {
    margin: 2rem 0;
  }

  .kibble-gallery-large > .kibble-gallery-row:first-child {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .kibble-gallery-large > .kibble-gallery-row:last-child {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
  }

  .kibble-text {
    font-size: 0.85rem;
  }

  .kibble-list li {
    font-size: 0.85rem;
  }

  .kibble-play-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }

  article h2 {
    font-size: 1rem;
  }

  .kibble-clipping h3 {
    font-size: 0.9rem;
  }
}

/* ===== Tangent Book Club Game Page ===== */

/* Custom Banner */
.tbc-banner {
  position: relative;
  width: 100%;
  background-color: #7C6EBB;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

.tbc-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tbc-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.2rem;
  color: #FDFFFF;
  margin: 0;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 2px;
}

.tbc-icon {
  height: 300px;
  width: auto;
  object-fit: contain;
  z-index: 3;
}

/* Text and Content */
.tbc-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.tbc-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.tbc-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.tbc-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.tbc-bold {
  font-weight: 600;
  color: #1C1C1C;
}

/* Links */
.tbc-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.tbc-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* Play Button */
.tbc-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.tbc-play-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.tbc-play-btn:hover {

}

/* Screenshots Gallery */
.tbc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem -2rem;
}

.tbc-screenshot {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .tbc-title {
    font-size: 1.6rem;
  }

  .tbc-icon {
    height: 220px;
  }

  .tbc-banner {
    min-height: 220px;
  }

  .tbc-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  .tbc-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .tbc-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .tbc-title {
    font-size: 1.2rem;
  }

  .tbc-icon {
    height: 160px;
  }

  .tbc-banner {
    min-height: 160px;
    padding: 0;
  }

  .tbc-gallery {
    margin: 2rem 0;
    gap: 1rem;
  }

  .tbc-text {
    font-size: 0.85rem;
  }

  .tbc-list li {
    font-size: 0.85rem;
  }

  .tbc-play-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== 83 to Kimmage Game Page ===== */

.k83-banner {
  position: relative;
  width: 100%;
  background-color: #9ACBA5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

.k83-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k83-icon {
  height: 300px;
  width: auto;
  object-fit: contain;
  z-index: 3;
}

.k83-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.k83-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.k83-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.k83-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.k83-bold {
  font-weight: 600;
  color: #1C1C1C;
}

.k83-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.k83-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

.k83-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.k83-play-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.k83-play-btn:hover {

}

/* 3-column screenshot gallery */
.k83-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin: 3rem -2rem;
}

.k83-screenshot {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .k83-banner {
    min-height: 220px;
  }

  .k83-icon {
    height: 220px;
  }

  .k83-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0;
  }

  .k83-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .k83-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .k83-banner {
    min-height: 160px;
  }

  .k83-icon {
    height: 160px;
  }

  .k83-gallery {
    margin: 2rem 0;
    gap: 1rem;
  }

  .k83-text {
    font-size: 0.85rem;
  }

  .k83-list li {
    font-size: 0.85rem;
  }

  .k83-play-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== Train to Tralee Game Page ===== */

.ttt-banner {
  position: relative;
  width: 100%;
  background-color: #4C6CD9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

.ttt-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttt-icon {
  height: 300px;
  width: auto;
  object-fit: contain;
  z-index: 3;
}

.ttt-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.ttt-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.ttt-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.ttt-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.ttt-bold {
  font-weight: 600;
  color: #1C1C1C;
}

.ttt-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.ttt-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

.ttt-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.ttt-play-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.ttt-play-btn:hover {

}

/* Single centred screenshot */
.ttt-screenshot-container {
  display: flex;
  justify-content: center;
  margin: 2rem -2rem;
}

.ttt-screenshot {
  width: 50%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .ttt-banner {
    min-height: 220px;
  }

  .ttt-icon {
    height: 220px;
  }

  .ttt-screenshot-container {
    margin: 2rem 0;
  }

  .ttt-screenshot {
    width: 80%;
  }

  .ttt-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .ttt-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ttt-banner {
    min-height: 160px;
  }

  .ttt-icon {
    height: 160px;
  }

  .ttt-screenshot-container {
    margin: 1.5rem 0;
  }

  .ttt-screenshot {
    width: 100%;
  }

  .ttt-text {
    font-size: 0.85rem;
  }

  .ttt-list li {
    font-size: 0.85rem;
  }

  .ttt-play-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== Algo Game Page ===== */

.algo-banner {
  position: relative;
  width: 100%;
  background-color: #FFF031;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
}

.algo-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.algo-icon {
  height: 300px;
  width: auto;
  object-fit: contain;
  z-index: 3;
}

.algo-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.algo-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.algo-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.algo-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.algo-bold {
  font-weight: 600;
  color: #1C1C1C;
}

.algo-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.algo-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

.algo-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.algo-play-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.algo-play-btn:hover {

}

/* 2-column screenshot gallery */
.algo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem -2rem;
}

.algo-screenshot {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .algo-banner {
    min-height: 220px;
  }

  .algo-icon {
    height: 220px;
  }

  .algo-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0;
  }

  .algo-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .algo-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .algo-banner {
    min-height: 160px;
  }

  .algo-icon {
    height: 160px;
  }

  .algo-gallery {
    margin: 2rem 0;
    gap: 1rem;
  }

  .algo-text {
    font-size: 0.85rem;
  }

  .algo-list li {
    font-size: 0.85rem;
  }

  .algo-play-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== Swamp Bakery Coding Page ===== */

.sb-banner {
  position: relative;
  width: 100%;
  background-color: #87A05C;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 0 1rem;
  overflow: hidden;
}

.sb-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.8rem;
  color: #1C1C1C;
  text-align: center;
  letter-spacing: 2px;
  margin: 0 0 2rem 0;
  line-height: 1.4;
  z-index: 2;
}

.sb-banner-img {
  display: block;
  width: 70%;
  max-width: 800px;
  height: auto;
  position: relative;
  z-index: 2;
}

.sb-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.sb-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.sb-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.sb-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.sb-bold {
  font-weight: 600;
  color: #1C1C1C;
}

.sb-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.sb-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

@media (max-width: 768px) {
  .sb-title {
    font-size: 1.2rem;
  }

  .sb-banner-img {
    width: 90%;
  }

  .sb-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .sb-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sb-title {
    font-size: 0.9rem;
  }

  .sb-banner {
    padding: 2rem 1rem 0 1rem;
  }

  .sb-banner-img {
    width: 100%;
  }

  .sb-text {
    font-size: 0.85rem;
  }

  .sb-list li {
    font-size: 0.85rem;
  }
}

/* ===== Chillbert Therapy Coding Page ===== */

.ct-banner {
  position: relative;
  width: 100%;
  background-color: #E5D0AB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 0 1rem;
  overflow: hidden;
}

.ct-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.8rem;
  color: #1C1C1C;
  text-align: center;
  letter-spacing: 2px;
  margin: 0 0 2rem 0;
  line-height: 1.4;
  z-index: 2;
}

.ct-banner-img {
  display: block;
  width: 70%;
  max-width: 800px;
  height: auto;
  position: relative;
  z-index: 2;
}

.ct-text {
  font-size: 0.95rem;
  color: #444;
  margin: 1.5rem 0;
  line-height: 1.6;
  text-align: justify;
}

.ct-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.ct-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.ct-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.ct-bold {
  font-weight: 600;
  color: #1C1C1C;
}

.ct-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.ct-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

@media (max-width: 768px) {
  .ct-title {
    font-size: 1.2rem;
  }

  .ct-banner-img {
    width: 90%;
  }

  .ct-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .ct-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ct-title {
    font-size: 0.9rem;
  }

  .ct-banner {
    padding: 2rem 1rem 0 1rem;
  }

  .ct-banner-img {
    width: 100%;
  }

  .ct-text {
    font-size: 0.85rem;
  }

  .ct-list li {
    font-size: 0.85rem;
  }
}

/* ===== Consulting Page ===== */

.consulting-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.consulting-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* ===== almoghost.exe Design Page ===== */

.agd-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.agd-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* Centred single images */
.agd-image-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.agd-palette-img {
  width: 60%;
  max-width: 700px;
  height: auto;
  border-radius: 0.25rem;
}

.agd-mascot-img {
  width: 30%;
  max-width: 320px;
  height: auto;
  border-radius: 0.25rem;
}

/* 4-image art grid */
.agd-art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.agd-art-img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

/* Lists */
.agd-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.agd-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.agd-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.agd-bold {
  font-weight: 600;
  color: #1C1C1C;
}

/* Inline code font for Press Start 2P label */
.agd-code {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  background: none;
  padding: 0;
  color: inherit;
}

/* Button */
.agd-button-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.agd-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 560px;
}

.agd-btn:hover {

}

/* Closing pixel-font line */
.agd-closing {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: #1C1C1C;
  text-align: center;
  line-height: 1.8;
  margin: 2rem 0;
}

.agd-closing-link {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.agd-closing-link:hover {
  color: #5a2f7d;
}

@media (max-width: 768px) {
  .agd-palette-img {
    width: 90%;
  }

  .agd-mascot-img {
    width: 55%;
  }

  .agd-art-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .agd-closing {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .agd-palette-img {
    width: 100%;
  }

  .agd-mascot-img {
    width: 75%;
  }

  .agd-art-grid {
    gap: 0.75rem;
  }

  .agd-closing {
    font-size: 0.65rem;
  }
}

/* ===== Living Beeings Design Page ===== */

.lbd-title-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem 0;
}

.lbd-title-img {
  width: 70%;
  max-width: 700px;
  height: auto;
}

.lbd-image-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.lbd-palette-img {
  width: 55%;
  max-width: 600px;
  height: auto;
  border-radius: 0.25rem;
}

.lbd-logo-img {
  width: 65%;
  max-width: 700px;
  height: auto;
}

.lbd-mascot-img {
  width: 25%;
  max-width: 280px;
  height: auto;
}

.lbd-board-img {
  width: 50%;
  max-width: 550px;
  height: auto;
  border-radius: 0.5rem;
}

/* Cards — both rows use same 4-column grid for uniform size */
.lbd-cards-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Row 1 has only 2 cards — place them in columns 2 & 3 to centre over row 2 */
.lbd-cards-row2 .lbd-card:first-child {
  grid-column: 2;
}

.lbd-cards-row2 .lbd-card:last-child {
  grid-column: 3;
}

/* Cards — 4-column row */
.lbd-cards-row4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0 0 2rem 0;
}

.lbd-card {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Bungee font inline label */
.lbd-bungee {
  font-family: 'Bungee', sans-serif;
  font-weight: 700;
  color: #1C1C1C;
}

@media (max-width: 768px) {
  .lbd-title-img  { width: 90%; }
  .lbd-palette-img { width: 90%; }
  .lbd-logo-img   { width: 90%; }
  .lbd-mascot-img { width: 50%; }
  .lbd-board-img  { width: 85%; }

  .lbd-cards-row2 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .lbd-cards-row2 .lbd-card:first-child { grid-column: 1; }
  .lbd-cards-row2 .lbd-card:last-child  { grid-column: 2; }
  .lbd-cards-row4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .lbd-title-img  { width: 100%; }
  .lbd-mascot-img { width: 70%; }
  .lbd-board-img  { width: 100%; }
  .lbd-cards-row4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ===== Sons Etéreos Page ===== */

.se-subheading {
  text-transform: uppercase;
  text-align: center;
}

.se-image-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.se-title-img {
  width: 70%;
  max-width: 700px;
  height: auto;
}

.se-palette-img {
  width: 55%;
  max-width: 580px;
  height: auto;
  border-radius: 0.25rem;
}

/* Wide logo images (wordmark, lockup) */
.se-logo-wide-img {
  width: 65%;
  max-width: 700px;
  height: auto;
}

/* Icon-sized logo images (brandmark, lettermark) */
.se-logo-icon-img {
  width: 22%;
  max-width: 240px;
  height: auto;
}

.se-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.se-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.se-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Bungee label — reuses lbd-bungee font, adds bold weight for the list label */
.se-bungee-label {
  font-weight: 700;
  color: #1C1C1C;
}

@media (max-width: 768px) {
  .se-title-img    { width: 90%; }
  .se-palette-img  { width: 85%; }
  .se-logo-wide-img { width: 90%; }
  .se-logo-icon-img { width: 45%; }
}

@media (max-width: 480px) {
  .se-title-img    { width: 100%; }
  .se-logo-wide-img { width: 100%; }
  .se-logo-icon-img { width: 60%; }
}

/* ===== Sushi com Farofa Design Page ===== */

.scf-potta {
  font-family: 'Potta One', cursive;
  font-weight: 400;
  color: #1C1C1C;
}

/* ===== Yumi Design Page ===== */

.yumi-cherry-bomb {
  font-family: 'Cherry Bomb One', cursive;
  font-weight: 400;
  color: #1C1C1C;
}

.yumi-nunito {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  color: #1C1C1C;
}

/* ===== Yumi Design Page ===== */

.yumi-cherry-bomb {
  font-family: 'Cherry Bomb One', cursive;
  font-weight: 400;
  color: #1C1C1C;
}

.yumi-nunito {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  color: #1C1C1C;
}

/* ===== TikTok Feed Design Page ===== */

.ttfd-hero {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.ttfd-hero img {
  width: 260px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ttfd-grid {
  display: grid;
  grid-template-columns: repeat(3, 260px);
  gap: 1.5rem;
  justify-content: center;
  margin: 0 0 2rem 0;
}

.ttfd-grid img {
  width: 260px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .ttfd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ttfd-grid img, .ttfd-hero img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ttfd-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Swamp Bakery Design Page ===== */

.sbd-pixelify {
  font-family: 'Pixelify Sans', cursive;
  font-weight: 700;
  color: #1C1C1C;
}

.sbd-georgia {
  font-family: Georgia, serif;
  font-weight: 700;
  color: #1C1C1C;
}

/* Pixelify Sans h3 for closing callout */
.sbd-callout {
  font-family: 'Pixelify Sans', cursive;
  font-weight: 700;
  font-size: 1.2rem;
  color: #1C1C1C;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.5;
}

/* 3-column image grid (menu items, customers) */
.sbd-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 620px;
  margin: 2rem auto;
}

.sbd-grid3 img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .sbd-grid3 { max-width: 100%; gap: 1.25rem; }
}

/* ===== Chillbert Therapy Design Page ===== */

/* Colour palette image */
.ctd-palette-img {
  width: 55%;
  max-width: 580px;
  height: auto;
  border-radius: 0.25rem;
}

/* 2-character side-by-side row */
.ctd-characters-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin: 2rem 0;
}

.ctd-character-img {
  height: 200px;
  width: auto;
}

/* 4-icon service row */
.ctd-icons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 620px;
  margin: 2rem auto;
}

.ctd-icon-img {
  width: 100%;
  height: auto;
}

/* "Want to know more" callout — Press Start 2P at reduced size to match sbd-callout visual weight */
.ctd-callout {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  color: #1C1C1C;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.8;
}

/* Italic closing project line */
.ctd-closing-italic {
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .ctd-palette-img { width: 85%; }
  .ctd-character-img { height: 150px; }
  .ctd-characters-row { gap: 2rem; }
  .ctd-icons-row { max-width: 100%; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .ctd-palette-img { width: 100%; }
  .ctd-character-img { height: 110px; }
  .ctd-characters-row { gap: 1.25rem; }
  .ctd-icons-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ===== Events Page ===== */

.evt-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.evt-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.evt-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.evt-bold {
  font-weight: 600;
  color: #1C1C1C;
}

/* Carousel */
.evt-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.evt-carousel-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.evt-carousel-track {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.evt-carousel-slides {
  display: flex;
  transition: transform 0.4s ease;
}

.evt-carousel-slides img {
  width: 100%;
  flex-shrink: 0;
  height: auto;
  border-radius: 0.375rem;
  display: block;
}

/* Prev / Next arrows — styled to match CV page buttons */
.evt-carousel-btn {
  background: var(--accent-color);
  color: #FDFFFF;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  min-width: 52px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px 0;
  line-height: 1;
  letter-spacing: 0;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 0 #4a1a5e,
    0 4px 7px rgba(0, 0, 0, 0.22);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
}

.evt-carousel-btn:hover {
  filter: brightness(110%);
  transform: translateY(-4px);
  box-shadow:
    0 4px 0 0 #4a1a5e,
    0 7px 10px rgba(0, 0, 0, 0.22);
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.evt-carousel-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 34ms, box-shadow 34ms;
}

/* Dot indicators */
.evt-carousel-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
  width: 100%;
  justify-content: center;
}

.evt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.evt-dot.active {
  background: var(--accent-color);
}

/* Outreach carousel — smaller images due to lower resolution */
#carousel-outreach .evt-carousel-track {
  max-width: 500px;
}
.evt-carousel[data-single="true"] .evt-carousel-btn {
  display: none;
}

@media (max-width: 768px) {
  .evt-carousel { gap: 0.75rem; }
  .evt-carousel-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .evt-list li { font-size: 0.9rem; }
}

/* Optical centering for ‹ › glyph asymmetry */
.evt-carousel-btn.next,
.carousel-button.carousel-next {
  padding-left: 3px;
}

.evt-carousel-btn.prev,
.carousel-button.carousel-prev {
  padding-right: 3px;
}

/* ===== Funding Page ===== */

.fnd-entry {
  margin: 2rem 0;
}

.fnd-grant-title {
  text-align: center;
  font-size: 1rem;
  color: #1C1C1C;
  margin-bottom: 0.5rem;
}

.fnd-institution {
  text-align: center;
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.25rem;
}

.fnd-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.fnd-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

.fnd-image-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.fnd-image-center img {
  width: 60%;
  max-width: 620px;
  height: auto;
  border-radius: 0.375rem;
}

@media (max-width: 768px) {
  .fnd-image-center img { width: 85%; }
}

@media (max-width: 480px) {
  .fnd-image-center img { width: 100%; }
}

/* ===== Games Page ===== */

/* Single centred game entry (Kibble) */
.gms-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

/* 2-column grid row */
.gms-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
}

/* 3-column grid row */
.gms-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

/* Each game card: image + button stacked */
.gms-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.gms-card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* Smaller images for 3-col tabletop row */
.gms-grid3 .gms-card img {
  width: 150px;
  height: 150px;
}

/* Purple game button */
.gms-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  padding: 0.65rem 1.25rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
}

.gms-btn:hover {
}

/* itch.io link in closing paragraph */
.gms-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.gms-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

@media (max-width: 768px) {
  .gms-grid2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .gms-grid3 { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .gms-card img { width: 130px; height: 130px; }
  .gms-grid3 .gms-card img { width: 100px; height: 100px; }
  .gms-btn { font-size: 0.85rem; padding: 0.6rem 0.75rem; }
}

@media (max-width: 480px) {
  .gms-grid2 { grid-template-columns: 1fr; }
  .gms-grid3 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .gms-card img { width: 120px; height: 120px; }
  .gms-grid3 .gms-card img { width: 110px; height: 110px; }
}

/* ===== Greenia Game Page ===== */

/* Title image */
.grn-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0 3rem 0;
}

.grn-title-img {
  width: 65%;
  max-width: 680px;
  height: auto;
}

/* Link style */
.grn-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.grn-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* 2×2 screenshot grid */
.grn-screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem -2rem;
}

.grn-screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

/* 4-character row */
.grn-characters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: flex-end;
}

.grn-characters img {
  width: 100%;
  height: auto;
}

/* Roles sub-headings (bold, not H3) */
.grn-role-title {
  font-weight: 700;
  color: #1C1C1C;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}

/* Bullet list */
.grn-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}

.grn-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.6rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.grn-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Two mockups side by side */
.grn-mockups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.grn-mockups img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

@media (max-width: 768px) {
  .grn-title-img { width: 85%; }
  .grn-screenshot-grid { margin: 2rem 0; }
  .grn-characters { grid-template-columns: repeat(2, 1fr); }
  .grn-mockups { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grn-title-img { width: 100%; }
  .grn-screenshot-grid { grid-template-columns: 1fr; }
}

/* ===== Living Beeings Game Page ===== */

.lbg-title-img {
  display: block;
  margin: 2rem auto 1.5rem auto;
  width: 75%;
  max-width: 760px;
  height: auto;
}

.lbg-promo-img {
  display: block;
  margin: 1.5rem auto 2rem auto;
  width: 60%;
  max-width: 620px;
  height: auto;
  border-radius: 0.375rem;
}

.lbg-board-img {
  display: block;
  margin: 2rem auto;
  width: 60%;
  max-width: 620px;
  height: auto;
  border-radius: 0.375rem;
}

.lbg-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.lbg-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

.lbg-role-title {
  font-weight: 700;
  color: #1C1C1C;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}

.lbg-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}

.lbg-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.6rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.lbg-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Gallery H3s centred */
#carousel-earth-rising ~ h3,
#carousel-geogames ~ h3 { text-align: center; }

/* Reuse se-subheading pattern for the gallery H3s */
.lbg-gallery-heading {
  text-align: center;
}

/* Smaller carousels for Living Beeings gallery */
#carousel-earth-rising .evt-carousel-track,
#carousel-geogames .evt-carousel-track {
  max-width: 480px;
}

@media (max-width: 768px) {
  .lbg-title-img  { width: 90%; }
  .lbg-promo-img  { width: 85%; }
  .lbg-board-img  { width: 85%; }
}

@media (max-width: 480px) {
  .lbg-title-img  { width: 100%; }
  .lbg-promo-img  { width: 100%; }
  .lbg-board-img  { width: 100%; }
  .lbg-list li    { font-size: 0.9rem; }
}

/* ===== Unholy Disguise Game Page ===== */

.uhd-title-img {
  display: block;
  margin: 2rem auto 2.5rem auto;
  width: 75%;
  max-width: 760px;
  height: auto;
  border-radius: 0.75rem;
}

.uhd-screenshots-img {
  display: block;
  margin: 2rem auto;
  width: 65%;
  max-width: 640px;
  height: auto;
  border-radius: 0.375rem;
}

.uhd-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.uhd-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

.uhd-role-title {
  font-weight: 700;
  color: #1C1C1C;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}

.uhd-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}

.uhd-list li {
  font-size: 0.95rem;
  color: #444;
  margin: 0.6rem 0;
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}

.uhd-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

@media (max-width: 768px) {
  .uhd-title-img       { width: 90%; }
  .uhd-screenshots-img { width: 85%; }
}

@media (max-width: 480px) {
  .uhd-title-img       { width: 100%; }
  .uhd-screenshots-img { width: 100%; }
  .uhd-list li         { font-size: 0.9rem; }
}

/* ===== Illustrations Page ===== */

/* 4-column button grid */
.illu-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* 2-button centred row (Mistralshire) */
.illu-grid2 {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

/* Button style — full-width within grid cell */
.illu-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background-color: var(--accent-color);
  color: #FDFFFF;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
}

.illu-btn:hover {

}

/* Fixed-width buttons in the 2-col Mistralshire row */
.illu-grid2 .illu-btn {
  width: auto;
  min-width: 200px;
  max-width: 260px;
}

/* Closing Press Start 2P line */
.illu-closing {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.85rem;
  color: #1C1C1C;
  text-align: center;
  line-height: 1.8;
  margin: 3rem 0 1rem 0;
}

.illu-behance-link {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.illu-behance-link:hover {
  color: #5a2f7d;
}

@media (max-width: 768px) {
  .illu-grid4 { grid-template-columns: repeat(2, 1fr); }
  .illu-closing { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .illu-grid4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .illu-grid2 .illu-btn { min-width: 140px; }
  .illu-closing { font-size: 0.6rem; }
}

/* ===== 83 to Kimmage Illustration Page ===== */

.k83i-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.k83i-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* ===== AI Icons Illustration Page ===== */

.aii-image-center {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 3rem 0;
}

.aii-icon-img {
  width: 50%;
  max-width: 500px;
  height: auto;
  border-radius: 0.25rem;
}

@media (max-width: 768px) {
  .aii-icon-img { width: 75%; }
}

@media (max-width: 480px) {
  .aii-icon-img { width: 95%; }
}

/* ===== Brushy Gals Page ===== */

/* Wider grid override — roughly double the default sbd-grid3 size */
.bgy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
}

.bgy-grid img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

@media (max-width: 768px) {
  .bgy-grid { max-width: 100%; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .bgy-grid { grid-template-columns: 1fr; }
}

/* Country photography grid — full article width, no cropping */
.pht-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.pht-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.25rem;
  display: block;
}

@media (max-width: 768px) {
  .pht-photo-grid { gap: 1rem; }
}

@media (max-width: 480px) {
  .pht-photo-grid { grid-template-columns: 1fr; }
}

/* ===== Country Photography — Lightbox ===== */
/* Only applies to pages using .pht-photo-grid (country photo pages) */

.pht-photo-grid img {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.pht-photo-grid img:hover {
  opacity: 0.88;
}

/* Overlay backdrop */
.pht-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.pht-lightbox-overlay.pht-lightbox-open {
  display: flex;
}

/* The full-size image */
.pht-lightbox-img {
  max-width: 82vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  display: block;
  user-select: none;
}

/* Nav buttons — inherit the carousel-button 3D style */
.pht-lightbox-btn {
  background-color: var(--accent-color);
  color: var(--ghost-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 0 #4a1a5e,
    0 4px 7px rgba(0, 0, 0, 0.3);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
  z-index: 9001;
}

.pht-lightbox-btn:hover {
  filter: brightness(110%);
  transform: translateY(-4px);
  box-shadow:
    0 4px 0 0 #4a1a5e,
    0 7px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.pht-lightbox-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 34ms, box-shadow 34ms;
}

.pht-lightbox-btn-prev { padding: 0 0 3px 3px; }
.pht-lightbox-btn-next { padding: 0 0 3px 0; }

.pht-lightbox-btn:disabled {
  filter: saturate(0) brightness(1.1);
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

/* Close button — top-right corner */
.pht-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(28, 28, 28, 0.7);
  color: #fdffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9002;
  transition: background 0.2s ease;
  line-height: 1;
}

.pht-lightbox-close:hover {
  background: rgba(118, 66, 138, 0.85);
}

/* Counter label */
.pht-lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 9002;
  letter-spacing: 1px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .pht-lightbox-img {
    max-width: 90vw;
  }
  .pht-lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

/* ===== Kibble Illustration Page ===== */

/* Equal-size square image pairs (dog, player) */
.kbi-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
}

.kbi-pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* Fixed square size for tree and tileset singles */
.kbi-single {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 3rem 0;
}

.kbi-single img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 0.25rem;
}

@media (max-width: 480px) {
  .kbi-pair { grid-template-columns: 1fr; }
}

/* ===== Living Beeings Illustration Page ===== */

/* Bee mascot — small centred (1/3 of aii-icon-img ~500px → ~165px) */
.lbi-mascot-img {
  width: 17%;
  max-width: 165px;
  height: auto;
}

/* Board — moderately sized */
.lbi-board-img {
  width: 45%;
  max-width: 450px;
  height: auto;
  border-radius: 0.25rem;
}

@media (max-width: 768px) {
  .lbi-mascot-img { width: 30%; }
  .lbi-board-img  { width: 70%; }
}

@media (max-width: 480px) {
  .lbi-mascot-img { width: 45%; }
  .lbi-board-img  { width: 95%; }
}

/* ===== Music Page ===== */

/* Smaller banner icon */
#music-banner-img {
  max-height: 200px !important;
}

/* Centred piece titles */
.mus-embed {
  max-width: 560px;
  margin: 1.5rem auto 2rem auto;
}

/* H3 piece titles centred */
.mus-h3 {
  text-align: center;
}

.mus-link {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-color);
  transition: color 0.3s ease;
}

.mus-link:hover {
  color: #5a2f7d;
  border-bottom-color: #5a2f7d;
}

/* ===== Photography Page ===== */

/* 6-column button grid */
.pht-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  /* Allow 3D button shadows to show */
  padding-bottom: 0.5rem;
  overflow: visible;
}

/* 3D btn inside the Places grid: full-width, centred text */
.pht-grid .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* Category sections (Animals, Buildings, Food, Nature, Statues) */
.pht-categories {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 3rem 0 2rem;
}

.pht-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pht-category-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pht-category-icon:hover {
  transform: scale(1.08);
}

.pht-category-item .btn {
  width: 140px;
  text-align: center;
  padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
  .pht-categories { gap: 2rem; }
  .pht-category-icon { width: 100px; height: 100px; }
}

/* Places icon centred */
.pht-places-icon {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0.5rem 0;
}

.pht-places-icon img {
  width: 120px;
  height: auto;
}

/* Instagram link */
.pht-insta-link {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.pht-insta-link:hover {
  color: #5a2f7d;
}

@media (max-width: 768px) {
  .pht-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .pht-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    background-color: #fff;
    color: #000;
  }

  a {
    color: #000;
    border-bottom: none;
    text-decoration: underline;
  }

  figure:not(.banner-image) img {
    box-shadow: none;
    max-width: 100%;
  }

  .main-content {
    max-width: 100%;
    padding: 0;
  }
}

/* ===== 3D Button Effect — All Button Classes ===== */
.gms-btn,
.illu-btn,
.agd-btn,
.kibble-play-btn,
.tbc-play-btn,
.k83-play-btn,
.ttt-play-btn,
.algo-play-btn {
  position: relative;
  transform: translateY(-3px);
  box-shadow:
    0 3px 0 0 #4a1a5e,
    0 5px 8px rgba(0, 0, 0, 0.22);
  transition:
    transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    box-shadow 600ms cubic-bezier(0.3, 0.7, 0.4, 1),
    filter 250ms;
  will-change: transform;
}

.gms-btn:hover,
.illu-btn:hover,
.agd-btn:hover,
.kibble-play-btn:hover,
.tbc-play-btn:hover,
.k83-play-btn:hover,
.ttt-play-btn:hover,
.algo-play-btn:hover {
  filter: brightness(110%);
  transform: translateY(-5px);
  box-shadow:
    0 5px 0 0 #4a1a5e,
    0 8px 10px rgba(0, 0, 0, 0.22);
  transition:
    transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    box-shadow 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5),
    filter 250ms;
}

.gms-btn:active,
.illu-btn:active,
.agd-btn:active,
.kibble-play-btn:active,
.tbc-play-btn:active,
.k83-play-btn:active,
.ttt-play-btn:active,
.algo-play-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 #4a1a5e,
    0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 34ms, box-shadow 34ms;
}
