/* GENERAL STYLING */
body {
  font-family: 'Lato', 'Open Sans', sans-serif;
  background-color: #ffffff; /* crisp white gallery wall */
  margin: 0;
  padding: 0;
  color: #333;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
  text-align: center;
}

/* NAVIGATION BAR */
nav {
  background-color: #f2f2f2; /* subtle light gray */
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #e0e0e0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav li { margin: 0 20px; }

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #000; /* darker on hover */
}

/* TAB CONTENT */
.tab-content { 
  display: none; 
  padding: 20px 0; 
}

.tab-content.active { display: block; }






/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  animation: fadeIn 1s ease-in;
}

.artwork {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.artwork:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.artwork img {
  width: 100%;
  display: block;
  transition: transform 0.3s, filter 0.3s;
}

.artwork img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.info {
  padding: 15px;
  text-align: center;
}

.info h2 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.info p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* WATERMARK */
.artwork::after {
  content: "© Wei";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 1px 3px;
  border-radius: 2px;
  pointer-events: none;
}

.lightbox-img-container {
  position: relative;
  display: inline-block;
}

.lightbox-img-container::after {
  content: "© Wei";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 2px 4px;
  border-radius: 3px;
  pointer-events: none;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  margin-bottom: 15px;
  border-radius: 5px;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.show .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-caption {
  color: white;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.close, .prev, .next {
  position: absolute;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.close { top: 20px; right: 30px; }
.prev { top: 50%; left: 30px; transform: translateY(-50%); }
.next { top: 50%; right: 30px; transform: translateY(-50%); }

/* FOOTER */
footer {
  background-color: #f2f2f2;
  color: #555;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  nav li { margin: 0 10px; }
}


/* Highlight active nav link */
nav a.active {
  color: #e3e1e1;   /* lighter gray to indicate active */
  font-weight: bold;
}


/* Logo link container */
nav .logo {
  display: flex;
  align-items: center;
  gap: 10px; /* space between icon and text */
  text-decoration: none;
}

/* Minimal geometric icon */
nav .logo-icon {
  width: 25px;
  height: 25px;
  background-color: #333; /* dark square */
  border-radius: 3px;
  position: relative;
  transition: transform 0.3s ease;
}

/* Pixel cutout */
nav .logo-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #fff;
  top: 4px;
  left: 4px;
  border-radius: 1px;
}

/* Hover animation */
nav .logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Logo text */
nav .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #333;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

nav .logo:hover .logo-text {
  color: #555; /* subtle color change on hover */
}


.featured-artwork {
  width: 1000px;       /* fixed width */
  height: 800px;      /* same aspect ratio as "No Words" or whatever you choose */
  overflow: hidden;
  margin: 40px auto;
  position: relative;
}

.featured-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures each artwork fills the container without stretching */
  display: block;
}


.featured-artwork:hover img {
  transform: scale(1.03);
  filter: brightness(0.95);
}
.about-exhibition {
  text-align: center;       /* Center text horizontally */
  max-width: 800px;         /* Optional: limit width for better readability */
  margin: 40px auto;        /* Center the block horizontally and add vertical spacing */
  font-size: 18px;          /* Adjust font size as needed */
  line-height: 1.6;         /* Improve readability */
}

/* Featured artwork fade effect */
#featured-artwork {
  position: relative;
  cursor: pointer;
  transition: opacity 0.8s ease-in-out;
}

#featured-artwork.fade-out {
  opacity: 0;
}

#featured-artwork.fade-in {
  opacity: 1;
}
