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

html, body {
  height: 100%;
}



/* ----------------- Body ----------------- */

body {
  padding-top: 170px;
  padding-left: 200px;
  padding-right: 200px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mobile-friendly padding */
@media (max-width: 600px) {
  body {
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* ----------------- Header ----------------- */

header {
  position: fixed;
  top: 0;
  left: 200px;             /* match body left padding */
  right: 200px;            /* match body right padding */
  width: auto;             /* so it respects left/right */
  z-index: 1000;
  background-color: #fff;
  padding: 0px 0;         /* adjust top/bottom as needed */

    /* Glass effect */
    background: rgba(255, 255, 255, 0.6);  /* semi-transparent white */
    backdrop-filter: blur(10px);           /* blur background */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;          /* full width of header */
  margin: 0;
  padding: 0;           /* remove extra padding */
  height: 80px;
  
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
}

.header-center { justify-content: center; }
.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; gap: 15px; }


.icon-link {
  color: #333;            /* monochrome color */
  text-decoration: none;
  transition: color 0.2s;
}

.icon-link:hover {
  color: #666;            /* hover effect */
}

.icon-link i {
  font-size: 24px;        /* adjust size */
}


/* Logo image */
.logo-img {
  width: 60px;
  height: auto;
}

/* Site title */
.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  text-decoration: none;
}


/* Right: optional nav */
.header-right {
  justify-self: end;    /* align right column content to end */
}

.header-center .site-title {
  position: relative;
  /*left: -15px;   /* adjust this value to taste */
}




.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}


.nav-separator {
  color: #333;
}

@media (max-width: 900px) {
  .site-title {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .logo-img {
    width: 20px;
  }

  .site-title {
    font-size: 18px;
  }
}


/* Top horizontal line above logo */
.content-wrapper {
  width: 100%;
  padding-left: 200px;
  padding-right: 200px;
  box-sizing: border-box;
}


.top-line {
  height: 1px;          /* line thickness */
  background-color: #333; /* line color */
  margin-top: 10px;     /* spacing from top of page */
  margin-bottom: 10px;  /* spacing below the line */
  width: 100%;          /* full width of container */
}




/* ----------------- Navigation ----------------- */
/* Navigation bar row */
.nav-bar {
  text-align: center;
}

.nav-bar nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  text-align: center;
}
.nav-bar nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  transition: color 0.2s;
}

.nav-bar nav a::after {
  content: '';
  display: block;
  pointer-events: none;
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0%;
  background-color: #333;
  transition: width 0.3s ease;
}

.nav-bar nav a.active::after,
.nav-bar nav a:hover::after {
  width: 100%;
}

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


/* Responsive */

@media (max-width: 900px) {
  .header-center {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .header-left .logo-img {
    width: 20px;
  }
  .header-center {
    font-size: 28px;
  }
  .nav-bar nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .icon-link i {
    font-size: 20px;
  }
}
/* ----------------- Intro ----------------- */

/* ----------------- Intro image ----------------- */
.intro-image {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0;
}

.intro-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

@media (max-width: 600px) {
  .intro-image {
    padding: 8px;
    margin: 0;
  }
}



.intro {
  position: relative;
  width: 100%;
  margin: 30px 0;
  text-align: center;
  color: #444;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  line-height: 1.8;
}

.intro-text {
  position: absolute;
  bottom: 0;           /* stick to bottom of image */
  left: 0;             /* start from left edge */
  width: 100%;         /* span full width of image */
  text-align: center;  /* center the text inside the full-width box */
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 200;
  padding: 100px 40px;     /* vertical padding, no horizontal padding needed */
}


@media (max-width: 600px) {
  .intro-text {
    width: 80%; 
    text-align: center; 
      font-size: 12px;      /* smaller text for mobile */
      bottom: 10px;         /* less distance from bottom */
      padding: 5px 6px;     /* smaller padding */
  }
}
/* ----------------- Gallery ----------------- */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #f9f9f9;
}

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

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

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 30px 15px 15px;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
}

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

.item-title {
  font-size: 14px;
  margin-bottom: 5px;
  display: inline-block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 2px;
}

.item-tag {
  font-size: 12px;
  color: #bbb;
}

/* ----------------- Lightbox ----------------- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.lightbox-img.zoomed {
  cursor: zoom-out;
}


.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

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

.lightbox-nav {
  position: fixed;
  top: 50%;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 0 20px;
  transition: color 0.2s;
  z-index: 10001;
}

#lightbox-prev { left: 0; }
#lightbox-next { right: 0; }

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

@media (max-width: 600px) {
  .lightbox::after {
    content: 'Tap image to enlarge';
    position: fixed;
    bottom: 36px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    letter-spacing: 0.06em;
    pointer-events: none;
  }
  .lightbox.zoomed::after {
    display: none;
  }
}

/* ----------------- Footer ----------------- */
/* Footer horizontal lines */
.footer-line {
  height: 1px;
  background-color: #333;
  margin: 10px 0; /* spacing around the line */
}

/* Social icons container */
.footer-social {
  display: flex;
  justify-content: center; /* center icons horizontally */
  gap: 20px;               /* spacing between icons */
  margin: 10px 0;          /* vertical spacing between lines */
}

.footer-social .icon-link i {
  font-size: 24px;          /* adjust size */
  color: #333;
  transition: color 0.2s;
}

.footer-social .icon-link:hover i {
  color: #666;              /* hover effect */
}

/* Footer text */
.footer-text {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  margin-bottom: 20px;
}


/* ----------------- Navigation Arrows ----------------- */
.nav-arrows {
  text-align: center;
  font-size: 24px;
  color: #ccc;
}

.nav-arrows span {
  margin: 0 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-arrows span:hover {
  color: #666;
}

/* ----------------- Responsive ----------------- */
/* Tablet: 3 columns */
@media (max-width: 1024px) {
  .gallery {
    column-count: 3;
  }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
  .gallery {
    column-count: 2;
    padding: 20px;
  }

  .gallery-item {
    margin-bottom: 15px;
  }
}



/* ----------------- Paintings uniform grid ----------------- */
/*
  grid-auto-rows formula keeps cells at a 4:5 ratio at every viewport:
  3-col: row = (100vw - 440px) * 5/12  [440 = 200+200 body padding + 2×20 gap]
  2-col: row = (100vw - 420px) * 5/8   [420 = 400 padding + 1×20 gap]
  mobile: row = (100vw - 40px) * 5/8   [40 = 15+15 padding + 1×10 gap]
*/
.paintings-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc(41.667vw - 183.333px);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.paintings-gallery .gallery-item {
  overflow: hidden;
  margin-bottom: 0;
}

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

@media (max-width: 1024px) {
  .paintings-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: calc(62.5vw - 262.5px);
  }
}

@media (max-width: 600px) {
  .paintings-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: calc(62.5vw - 25px);
    gap: 10px;
    padding: 10px;
  }
}

/*-------------------About page------------------- */
.about-artist {
  display: flex;
  justify-content: center;
  margin: 40px 30px;
}

.artist-container {
  display: flex;
  flex-direction: column;   /* stack image and text vertically */
  align-items: center;      /* center all child elements horizontally */
  max-width: 400px;
}

.artist-img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.artist-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.8;
  color: #666;
  text-align: center;       /* ensures text is centered exactly under image */
  text-transform: none;
}


@media (max-width: 600px) {
  .artist-img {
    width: 300px;
    height: 300px;
  }

  .artist-bio {
    font-size: 15px;
  }

  .about-artist {
    margin: 40px 10px;
  }
}




/* ----------------- Responsive ----------------- */
@media (max-width: 600px) {
  .logo-img {
    width: 50px;
  }

  .site-title {
    font-size: 28px;
    text-align: center;
  }

  .icon-link i {
    font-size: 20px;
  }
}

/*-----padding for mobile view*/

@media (max-width: 600px) {
  .gallery {
    padding: 10px;      /* reduce padding for small screens */
    column-count: 2;    /* 2 columns on phones */
  }
}
@media (max-width: 600px) {
  .header-container {
    padding: 10px 0;
  }
}
@media (max-width: 600px) {
  .intro {
    padding: 8px 15px;
    margin: 10px auto;
    font-size: 18px;
    color: #444;
  }
}



/* -------- Mobile header behaves like desktop but not fixed -------- */
@media (max-width: 600px) {

  /* 1) Disable fixed header */
  header {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;     /* remove glass background if desired */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* 2) Remove desktop top padding since header is no longer fixed */
  body {
    padding-top: 0;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 3) Keep header items in ONE ROW like desktop */
  .header-container {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  /* Equal-width left/right so center is truly centred */
  .header-left, .header-right {
    flex: 1;
  }
  .header-center {
    flex: 0 0 auto;
    justify-content: center;
  }

  /* Keep logo + title in a row */
  .logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  /* 4) Show navigation normally (do not hide it) */
  nav {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
}
