/* =========================================
   1. FONTS & BASE SETTINGS
   ========================================= */

@font-face {
  font-family: 'High Tower';
  src: url('/font/HighTowerText-Reg.woff2') format('woff2'),
    url('/font/HighTowerText-Reg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cascadia Code';
  src: url('/font/CascadiaCode-Regular.woff2') format('woff2'),
    url('/font/CascadiaCode-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Cascadia Code', monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

body.preload * {
  transition: none !important;
}

/* Prevent body scroll when menu or viewer is open */
body.menu-open,
body.image-viewer-open {
  overflow: hidden;
}

iframe {
  max-width: 100%;
  border: none;
}

/* =========================================
   2. GLOBAL LAYOUT
   ========================================= */

.container {
  width: 95%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 480px) {

  .container,
  .expo-main,
  .bio-main,
  .info-main,
  .gallery-container,
  .route-description,
  .route-container,
  .content-wrapper,
  .store-header,
  .content-container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .container {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .expo-main,
  .bio-main,
  .info-main {
    margin: 48px auto;
  }
}


/* Spacer/Separator utility */
.separator {
  margin: 0 12px;
  color: #444;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */

/* --- Main Header Layout --- */
.main-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  position: relative;
}

/* --- Logo --- */
.nav-logo {
  width: 100%;
  max-width: 150px;
}


.nav-logo img {
  width: 100%;
  height: auto;
}

.main-header .logo {
  width: 90%;
  max-width: 770px;
  position: relative;
}


.main-header .logo h1 {
  margin: 0;
}

.main-header .logo img {
  width: 100%;
  height: auto;
}

/* --- Nav Wrapper (Used in subpages) --- */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  height: 60px;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.nav-wrapper>div:first-child {
  width: auto;
  max-width: 150px;
}

/* --- Back Link --- */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B1215;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
  color: #8b8b8b;
}

.back-link svg {
  width: 24px;
  height: 24px;
}


/* --- Main Navigation (Desktop) --- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  align-items: center;
  gap: 32px;
}

.main-header .main-nav {
  width: 100%;
  max-width: 1200px;
  margin-top: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-header .main-nav ul {
  font-family: "High Tower", serif;
  width: 100%;
  justify-content: center;
  gap: 64px;
}

.main-header .main-nav li {
  font-size: 1.75rem;
  letter-spacing: 0.2rem;
}

/* --- Language Flags --- */
.nav-flags {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 24px;
}

.nav-flags a {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.nav-flags a:hover {
  opacity: 0.7;
}

.flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main-nav li {
  /* Removed large fixed margins to allow space-between to work without overflow */
  margin: 0;
  font-family: 'High Tower', serif;
  font-size: 1.1rem;
}

.main-nav a {
  color: #0B1215;
  text-decoration: none;
  transition: all 0.1s ease;
  display: inline-block;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #8b8b8b;
  transform: scale(1.05);
}

.main-nav a.active {
  text-decoration: underline;
}

/* --- Language Switcher --- */
.language-switcher {
  margin-top: 48px;
  text-align: center;
  z-index: 10;
}

.language-switcher a {
  font-family: 'High Tower', serif;
  font-size: 1.2rem;
  color: #0B1215;
  text-decoration: none;
  margin: 0 12px;
  transition: all 0.1s ease;
}

.language-switcher a:hover {
  color: #8b8b8b;
  transform: scale(1.05);
}

.language-switcher a.active {
  text-decoration: underline;
}

/* Hide language switcher when menu is open */
body.menu-open .language-switcher {
  display: none;
}

.hamburger-menu {
  display: none;
  /* Hidden by default on desktop */
  width: 18px;
  height: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  flex: 0 0 18px;
  /* Strictly prevent stretching */
}

.hamburger-menu span {
  width: 100%;
  height: 2px;
  background-color: #0B1215;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}

.hamburger-menu span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
  bottom: 0;
}

/* Hamburger Active Animation */
.hamburger-menu.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu-overlay nav li {
  margin: 2rem 0;
}

.menu-overlay nav a {
  font-family: 'High Tower', serif;
  font-size: 2rem;
  color: #0B1215;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-overlay nav a:hover {
  color: #8b8b8b;
}

.menu-overlay nav a.active {
  text-decoration: underline;
}


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


/* --- Header & Nav Responsiveness --- */

/* Tablets portrait and larger phones (Max 1240px) */
/* Large Tablets / Laptops (Landscape iPad Pro) */
@media (max-width: 1450px) {
  .nav-wrapper {
    gap: 60px;
    padding: 0 12px;
  }

  .nav-wrapper>div:first-child {
    width: auto;
    max-width: 150px;
  }

  .nav-logo {
    width: 100%;
    max-width: 150px;
  }


  .nav-wrapper .main-nav ul {
    justify-content: flex-end;
    gap: 24px;
  }

  .nav-wrapper .main-nav li {
    font-size: 1.3rem;
    margin: 0;
  }
}

/* Tablets portrait and larger phones (Max 1240px) */
@media (max-width: 1240px) {
  .nav-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    padding: 0;
  }

  .nav-wrapper>div:first-child {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2006;
  }

  .nav-logo {
    width: auto;
    max-width: 120px;
    margin: 0;
    display: block;
  }

  .nav-right {
    position: absolute;
    width: 0;
    height: 0;
    overflow: visible;
  }

  /* Hide desktop navigation menu elements */
  .nav-wrapper .main-nav ul,
  .nav-wrapper .main-nav .nav-flags {
    display: none;
  }

  .main-header .main-nav {
    display: none;
  }

  .main-header .hamburger-menu {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    z-index: 2005;
  }

  /* Header safe-area background on scroll */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%);
    z-index: 2004;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out, transform 0.2s ease-out;
  }

  body.scrolled::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-wrapper .hamburger-menu {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    z-index: 2005;
  }

  .nav-wrapper .back-link {
    display: flex;
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 2005;
  }

  /* Hide navigation elements when image viewer is open */
  body.image-viewer-open::before,
  body.image-viewer-open .hamburger-menu,
  body.image-viewer-open .back-link {
    display: none !important;
  }

  .language-switcher {
    margin-top: 24px;
    z-index: 2000;
    position: relative;
  }
}

/* Tablets and smaller desktops (Max 1024px) */
@media (max-width: 1024px) {
  .nav-wrapper {
    gap: 24px;
    align-items: center;
  }

  .nav-wrapper>div:first-child {
    width: 150px;
    display: flex;
    align-items: center;
  }

  .nav-logo {
    width: 150px;
  }

  .main-nav li {
    font-size: 1.5rem;
    margin-right: 12px;
    margin-left: 12px;
  }

  /* Main Header Responsive */
  .main-header .logo {
    width: 600px;
    max-width: 90vw;
  }

  .main-header .main-nav {
    display: none;
  }

  .main-header .main-nav ul {
    font-size: 2rem;
    letter-spacing: 0.2rem;
    width: 100%;
  }

  .main-header .main-nav li {
    font-size: 2rem;
  }

  .main-header .nav-wrapper {
    height: auto;
    padding: 1rem 0;
  }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
  .main-header .logo {
    width: 500px;
    max-width: 85vw;
  }

  .main-header .main-nav {
    display: none;
  }

  .main-header .main-nav ul {
    font-size: 1.75rem;
    letter-spacing: 0.15rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .main-header .main-nav li {
    font-size: 1.75rem;
    margin: 0.5rem;
  }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .nav-logo {
    max-width: 40vw;
  }

  .main-header .container {
    min-height: 100vh;
  }

  .main-header .logo {
    width: 100%;
    max-width: 70vw;
  }

  .main-header .main-nav {
    display: none;
  }

  .main-header .main-nav ul {
    font-size: 1rem;
    letter-spacing: 0.05rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .main-header .main-nav li {
    margin: 0.25rem 0;
  }

  .main-header .main-nav a {
    padding: 0.5rem 1rem;
  }

  .main-header .hamburger-menu {
    top: 24px;
    right: 24px;
  }
}


/* =========================================
   4. SHARED COMPONENTS
   ========================================= */

/* --- Image Viewer Overlay --- */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 18, 21, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2000;
}

.image-viewer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-viewer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 20px;
}

.image-viewer-content {
  width: 90vw;
  height: 80vh;
  /* Reduced height to make room for button */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.request-details-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: white;
  color: #0B1215;
  font-family: 'Cascadia Code', monospace;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid white;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 2002;
}

.request-details-btn:hover {
  background-color: #0B1215;
  color: white;
  transform: translateY(-2px);
}

.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 2001;
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.image-viewer-close span {
  color: white;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

/* --- Navigation Buttons --- */
.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 2001;
  color: white;
  font-size: 24px;
}

.image-viewer-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.image-viewer-nav.prev {
  left: 40px;
}

.image-viewer-nav.next {
  right: 40px;
}

@media (max-width: 768px) {
  .image-viewer-nav {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .image-viewer-nav.prev {
    left: 10px;
  }

  .image-viewer-nav.next {
    right: 10px;
  }

  .image-viewer-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
}

/* --- Content Blocks (Artwork Display) --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px - 36px);
  padding: 40px 0;
  gap: 24px;
}

.store-header {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 32px;
}



.store-address {
  font-family: 'High Tower', serif;
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0;
}

.store-header h1 {
  font-family: 'High Tower', serif;
  font-size: 1.75rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.link-shop a {
  color: black;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.link-shop a:hover {
  transform: translateX(10px);
}

.content-container {
  width: 100%;
  max-width: 1200px;
  min-height: 55vh;
  height: auto;
  display: flex;
  gap: 24px;
  align-items: stretch;
}




.content-left {
  min-height: 55vh;
  width: 40%;
  max-width: 60%;
  flex-shrink: 0;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: opacity 0.2s ease;
}


.content-left:hover {
  opacity: 0.9;
}

.content-right {
  flex: 1;
  padding: 48px 48px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* artwork-details pins to bottom, aligned with image base */
  gap: 0;
}

.artwork-info h1 {
  font-size: 2rem;
  font-weight: normal;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.artwork-info h2 {
  font-size: 1.5rem;
  font-weight: normal;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.artwork-info p {
  margin: 12px 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Standalone description block — sits below content-container, same max-width */
.artwork-description {
  font-family: 'Cascadia Code', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  margin-top: 48px;
  width: 100%;
  max-width: 1200px;
  padding: 0;
  /* Reduced gap below content-container on desktop */
  box-sizing: border-box;
}

/* Content Responsive */
@media (max-width: 1024px) {
  .content-wrapper {
    min-height: auto;
    padding: 48px 0 24px 0;
  }

  .content-container {
    width: 95%;
    height: auto;
    min-height: 55vh;
  }

  .store-header {
    width: 95%;
  }

  .store-header h1 {
    font-size: 1.5rem;
  }

  .store-address {
    font-size: 1.25rem;
  }

  .route-description-work {
    width: 95%;
  }




  .content-left {
    min-width: 40%;
  }

  .content-right {
    padding: 36px 36px 0 36px;
  }

  .artwork-info h1 {
    font-size: 1.75rem;
  }

  .artwork-info h2 {
    font-size: 1.35rem;
  }

  .artwork-info p {
    font-size: 1rem;
  }

  .artwork-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 920px) {
  .content-wrapper {
    padding: 24px 0;
  }

  .content-container {
    width: 100%;
    flex-direction: column;
    height: auto;
    gap: 24px;
  }

  .store-header {
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
  }

  .store-header h1 {
    font-size: 1.25rem;
  }

  .store-address {
    font-size: 1rem;
  }

  .route-description-work {
    width: 100%;
    box-sizing: border-box;
  }

  .route-description-work p {
    font-size: 0.85rem;
    padding: 16px 24px;
  }





  .content-left {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    background-size: contain;
  }

  .content-right {
    padding: 24px 24px;
    /* Side padding to align with image */
    justify-content: flex-start;
    /* Reset: details at top on mobile */
    min-height: auto;
  }

  /* On mobile, artwork-description sits outside the container
     — add matching side padding so it aligns with the content above */
  .artwork-description {
    padding: 16px 24px 0 24px;
    max-width: 100%;
  }

  .artwork-info h1 {
    font-size: 1.5rem;
  }

  .artwork-info h2 {
    font-size: 1.2rem;
  }

  .artwork-info p {
    font-size: 0.95rem;
  }

  .artwork-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .content-left {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    height: 40vh;
    min-height: 250px;
    background-size: contain;
  }

  .content-right {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px 0;
    gap: 24px;
  }

  .artwork-info h1 {
    font-size: 1.3rem;
  }

  .artwork-info h2 {
    font-size: 1.1rem;
  }

  .artwork-info p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .artwork-description {
    font-size: 0.8rem;
    line-height: 1.6;
  }
}


/* --- Gallery Grid --- */
.gallery-container {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}


.gallery-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px - 36px);
}

.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.3s ease;
  cursor: pointer;
  filter: grayscale(100%);
  text-decoration: none;
}

.gallery-item:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Images Assignments */
/* Using both nth-child for Grid and specific classes for individual pages if needed */
.gallery-item:nth-child(1),
.work-1-image {
  background-image: url('/assets/gallery/01.webp');
}

.gallery-item:nth-child(2),
.work-2-image {
  background-image: url('/assets/gallery/02.webp');
}

.gallery-item:nth-child(3),
.work-3-image {
  background-image: url('/assets/gallery/03.webp');
}

.gallery-item:nth-child(4),
.work-4-image {
  background-image: url('/assets/gallery/04.webp');
}

.gallery-item:nth-child(5),
.work-5-image {
  background-image: url('/assets/gallery/05.webp');
}

.gallery-item:nth-child(6),
.work-6-image {
  background-image: url('/assets/gallery/06.webp');
}

.gallery-item:nth-child(7),
.work-7-image {
  background-image: url('/assets/gallery/07.webp');
}

.gallery-item:nth-child(8),
.work-8-image {
  background-image: url('/assets/gallery/08.webp');
}

.gallery-item:nth-child(9),
.work-9-image {
  background-image: url('/assets/gallery/09.webp');
}

.gallery-item:nth-child(10),
.work-10-image {
  background-image: url('/assets/gallery/10.webp');
}

.gallery-item:nth-child(11),
.work-11-image {
  background-image: url('/assets/gallery/11.webp');
}

.gallery-item:nth-child(14),
.work-11-2-image {
  background-image: url('/assets/gallery/11-2.webp');
}

.gallery-item:nth-child(12),
.work-12-image {
  background-image: url('/assets/gallery/12.webp');
}

.gallery-item:nth-child(13),
.work-13-image {
  background-image: url('/assets/gallery/13.webp');
}

/* Gallery Responsive */
@media (max-width: 1200px) {
  .gallery-container {
    grid-template-columns: repeat(4, 1fr);
    width: 95%;
  }
}

@media (max-width: 920px) {
  .gallery-container {
    margin-top: 36px;
  }
}

@media (max-width: 640px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    height: auto;
  }

  .gallery-item {
    background-size: contain;
  }
}


/* --- Route / Window Project --- */
.route-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px - 36px);
  padding: 40px 0;
}

.route-description {
  width: 100%;
  max-width: 1200px;
  margin-top: 48px;
  margin-bottom: 48px;
}


.route-description-work {
  background-color: #0B1215;
  width: 100%;
  max-width: 1200px;
  margin-top: 24px;
  margin-bottom: 48px;
}


.route-description-work p {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #eee;
  margin: 0;
}

.route-description p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}


.route-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 48px;
}


.route-item {
  flex: 0 0 auto;
}

.route-list {
  flex: 1;
  height: 600px;
  /* Matches iframe height */
}

.route-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.route-list li {
  font-size: 1.25rem;
  margin: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.route-list a {
  text-decoration: none;
  color: #0B1215;
  display: block;
  transition: padding-left 0.2s ease;
}

.route-list a:hover {
  padding-left: 12px;
}

/* Route Responsive */
@media (max-width: 1240px) {
  .route-description {
    width: 90vw;
  }

  .route-container {
    width: 90vw;
    height: auto;
    min-height: 50vh;
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }


  .route-container iframe {
    width: 90vw !important;
    height: 400px !important;
  }

  .route-list {
    width: 100%;
    height: auto;
  }

  .route-list ul {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 0;
  }

  .route-list li {
    margin-bottom: 12px;
  }
}

@media (max-width: 620px) {
  .route-list ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .route-container iframe {
    width: 90vw !important;
    height: 300px !important;
  }
}


/* =========================================
   5. PAGE SPECIFIC STYLES
   ========================================= */

/* --- Expo Page --- */
.expo-main {
  width: 95%;
  max-width: 1200px;
  margin: 72px auto;
  padding: 0 24px;
}


.featured-expo {
  display: flex;
  gap: 72px;
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
}

.expo-poster {
  flex: 1;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(11, 18, 21, 0.1);
  transition: transform 0.5s ease;
}

.expo-poster:hover {
  transform: translateY(-10px);
}

.expo-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.expo-info {
  flex: 1;
}

.expo-status {
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  color: #8b8b8b;
  margin-bottom: 24px;
}

.expo-title {
  font-size: 4rem;
  font-weight: normal;
  margin: 0 0 24px 0;
  letter-spacing: 0.1rem;
}

.expo-date {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.expo-location {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 36px;
}

.expo-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  max-width: 500px;
}

.available-works {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 120px auto;
  padding-top: 60px;
  border-top: 1px solid #eee;
}

.available-works h2 {
  font-weight: normal;
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  margin-bottom: 24px;
}

.available-works p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
  margin: 12px 0;
}

.available-works a {
  color: #0B1215;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.available-works a:hover {
  opacity: 0.7;
}

.upcoming-expos {
  border-top: 1px solid #eee;
  padding-top: 60px;
}

.upcoming-expos h2 {
  font-weight: normal;
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  margin-bottom: 40px;
}

.expo-list-item {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 1.25rem;
  transition: padding-left 0.3s ease;
}

.expo-list-item:hover {
  padding-left: 24px;
  background-color: #fafafa;
}

.expo-list-date {
  color: #8b8b8b;
  width: 150px;
}

.expo-list-title {
  flex: 1;
}

/* Expo Responsive */
@media (max-width: 920px) {
  .featured-expo {
    margin-top: 36px;
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }

  .expo-poster {
    max-width: 400px;
  }

  .expo-title {
    font-size: 3rem;
  }

  .expo-description {
    margin: 0 auto;
  }

  .expo-list-item {
    font-size: 1.1rem;
  }
}

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

  .expo-list-item {
    flex-direction: column;
    gap: 8px;
  }

  .expo-list-date {
    font-size: 0.9rem;
  }
}


/* --- Bio Page --- */
.bio-main {
  width: 95%;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}


.bio-intro {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 72px;
}

.bio-artwork {
  flex: 0 0 350px;
  box-shadow: 0 15px 30px rgba(11, 18, 21, 0.1);
}

.bio-artwork img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

.bio-header {
  flex: 1;
}

.bio-name {
  font-size: 4rem;
  font-weight: normal;
  margin: 0 0 24px 0;
  letter-spacing: 0.2rem;
}

.bio-subtitle {
  font-size: 1.5rem;
  color: #8b8b8b;
  margin: 0;
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.bio-section h2 {
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  color: #8b8b8b;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.bio-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 24px;
}

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

.bio-list li {
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.bio-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #8b8b8b;
}

/* Bio Responsive */
@media (max-width: 920px) {
  .bio-intro {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .bio-artwork {
    flex: 0 0 auto;
    max-width: 400px;
  }

  .bio-name {
    font-size: 3rem;
  }

  .bio-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .bio-name {
    font-size: 2.5rem;
  }

  .bio-subtitle {
    font-size: 1.2rem;
  }
}


/* --- Info / Contact Page --- */
.info-main {
  width: 95%;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}


.info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.info-section h2 {
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  color: #8b8b8b;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  font-family: 'Cascadia Code', monospace;
}

.info-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 24px;
}

.contact-email a {
  color: #0B1215;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.contact-email a:hover {
  opacity: 0.7;
}

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

.info-links li {
  margin-bottom: 12px;
}

.info-links a {
  color: #333;
  text-decoration: none;
  font-size: 1.15rem;
  transition: padding-left 0.3s ease;
}

.info-links a:hover {
  padding-left: 12px;
  color: #0B1215;
}

/* Info Responsive */
@media (max-width: 768px) {
  .info-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .info-column {
    gap: 48px;
  }

  .info-main {
    margin: 48px auto;
  }
}

/* --- Expo Page Gallery Images --- */
.expo-main .gallery-item:nth-child(1) {
  background-image: url('https://picsum.photos/id/10/420/594');
}

.expo-main .gallery-item:nth-child(2) {
  background-image: url('https://picsum.photos/id/11/420/594');
}

.expo-main .gallery-item:nth-child(3) {
  background-image: url('https://picsum.photos/id/12/420/594');
}

.expo-main .gallery-item:nth-child(4) {
  background-image: url('https://picsum.photos/id/13/420/594');
}

.expo-main .gallery-item:nth-child(5) {
  background-image: url('https://picsum.photos/id/14/420/594');
}

.expo-main .gallery-item:nth-child(6) {
  background-image: url('https://picsum.photos/id/15/420/594');
}

.expo-main .gallery-item:nth-child(7) {
  background-image: url('https://picsum.photos/id/16/420/594');
}

.expo-main .gallery-item:nth-child(8) {
  background-image: url('https://picsum.photos/id/17/420/594');
}

.expo-main .gallery-item:nth-child(9) {
  background-image: url('https://picsum.photos/id/18/420/594');
}

.expo-main .gallery-item:nth-child(10) {
  background-image: url('https://picsum.photos/id/19/420/594');
}

.expo-main .gallery-item:nth-child(11) {
  background-image: url('https://picsum.photos/id/20/420/594');
}

.expo-main .gallery-item:nth-child(12) {
  background-image: url('https://picsum.photos/id/21/420/594');
}

.expo-main .gallery-item:nth-child(13) {
  background-image: url('https://picsum.photos/id/22/420/594');
}

.expo-main .gallery-item:nth-child(14) {
  background-image: url('https://picsum.photos/id/23/420/594');
}

.expo-main .gallery-item:nth-child(15) {
  background-image: url('https://picsum.photos/id/24/420/594');
}

.expo-main .gallery-item:nth-child(16) {
  background-image: url('https://picsum.photos/id/25/420/594');
}

.expo-main .gallery-item:nth-child(17) {
  background-image: url('https://picsum.photos/id/26/420/594');
}

.expo-main .gallery-item:nth-child(18) {
  background-image: url('https://picsum.photos/id/27/420/594');
}

.expo-main .gallery-item:nth-child(19) {
  background-image: url('https://picsum.photos/id/28/420/594');
}

.expo-main .gallery-item:nth-child(20) {
  background-image: url('https://picsum.photos/id/29/420/594');
}

.expo-main .gallery-item:nth-child(21) {
  background-image: url('https://picsum.photos/id/30/420/594');
}

.expo-main .gallery-item:nth-child(22) {
  background-image: url('https://picsum.photos/id/31/420/594');
}

.expo-main .gallery-item:nth-child(23) {
  background-image: url('https://picsum.photos/id/32/420/594');
}

.expo-main .gallery-item:nth-child(24) {
  background-image: url('https://picsum.photos/id/33/420/594');
}

.expo-main .gallery-item:nth-child(25) {
  background-image: url('https://picsum.photos/id/34/420/594');
}

.expo-main .gallery-item:nth-child(26) {
  background-image: url('https://picsum.photos/id/35/420/594');
}

.expo-main .gallery-item:nth-child(27) {
  background-image: url('https://picsum.photos/id/36/420/594');
}

.expo-main .gallery-item:nth-child(28) {
  background-image: url('https://picsum.photos/id/37/420/594');
}

.expo-main .gallery-item:nth-child(29) {
  background-image: url('https://picsum.photos/id/38/420/594');
}

.expo-main .gallery-item:nth-child(30) {
  background-image: url('https://picsum.photos/id/39/420/594');
}

.expo-main .gallery-item:nth-child(31) {
  background-image: url('https://picsum.photos/id/40/420/594');
}

.expo-main .gallery-item:nth-child(32) {
  background-image: url('https://picsum.photos/id/41/420/594');
}

.expo-main .gallery-item:nth-child(33) {
  background-image: url('https://picsum.photos/id/42/420/594');
}

.expo-main .gallery-item:nth-child(34) {
  background-image: url('https://picsum.photos/id/43/420/594');
}

.expo-main .gallery-item:nth-child(35) {
  background-image: url('https://picsum.photos/id/44/420/594');
}

.expo-main .gallery-item:nth-child(36) {
  background-image: url('https://picsum.photos/id/45/420/594');
}

.expo-main .gallery-item:nth-child(37) {
  background-image: url('https://picsum.photos/id/46/420/594');
}

.expo-main .gallery-item:nth-child(38) {
  background-image: url('https://picsum.photos/id/47/420/594');
}

.expo-main .gallery-item:nth-child(39) {
  background-image: url('https://picsum.photos/id/48/420/594');
}

.expo-main .gallery-item:nth-child(40) {
  background-image: url('https://picsum.photos/id/49/420/594');
}

/* --- Work Page Coming Soon --- */
.coming-soon-work {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px - 48px);
  text-align: center;
}







/* Update: Work Page Layout Fix (Responsive) */

/* Desktop Rule */
@media (min-width: 921px) {
  .content-left {
    width: 40% !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: auto !important;
    min-height: 55vh;
  }

  .content-left img {
    max-height: 55vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

/* Mobile/Tablet Rule (Text under image) */
@media (max-width: 920px) {
  .content-left {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    margin-bottom: 24px;
    padding: 0;
    /* Align with edge or text? content-right has padding 24px 0 */
  }

  .content-left img {
    width: 100% !important;
    /* Force width match */
    height: auto !important;
    max-height: 80vh !important;
    /* Prevent infinite height */
    object-fit: contain;
    /* Ensure full image visible */
    display: block;
    margin: 0 auto;
  }
}


/* Swiper Styling - Gallery */
.gallery-wrapper {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh !important;
  width: 100%;
  padding-bottom: 0;
  margin-top: 80px;
}

/* 
   Carousel Container: 
   - Max width = 1200px content + 160px for buttons (80px each side) = 1360px.
   - Padding creates the gutter for buttons. 
   - Slides live in the center.
*/
.swiper {
  width: 100% !important;
  max-width: 1360px !important;
  height: 55vh;
  padding: 0 80px !important;
  box-sizing: border-box;
  overflow: hidden !important;
  /* contain the whole thing */
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: auto !important;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}

.swiper-slide img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  cursor: zoom-in;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Buttons: Positioned in the padding area */
.swiper-button-next,
.swiper-button-prev {
  color: black !important;
  width: 40px !important;
  height: 40px !important;
  background: white !important;
  border-radius: 50%;
  font-weight: bold;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  /* Center the icon */
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
}

.swiper-button-prev {
  left: 20px !important;
}

.swiper-button-next {
  right: 20px !important;
}

/* Pagination Dots */
.swiper-pagination-bullet {
  background: black !important;
  opacity: 0.3;
  width: 8px;
  height: 8px;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: black !important;
}

.swiper-pagination {
  bottom: 0px !important;
  /* Inside the area */
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .swiper {
    padding: 0 !important;
    /* Full width on mobile */
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
    /* Hide buttons as requested */
  }
}


/* --- Shared Photo Gallery Grid (Expo & Gallery Pages) --- */
.gallery-container,
.gallery-wrapper #expo-gallery {
  display: grid !important;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-flow: dense;
  margin-top: 0 !important;
  width: 100%;
}

.gallery-container .gallery-item,
.gallery-wrapper #expo-gallery .gallery-item {
  width: 100%;
  position: relative;
  overflow: hidden;
  grid-column: span 1;
  grid-row: span 1;
  aspect-ratio: 4 / 5;
  /* Refined ratio to prevent vertical oversizedness */
}

.gallery-container .gallery-item:hover,
.gallery-wrapper #expo-gallery .gallery-item:hover {
  transform: scale(1.02);
  z-index: 5;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-container .gallery-item img,
.gallery-wrapper #expo-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modular Variations for Shared Grid (Refined 5-column) */
.gallery-container .gallery-item:nth-child(7n + 1),
.gallery-wrapper #expo-gallery .gallery-item:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-container .gallery-item:nth-child(13n + 5),
.gallery-wrapper #expo-gallery .gallery-item:nth-child(13n + 5) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 1024px) {

  .gallery-container,
  .gallery-wrapper #expo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 640px) {

  .gallery-container,
  .gallery-wrapper #expo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-container .gallery-item:nth-child(7n + 1),
  .gallery-wrapper #expo-gallery .gallery-item:nth-child(7n + 1),
  .gallery-container .gallery-item:nth-child(13n + 5),
  .gallery-wrapper #expo-gallery .gallery-item:nth-child(13n + 5) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* --- Fix: Work Page Mobile Layout Alignment --- */
/* Match padding of content-right EXACTLY and force full width image */

@media (max-width: 920px) {

  /* Tablet/Small Desktop Padding Match */
  .content-left {
    padding: 0 24px !important;
    box-sizing: border-box;
    margin-bottom: 24px;
    width: 100% !important;
    display: block !important;
    height: auto !important;
    min-height: auto !important;
  }

  .content-left img {
    width: 100% !important;
    /* Force full width alignment */
    height: 60vh !important;
    /* Constrain height to avoid huge vertical scroll */
    max-height: 800px !important;
    margin: 0 auto;
    display: block;
    object-fit: cover !important;
    /* CROP image to fill width/height box without distortion */
    object-position: center top;
    /* Focus on top/center of artwork */
  }
}

@media (max-width: 480px) {

  /* Mobile padding changes */
  .content-left {
    padding: 0 24px !important;
  }

  .content-left img {
    height: 50vh !important;
    /* Smaller fixed height on mobile */
  }
}

/* Force Hide Carousel Buttons on Tablet/Mobile */
@media (max-width: 1024px) {

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* =========================================
   ARTWORK DETAILS — Museum / Gallery Label
   ========================================= */
.artwork-details {
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #d0c9be;
}

.artwork-details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
}

.artwork-details dt {
  font-family: 'High Tower Text', 'Book Antiqua', Palatino, serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7f74;
  padding-top: 2px;
  white-space: nowrap;
}

.artwork-details dd {
  font-family: 'Cascadia Code', 'Cascadia Mono', 'Consolas', monospace;
  font-size: 0.82rem;
  color: #2a2420;
  margin: 0;
  line-height: 1.5;
}

.artwork-details dd em {
  font-style: italic;
}

@media (max-width: 480px) {
  .artwork-details dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .artwork-details dt {
    margin-top: 10px;
  }

  .artwork-details dt:first-child {
    margin-top: 0;
  }
}