@media (max-width: 799px) {
  .slideshow-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: min(95vw, var(--slideshow-mobile-width));
    height: var(--slideshow-mobile-height);
    overflow: hidden;
  }

  /* mobile overrides for orientation-specific classes */
  .slideshow-images.vertical {
    width: min(95vw, var(--slideshow-mobile-vertical-width));
    height: var(--slideshow-mobile-vertical-height);
  }
  .slideshow-images.horizontal {
    width: min(95vw, var(--slideshow-mobile-horizontal-width));
    height: var(--slideshow-mobile-horizontal-height);
  }

  .slideshow-img {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* Mobile: single showcase window */
  #image-showcase-container {
    margin: 32px 50px 40px 50px;
    justify-content: center;
    max-width: 800px;
    padding: 0;
  }
  .showcase-window {
    width: 100%;
    max-width: 100%;
    height: 600px;
    border: 0px solid var(--text-primary, #333);
    padding: 0 50px;
    box-sizing: border-box;
  }
  .showcase-window-2 {
    display: none !important;
    width: 0;
    height: 0;
    flex: 0;
    margin: 0;
    padding: 0;
  }

  .intro-description {
    text-align: center !important;
  }
}
/* Section divider */
.section-divider {
  max-width: 800px;
  margin: 20px auto;
  border: none;
  border-top: 1px solid var(--text-primary, #333);
  opacity: 0.3;
}

/* Default: horizontal showcase windows side-by-side (desktop/tablet) */
#image-showcase-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin: 40px auto 60px auto;
  max-width: 800px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.showcase-window {
  flex: 1 1 50%;
  height: 400px;
  border: 0px solid var(--text-primary, #333);
  box-sizing: border-box;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img {
  border: 1px solid var(--text-primary, #333);
  border-radius: 12px;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes fadeOutInPlace {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideLeftOverlap {
  from {
    left: 52%;
  }

  to {
    left: 0;
  }
}

@keyframes fadeInOnRight {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slideshow-image1.fade-out-in-place {
  animation: fadeOutInPlace 0.45s cubic-bezier(.4, 0, .2, 1) forwards;
  z-index: 2;
}

.slideshow-image2.slide-left-overlap {
  animation: slideLeftOverlap 0.45s cubic-bezier(.4, 0, .2, 1) forwards;
  z-index: 3;
}

.slideshow-image2.fade-in-on-right {
  animation: fadeInOnRight 0.45s cubic-bezier(.4, 0, .2, 1) forwards;
  z-index: 2;
  left: 52%;
}

/* Slideshow styles */
.slideshow-container {
  width: 100%;
  max-width: 900px;
  margin: 2em auto 2em auto;
  position: relative;
  background: transparent;
  /* made transparent as requested */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive slideshow images */
.slideshow-images {
  position: relative;
  width: 100%;
  max-width: var(--slideshow-width);
  height: var(--slideshow-height);
  overflow: hidden;
}

/* Desktop orientation-specific container classes */
.slideshow-images.vertical {
  max-width: var(--slideshow-vertical-width);
  height: var(--slideshow-vertical-height);
}
.slideshow-images.horizontal {
  max-width: var(--slideshow-horizontal-width);
  height: var(--slideshow-horizontal-height);
}

/* Image fitting helper classes */
.slideshow-img.contain { object-fit: contain; }
.slideshow-img.cover { object-fit: cover; }

.slideshow-image1,
.slideshow-image2 {
  padding: 10px;
  position: absolute;
  top: 0;
  width: 48%;
  height: 100%;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-image1 {
  left: 0;
  z-index: 1;
}

.slideshow-image2 {
  left: 52%;
  z-index: 2;
  transition: left 0.45s cubic-bezier(.4, 0, .2, 1);
}

.slideshow-image2.slide-left {
  left: 0;
}

.slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 2.5px solid var(--slideshow-img-border, #e0e6ef);
  opacity: 1;
  transform: translateZ(0) scale(1);
  transition: opacity 0.45s cubic-bezier(.4, 0, .2, 1), transform 0.5s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  z-index: 1;
  background-clip: padding-box;
}

@media (min-width: 900px) {
  .slideshow-images {
    flex-direction: row;
    gap: 2vw;
  }

  .slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 899px) {
  .slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* zooming removed: slide-only animation requested */
.slideshow-img.slide-in {
  animation: slideInRight 0.48s cubic-bezier(.4, 0, .2, 1);
}

.slideshow-img.slide-in-right {
  animation: slideInRight 0.48s cubic-bezier(.4, 0, .2, 1);
}

.slideshow-img.slide-out {
  animation: slideOutLeft 0.48s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
}

.slideshow-img.slide-out-right {
  animation: slideOutRight 0.48s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60%) scale(1);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-60%) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60%) scale(1);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(60%) scale(1);
  }
}


.slideshow-img.slide-in-right {
  animation: slideInRight 0.48s cubic-bezier(.4, 0, .2, 1);
}

.slideshow-prev,
.slideshow-next {
  display: none !important;
  /* hide side buttons for auto slideshow */
}

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
}

.slideshow-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.slideshow-dot.active,
.slideshow-dot:hover {
  background: var(--accent-primary, #2980b9);
}

.highlight-box {
  background: var(--highlight-box-bg);
  padding: 1em 1.5em;
  border-radius: 6px;
  font-size: 1em;
}

:root {
  /* Slideshow sizing parameters (modify these to change the vertical window size) */
  --slideshow-width: 360px; /* desktop slideshow width */
  --slideshow-height: 480px; /* desktop slideshow height */
  --slideshow-mobile-width: 300px; /* mobile slideshow width */
  --slideshow-mobile-height: 400px; /* mobile slideshow height */
  --slideshow-max-height: 520px; /* common maximum height for slideshow window */

  /* Orientation-specific sizes */
  --slideshow-vertical-width: 320px;
  --slideshow-vertical-height: 480px;
  --slideshow-horizontal-width: 420px;
  --slideshow-horizontal-height: 260px;
  --slideshow-mobile-vertical-width: 280px;
  --slideshow-mobile-vertical-height: 380px;
  --slideshow-mobile-horizontal-width: 320px;
  --slideshow-mobile-horizontal-height: 200px;

  --slideshow-img-border: #e0e6ef;
  --highlight-box-bg: #f0f6ff;
  --sidebar-width: 250px;
  --sidebar-medium: clamp(160px, 22vw, 240px);
  --sidebar-collapsed: 56px;
  --center-gap: 0px;
  --content-width: 1000px;
  --site-max-width: 1100px;

  --tooltip-show-delay: 300;
  --tooltip-hide-delay: 300;
  --tooltip-vertical-offset: 10;
  /* Anchor highlight default (overridden per theme) */
  --anchor-highlight-bg: rgba(255, 220, 100, 0.6);
}

[data-theme="darker"] {
  --slideshow-img-border: #232a36;
  --highlight-box-bg: #2a323f;
  --bg-primary: #0d1014;
  --bg-secondary: #1a1f26;
  --bg-tertiary: #252a31;
  --text-primary: #c9d1d9;
  --text-secondary: #c9d8ee;
  --text-inverse: #0d1014;
  --button-bg: #2d333b;
  --button-text: #e6edf3;
  --border-primary: #30363d;
  --border-secondary: #484f58;
  --accent-primary: #58a6ff;
  --accent-hover: #79c0ff;
  --accent-secondary: #1f6feb;
  --surface-elevated: #30363d;
  --code-bg: #0d1117;
  --code-text: #c9d1d9;
  --header-bg: #141619;
  --header-text: #dbe1ea;
  --banner-text: #ffffff;
  --tooltip-bg: #2d333b;
  --tooltip-text: #ffffff;
  --tooltip-trigger-bg: rgba(88, 166, 255, 0.15);
  --tooltip-trigger-hover: rgba(88, 166, 255, 0.25);
  --audio-player-bg: rgb(82, 100, 128);
  --audio-player-border: #30363d;
  --audio-player-text: #c9d1d9;
  --audio-progress-bg: #30363d;
  --audio-progress-bar: #58a6ff;
  --menu-hover: #58a6ff;
  --sidebar-bg: #374251;
  --sidebar-header-bg: #141619;
  --sidebar-item-bg: transparent;
  --sidebar-item-hover: #252a31;
  --sidebar-search-bg: #252a31;
  --sidebar-search-border: #30363d;
  --font-family-base: Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-body: 400;
  /* Light overlay on dark backgrounds */
  --anchor-highlight-bg: rgba(255, 255, 255, 0.10);
}

[data-theme="middle"] {
  --slideshow-img-border: #2c3e50;
  --highlight-box-bg: #22334a;
  --bg-primary: #1a252f;
  --bg-secondary: #2c3e50;
  --bg-tertiary: #34495e;
  --text-primary: #d3d7db;
  --text-secondary: #ffffff;
  --text-inverse: #1a252f;
  --button-bg: #34495e;
  --button-text: #e8edf2;
  --border-primary: #4a6076;
  --border-secondary: #6888a8;
  --accent-primary: #3498db;
  --accent-hover: #2980b9;
  --accent-secondary: #1e6f9f;
  --surface-elevated: #4a6076;
  --code-bg: #0d1117;
  --code-text: #c9d1d9;
  --header-bg: #243342;
  --header-text: #c9d7e6;
  --banner-text: #d8d9dc;
  --tooltip-bg: #3d3d3d;
  --tooltip-text: #ffffff;
  --tooltip-trigger-bg: lab(63.46% -8.37 -34.23 / 0.267);
  --tooltip-trigger-hover: rgba(52, 152, 219, 0.425);
  --audio-player-bg: rgba(44, 62, 80, 0.6);
  --audio-player-border: #3a4a5a;
  --audio-player-text: #d3d7db;
  --audio-progress-bg: #4a6076;
  --audio-progress-bar: #3498db;
  --menu-hover: #3498db;
  --sidebar-bg: #415e7d;
  --sidebar-header-bg: #243342;
  --sidebar-item-bg: transparent;
  --sidebar-item-hover: #34495e;
  --sidebar-search-bg: #34495e;
  --sidebar-search-border: #4a6076;
  --font-family-base: Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-body: 400;
  /* Light overlay on blue-ish background */
  --anchor-highlight-bg: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
  --slideshow-img-border: #b9b9b9;
  --highlight-box-bg: #b9d1fd4b;
  --bg-primary: #f5f7fa;
  --bg-secondary: #b9b9b9;
  --bg-tertiary: #e8edf2;
  --text-primary: #2c3e50;
  --text-secondary: #3c4955;
  --text-inverse: #ffffff;
  --button-bg: #e8edf2;
  --button-text: #2c3e50;
  --border-primary: #1a1a1a;
  --border-secondary: #2d2d2d;
  --accent-primary: #2980b9;
  --accent-hover: #3498db;
  --accent-secondary: #1a5f8f;
  --surface-elevated: #ffffff;
  --code-bg: #f7fafc;
  --code-text: #2d3748;
  --header-bg: #e5e5e5;
  --header-text: #000000;
  --banner-text: #18212b;
  --tooltip-bg: #d0d5db;
  --tooltip-text: #2c3e50;
  --tooltip-trigger-bg: rgba(41, 128, 185, 0.12);
  --tooltip-trigger-hover: rgba(41, 128, 185, 0.22);
  --audio-player-bg: rgba(165, 174, 182, 0.9);
  --audio-player-border: #a0aec0;
  --audio-player-text: #2c3e50;
  --audio-progress-bg: #929292;
  --audio-progress-bar: #2980b9;
  --menu-hover: #7c7c7c;
  --sidebar-bg: #dbdbdb;
  --sidebar-header-bg: #e5e5e5;
  --sidebar-item-bg: transparent;
  --sidebar-item-hover: #e8edf2;
  --sidebar-search-bg: #f5f7fa;
  --sidebar-search-border: #cbd5e0;
  --font-family-base: Arial, sans-serif;
  --font-weight-normal: 600;
  --font-weight-body: 500;
  /* Blue-tinted highlight for light theme */
  --anchor-highlight-bg: rgba(41, 128, 185, 0.18);
}

* {
  transition: none;
}

.email-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.intro-text-section {
  margin-top: 20px;
}

.intro-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.intro-description a {
  color: var(--accent-primary);
  text-decoration: none;
}

.intro-description a:hover {
  text-decoration: underline;
}

body {
  font-family: var(--font-family-base);
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-weight: var(--font-weight-body);
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--accent-primary);
}

body.lightbox-active {
  overflow: hidden;
}

body.no-scroll {
  overflow: hidden !important;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
}

.mobile-sidebar-toggle.hidden {
  display: none !important;
}

.banner-scale-wrapper {
  transform-origin: top center;
  margin: 0 auto;
}

#banner-placeholder,
.banner {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  margin: 0 auto;
  display: block;
}

.content-scale-wrapper {
  display: flex;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 801px) {
  .content-scale-wrapper {
    display: grid;
    grid-template-columns:
      var(--sidebar-width) minmax(var(--center-gap), 1fr) minmax(0, var(--content-width)) minmax(var(--center-gap), 1fr);
    align-items: start;
    padding-top: 0;
    box-sizing: border-box;
  }

  .content-scale-wrapper.sidebar-collapsed {
    grid-template-columns:
      var(--sidebar-collapsed) minmax(var(--center-gap), 1fr) minmax(0, var(--content-width)) minmax(var(--center-gap), 1fr);
  }

  .poem-list,
  .blog-list {
    grid-column: 1;
    position: sticky;
    top: 0;
  }

  .blog-container,
  .poem-container {
    grid-column: 3;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .blog-content,
  .poem-content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
  }
}

#header-placeholder {
  background-color: var(--header-bg);
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: var(--header-bg);
  margin: 0 auto;
  box-sizing: border-box;
}

.header-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  background-color: var(--header-bg);
  padding: 20px;
  border-radius: 5px;
  text-align: left;
}

.profile-pic {
  max-width: 250px;
  max-height: 350px;
  width: auto;
  height: auto;
  transform: scale(1);
  border-radius: 5%;
  object-fit: cover;
  margin-right: 20px;
  border: 1px solid var(--border-primary);
}

.description {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.description p {
  margin: 0;
  color: var(--header-text) !important;
}

.description .name {
  font-size: 3em !important;
  margin: 0 0 12px 0 !important;
  line-height: 1 !important;
  color: var(--header-text) !important;
}

.description .title {
  font-size: 1.3em !important;
  margin: 0 0 20px 0 !important;
  color: var(--text-secondary) !important;
}

.description .bio {
  margin: 0 0 8px 0 !important;
}

.description .location {
  margin: 0 0 16px 0 !important;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 30px;
  height: 30px;
  filter: grayscale(0%);
}

[data-theme="darker"] .social-icon[alt="GitHub"],
[data-theme="middle"] .social-icon[alt="GitHub"],
[data-theme="darker"] .social-icon[alt="X"],
[data-theme="middle"] .social-icon[alt="X"] {
  filter: brightness(0) invert(1);
}

.top-menu {
  background-color: var(--bg-secondary);
  padding: 10px 0;
  text-align: center;
  position: sticky;
  overflow: visible;
  z-index: 3000;
}

.top-menu>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.top-menu li {
  position: relative;
  margin: 0 20px;
}

.top-menu a {
  color: var(--banner-text);
  text-decoration: none;
  font-size: 1.1em;
  padding: 10px 15px;
  display: block;
}

.top-menu a:hover {
  background-color: var(--menu-hover);
}

.menu-button {
  color: var(--banner-text);
  text-decoration: none;
  font-size: 1.1em;
  padding: 10px 15px;
  display: block;
  cursor: pointer;
  line-height: 1.5;
  box-sizing: border-box;
}

.menu-button:hover {
  background-color: var(--menu-hover);
}

.top-menu .dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-tertiary);
  z-index: 3100;
}

.top-menu .dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  color: var(--banner-text);
  padding: 10px;
  font-size: 1em;
  display: block;
  text-align: center;
  background-color: var(--bg-tertiary);
}

.dropdown-menu a:hover {
  background-color: var(--menu-hover);
}

.header-container,
.header-section {
  overflow: visible;
}

.poem-container,
.blog-container {
  flex: 1;
  background-color: #1a2520070 box-sizing: border-box;
}

.poem-list {
  width: 200px;
  position: sticky;
  top: 60px;
  background-color: var(--sidebar-bg);
  padding: 0;
  border-right: 1px solid var(--border-primary);
  overflow-y: auto;
  box-sizing: border-box;
  transform: none !important;
  z-index: 10;
}

.poem-list.collapsed {
  width: 50px;
  padding: 0;
  overflow: hidden;
}

.poem-list.collapsed #poemListItems,
.poem-list.collapsed #poemSearch {
  display: none;
}

.poem-list-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--sidebar-header-bg);
  margin: 0 0 10px 0;
  border-radius: 0;
  box-sizing: border-box;
  position: relative;
}

.blog-list {
  width: 200px;
  position: sticky;
  top: 60px;
  background-color: var(--sidebar-bg);
  padding: 0;
  border-right: 1px solid var(--border-primary);
  overflow-y: auto;
  box-sizing: border-box;
  transform: none !important;
  z-index: 10;
}

.blog-list.collapsed {
  width: 50px;
  padding: 0;
  overflow: hidden;
}

.blog-list.collapsed #blogListItems,
.blog-list.collapsed #blogSearch {
  display: none;
}

#blogListItems,
#poemListItems {
  list-style: none;
  padding: 0;
  margin: 0;
}

#blogListItems li,
#poemListItems li {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.poem-link,
.blog-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.list-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item-date {
  font-style: italic;
  font-size: 0.85em;
  color: var(--text-secondary);
  display: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
}

.poem-link:hover .list-item-date,
.blog-link:hover .list-item-date,
.poem-link.show-date .list-item-date,
.blog-link.show-date .list-item-date {
  display: block;
}

.year-separator {
  border: none;
  border-top: 1px solid var(--border-primary);
  margin: 12px 0;
  opacity: 0.2;
}

.blog-list-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--sidebar-header-bg);
  margin: 0 0 10px 0;
  border-radius: 0;
  box-sizing: border-box;
  position: relative;
}

/* No results list item */
#blogListItems .no-results,
#poemListItems .no-results {
  color: var(--text-secondary);
  padding: 12px;
  text-align: center;
  font-style: italic;
  opacity: 0.6;
}

/* Search match highlighting */
#blogListItems mark,
#poemListItems mark {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  padding: 1px 2px;
  border-radius: 2px;
}

.poem-content,
.blog-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
  padding-left: 50px;
  padding-right: 50px;
  margin: 0;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  container-type: inline-size;
}

.poem-text,
.blog-text {
  width: 100%;
  text-align: left;
  line-height: 1.6;
  box-sizing: border-box;
}

.toggle-btn {
  background-color: var(--text-secondary);
  color: var(--text-inverse);
  border: none;
  padding: 5px 8px;
  cursor: pointer;
  margin-bottom: 10px;
  width: 100%;
  font-size: 1em;
}

.toggle-btn:hover {
  background-color: var(--accent-hover);
}

#toggleBlogList {
  background-color: var(--text-secondary);
  color: var(--text-inverse);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2em;
  display: block;
  text-align: center;
}

#toggleBlogList:hover {
  background-color: var(--accent-hover);
}

#toggleSidebar {
  background-color: var(--text-secondary);
  color: var(--text-inverse);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1.2em;
  display: block;
  text-align: center;
}

#toggleSidebar:hover {
  background-color: var(--accent-hover);
}

.poem-search,
.blog-search {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 1em;
  border: none;
  outline: none;
  box-sizing: border-box;
  background-color: var(--sidebar-search-bg);
  color: var(--text-primary);
}

.poem-search::placeholder,
.blog-search::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

#poemList,
#blogList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#poemList li,
#blogList li {
  margin: 5px 10px;
  background-color: var(--sidebar-item-bg);
  border-radius: 4px;
}

#poemList li:hover,
#blogList li:hover,
#poemList li:has(a.show-date),
#blogList li:has(a.show-date) {
  background-color: var(--sidebar-item-hover);
}

#poemList a,
#blogList a {
  color: var(--text-primary);
  text-decoration: none;
}

#poemList a:hover,
#blogList a:hover,
#poemList a.show-date,
#blogList a.show-date {
  color: var(--accent-primary);
}

.poem-link,
.blog-link {
  color: var(--text-primary);
  text-decoration: none;
}

.poem-link:hover,
.blog-link:hover,
.poem-link.show-date,
.blog-link.show-date {
  color: var(--accent-primary);
}

/* Current/active item styling in sidebars */
.poem-link.current,
.blog-link.current {
  color: var(--accent-primary);
  font-weight: 700;
}

.audio-player {
  text-align: left;
  background-color: var(--audio-player-bg);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--audio-player-border);
  max-width: 600px;
  min-width: 280px;
  width: 100%;
  position: relative;
  cursor: pointer;
  margin-left: 0;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .audio-player {
    max-width: 100%;
    min-width: 200px;
  }
}

.audio-title {
  display: none;
}

.audio-player::after {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.audio-player:hover::after {
  opacity: 1;
}

.custom-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  color: var(--audio-player-text);
}

.custom-player .audio-title {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  text-align: center;
  color: var(--text-primary);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.player-btn {
  background: none;
  border: none;
  color: var(--audio-player-text);
  font-size: 1.2em;
  cursor: pointer;
}

.player-btn:hover {
  color: var(--accent-primary);
}

.progress-container {
  flex: 1;
  height: 8px;
  background: var(--audio-progress-bg);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: var(--audio-progress-bar);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  z-index: 2;
  touch-action: none;
  cursor: grab;
}

.progress-handle:active {
  cursor: grabbing;
}

.progress-handle:focus {
  outline: 2px solid rgba(52, 152, 219, 0.6);
}

.blog-list.collapsed #toggleBlogList,
.poem-list.collapsed #toggleSidebar {
  padding: 10px;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.content-text {
  font-family: 'Arial', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 18px;
  padding: 20px;
  border-radius: 8px;
  max-width: var(--site-max-width);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.content-container {
  max-width: var(--site-max-width);
  box-sizing: border-box;
}

.content-text {
  max-width: var(--site-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.content-text h1 {
  font-size: 2rem;
  margin: 0 0 0.6em;
  line-height: 1.1;
  word-break: break-word;
  hyphens: auto;
}

.content-text h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.content-text h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
  line-height: 1.25;
}

.content-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.content-text pre {
  max-width: 100%;
  overflow-x: auto;
}

.image-wrapper {
  position: relative;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0;
  align-items: stretch;
  justify-items: stretch;
  grid-auto-rows: 1fr;
}

.image-grid>* {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-grid>img,
.image-grid>a>img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: 12px;
}

.image-grid .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.image-grid .image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: 12px;
  display: block;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  overflow: auto;
  z-index: 5000;
}

#lightbox img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  cursor: zoom-in;
  user-select: none;
  opacity: 1;
  border: 2px solid rgba(255, 255, 255, 0.601);
  box-sizing: border-box;
  border-radius: 5px;
}

#lightbox img.zoomed {
  cursor: zoom-out;
}

#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2.5rem;
  width: 40px;
  height: 120px;
  cursor: pointer;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  user-select: none;
  border: solid 1px white;
}

#lightbox-prev {
  left: 20px;
  border-radius: 0 12px 12px 0;
}

#lightbox-next {
  right: 20px;
  border-radius: 12px 0 0 12px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

#lightbox-prev:active,
#lightbox-next:active {
  background: rgba(0, 0, 0, 0.9);
}

#lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(53, 53, 53);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  max-width: 80%;
  text-align: center;
  display: none;
}

@media (max-width: 600px) {

  #lightbox-prev,
  #lightbox-next {
    display: none !important;
  }
}

#backToTop,
#themeToggle {
  position: fixed;
  z-index: 2900;
  font-size: 18px;
  background-color: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--border-secondary);
  border-radius: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop {
  bottom: 10px;
  right: 10px;
  display: none;
}

#themeToggle {
  top: 60px;
  right: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#themeToggle.positioned {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover,
#themeToggle:hover {
  background-color: var(--accent-hover);
}

#backToTop:focus,
#themeToggle:focus {
  outline: none;
  background-color: var(--button-bg);
}

#backToTop:active,
#themeToggle:active {
  opacity: 0.8;
}

pre code {
  font-size: 1.15rem;
  font-size: 1.5cqw;

  @container (max-width: 800px) {
    pre code {
      font-size: clamp(1.3rem, 5cqw, 1.25rem);
    }
  }

  border-radius: 8px;
  padding: 12px;
  display: block;
  overflow-x: auto;
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  white-space: pre;
  word-wrap: normal;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--surface-elevated);
}

.video-player {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

.video-player:fullscreen {
  width: 100%;
  height: 100%;
}

.poem-list,
.blog-list {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  max-width: 32vw;
  box-sizing: border-box;
  padding: 12px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-primary);
  overflow-y: auto;
  z-index: 100;
}

.poem-list.collapsed,
.blog-list.collapsed {
  width: var(--sidebar-collapsed);
  padding: 0;
  overflow: hidden;
}

.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  width: 30px;
  height: 30px;
  margin-top: 10px;
  margin-left: 10px;
  border-radius: 5px;
  z-index: 1100;
  background: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--border-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: inline-flex;
}

.mobile-sidebar-toggle:hover {
  background: var(--accent-hover);
}

.mobile-sidebar-toggle:active {
  opacity: 0.8;
}

@media (max-width: 800px) {
  .header-section {
    flex-direction: column;
    text-align: center;
  }

  .header-section .profile-pic {
    margin: 0 0 15px 0;
    align-self: center;
    display: block;
  }

  .header-section .description {
    width: 100%;
    text-align: center;
  }

  .header-section .social-icons {
    justify-content: center;
    margin: 12px 0 0;
  }

  .header-section .social-button {
    margin: 0 8px;
  }

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .poem-list,
  .blog-list {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    padding: 14px;
    z-index: 2200;
    background-color: var(--sidebar-bg) !important;
  }

  .poem-list.show,
  .blog-list.show {
    left: 0;
    position: fixed;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    top: auto;
    overflow-y: auto;
    z-index: 4000;
  }

  body.no-scroll .content-scale-wrapper {
    pointer-events: none;
    user-select: none;
    touch-action: none;
  }

  body.no-scroll .poem-list,
  body.no-scroll .blog-list {
    pointer-events: auto;
    user-select: auto;
    touch-action: auto;
  }

  .blog-text img[width],
  .blog-text img[height],
  .blog-text img[style*="width"],
  .poem-text img[width],
  .poem-text img[height],
  .poem-text img[style*="width"],
  .content-text img[width],
  .content-text img[height],
  .content-text img[style*="width"] {
    height: auto !important;
    max-width: 100% !important;
  }

  .blog-content,
  .poem-content,
  .content-container {
    max-width: 100%;
    padding-top: 20px;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .blog-text,
  .poem-text,
  .content-text {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
  }

  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.sidebar-inner {
  will-change: transform, opacity;
  transform-origin: left center;
}

.poem-list.collapsed .sidebar-inner,
.blog-list.collapsed .sidebar-inner {
  transform: translateX(calc(-1 * (var(--sidebar-width) - var(--sidebar-collapsed))));
  opacity: 0.999;
}

.poem-list-header,
.blog-list-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background-color: inherit;
  padding-top: 8px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.blog-text embed,
.blog-text object,
.blog-text iframe,
.content-text embed,
.content-text object,
.content-text iframe {
  display: none !important;
}

.pdf-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0;
}

.pdf-placeholder a {
  background: var(--accent-primary);
  color: var(--text-inverse);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.pdf-placeholder a:hover {
  background: var(--accent-hover);
}

.audio-player::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.audio-player:hover::after {
  opacity: 0 !important;
  display: none !important;
  pointer-events: none !important;
}

.progress-handle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tooltip-trigger {
  background: var(--tooltip-trigger-bg);
  border-radius: 2px;
  position: relative;
  z-index: 2960;
}

.tooltip-trigger:hover {
  background: var(--tooltip-trigger-hover);
}

.tooltip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2950;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.tooltip-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tooltip {
  position: fixed;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  padding: 10px;
  border-radius: 5px;
  z-index: 3000;
  width: max-content;
  max-width: min(450px, calc(100vw - 20px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  pointer-events: auto;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .tooltip {
    max-width: calc(100vw - 20px);
    padding: 8px;
    font-size: 0.9em;
    width: max-content;
  }

  .tooltip-gif {
    max-width: min(150px, calc(100vw - 60px)) !important;
  }

  .tooltip-text {
    font-size: 14px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 400px) {
  .tooltip {
    max-width: calc(100vw - 16px);
    padding: 6px;
    font-size: 0.85em;
    width: max-content;
  }

  .tooltip-gif {
    max-width: min(120px, calc(100vw - 40px)) !important;
  }

  .tooltip-text {
    font-size: 12px !important;
  }
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  border: 2px;
  border-style: solid;
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
}

.tooltip-gif {
  max-width: 200px;
  width: auto;
  height: auto;
  border-radius: 4px;
  align-self: center;
  object-fit: contain;
}

.tooltip-text {
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  font-weight: 500;
}

.tooltip-player-btn:hover {
  color: var(--accent-primary) !important;
}

.tooltip-audio-player {
  background: var(--audio-player-bg);
  border-radius: 6px;
  padding: 10px;
  min-width: 280px;
}

.tooltip-audio-player .player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip-audio-player .tooltip-player-btn {
  background: none;
  border: none;
  color: var(--audio-player-text);
  padding: 0;
  cursor: pointer;
  font-size: 1.2em;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  transition: color 0.2s ease;
}

.tooltip-time {
  color: var(--audio-player-text);
  font-size: 12px;
  min-width: 35px;
}

.tooltip-progress {
  flex: 1;
  height: 8px;
  background: var(--audio-progress-bg);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.tooltip-progress-bar {
  height: 100%;
  background: var(--audio-progress-bar);
  border-radius: 999px;
  width: 0%;
  transition: width 0.08s linear;
  position: relative;
  z-index: 1;
}

.tooltip-progress .progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: grab;
  z-index: 2;
  touch-action: none;
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.tooltip-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  cursor: pointer;
}

.tooltip-zoomed {
  background: var(--tooltip-bg);
  border: 2px solid var(--border-secondary);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 15px;
  cursor: auto;
  overflow-y: auto;
}

.tooltip-zoomed-text {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  flex-shrink: 0;
  user-select: text;
  cursor: text;
}

.tooltip-zoomed-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 1;
  min-height: 0;
}

.tooltip-zoomed-image {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  width: auto;
  height: auto;
  border-radius: 4px;
  display: block;
  object-fit: contain;
}

.custom-index {
  margin: 20px 0;
  padding-left: 0;
}

.custom-index ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.index-section {
  margin: 6px 0;
  list-style: disc;
}

.index-section>a {
  color: var(--accent-primary);
  text-decoration: none;
}

.index-section>a:hover {
  text-decoration: underline;
}

.index-subsection {
  list-style: circle;
  margin-left: 20px;
  margin-top: 4px;
}

.index-subsection a {
  color: var(--text-secondary);
  text-decoration: none;
}

.index-subsection a:hover {
  text-decoration: underline;
  color: var(--accent-primary);
}

.history-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;
  padding-left: 50px;
  padding-right: 50px;
  container-type: inline-size;
}

.history-section h2 {
  color: var(--text-primary);
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: left;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-item {
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-primary);
}

.history-item:hover {
  opacity: 0.8;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item a {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.history-item-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.history-item-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  flex-shrink: 0;
}

.history-item-type.blog {
  background-color: #3498db;
  color: white;
}

.history-item-type.poem {
  background-color: #9b59b6;
  color: white;
}

.history-item-type.article {
  background-color: #e74c3c;
  color: white;
}

.history-item-name {
  color: var(--text-primary);
  font-size: 1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.history-item-date {
  color: var(--text-secondary);
  font-size: 0.85em;
  white-space: nowrap;
  grid-column: 2;
}

/* Use CSS to hide date when there's not enough space - fallback to viewport */
@supports not (container-type: inline-size) {
  @media (max-width: 450px) {
    .history-item a {
      grid-template-columns: 1fr;
    }

    .history-item-date {
      display: none;
    }
  }
}

/* Container-based: hide date at narrower threshold - date stays visible longer */
@container (max-width: 480px) {
  .history-item a {
    grid-template-columns: 1fr;
  }

  .history-item-date {
    display: none;
  }
}

/* Fallback for browsers without container query support - hide date on very narrow viewports */
@supports not (container-type: inline-size) {
  @media (max-width: 500px) {
    .history-item-date {
      display: none;
    }
  }
}

@media (max-width: 600px) {
  .history-section {
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 30px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .history-item a {
    gap: 8px;
  }
}

.poem-date,
.blog-date {
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 16px 0;
  font-size: 0.9em;
  font-weight: 600;
}

.blog-date {
  margin: 0 0 24px 0;
}

.blog-text img,

/* Career Page Styles */

/* Career Intro Section */
.career-intro {
  margin-bottom: 40px;
}

.career-intro h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.intro-text {
  font-size: 1.15em;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 15px;
  max-width: 800px;
}

.linkedin-note {
  font-size: 1em;
  color: var(--text-secondary);
  margin-top: 10px;
}

.linkedin-note a {
  color: var(--accent-primary);
  text-decoration: none;
}

.linkedin-note a:hover {
  text-decoration: underline;
}

/* Career 2 - Card Grid Layout */
.career-header {
  text-align: center;
  margin-bottom: 40px;
}

.career-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.career-subtitle {
  font-size: 1.1em;
  color: var(--text-secondary);
}

.career-subtitle a {
  color: var(--accent-primary);
  text-decoration: none;
}

.career-subtitle a:hover {
  text-decoration: underline;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.skill-category {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-category h2 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid var(--border-secondary);
}

.projects-section {
  margin-top: 40px;
}

.projects-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-align: center;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 20px;
}

.project-item h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.project-item p {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Career 3 - Compact List Layout */
.career-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-primary);
}

.career-compact-header h1 {
  font-size: 2.2em;
  margin: 0;
  color: var(--text-primary);
}

.linkedin-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
}

.linkedin-link:hover {
  text-decoration: underline;
}

.skills-compact {
  margin-bottom: 40px;
}

.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-primary);
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1em;
}

.skill-value {
  color: var(--text-secondary);
  line-height: 1.6;
}

.projects-compact {
  margin-top: 30px;
}

.projects-compact h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.projects-compact ul {
  list-style: none;
  padding: 0;
}

.projects-compact li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.projects-compact li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.projects-compact strong {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .career-compact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .skill-label {
    font-weight: 700;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .career-header h1 {
    font-size: 2em;
  }

  .projects-section h2 {
    font-size: 1.6em;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

.blog-text img,
.poem-text img,
.content-text img {
  height: auto !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  box-sizing: border-box;
}

pre code {
  display: block;
  max-width: 100%;
  white-space: pre;
  word-wrap: normal;
}

/* Highlight target when navigating to anchor links */
:target,
.anchor-highlight {
  animation: highlight-fade 2s ease-out;
  border-radius: 4px;
}

@keyframes highlight-fade {
  0% {
    background-color: var(--anchor-highlight-bg);
  }
  100% {
    background-color: transparent;
  }
}