/* ============ RESET & VARIABLES ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  -webkit-tap-highlight-color: transparent;
}

@font-face{
    font-family: 'Playwrite GB J';
    src: url('fonts/PlaywriteGBJ-VariableFont_wght.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
    /* logo choice */
}

@font-face{
    font-family: 'Ubuntu-Regular';
    src: url('fonts/Ubuntu-Regular.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
    /* body font */
}

/* @font-face{
    font-family: 'Lobster';
    src: url('fonts/Lobster-Regular.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
} */

/* @font-face{
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
} */

/* @font-face{
    font-family: 'Roboto-Slab';
    src: url('fonts/RobotoSlab-VariableFont_wght.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
} */

/* @font-face{
    font-family: 'BebasNeue-Regular';
    src: url('fonts/BebasNeue-Regular.woff') format('woff2');
    font-weight: normal;
    font-style: normal;
} */

:root {
  /* --bg: #f8f7f4; */
  --bg: #FFFFFF;
  --backgound: #e8e8e8;
  --text: #111;
  --muted: #777;
  --border: #e2e2e2;
  --linktext: #f8f7f4;
}

/* ============ BASE ============ */
html,
body {
  width: 100%;
  min-height: 100%;
  /* scrollbar-gutter: stable; */
}

html.painting-page, html.about-page {
    scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Ubuntu-Regular', sans-serif;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

body.home-page {
  height: 100dvh;
  overflow: hidden;
}

/* h1, h2, h3, p {
  font-family: 'Ubuntu-Regular', sans-serif;
  font-weight: 400;
} */

img {
  width: 100%;
  display: block;
}

/* PAGE TRANSITION */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  animation: fadeOut 1s forwards;
  pointer-events: none;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ============ HEADER & NAVIGATION ============ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  /* background: rgba(248, 247, 244, 0.88); */
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
}

body.home-page header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  z-index: 1000;

  /* Animation Initial State */
  opacity: 0;
  transform: translateY(-20px);
  animation: headerFadeIn 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes headerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo {
  /* height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0vw;
  overflow: hidden;
  background: var(--bg); */

  height: 100vh;
  overflow: hidden;
  position: relative;

  /* Animation Initial State */
  opacity: 0;
  transform: translateY(15px);
  animation: demoFadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes demoFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-image {
  /* position: relative;
  width: 100%;
  height: 100%;
  display: block;
  justify-content: center;
  align-items: center; */
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
  height: 100vh;

  cursor: grab;

  touch-action: pan-y;

  will-change: transform;
}

.demo-image:active{
    cursor: grabbing;
}

.demo-image img {
  /* max-width: 100%;
  max-height: 100%;
  object-fit: contain; */
  height: 100vh;
  width: auto;
  max-width: none;

  opacity: 0;
  transform: scale(0.97);
  animation: imageReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.7s;
}

@keyframes imageReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.painting-info-demo {
    margin-top: 18px;
    margin-right: 1%;
    text-align: right;
}

.painting-info-demo h2 {
    font-size: 20px;
    font-weight: 500;
}

.painting-info-demo p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.demo-overlay {
  position: absolute;
  bottom: 5%;
  left: 5%;
  max-width: 420px;
  padding: 28px;
  color: #f3efe6;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
}

.demo-overlay h1 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.92;
  margin-bottom: 14px;
}

.demo-overlay p {
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.5;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 2vw;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-size: 24px;
  letter-spacing: 1px;
  font-family: 'Playwrite GB J', sans-serif;
  /* font-weight: 600; */
  /* text-shadow: 1px 1px 1px rgba(255,255,255,0.8); */
}

/* body.home-page .logo {
  font-weight: 400;
} */

.menu-toggle {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text);
  /* font-family: 'Playwrite GB J', sans-serif; */
  text-shadow: 0px 0px 2px rgba(255,255,255,0.8);

  transition: opacity 0.3s ease;
}

.menu-toggle:hover {
  opacity: 0.5;
}

/* ============ SIDEBAR MENU ============ */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(28, 28, 27, 0.97);
  backdrop-filter: blur(14px);
  z-index: 3000;
  padding: 120px 50px;
  transition: right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-menu ul {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 28px;
}

.sidebar-menu .current-link a {
  opacity: 0.6;
}

.sidebar-menu a {
  text-decoration: none;
  color: var(--linktext);
  font-size: 42px;
  font-family: 'Cormorant Garamond', serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.sidebar-menu a:hover {
  opacity: 0.5;
  transform: translateX(6px);
}

.close-menu {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-size: 42px;
  cursor: pointer;
  color: var(--linktext);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 2500;
}

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

/* ========== PAINTING CONTENT ========== */
.painting-content {
    /* width: 80vw; */
    max-width: 1800px;
    margin: 0 auto;
}

/* .painting-padding {
    height: 120px;
} */

.painting-entry {
    margin-top: 60px;
    width: 100%;
    margin-bottom: 120px;
}

.painting-padding{
    height: 120px;
    /* display: block; */
}

/* .painting-entry-demo {
    display: grid;
} */

.painting-entry img {
    width: 45%;
    margin: 0 auto;
    display: block;

    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.14),
        0 20px 50px rgba(0, 0, 0, 0.1);

    /* border: 3px solid #ebe6e0;      */
    /* outline: 6px solid #4a3729;      
    outline-offset: 2px;               */

    cursor: zoom-in;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease,
        box-shadow 0.5s ease;
}

.super-wide img{
    width: 80%;
}

.painting-info {
    margin-top: 18px;
    text-align: center;
}

.painting-info h2 {
    font-size: 20px;
    font-weight: 500;
}

.painting-info p {
    font-size: 16px;
    color: #666;
    /* line-height: 1.5; */
}

/* ========== LIGHTBOX ========== */

.painting-entry img:hover {
    transform: scale(1.015);
    opacity: 0.96;

    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.24),
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 25px 60px rgba(0, 0, 0, 0.16);
}

.lightbox {

    position: fixed;
    inset: 0;

    background: white;

    display: none;

    z-index: 9999;

    overflow: hidden;

    touch-action: none;

}

.close-lightbox {

    position: absolute;

    top: 20px;
    right: 30px;

    background: none;
    border: none;

    font-size: 40px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);

    cursor: pointer;

    z-index: 10000;
}

.lightbox.active {
    display: block;
    touch-action: none;
}

.lightbox-image {

    position: absolute;

    left: 50%;
    top: 50%;

    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;

    transform:
        translate(-50%, -50%);

    cursor: grab;

    user-select: none;

    opacity: 0;
    transition:
        opacity 0.25s ease;

    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.18),
        0 12px 28px rgba(0, 0, 0, 0.14),
        0 25px 60px rgba(0, 0, 0, 0.1);
}

.lightbox.active .lightbox-image {
    opacity: 1;
}

/* ============ ABOUT CONTENT ============ */
.about-content {
  max-width: 900px;
  margin: auto;
  padding: 80px 30px;
}

.about-content h1 {
  font-size: 38px;
  margin-bottom: 30px;
}

.content-section {
  margin-top: 60px;
  margin-bottom: 50px;

  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; */
}

.content-section h2 {
  margin-bottom: 14px;
  font-size: 34px;
}

.content-entry {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.info-image img {
  width: 100%;
  object-fit: cover;
}

.info-text p {
  margin-bottom: 12px;
  max-width: 580px;
  color: var(--text);
}

.info-section {
  margin-top: 60px;
}

.contact-block {
  text-align: left;
  margin-top: 30px;
  margin-bottom: 80px;
}

/* .contact-block-ins{
    text-align: center;
    margin-top: 110px;
    margin-bottom: 80px;
} */

.contact-block h3 {
  font-size: 18px;
  margin-bottom: 15px;
  /* display: inline-block; */
}

.contact-block strong{
  font-size: 34px;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.5;
}

/* ============ BUTTONS ============ */
.view-works-btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  transition: all 0.4s ease;
}

.view-works-btn:hover {
  background: white;
  color: black;
}

/* ============ MOBILE RESPONSIVE ============ */
/* @media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
  }
} */

@media (max-width: 768px) {

    nav {
        padding: 18px 20px;
    }

    .menu-toggle {
        /* text-shadow: 0 0 1px rgba(0,0,0,0.8); */
        text-shadow: 0px 0px 2px rgba(255,255,255,0.8);
    }

    .sidebar-menu {
        width: 280px;
        max-width: 60vw;
        right: -300px;
        padding: 100px 30px;
    }

    .sidebar-menu a {
        font-size: 28px;
    }

    .painting-padding{
        display: none;
    }

    .painting-entry {
        margin-top: 80px;
        margin-bottom: 40px;
    }

    .painting-entry img {
        width: 80%;
    }
    .super-wide img{
        width: 90vw;
    }

    .painting-content {
        touch-action: pan-y;
    }

    .painting-info {
        margin-top: 12px;
    }

    .painting-info h2 {
        font-size: 12px;
    }

    .painting-info h3 {
        font-size: 12px;
        font-weight: 400;
    }

    .painting-info p {
        font-size: 10px;
        /* line-height: 1.5; */
    }
    
    /* TRANSPARENT HEADER */
    /* body.home-page header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: transparent;        
        backdrop-filter: none;           
        border-bottom: none;
        z-index: 1000;
    } */

    /* WHITE LOGO AND MENU BUTTON */
    /* body.home-page .logo {
    color: white;                      
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
    }

    body.home-page .menu-toggle {
    color: white;                     
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
    } */

    /* Demo */
    /* .demo {
        height: 100dvh;
        overflow: hidden;
        position: relative;
    }

    .demo-image {
        height: 100dvh;
        width: max-content;

        display: block;
        position: absolute;
        left: 0;
        top: 0;
    }

    .demo-image img {
        height: 100dvh;
        width: auto;
        max-width: none;
        display: block;
    } */

    /* Content pages */
    .about-content h1 {
        font-size: 36px;
    }

    .about-content h2 {
        font-size: 30px;
    }

    /* Info */
    .info-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }







    /* DEMO OVERLAY */
    /* .demo-overlay {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 18px;
        padding: 0;
        background: none;
        color: var(--text);
        max-width: 100%;
    }

    .demo-overlay h1 {
        font-size: 38px;
        line-height: 1;
    }

    .demo-overlay p {
        font-size: 14px;
        margin-bottom: 18px;
    } */

    /* Lightbox */
    /* .lightbox-image {
        max-width: 100%;
    } */

    /* Contact */
    /* .contact-block h2 {
        font-size: 30px;
    } */

    /* Works */
    /* .works-page {
        padding: 50px 14px 100px;
    }

    .works-div {
        max-width: 100%;
    }

    .masonry-grid {
        column-gap: 14px;
    }

    .art-item {
        margin-bottom: 14px;
    }

    .year-group {
        margin-bottom: 90px;
    } */
}



/*  - exhibition
        - content-page
            - cv-section
    - info
        - content-page
            - info-layout
                - info-image
                - info-text
                    - info-section
                        - cv-entry
    - contact
        - content-page
            - contact-block
*/

/* ============ MASONRY GRID ============ */
/* .masonry-grid {
  column-count: 3;
  column-gap: 26px;
  padding: 20px;
}

.art-item {
  margin-bottom: 26px;
  break-inside: avoid;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.art-item img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.art-item:hover img {
  transform: scale(1.02);
  filter: brightness(0.96);
}

.art-item::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 16px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 14px;
}

.art-item:hover::after {
  opacity: 1;
} */

/* ============ WORKS PAGE ============ */
/* .works-page {
  padding: 80px 20px 120px;
}

.works-div {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.works-title {
  font-size: clamp(48px, 8vw, 90px);
  margin-bottom: 60px;
}

.year-group {
  margin-bottom: 140px;
}

.year-heading {
  font-size: 42px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
} */

/* ============ LIGHTBOX ============ */
/* .lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 1.0);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 75vh;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: var(--text);
  cursor: pointer;
}

.lightbox-info {
  margin-top: 20px;
  text-align: center;
  color: var(--text);
}

.lightbox-title {
  font-size: 28px;
} */

/* ============ CONTENT PAGES (Exhibitions / Info / Contact) ============ */
/* .content-page {
  max-width: 900px;
  margin: auto;
  padding: 80px 30px;
}

.content-page h1 {
  font-size: 58px;
  margin-bottom: 30px;
}

.cv-section {
  margin-bottom: 50px;
}

.cv-section h2 {
  margin-bottom: 14px;
  font-size: 34px;
}

.cv-entry {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
} */

/* ============ INFO PAGE ============ */
/* .info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.info-image img {
  width: 100%;
  object-fit: cover;
}

.info-text p {
  margin-bottom: 24px;
  max-width: 580px;
  color: var(--text);
}

.info-section {
  margin-top: 60px;
} */

/* ============ CONTACT PAGE ============ */
/* .contact-layout {
  margin-top: 60px;
}

.contact-block {
  margin-bottom: 80px;
}

.contact-block h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.contact-link:hover {
  opacity: 0.5;
} */