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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Header & Navigation */
.site-header {
  padding: 40px 20px 30px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.site-logo {
  margin-bottom: 30px;
}

.site-logo a {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.site-logo a:hover {
  opacity: 0.7;
}

.site-logo img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.main-nav a:hover {
  color: #666;
}

.main-nav a.active {
  border-bottom-color: #333;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1000;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Main Content */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  min-height: calc(100vh - 300px);
}

/* Filter Buttons */
.filter-container {
  text-align: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 15px;
  margin: 0 5px;
  cursor: pointer;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.filter-btn:hover {
  color: #666;
}

.filter-btn.active {
  color: #333;
  border-bottom-color: #333;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7.5px;
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  transition: opacity 0.3s ease;
}

.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  height: 100%;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(158, 158, 158, 0.68);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Category-specific overlay colors */
.portfolio-item[data-category="installations"] .portfolio-overlay {
  background: rgba(66, 135, 245, 0.68); /* Blue */
}

.portfolio-item[data-category="live-acts"] .portfolio-overlay {
  background: rgba(245, 66, 66, 0.68); /* Red */
}

.portfolio-item[data-category="releases"] .portfolio-overlay {
  background: rgba(66, 245, 135, 0.68); /* Green */
}

.portfolio-item[data-category="collabs"] .portfolio-overlay {
  background: rgba(245, 176, 66, 0.68); /* Orange */
}

.portfolio-item:hover img {
  transform: scale(1.02);
}

.portfolio-overlay h3 {
  color: #fff;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.portfolio-overlay p {
  color: #fff;
  font-size: 12px;
  opacity: 0.9;
}

/* Abstract text in overlay */
.overlay-abstract {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  opacity: 0.95;
  max-width: 90%;
  text-align: justify;
}

/* Category tags in overlay */
.overlay-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.category-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.category-tag:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: 60px;
}

.social-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #333;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a.social-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.social-links a.social-icon:hover {
  color: #000;
  transform: scale(1.1);
}

.social-links a.social-icon:hover svg {
  transform: scale(1.1);
}

.copyright {
  color: #999;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .main-nav ul {
    gap: 25px;
  }
}

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

  /* Mobile header layout: logo left, hamburger right */
  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: left;
  }

  .site-logo {
    margin-bottom: 0;
    order: 1;
  }

  .site-logo img {
    height: 50px;
    margin: 0;
  }

  /* Show hamburger menu on mobile - positioned to the right */
  .mobile-menu-toggle {
    display: flex;
    margin: 0;
    order: 2;
  }

  /* Navigation takes full width below header */
  .main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* Show navigation when menu is open */
  .main-nav.active {
    max-height: 300px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  /* Allow filter buttons to wrap naturally on mobile */
  .filter-btn {
    display: inline-block;
    font-size: 11px;
    padding: 6px 10px;
    margin: 3px;
  }
}

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

/* Bio Section */
.bio-section {
  max-width: 1200px;
  margin: 0 auto 60px;
}

/* Bio Links Section */
.bio-links {
  text-align: center;
  padding-bottom: 40px;
}

.bio-link {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 20px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  display: inline-block;
  padding-bottom: 2px;
}

.bio-link:hover {
  border-bottom-color: #333;
}

/* Bio Intro: Text + Image */
.bio-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: start;
}

.bio-text {
  text-align: justify;
}

.bio-text p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.bio-image {
  position: sticky;
  top: 40px;
}

.bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bio Lists Section */
.bio-lists {
  max-width: 1200px;
  margin: 0 auto;
}

.bio-category {
  margin-bottom: 60px;
}

.bio-category:last-child {
  margin-bottom: 0;
}

.bio-category h2 {
  font-size: 16px;
  font-weight: normal;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.bio-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-item {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bio-year {
  color: #333;
  font-weight: normal;
  min-width: 40px;
  flex-shrink: 0;
}

.bio-bullet {
  color: #999;
  flex-shrink: 0;
}

/* Responsive Bio */
@media (max-width: 900px) {
  .bio-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio-image {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .bio-text {
    text-align: justify;
  }
}

@media (max-width: 600px) {
  .bio-links {
    margin-bottom: 40px;
    padding-bottom: 0px;
  }

  /* Bio links inline with wrapping - like filter tags */
  .bio-link {
    display: inline-block;
    font-size: 11px;
    padding: 6px 10px;
    margin: 3px;
  }

  .bio-intro {
    margin-bottom: 60px;
  }

  .bio-category {
    margin-bottom: 40px;
  }

  .bio-category h2 {
    font-size: 14px;
  }

  .bio-item {
    font-size: 12px;
    flex-wrap: wrap;
  }
}

/* Contact Section */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Hide print-only newsletter message on screen */
.print-only-newsletter-message {
  display: none;
}

/* Hide print version of social media list on screen */
.contact-social-print-list {
  display: none;
}

.contact-heading {
  font-size: 14px;
  font-weight: normal;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 12px;
}

.contact-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: normal;
  white-space: nowrap;
}

.contact-link {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #d0d0d0;
  transition: border-color 0.3s ease;
  display: inline-block;
  padding-bottom: 2px;
}

.contact-link:hover {
  border-bottom-color: #333;
}

.contact-description {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 20px 0;
  text-align: justify;
}

/* Social Icons in Contact */
.contact-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d0d0d0;
  text-decoration: none;
  transition: all 0.25s ease;
  background: #fff;
  color: #333;
}

.contact-social-icon:hover {
  border-color: #333;
  background: #333;
  color: #fff;
}

.contact-social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Newsletter Form */
.contact-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-input {
  padding: 12px 15px;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  border: 1px solid #e0e0e0;
  background: #fff;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #333;
}

.form-input::placeholder {
  color: #999;
}

.form-help-text {
  font-size: 11px;
  color: #999;
  margin-top: 5px;
  display: block;
  line-height: 1.4;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox-label span {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

.form-submit {
  padding: 12px 30px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #333;
  border: 1px solid #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.form-submit:hover {
  background: #000;
  border-color: #000;
}

/* Form Validation Error Styles */
.form-input-error,
.form-checkbox.form-input-error {
  border-color: #d9534f !important;
}

.form-error {
  color: #d9534f;
  font-size: 11px;
  margin-top: 6px;
  display: block;
  line-height: 1.4;
  font-weight: normal;
}

.form-checkbox-label .form-error {
  margin-top: 8px;
  margin-left: 0;
}

/* Form row positioning */
.form-row {
  position: relative;
}

/* Responsive Contact */
@media (max-width: 600px) {
  .contact-section {
    padding: 40px 20px;
  }

  .contact-content {
    gap: 35px;
  }

  /* Stack contact items vertically on small screens */
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-label {
    white-space: normal;
    font-size: 10px;
  }

  /* Prevent email truncation with word-breaking */
  .contact-link {
    font-size: 12px;
    letter-spacing: 0.5px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .contact-social-icons {
    justify-content: flex-start;
  }

  .contact-newsletter-form {
    max-width: 100%;
  }

  /* Make form help text more readable on small screens */
  .form-help-text {
    font-size: 10px;
    line-height: 1.3;
  }

  /* Reduce checkbox label text size */
  .form-checkbox-label span {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Work Detail Page */
.work-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Work Modules Container */
.work-modules {
  max-width: 100%;
  margin: 0 auto;
}

.work-header {
  text-align: center;
  margin-bottom: 40px;
}

.work-header h1 {
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.work-category {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-image {
  margin-bottom: 40px;
  text-align: center;
}

.work-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.work-content {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 60px;
}

.work-content p {
  margin-bottom: 20px;
}

/* Work Modules Styles */

/* Base module styles */
.module {
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Image Module */
.module-hero-image {
  text-align: center;
}

.module-hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.image-caption {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

/* Text Module */
.module-text h2 {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 20px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.module-text .text-content {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

.module-text .text-content p {
  margin-bottom: 20px;
}

/* Image Grid Module */
.module-image-grid {
  margin-bottom: 60px;
}

.image-grid {
  display: grid;
  gap: 15px;
}

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

.image-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.image-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.image-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.image-grid.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.image-grid.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.image-grid .grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Video Module */
.module-video {
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* Bandcamp Module */
.module-bandcamp {
  margin-bottom: 60px;
}

.bandcamp-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  position: relative;
  clear: both;
}

.bandcamp-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 42px;
  max-width: none;
  border: 0;
  vertical-align: bottom;
}

.bandcamp-caption {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* Universal Iframe Module */
.module-iframe {
  margin-bottom: 60px;
}

.iframe-wrapper {
  max-width: 100%;
  overflow: visible;
  position: relative;
  clear: both;
}

.iframe-wrapper iframe {
  display: block;
  min-height: 42px;
  max-width: 100%;
  border: 0;
  vertical-align: bottom;
}

/* Responsive iframe wrapper with aspect ratio */
.iframe-responsive {
  position: relative;
  height: 0;
  overflow: hidden;
}

.iframe-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.iframe-caption {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* Metadata Module */
.module-metadata {
  padding: 15px 20px;
  background: #f9f9f9;
  border-left: 3px solid #333;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 15px;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metadata-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: bold;
}

.metadata-value {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.metadata-value a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.metadata-value a:hover {
  border-bottom-color: #333;
  color: #000;
}

/* Split Hero-Metadata Module */
.module-split-hero-metadata {
  margin-bottom: 60px;
}

.split-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.split-left {
  width: 100%;
}

.split-right {
  width: 100%;
}

.split-hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.split-iframe {
  width: 100%;
}

/* Nested metadata in split layout has no extra margin */
.split-right .module-metadata {
  margin-bottom: 0;
}

/* Responsive split layout */
@media (max-width: 900px) {
  .split-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Split Bandcamp-Metadata Module */
.module-split-bandcamp-metadata {
  margin-bottom: 60px;
}

.split-bandcamp-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}

.split-bandcamp-left {
  width: 100%;
}

.split-bandcamp-right {
  width: 100%;
}

.split-bandcamp-iframe {
  width: 100%;
}

/* Nested metadata in split bandcamp layout has no extra margin */
.split-bandcamp-right .module-metadata {
  margin-bottom: 0;
}

/* Text content in split bandcamp layout */
.split-bandcamp-text {
  margin-top: 30px;
}

.split-bandcamp-text h2 {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.split-bandcamp-text .text-content {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

.split-bandcamp-text .text-content p {
  margin-bottom: 15px;
}

/* Responsive split bandcamp layout */
@media (max-width: 900px) {
  .split-bandcamp-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Quote Module */
.module-quote {
  padding: 40px 20px;
}

.module-quote blockquote {
  border-left: 4px solid #333;
  padding-left: 30px;
  margin: 0;
}

.module-quote blockquote p {
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  font-style: italic;
  margin: 0 0 15px 0;
}

.module-quote cite {
  font-size: 14px;
  color: #666;
  font-style: normal;
  display: block;
}

/* Spacer Module */
.module-spacer {
  width: 100%;
}

/* Linked Events Module */
.module-linked-events h2 {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 30px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.module-linked-events h3 {
  font-size: 20px;
  font-weight: normal;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: left;
}

.no-events-message {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
}

/* Image Grid Cursor */
.grid-image[data-lightbox="true"] {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid-image[data-lightbox="true"]:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  gap: 15px;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Lightbox Caption */
.lightbox-caption {
  max-width: 90%;
  text-align: center;
  padding: 0 20px;
  animation: fadeIn 0.5s ease 0.2s backwards;
}

.caption-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  font-style: italic;
}

.caption-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-grid.grid-2,
  .image-grid.grid-3,
  .image-grid.grid-4,
  .image-grid.grid-5,
  .image-grid.grid-6 {
    grid-template-columns: 1fr;
  }

  .module-quote blockquote p {
    font-size: 18px;
  }

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

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 40px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 10px 15px;
  }

  .lightbox-nav {
    padding: 0 10px;
  }

  .lightbox-caption {
    max-width: 95%;
    padding: 0 10px;
  }

  .caption-text {
    font-size: 13px;
  }

  .caption-counter {
    font-size: 11px;
  }
}

.work-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.work-nav-left {
  justify-self: start;
}

.work-nav-center {
  justify-self: center;
}

.work-nav-right {
  justify-self: end;
}

.work-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.work-nav-link:hover {
  color: #666;
}

.nav-arrow {
  font-size: 24px;
  line-height: 1;
}

.nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.nav-title {
  font-size: 11px;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
}

.back-to-works {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.back-to-works:hover {
  color: #666;
}

.work-nav-disabled {
  display: block;
  width: 1px;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .work-nav {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .work-nav-left,
  .work-nav-center,
  .work-nav-right {
    justify-self: center;
  }

  .work-nav-left {
    order: 2;
  }

  .work-nav-center {
    order: 1;
  }

  .work-nav-right {
    order: 3;
  }
}

/* Events Section */
.events-section {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 40px 20px;
}

.events-section h1 {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 60px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.events-year-section {
  margin-bottom: 80px;
}

.events-year-section:last-child {
  margin-bottom: 0;
}

.events-year-title {
  font-size: 24px;
  font-weight: normal;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-align: left;
}

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

.events-table-header {
  display: grid;
  grid-template-columns: 80px 60px 100px 100px 1fr 80px 2fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 2px solid #333;
  margin-bottom: 10px;
}

.events-table-header > div {
  font-size: 11px;
  font-weight: normal;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.events-table-row {
  display: grid;
  grid-template-columns: 80px 60px 100px 100px 1fr 80px 2fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}

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

.events-table-row > div {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.event-col-date {
  font-weight: normal;
  color: #333;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.event-col-time {
  color: #666;
  font-size: 12px;
}

.event-col-country,
.event-col-city {
  color: #666;
  font-size: 12px;
}

.event-col-venue a,
.event-col-tickets a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.event-col-venue a:hover,
.event-col-tickets a:hover {
  border-bottom-color: #333;
}

.event-col-description {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

/* Responsive Events Table */
@media (max-width: 1200px) {
  .events-table-header,
  .events-table-row {
    grid-template-columns: 70px 55px 90px 90px 1fr 70px 1.5fr;
    gap: 15px;
  }
}

@media (max-width: 968px) {
  .events-section {
    padding: 30px 15px;
  }

  .events-table-header {
    display: none;
  }

  /* Card-style layout for events */
  .events-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border-bottom: none;
    margin-bottom: 15px;
  }

  .events-table-row:last-child {
    margin-bottom: 0;
  }

  /* Remove all default labels */
  .events-table-row > div::before {
    display: none;
    content: none;
  }

  /* Date - large and prominent */
  .event-col-date {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  /* Time - inline with date or below */
  .event-col-time {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
  }

  .event-col-time::before {
    content: '@ ';
  }

  /* Location - combine city and country visually */
  .event-col-country {
    display: inline;
    font-size: 12px;
    color: #666;
  }

  .event-col-country::after {
    content: ', ';
  }

  .event-col-city {
    display: inline;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
  }

  /* Venue - prominent clickable link */
  .event-col-venue {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .event-col-venue a {
    color: #333;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
  }

  /* Tickets - compact button style */
  .event-col-tickets {
    margin-bottom: 8px;
  }

  .event-col-tickets a {
    display: inline-block;
    padding: 6px 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
  }

  .event-col-tickets a:hover {
    background: #000;
  }

  /* Description - clean paragraph */
  .event-col-description {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-top: 4px;
  }

  .events-year-section {
    margin-bottom: 60px;
  }

  .events-year-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

/* 404 Error Page */
.error-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  width: 100%;
}

.error-code {
  font-size: 120px;
  font-weight: normal;
  color: #333;
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1;
}

.error-message {
  font-size: 24px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: normal;
}

.error-description {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-link {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 30px;
  border: 2px solid #333;
  transition: all 0.3s ease;
}

.error-link:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 600px) {
  .error-code {
    font-size: 80px;
  }

  .error-message {
    font-size: 18px;
  }

  .error-description {
    font-size: 13px;
  }
}

/* Works List (Print-only) */
.works-list-print {
  display: none; /* Hidden on screen, shown in print */
  max-width: 100%;
  margin: 0 auto;
}

.works-list-row {
  display: grid;
  grid-template-columns: 50px 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: start;
}

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

.works-col-no {
  font-size: 12px;
  color: #999;
  text-align: left;
  font-weight: bold;
}

.works-col-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.works-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-col-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.works-col-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.works-col-title a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.works-col-title a:hover {
  border-bottom-color: #333;
}

.works-col-categories {
  font-size: 9px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.4;
}

.works-col-abstract {
  font-size: 12px;
  color: #666;
  line-height: 1.7;
  text-align: justify;
}

.works-col-metadata {
  font-size: 10px;
  color: #999;
  line-height: 1.6;
  font-style: italic;
}

/* QR Code - Hidden on screen, visible in print */
.works-qr-code {
  display: none;
}

/* Page Title QR Code - Hidden on screen, visible in print */
.page-title-qr-code {
  display: none;
}

/* Bio Link Wrapper - for vertical layout in print */
.bio-link-wrapper {
  display: contents; /* On screen, wrapper is transparent */
}

/* Bio Link QR Code - Hidden on screen, visible in print */
.bio-link-qr {
  display: none;
}

/* Event Ticket QR Code - Hidden on screen, visible in print */
.event-ticket-qr {
  display: none;
}

/* Print Styles for A4 */
@media print {
  /* A4 Page Setup */
  @page {
    size: A4;
    margin: 15mm 15mm 15mm 15mm;
  }

  /* Hide navigation and footer */
  .main-nav,
  .mobile-menu-toggle,
  .site-footer {
    display: none !important;
  }

  /* Optimize header: QR+URL on left, Logo+URL on right in one line */
  .site-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 15px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
    position: relative;
  }

  /* Logo and URL on the right */
  .site-logo {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 5px;
  }

  .site-logo img {
    height: 50px;
    display: block;
  }

  /* Add URL below logo */
  .site-logo::after {
    content: "www.j3zz.com";
    display: block;
    font-size: 9px;
    color: #666;
    letter-spacing: 0.5px;
    text-align: center;
  }

  /* Page-specific print info */
  .events-section::before {
    content: "EVENTS";
    display: block;
    text-align: left;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
  }

  /* Optimize content area */
  .site-content {
    max-width: 100%;
    padding: 0;
    min-height: auto;
  }

  /* Events Section Optimization */
  .events-section {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .events-section h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /* Year sections with page break control */
  .events-year-section {
    margin-bottom: 40px;
    page-break-inside: avoid;
  }

  .events-year-section:last-child {
    margin-bottom: 0;
  }

  .events-year-title {
    font-size: 20px;
    margin-bottom: 20px;
    page-break-after: avoid;
  }

  /* Preserve table grid layout */
  .events-table {
    width: 100%;
  }

  .events-table-header {
    display: grid !important;
    grid-template-columns: 60px 50px 85px 85px 1fr 70px 2fr !important;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 8px;
    page-break-after: avoid;
  }

  .events-table-header > div {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  /* Event rows with page break control */
  .events-table-row {
    display: grid !important;
    grid-template-columns: 60px 50px 85px 85px 1fr 70px 2fr !important;
    gap: 12px !important;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    page-break-inside: avoid;
    align-items: start;
  }

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

  .events-table-row > div {
    font-size: 11px;
  }

  /* Hide mobile labels in print - applies to ALL event columns */
  .event-col-date::before,
  .event-col-time::before,
  .event-col-country::before,
  .event-col-city::before,
  .event-col-venue::before,
  .event-col-tickets::before,
  .event-col-description::before {
    display: none !important;
    content: none !important;
  }

  /* Maintain all text styling */
  .event-col-date {
    font-size: 10px;
  }

  .event-col-time,
  .event-col-country,
  .event-col-city {
    font-size: 10px;
  }

  .event-col-description {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Maintain link styling for print */
  .event-col-venue a,
  .event-col-tickets a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
  }

  /* Override mobile card-style for print - restore table layout */
  .events-table-row {
    background: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
  }

  /* Reset date styling */
  .event-col-date {
    font-size: 10px !important;
    font-weight: normal !important;
    color: #333 !important;
    margin-bottom: 0 !important;
  }

  /* Reset time styling */
  .event-col-time {
    font-size: 10px !important;
    color: #666 !important;
    margin-bottom: 0 !important;
  }

  /* Reset location to block display (not inline) */
  .event-col-country,
  .event-col-city {
    display: block !important;
    font-size: 10px !important;
    color: #666 !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
  }

  .event-col-country::after {
    content: none !important;
  }

  /* Reset venue styling */
  .event-col-venue {
    font-size: 11px !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
  }

  .event-col-venue a {
    font-weight: normal !important;
    padding-bottom: 0 !important;
  }

  /* Reset tickets link to normal (not button) */
  .event-col-tickets {
    margin-bottom: 0 !important;
  }

  .event-col-tickets a {
    display: inline !important;
    padding: 0 !important;
    background: none !important;
    color: #333 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-bottom: 1px solid #ccc !important;
  }

  /* Reset description styling */
  .event-col-description {
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
  }

  /* Event Ticket QR Code - Show in print, hide text link */
  .event-col-tickets .event-ticket-link {
    display: none !important;
  }

  .event-ticket-qr {
    display: block !important;
    width: 35px;
    height: 35px;
  }

  .event-ticket-qr img,
  .event-ticket-qr canvas {
    width: 35px !important;
    height: 35px !important;
    display: block;
  }

  /* Ensure colors print correctly */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Remove box shadows and unnecessary effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Optimize backgrounds for printing */
  body {
    background: #fff;
  }

  /* Works Page Print Optimization */
  #works::before {
    content: "WORKS";
    display: block;
    text-align: left;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
  }

  /* Hide grid and filters in print */
  .filter-container,
  .portfolio-grid {
    display: none !important;
  }

  /* Show works list in print */
  .works-list-print {
    display: block !important;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Works list rows */
  .works-list-row {
    display: grid !important;
    grid-template-columns: 45px 110px 1fr !important;
    gap: 15px !important;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    page-break-inside: avoid;
    align-items: start;
    min-height: 200px;
  }

  .works-list-row:first-child {
    padding-top: 0;
  }

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

  /* Column styling for print */
  .works-col-no {
    font-size: 11px;
    font-weight: bold;
    color: #666;
  }

  .works-col-image {
    width: 110px !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 186px !important;
    background: transparent !important;
    border: none !important;
  }

  .works-col-image > img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
  }

  .works-col-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .works-col-title {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
  }

  .works-col-title a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
  }

  .works-col-categories {
    font-size: 8px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.3;
  }

  .works-col-abstract {
    font-size: 10px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
  }

  .works-col-metadata {
    font-size: 9px;
    color: #999;
    line-height: 1.5;
    font-style: italic;
  }

  /* QR Code - Show in print below image */
  .works-qr-code {
    display: block !important;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    min-height: 70px;
  }

  .works-qr-code img {
    width: 70px !important;
    height: 70px !important;
    display: block;
    margin: 0 auto;
  }

  .works-qr-code canvas {
    width: 70px !important;
    height: 70px !important;
    display: block;
    margin: 0 auto;
  }

  /* Bio Section Print Optimization */
  .bio-section::before {
    content: "BIO";
    display: block;
    text-align: left;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
  }

  .bio-section {
    max-width: 100%;
    margin: 0;
  }

  /* Bio Links - 3-column grid for print with compact spacing */
  .bio-links {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    align-items: start;
    justify-items: center;
  }

  /* Bio Link Wrapper - vertical layout for each submenu item */
  .bio-link-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: center;
  }

  /* Bio Link - text label on top */
  .bio-link {
    display: block !important;
    margin: 0;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    text-decoration: none;
    color: #333;
    order: 1;
  }

  /* Bio Link QR Code - Show in print below text */
  .bio-link-qr {
    display: block !important;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    order: 2;
  }

  .bio-link-qr img,
  .bio-link-qr canvas {
    width: 40px !important;
    height: 40px !important;
    display: block;
    margin: 0;
  }

  /* Bio Intro - Optimize layout for A4 */
  .bio-intro {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 30px;
    margin-bottom: 40px;
    page-break-inside: avoid;
  }

  .bio-text {
    text-align: justify;
  }

  .bio-text p {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .bio-image {
    position: static;
  }

  .bio-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Bio Lists - Optimize categories for print */
  .bio-lists {
    max-width: 100%;
  }

  .bio-category {
    margin-bottom: 30px;
    page-break-inside: avoid;
  }

  .bio-category:last-child {
    margin-bottom: 0;
  }

  .bio-category h2 {
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    page-break-after: avoid;
  }

  .bio-items {
    gap: 6px;
  }

  .bio-item {
    font-size: 10px;
    line-height: 1.5;
    page-break-inside: avoid;
  }

  .bio-year {
    font-size: 10px;
    min-width: 35px;
  }

  /* Contact Page Print Styles */
  .contact-section::before {
    content: "CONTACT";
    display: block;
    text-align: left;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
  }

  .contact-section {
    max-width: 100%;
    padding: 0;
  }

  .contact-content {
    gap: 20px;
  }

  .contact-description {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .contact-item {
    font-size: 11px;
    line-height: 1.6;
  }

  .contact-label {
    font-size: 10px;
  }

  .contact-link {
    font-size: 11px;
  }

  /* Hide newsletter form in print, show print-only message */
  .contact-newsletter-form,
  .contact-newsletter-form + p {
    display: none !important;
  }

  .print-only-newsletter-message {
    display: block !important;
    margin-bottom: 15px;
  }

  /* Hide screen version of social icons, show print version */
  .contact-social-icons {
    display: none !important;
  }

  .contact-social-print-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20mm;
    margin-bottom: 15px;
  }

  .social-print-item {
    display: grid;
    grid-template-columns: 35px auto;
    grid-template-rows: auto auto;
    gap: 8px;
    align-items: start;
    padding: 6px 0;
    page-break-inside: avoid;
  }

  .social-print-qr {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 3;
  }

  .social-print-qr img {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }

  .social-print-icon {
    display: none !important;
  }

  .social-print-name {
    font-size: 9px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    grid-column: 2;
    grid-row: 1;
  }

  .social-print-url {
    font-size: 8px;
    color: #666;
    word-break: break-all;
    grid-column: 2;
    grid-row: 2;
  }

  /* Ensure two-column layout fits well */
  @media print and (max-width: 210mm) {
    .bio-intro {
      grid-template-columns: 1fr !important;
      gap: 20px;
    }

    .bio-image {
      max-width: 250px;
      margin: 0 auto;
    }
  }

  /* Page Title QR Code - Positioned on left side of header */
  .page-title-qr-code {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 5px;
  }

  .page-title-qr-code .qr-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .page-title-qr-code .qr-image img,
  .page-title-qr-code .qr-image canvas {
    width: 50px !important;
    height: 50px !important;
    display: block;
  }

  .page-title-qr-code .qr-url {
    font-size: 9px;
    color: #666;
    word-break: break-all;
    max-width: 150px;
    line-height: 1.3;
    text-align: center;
  }

  /* No extra padding needed - QR code is in header now */
  #works,
  .events-section,
  .bio-section,
  .work-detail,
  .contact-section {
    position: relative;
    padding-top: 0;
  }
}
