/* ===== GENERAL ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111;
  color: #eee;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg,#1e1e1e,#2a2a2a);
  color: #ffcc00;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.site-title {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #f39c12;
}

/* ===== CONTACT INFO ===== */
.contact-header {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
header .logo-link {
  color: #ffcc00; /* yellow */
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

header .logo-link:hover {
  color: #ffd633; /* slightly brighter yellow on hover */
}

.contact-header a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00bfff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  background: rgba(255, 204, 0, 0.1);
}

.contact-header a:hover {
  background: #00bfff;
  color: #111;
  transform: translateY(-2px);
}

.contact-header a i {
  font-size: 1.1rem;
}

/* ===== GALLERY ===== */
.gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.art {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
  overflow: hidden;
  height: 300px; /* uniform height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.art img:hover {
  cursor: pointer;
  transform: scale(1.02);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  color: #ffcc00;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s;
  text-align: center;
}

.art:hover .overlay {
  transform: translateY(0);
}

/* ===== DETAIL PAGE ===== */
.detail {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.detail-content {
  max-width: 800px;
  width: 100%;
  background: #1b1b1b;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}

.detail-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer; /* shows hand cursor */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.painting-info {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #ddd;
}

.painting-info strong {
  color: #ffcc00;
}

.back-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background: #00bfff;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.back-link:hover {
  background: #ffcc00;
  color: #111;
}

/* ===== FULLSCREEN LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ffcc00;
}

@media (max-width: 480px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; /* restore original padding */
  }

  header h1 {
    font-size: 1.1rem;
    margin: 0;
  }

  .contact-header {
    display: flex;
    flex-direction: row;
    gap: 6px;
    font-size: 0.7rem;
    flex-wrap: wrap;
  }

  .contact-header a {
    padding: 3px 6px;
  }

  /* Gallery adjustments */
  .gallery {
    grid-template-columns: 1fr; /* one image per row */
    padding: 8px;
    gap: 10px;
  }

  .art {
    height: auto;
  }

  .art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .overlay {
    display: none; /* hide overlay on mobile */
  }
}

