/* ==========================================================================
   Font Face Declarations
   ========================================================================== */

@font-face {
  font-family: 'Marlino Regular';
  src: url('/fonts/Marlino-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Intro Overlay Styles
   ========================================================================== */

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: white;
  opacity: 1;
  transition: opacity 1s ease-out;
  pointer-events: none;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   CSS Custom Properties (CSS Variables)
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Marlino Regular', sans-serif;
}

h2 {
  font-size: var(--font-size-h1);
}

:root {
  /* Colors */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #6a6a6a;
  --color-text-light: #b0b0b0;
  --color-background: #ffffff;
  --color-border: #d0d0d0;
  --color-border-light: #e8e8e8;
  --color-accent: #1a1a1a;
  --color-accent-hover: #4a4a4a;

  /* Typography - Unified System */
  --font-family-primary: 'Arial', sans-serif;
  --font-size-hero: clamp(2.5rem, 5vw, 4rem);
  --font-size-h1: clamp(2rem, 4vw, 3rem);
  --font-size-h2: clamp(1.5rem, 3vw, 2rem);
  --font-size-h3: 1.25rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-xs: 0.75rem;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  --letter-spacing-tight: 1px;
  --letter-spacing-normal: 2px;
  --letter-spacing-wide: 4px;
  --letter-spacing-wider: 8px;

  /* Spacing - Unified Scale */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;

  /* Layout */
  --container-max-width: 1200px;
  --sidebar-width: 250px;
  --sidebar-width-mobile: 200px;
  --menu-toggle-size: 36px;

  /* Transitions - Unified Easing */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-index-menu: 1001;
  --z-index-sidebar: 1000;

  /* Mobile specific */
  --works-height-mobile: 70lvh;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  position: relative;
}

/* Body Background Video */
.body-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

section {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.main-container {
  height: 100vh;
  width: 700vw;
  display: flex;
  @media (max-width: 768px){
    padding-bottom: 100px;
  }
  #about{
    .section-content{
      display: flex;
      flex-direction: column;
      gap: var(--spacing-xl);

    }
    .section-title{
      opacity: 1;
      span{
        display: inline-block;
      }
    }

  }
  
}

.section {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  position: relative;
}

.section-content {
  max-width: var(--container-max-width);
  width: 100%;
  opacity: 0;
  position: relative;
  z-index: 1;
}

/* Home Section Video Background */
.home-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#home .section-content,
#home-duplicate .section-content {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Components
   ========================================================================== */
.menu-toggle {
  position: fixed;
  top: var(--spacing-md);
  left: var(--spacing-md);
  font-size: 1.125rem;
  cursor: pointer;
  z-index: var(--z-index-menu);
  color: var(--color-text-primary);
  padding: 8px;
  width: var(--menu-toggle-size);
  height: var(--menu-toggle-size);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

  i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .fa-times {
    opacity: 0;
    position: absolute;
    transform: rotate(-90deg) scale(0.8);
  }

  .fa-bars {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(26, 26, 26, 0.12);
  transform: scale(1.05);
}

.menu-toggle.open {
  transform: rotate(0deg);
  background: rgba(26, 26, 26, 0.95);
  color: #ffffff;
  border-color: rgba(26, 26, 26, 0.2);

  .fa-bars {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
  }

  .fa-times {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.menu-toggle.open:hover {
  background: rgba(26, 26, 26, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  transform: scale(1.05);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-inline: 90px;
  padding-block: 34px;
  z-index: var(--z-index-sidebar);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: none;
  gap: var(--spacing-lg);
}

.sidebar.open {
  left: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color var(--transition-normal);

  i {
    font-size: var(--font-size-h3);
    margin-right: var(--spacing-sm);
    width: 20px;
    text-align: center;
  }

  span {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-tight);
  }
}

.nav-item:hover,
.nav-item.active {
  color: var(--color-text-primary);
}

.social-icon {

  a {
    color: var(--color-text-light);
    font-size: var(--font-size-body);
    transition: color var(--transition-normal);
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  a:hover {
    color: var(--color-text-primary);
  }

  i {
    /* margin-right: var(--spacing-sm); */
    width: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   Section Components
   ========================================================================== */
.section-title {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-light);
  font-family: 'Marlino Regular', sans-serif;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-xl);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
  transform: translateY(50px);
  opacity: 0;
}

/* Hero Section */
.hero-content {
  text-align: center;
}

.artist-name {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-light);
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
  transform: translateY(50px);
  opacity: 0;
}

.artist-subtitle {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-light);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  letter-spacing: var(--letter-spacing-normal);
  transform: translateY(30px);
  opacity: 0;
}

.hero-image {
  transform: translateY(30px);
  opacity: 0;

  img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: start;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 20px;
}

.about-content::-webkit-scrollbar {
  width: 8px;
}

.about-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.about-content::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

.about-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.about-text {
  transform: translateX(-50px);
  opacity: 0;
  width: 100%;

  p {
    font-size: var(--font-size-body);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
  }
}

.skills {
  margin-top: var(--spacing-xl);

  h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    letter-spacing: var(--letter-spacing-normal);
  }

  ul {
    list-style: none;
  }

  li {
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-light);
    color: var(--color-text-secondary);
    letter-spacing: var(--letter-spacing-tight);
    transform: translateX(-20px);
    opacity: 0;
  }
}

.about-image {
  transform: translateX(50px);
  opacity: 0;

  img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border-light);
  }
}

/* Gallery Section */
#gallery {
  position: relative;
  z-index: 1;
  --spacing-xl: 0px
}

/* #gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 0;
} */

#gallery .section-content {
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transform: translateY(50px);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-normal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

  img {
    width: 90%;
    height: 200px;
    object-fit: cover;
    transition: opacity var(--transition-normal);
  }
}

.gallery-item:hover {
  transform: scale(1.05) translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: var(--spacing-md);
  transform: translateY(100%);
  transition: transform var(--transition-normal);

  h4 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--spacing-xs);
  }

  p {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-light);
    color: var(--color-text-light);
  }
}

/* Exhibitions Section */
#exhibitions {
  .section-content {
    max-width: 1400px;
    padding-top: var(--spacing-2xl);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    @media (min-width: 769px){
      height: 100vh;
    }
  }
  .section-title {
    margin-bottom: 0px;
  }
  h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-regular);
    color: var(--color-text-primary);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-md);
  }


  
}


.exhibitions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md) var(--spacing-2xl);
  max-width: 100%;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  transform: translateX(-50px);
  opacity: 0;
}

.exhibition-year {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-light);
  color: var(--color-text-light);
  line-height: 1.5;
}

.exhibition-details {
  h3 {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
    line-height: 1.5;
  }

  p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-light);
    line-height: 1.6;
  }
}

.exhibition-type {
  background-color: var(--color-accent);
  color: white;
  padding: 4px 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
  display: inline-block;
}


/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  transform: translateX(-50px);
  opacity: 0;
}

.contact-description {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;

  p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-small);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-light);
  }

  p:first-child {
    font-style: normal;
    font-family: 'Arial', sans-serif;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  color: var(--color-text-secondary);
  letter-spacing: var(--letter-spacing-tight);

  i {
    font-size: var(--font-size-h3);
    color: var(--color-text-light);
    width: 24px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transform: translateX(50px);
  opacity: 0;

  input,
  textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-background);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-light);
    font-family: var(--font-family-primary);
    transition: border-color var(--transition-normal);
  }

  input:focus,
  textarea:focus {
    outline: none;
    border-color: var(--color-accent);
  }

  button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-accent);
    color: white;
    border: none;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-normal);
    cursor: pointer;
    transition: background-color var(--transition-normal);
  }

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

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Desktop specific styles */
@media (min-width: 769px) {
  html {
    max-height: 100vh;
    overflow-y: hidden;
  }

  body {
    height: 100vh;
    overflow-y: hidden;
  }

  .menu-toggle {
    display: flex !important;
  }

  .sidebar {
    top: -100px;
    transition: top var(--transition-normal);
  }

  .sidebar.open {
    top: 0;
  }
}

/* Tablet styles */
@media (max-width: 768px) {
  .main-container {
    width: 100vw;
    flex-direction: column;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .menu-toggle {
    display: flex !important;
  }

  .sidebar {
    width: var(--sidebar-width-mobile);
    left: calc(-1 * var(--sidebar-width-mobile));
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 0 var(--spacing-md);
    transition: left var(--transition-normal);
    gap: 0;
    display: flex;
  }

  .sidebar.open {
    left: 0;
  }

  .nav-item {
    padding: var(--spacing-sm) 25px;
  }

  .social-icon {
    padding: var(--spacing-sm) 25px;
  }

  .artist-name {
    letter-spacing: var(--letter-spacing-wide);
  }

  .section-title {
    letter-spacing: var(--letter-spacing-normal);
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .exhibitions-list {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .exhibition-item {
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-sm);
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .sidebar {
    width: 100%;
    left: -100%;
  }

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

  .section {
    padding: var(--spacing-md);
    height: fit-content;
    overflow: visible;

    * {
      opacity: 1;
    }
  }

  .section-title {
    transform: none;
  }

  .section-content {
    height: fit-content;
  }

  .gallery-item {
    transform: none;
  }

  /* Specific section overrides */
  #home {
    height: 100svh;
  }

  /* Make home video smaller on mobile */
  .home-video-bg {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    object-fit: cover;
  }

  #about {
    .about-text {
      transform: none;
    }

    .skills * {
      opacity: 1;
      transform: none;
    }
  }

  #works {
    padding: 0 !important;

    .section-content {
      /* height: var(--works-height-mobile) !important; */
      height: 100lvh !important;
      width: 100vw !important;
      padding: 0 !important;
      max-width: none !important;
    }

    .works-iframe-container {
      height: var(--works-height-mobile) !important;
      width: 100vw !important;
    }

    iframe {
      height: var(--works-height-mobile) !important;
      width: 100vw !important;
    }
  }

  #exhibitions {
    .exhibition-item {
      transform: none;
    }
  }

  #contact {
    .contact-info,
    .contact-form {
      transform: none;
    }
  }
}

/* ==========================================================================
   Gallery View Styles (from view.html)
   ========================================================================== */

.view-toggle {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.toggle-arrow {
  font-size: 24px;
  color: #1a1a1a;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.view-toggle:hover .toggle-arrow {
  transform: translateX(8px);
}

/* Grid mode - show right arrow → */
.view-toggle.grid-mode .toggle-arrow::before {
  content: '→';
}

/* Slider mode - show left arrow ← */
.view-toggle:not(.grid-mode) .toggle-arrow::before {
  content: '←';
}

.view-toggle:not(.grid-mode):hover .toggle-arrow {
  transform: translateX(-8px);
}

.toggle-line {
  width: 32px;
  height: 2px;
  background: #1a1a1a;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-toggle:hover .toggle-line {
  width: 56px;
}

.view-toggle:not(:hover) .toggle-line {
  width: 32px;
}

.toggle-line::before,
.toggle-line::after {
  content: '';
  position: absolute;
  background: #1a1a1a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

/* Grid mode - simple line */
.view-toggle.grid-mode .toggle-line {
  width: 32px;
  height: 2px;
  background: #1a1a1a;
  border: none;
  border-radius: 0;
}

.view-toggle.grid-mode .toggle-line::before,
.view-toggle.grid-mode .toggle-line::after {
  opacity: 0;
}

.view-toggle.grid-mode:hover .toggle-line {
  width: 56px;
  height: 2px;
}

.gallery-grid-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.gallery-view-grid {
  top: 0;
  left: 0;
  width: 100%;
  
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 240px);
  grid-template-rows: repeat(2, auto);
  gap: 35px;
  padding: 110px 50px 30px 50px;
  align-content: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 10;
  overflow-y: auto;
  @media (min-width: 769px){
    height: 100vh;
    position: absolute;
  }
  @media (max-width: 768px){
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-inline: 0px;
  }
}

.gallery-view-grid.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-view-header {
 
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-light);
  font-family: 'Marlino Regular', sans-serif;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text-primary);
  text-transform: uppercase;
  z-index: 11;
  @media (min-width: 769px){
    position: absolute;
    top: 40px;
    left: calc((100vw - 1200px) / 2 + 48px);
  }
}

@media (max-width: 1296px) {
  .gallery-view-header {
    left: 48px;
  }
}

.thumbnail-wrapper {
  cursor: pointer;
  transition: transform var(--transition-normal);
  position: relative;
  z-index: 1;
}

.thumbnail-wrapper:hover {
  @media (min-width: 769px){
    transform: scale(1.05);
  }
}

.thumbnail-box {
  width: 240px;
  height: 160px;
  background: #f8f8f8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-normal);
  @media (max-width: 768px){
    width: 100%;
    height: auto;
  }
}

.thumbnail-wrapper:hover .thumbnail-box {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-info {
  margin-top: var(--spacing-sm);
  text-align: center;
}

.thumbnail-title {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-light);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.thumbnail-artist {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
}

.slider-view-gallery {
  transition: opacity 0.6s ease, visibility 0.6s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}

.slider-view-gallery.hidden {
  opacity: 0;
  visibility: hidden;
}

.artwork-wrapper-gallery {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 60px 40px;
}

.artwork-wrapper-gallery.active {
  opacity: 1;
  transform: translateX(0);
}

.artwork-gallery {
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-image-gallery {
  max-width: 60vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.progress-container-gallery {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 2px;
  background: #e0e0e0;
}

.progress-line-gallery {
  height: 100%;
  background: #1a1a1a;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-gallery {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-button-gallery {
  background: none;
  border: 1px solid var(--color-border);
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: var(--font-size-h3);
  color: var(--color-text-primary);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button-gallery:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.counter-gallery {
  font-size: var(--font-size-body);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
  font-weight: var(--font-weight-light);
  text-align: center;
  min-width: 250px;
}

.counter-title-gallery {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--spacing-xs);
  letter-spacing: var(--letter-spacing-tight);
}

.counter-artist-gallery {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
}

/* ==========================================================================
   Exhibition Scrollable Section
   ========================================================================== */

.exhibitions-scrollable {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 20px;
  min-height: 0;
  padding-bottom: 100px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  &::-webkit-scrollbar{
    display: none;
  }
}

.exhibitions-scrollable::-webkit-scrollbar {
  width: 8px;
}

.exhibitions-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.exhibitions-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.exhibitions-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.exhibitions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exhibition-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

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

.exhibition-date {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
  letter-spacing: var(--letter-spacing-tight);
}

.exhibition-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-tight);
}

.exhibition-location {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-light);
}

.exhibition-details {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
  font-style: italic;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-xs);
  color: #999;
  z-index: 1000;
  text-align: center;
}

.site-footer p {
  margin: 0;
}
/* 
.main-container > section{
  border: 1px solid red
} */


@media (max-width: 768px) {
  [pc-only] {
    display: none !important;
  }
}

@media (min-width: 769px){
  [sp-only]{
    display: none;
  }
}
