@charset "UTF-8";
/* CSS Document */
/* Clean Contemporary Artist Template */

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid #eee;
}

.logo a {
  text-decoration: none;
  font-weight: 600;
  color: #000;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 400;
  transition: color 0.3s;
}

nav a:hover {
  color: #000;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1rem;
  padding: 3rem;
}

.artwork img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.artwork img:hover {
  transform: scale(1.02);
}

.about, .contact {
  padding: 2rem 3rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

h2 {
  font-weight: 600;
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
/* Artwork Detail Page */

.artwork-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem;
  max-width: 1200px;
  margin: auto;
}

.artwork-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.artwork-info h1 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.artwork-info .meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.artwork-info .description {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #333;
}

.navigation {
  display: flex;
  justify-content: space-between;
}

.navigation a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

.navigation a:hover {
  color: #000;
}

@media (max-width: 768px) {
  .artwork-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

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

.lightbox-inner {
  position: fixed;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  touch-action: none; /* important for mobile zoom/pan */
  transition: transform 0.2s ease-out;
}

.caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  max-width: 90%;
}

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

.lightbox .close:hover {
  opacity: 0.7;
}


