/* Add drop shadow to artwork images */
.artwork img {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}
@media screen and (orientation: landscape) {
  body {
    scroll-behavior: auto;
    overflow-anchor: none;
  }
}
/* Landscape orientation with max-width 1000px: adjust artwork-container and #allthepeople spacing */
@media screen and (orientation: landscape) and (max-width: 1000px) {
  .artwork-container {
    margin-top: 60px; /* Add consistent spacing from top image */
    scroll-margin-top: 60px;
  }

  #allthepeople {
    margin-bottom: 40px; /* Ensure buffer between top artwork and welcome image */
  }
}
/* --- Custom Loading Screen Styles --- */
.loading-screen {
  background-color: #cacaca;
}

.loading-logo-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loading-logo {
  max-width: 80%;
  clip-path: inset(0 100% 0 0);
  animation: revealLogo 2s ease-out forwards;
}

@keyframes revealLogo {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.loading-text {
  color: rgb(126, 126, 126);
  font-weight: bold;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0% { content: 'Loading'; }
  25% { content: 'Loading.'; }
  50% { content: 'Loading..'; }
  75% { content: 'Loading...'; }
}
#ending-image fade-in and visibility
#ending-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#ending-image.fade-in {
  opacity: 1;
}

body.fade-black {
  background-color: black;
  transition: background-color 1s ease-in-out;
}

body.fade-white {
  background-color: white;
  transition: background-color 1s ease-in-out;
}
/* Hamburger and menu-panel color override for dark-background on body */
body.dark-background .menu-icon div {
  background-color: white;
}

body.dark-background .menu-panel a {
  color: white;
}

body.dark-background .close-icon {
  color: white;
}
/* Fade-in effect for general use */
/* Fade-in effect: initial state and visible state for scroll-triggered fade-ins */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#allthepeople-image,
#intent {
  opacity: 0;
  transform: translateY(20px);
}
/* Fade-in effect for #allthepeopletogether and .intent */
/* Fade-in effect for .allthepeople and .intent */
.allthepeople,
.intent {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 2s ease, transform 2s ease;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0px);
  transition: opacity 2s ease, transform 2s ease;
}

/* Updated loading text styling */
#loading-text {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  font-size: 18px;
  color: rgb(124, 124, 124);
  animation: fadeDots 1.5s infinite;
  z-index: 1001;
}
.loading-container {
  position: fixed;
  inset: 0;
  background-color: #6b6b6b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

:root {
  --transition-fast: 0.3s ease;
  --transition-medium: 1s ease;
  --transition-slow: 4s ease-in-out;
  --menu-color: black;
}

body.black-background {
  --menu-color: white;
}
  
/* Floating hamburger header that hides on scroll down and fades back on scroll up */
/* Hamburger floating header: just position, no backdrop, no glow */
/* Updated floating header for safe area + larger touch target */
.site-header.floating-header {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 44px);   /* respect iOS safe area + extra spacing */
  right: calc(env(safe-area-inset-right, 0px) + 44px);
  z-index: 1200;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: opacity .25s ease, transform .25s ease;
}
/* Hidden state when user scrolls down */
.site-header.floating-header.header-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
/* Hamburger icon: three black, thicker lines, no glass */
/* Hamburger: larger unclipped touch target and safe area */
/* Hamburger: floating, with precise bar placement via ::before, span, ::after */
.hamburger {
  appearance: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 0;
  opacity: 0.8;
  transition: opacity .2s ease;
  overflow: visible;
  outline-offset: 6px;
}
.hamburger:hover,
.hamburger:focus-visible { opacity: 1; }

/* Hamburger bars: use span for middle, ::before and ::after for top/bottom */
.hamburger span,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  width: 25px;
  height: 3px;
  background-color: var(--menu-color);
  border-radius: 2px;
  transform: translateX(-50%);
}

/* Middle bar */
.hamburger span {
  top: 50%;
  transform: translate(-50%, -50%);
  vertical-align: middle;
}

/* Top bar */
.hamburger::before {
  top: calc(50% - 8px); /* adjust spacing as needed */
  vertical-align: middle;
}

/* Bottom bar */
.hamburger::after {
  top: calc(50% + 8px); /* adjust spacing as needed */
  vertical-align: middle;
}

/* Precise placement using top offset only */
.hamburger::before {
  top: calc(50% - 7px);
}
.hamburger::after {
  top: calc(50% + 7px);
}
/* Hamburger X transform for open state */
.hamburger[aria-expanded="true"]::before {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span {
  opacity: 0;
}
.hamburger[aria-expanded="true"]::after {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* Hamburger bar color transition and white override for dark backgrounds */
.hamburger span,
.hamburger::before,
.hamburger::after {
  transition: background-color 0.5s ease;
}
body.black-bg .hamburger span,
body.black-bg .hamburger::before,
body.black-bg .hamburger::after {
  background-color: white;
}

/* Slide-down panel */
.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  /* Remove background, box-shadow, and heavy border for minimal/transparent look */
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-width: 120px;
  box-shadow: none;
  transform-origin: top right;
  transform: scale(0.98) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 7001;
  pointer-events: auto;
}
.menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.menu-panel .nav-link {
  display: block;
  color: #111; /* readable on transparent/white background */
  text-decoration: none;
  font: 600 1rem/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding: .32rem .5rem;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: color .15s;
}
/* Minimal hover/active: underline text only, no background */
.menu-panel .nav-link:hover,
.menu-panel .nav-link:focus-visible {
  text-decoration: underline;
  background: none;
  outline: none;
}
.menu-panel .nav-link[aria-current="page"] {
  text-decoration: underline;
  font-weight: 700;
  background: none;
}
/* Keep old selector for anchor scroll margin to avoid content jumping on link */
#welcome-section { scroll-margin-top: 1.3cm; }
  
  html {
    scroll-behavior: smooth;
  }
  
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: white;
  overflow-y: scroll;
  transition: background-color 1.5s ease;
}

.black-bg {
  background-color: black;
}

.white-bg {
  background-color: white;
}
  
  /* Preloader */
  #preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 2000;
    display: flex;
    transition: opacity var(--transition-medium);
    will-change: opacity;
    justify-content: center;
    align-items: center;
  }

  /* Starburst loader */
  #loader-star {
    position: relative;
    width: 400px;
    height: 400px;
  }
  #loader-star .line {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 6px;
    background: #fff;
    transform-origin: bottom center;
    transform: rotate(var(--angle));
    height: 0;
    transition: height var(--transition-fast);
  }
  
.loading-text {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  font-weight: bold;
  font-size: 1.2em;
  animation: dots 1.5s steps(1, end) infinite;
}
@keyframes dots {
  0%, 20% { content: "Loading"; }
  40% { content: "Loading."; }
  60% { content: "Loading.."; }
  80%, 100% { content: "Loading..."; }
}

#welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 50px;
}
  #welcome-text-container {
    position: relative;
    text-align: center;
  }
  .welcome-text {
    font-size: 2rem;
    font-weight: bold;
    color: lightgrey;
    margin: 10px;
    line-height: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: transform, opacity;
  }
  
  /* Hero image overlay */
  #fade-in-image {
    position: absolute;
    opacity: 0;
    transition: opacity var(--transition-slow);
    will-change: opacity, top, left;
    width: 90%;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Artwork Section */
  .artwork-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .artwork {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.1);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    will-change: transform, opacity;
  }
  
  /* Scroll Indicator */
  #scroll-indicator {
    position: fixed;
    top: 0;
    right: 10px;
    width: 50px;
    height: 100vh;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
  }
  #scroll-indicator img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }
  
body.page-loaded {
    background-color: white;
}

#darrenhero {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

#darrenhero.fade-in {
  opacity: 1;
}

#darrenhero.fade-out {
  opacity: 0;
}

#iglogo {
  width: 20px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Added for menu contrast on hero image */
.white-bars {
  background-color: white !important;
}

.white-menu {
  color: white !important;
}

.black-background {
  background-color: black !important;
  transition: background-color 1.5s ease;
}

/* Artwork container: transparent background, full width, pointer, with margin */
.artwork-container {
  position: relative;
  cursor: pointer;
  width: 100%;
  margin-bottom: 2rem;
  background-color: transparent;
}

.artwork-container img.artwork {
  display: block;
  max-width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
  margin: 0 auto;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
  background: transparent;
}

.artwork-container.flipped img.artwork {
  opacity: 0;
}

.artwork-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: -10px 10px 15px rgba(0, 0, 0, 0.3);
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-align: center;
  max-width: 100%;
  max-height: 100%;
  white-space: pre-line;
  box-sizing: border-box;
  font-weight: bold;
}

.artwork-container.flipped .artwork-info {
  opacity: 1;
  pointer-events: auto;
}

#artwork-section {
  display: block;
  padding: 2rem;
}

.artwork-title {
  display: block;
  font-size: 1.25em;
  font-weight: bold;
  margin: 0.5rem;
}

/* Fade to black when ending image comes into view */
/* Removed .dark-background class to rely on body background-color changes */

/* Mobile optimization for artwork description boxes */
@media (max-width: 600px) {
    .artwork-info {
        width: 80vw;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Add spacing for welcome/intent heading to avoid hamburger overlap on mobile */
@media (max-width: 768px) {
  #welcome-section .welcome-text,
  #welcome-section h1.welcome-text {
    margin-top: 60px;
  }
}

/* Grid gallery layout with enforced white background and two columns */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background-color: white;
  padding: 20px;
}
.grid-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

body.lightbox-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Lightbox overlay */
/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  padding-top: 0.5cm;
  touch-action: pinch-zoom;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox content container */
.lightbox-content {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  max-width: 85vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

#lightbox_title_text {
  margin: 1rem
}

/* Lightbox image styles */
.lightbox img,
.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  margin: 30px;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
}

/* Lightbox description styles */
/* Lightbox description: ensure max-width is 90% of image width, centered */
.lightbox-description {
  max-width: 100%;
  margin: 2rem 1rem;
  padding: 2rem 2.5rem;
  font-size: 0.95rem;
  color: #222;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
  word-break: break-word;
  line-height: 1.6;
}
.lightbox-text {
  margin: 1rem;
  padding: 1rem;
  font-size: smaller;
  color: #333;
  text-align: center;
  word-break: break-word;
}
@media (max-width: 768px) {
  .lightbox-description {
    font-size: 0.85rem;
    max-width: 98%;
  }
  .lightbox-text {
    font-size: 0.85rem;
    text-align: center;
  }
}

/* Grid gallery minimal lightbox (image only, no container, no description) */
.grid-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 78vw;
  height: 78vh;
  background: rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.grid-lightbox-image {
  max-width: 78vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: none !important;
  margin: 0 auto;
  display: block;
}
.grid-lightbox .lightbox-description,
.grid-lightbox .lightbox-content,
.grid-lightbox .lightbox-text {
  display: none !important;
}

/* Margin below #allthepeople image, and more in landscape on mobile */
#allthepeople {
  margin-bottom: 3rem;
}

@media (orientation: landscape) and (max-width: 768px) {
  #allthepeople {
    margin-bottom: 6rem;
  }
}

/* Footer styles */
.site-footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.instagram-link svg {
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  fill: currentColor;
}

.enter-3d-btn {
  appearance: none;
  border: none;
  background: #111;
  color: #fff;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.enter-3d-btn:hover { filter: brightness(1.1); }

  .studio-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 4000;
    outline: none;
    background: #eee;
  }
.hidden { display: none !important; }
body.in-3d { overflow: hidden; }

/* Step 1: Static Loader Overlay */
#studio-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#studio-loader-content {
  width: 50%;
  max-width: 400px;
  text-align: center;
}
#studio-loader-bar {
  width: 100%;
  height: 20px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
#studio-loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #4cafef, #8ec5fc);
}
#studio-loader-text {
  color: #fff;
  font-family: sans-serif;
  font-size: 1.2em;
}
/* Shared site loader: hidden by default; 3D code explicitly shows it */
#loader { 
  display: none;               /* prevent initial flash on home/about */
  background-color: black !important; 
  transition: opacity 0.5s ease; 
}
/* Ensure 3D canvas fades in when entering 3D */
body.in-3d .studio-canvas.visible { opacity: 1; }
/* About section placeholder */
.about-section {
  padding: 2rem 1rem;
  background: #111;
  color: #eee;
}
body.page-loaded .about-section { background: #f7f7f7; color:#111; }
.about-inner {
  max-width: 960px;
  margin: 0 auto;
}
.about-section h2 { margin: 0 0 .5rem 0; font-size: 1.6rem; }
.about-section p { margin: 0; line-height: 1.6; }

/* 3D Controls popup */
.controls-popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5003;
  background: rgba(0,0,0,0.35);
}
.controls-popup.hidden { display: none; }
.controls-card {
  background: rgba(20,20,20,0.88);
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  width: min(520px, 90vw);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
}
.controls-card h3 {
  margin: 0 0 .4rem 0;
  font-size: 1.25rem;
}
.controls-card p { margin: .25rem 0; }
.controls-card .hint { opacity: .85; font-size: .9rem; }
@media (max-width: 768px) {
  /* Never show on mobile */
  .controls-popup { display: none !important; }
}
/* About page enhanced layout */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.about-portrait {
  margin: 0;
  text-align: center;
}
.about-portrait img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.about-portrait figcaption {
  margin-top: .5rem;
  font-size: .95rem;
  color: #777;
}
.about-bio h2 {
  margin: 0 0 .5rem 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}
.about-bio p {
  margin: 0 0 1rem 0;
  line-height: 1.7;
}
.about-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.btn-link {
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: 10px;
  background: #111;
  color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.btn-link:hover { filter: brightness(1.08); }

.about-painting { margin: 2rem 0 0 0; text-align: center; }
.about-painting img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.2); }
.about-painting figcaption { margin-top: .4rem; color: #777; font-size: .95rem; }

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

/* Grid gallery: Load More button */
.grid-loadmore-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 2.5rem;
}
.load-more-btn {
  appearance: none;
  border: none;
  color: #000;
  background: #fff;
  padding: .6rem 1rem;
  border-radius: 12px;
  box-shadow: -6px 6px 12px rgba(0,0,0,0.18);
  font: 600 1rem/1 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease, transform .05s ease;
}
.load-more-btn:hover { background: #efefef; }
.load-more-btn:active { transform: translateY(1px); }

/* Added styles for menu contrast */
nav {
  transition: color 0.3s ease;
}

nav a {
  color: black;
  transition: color 0.3s ease;
}

nav.light-menu a {
  color: white !important;
}

/* Removed .dark-background class to rely on body background-color changes */
body.white-bg .menu a {
  color: black;
}

body.black-bg .menu a {
  color: white;
}

.menu a {
  transition: color 1s ease;
  color: black;
}

/* New classes for menu color states */
.menu {
  transition: color 0.5s ease;
}

.light-menu a {
  color: white;
}

.dark-menu a {
  color: black;
}

.menu-light {
  color: white;
  transition: color 1s ease;
}

.menu-light a {
  color: white !important;
  transition: color 1s ease;
}

.menu a {
  transition: color 1s ease;
  color: black;
}

.menu.menu-light a {
  color: white;
}

body.white-bg {
  background-color: white;
  transition: background-color 2.5s ease;
}

body.black-bg {
  background-color: black;
  transition: background-color 2.5s ease;
}

/* Added fade-to-black and fade-to-white background transitions and menu text color */
body {
  transition: background-color 1.5s ease;
}

body.fade-to-black {
  background-color: black;
}

body.fade-to-white {
  background-color: white;
}

body.fade-to-black nav a {
  color: white !important;
}

body.fade-to-white nav a {
  color: black !important;
}

/* Added styles for loading text under starburst */
@keyframes fadeDots {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* Hamburger and menu-panel color override for dark-background on body */
body.dark-background .menu-toggle span {
  background-color: white !important;
  transition: background-color 0.5s ease;
}

body.dark-background .menu-panel a {
  color: white !important;
  transition: color 0.5s ease;
}
/* Landscape mobile: adjust font, layout, lightbox for small heights */
@media screen and (orientation: landscape) and (max-height: 500px) {
  body {
    font-size: 0.9em;
    padding-bottom: 100px;
  }

  .lightbox img {
    max-height: 60vh;
    max-width: 90vw;
  }

  .lightbox-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    overflow-y: auto;
  }

  .lightbox-description {
    max-height: 35vh;
    overflow-y: auto;
    margin-top: 0.5rem;
    text-align: center;
  }

  .artwork {
    margin-bottom: 3rem;
  }

  .intent-text {
    margin-top: 2rem;
  }
}
/* Hamburger menu: disable menu links unless menu is open (for accessibility and interaction) */
.menu-panel {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-panel.open {
  pointer-events: auto;
  opacity: 1;
}
#allthepeople,
#fade-in-image,
.artwork-container img.artwork {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}
/* Apply stronger drop shadow to images inside the lightbox */

.lightbox-content img {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}
/* Reset excess margins and padding for artwork-container and surrounding elements on mobile */
@media (max-width: 600px) {
  .artwork-container {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  .artwork-container img.artwork {
    margin: 0 !important;
    display: block;
  }
}

/* Remove margin-bottom for artwork-container on mobile if present globally */
@media (max-width: 600px) {
  .artwork-container {
    margin-bottom: 0 !important;
  }
}