/* paintings.css */

/* Fonts are self-hosted:
   - Headings: Oswald  (from /css/fonts.css + /css/typography.css)
   - Body:     Literata
   (No Google Fonts import needed) */

/* Remove old Google import
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&family=Unica+One&display=swap');
*/

body {
    font-family: "Literata", ui-serif, Georgia, "Times New Roman", serif;
    margin: 0;
    /*background: #f0f0f0; /* Very light gray background */
    background: #444; /* gray background */
    color: #333;
}

#gallery {
    max-width: 1200px;
    margin: 0 auto;
    column-count: 5;
    column-gap: 2rem;
    padding: 2rem 2rem;
}

.painting {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    display: inline-block;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.painting:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Even stronger on hover */
}

.painting img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #ddd; /* Thin, light gray line */
  margin-bottom: 0.5rem;         /* Space between line and title */
}

.painting h3 {
    font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: 500;   /* Lighter weight */
    margin: 0.5rem 0 0.2rem;
    text-align: center;
    color: #333;        /* Softer than pure black */
    /*text-transform: uppercase;*/
}

.painting p {
    font-family: "Literata", ui-serif, Georgia, "Times New Roman", serif;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0 0 0.5rem;
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  flex-direction: column;
}

#lightbox.hidden {
  display: none;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

#lightbox-title {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 1000;
  padding-top: 1rem; /* Adds space above the title */
}

/* Close button */
#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  user-select: none;
  padding: 0 1rem;
}

#nav-left { left: 0; }
#nav-right { right: 0; }

#text1 {
    margin: 0 auto;
    text-align: left;
    max-width: 1200px;
    font-family: "Literata", ui-serif, Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
	line-height: 1.7rem;
    color: #ccc;
    padding-bottom: 30px;
    hyphens: auto;
}

#lightbox-img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}



/* ================ Responsive column layout ================ */
@media (max-width: 600px) {
    #gallery { column-count: 1; }
}

/* ================ Responsive column layout ================ */
@media (max-width: 800px) {
  #gallery { column-count: 2; }
  #nav-left,
  #nav-right {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  #lightbox-title {
    font-size: 1.6rem; /* Larger title on mobile */
  }
  #close {
    font-size: 2.8rem; /* Larger close button on mobile */
  }
}


/* ================ Responsive column layout ================ */
@media (max-width: 1300px) {
  .page-title {font-size: 2.6rem !important;} /* Larger title on mobile */
  
  #gallery {column-count: 2;}
  #nav-left,
  #nav-right {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

	.painting h3 {
		font-family: "Oswald" !important;
		font-size: 2.1rem  !important;
	}

	.painting p {
		font-family: "Literata" !important;
		font-size: 1.7rem  !important;
	}

  #lightbox-title {
    font-size: 2.6rem; /* Larger title on mobile */
    padding-bottom: 40px !important;
  }

  #close {
    top: 60px;
    font-size: 3.6rem; /* Larger close button on mobile */
  }
  #text1 {
    font-family: "Literata" serif !important;
    font-size: 1.7rem !important;
	line-height: 2.4rem !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 40px !important;
    hyphens: auto !important;
    color: #ccc;
  }
}

