/* Dark Gallery Theme — Art-Studio Dariusz Zieniewicz */
:root {
  --gold: #c9a440;
  --dark: #0d0d0d;
  --mid: #161616;
  --text: #ddd;
  --text-muted: #888;
  --border: #222;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--dark);
  color: var(--text);
  margin: 0;
}

/* W3.CSS Dark Overrides */
.w3-light-grey, .w3-hover-light-grey:hover,
.w3-light-gray, .w3-hover-light-gray:hover {
  background-color: var(--mid) !important;
  color: var(--text) !important;
}
.w3-white, .w3-hover-white:hover {
  background-color: var(--dark) !important;
  color: var(--text) !important;
}
.w3-content { background-color: transparent !important; }
.w3-opacity { opacity: 1 !important; }
.w3-black { background-color: #000 !important; }
.w3-text-grey, .w3-hover-text-grey:hover { color: #aaa !important; }
.w3-text-black { color: var(--text) !important; }

/* Typography */
h1, h2 { color: #fff; letter-spacing: 0.04em; }
h3, h4 { color: var(--gold); letter-spacing: 0.02em; }
h5, h6 { color: var(--text-muted); }
hr.w3-opacity { border-top: 1px solid var(--border) !important; opacity: 1 !important; }
hr { border: none; border-top: 1px solid var(--border); }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
ul li { color: var(--text); line-height: 1.9; }
p { line-height: 1.85; color: var(--text); }
strong { color: #fff; }
blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0 24px 8px;
  color: #999;
  font-style: italic;
}
blockquote footer {
  color: #666;
  font-style: normal;
  font-size: 0.85em;
  margin-top: 8px;
}

/* Menu Button */
.art-menu-btn {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  color: #ccc;
  border: 1px solid #2a2a2a;
  font-size: 1.3em;
  padding: 9px 15px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
  line-height: 1;
}
.art-menu-btn:hover { color: var(--gold); border-color: var(--gold); }

/* Sidebar Navigation */
.art-sidebar {
  background: #040404 !important;
  border-left: 1px solid var(--border);
}
.art-sidebar .w3-bar-item {
  color: #666 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.75em;
  border-bottom: 1px solid #0e0e0e !important;
  padding: 20px 28px !important;
  transition: color 0.2s, background 0.2s;
}
.art-sidebar .w3-bar-item:hover {
  color: var(--gold) !important;
  background: #0a0a0a !important;
}
.art-sidebar-close {
  color: #444 !important;
  background: transparent !important;
  transition: color 0.2s;
}
.art-sidebar-close:hover { color: var(--gold) !important; }

/* Logo & Header */
.portfolio-logo {
  max-width: 130px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 10px 0;
}
header h1 { color: #fff; }

/* Gallery Grid */
.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  background: #111;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.gallery-img-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-img-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(0.65);
}
.gallery-img-wrap::after {
  content: '\f065';
  font-family: FontAwesome;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.gallery-img-wrap:hover::after { opacity: 1; }

/* Active nav link */
.art-sidebar .w3-bar-item.nav-active {
  color: var(--gold) !important;
  border-left: 2px solid var(--gold);
  padding-left: 26px !important;
}

/* Lightbox */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox-overlay.active { display: flex; }
#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid #1c1c1c;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
}
#lightbox-close {
  position: fixed;
  top: 14px;
  right: 22px;
  font-size: 2.6em;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10000;
  padding: 0;
}
#lightbox-close:hover { color: var(--gold); }
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2em;
  color: #555;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  padding: 18px 20px;
  transition: color 0.2s, background 0.2s;
  z-index: 10000;
  line-height: 1;
}
.lightbox-arrow:hover { color: var(--gold); background: rgba(0, 0, 0, 0.85); }
#lightbox-prev { left: 0; }
#lightbox-next { right: 0; }

#lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #555;
  font-size: 0.78em;
  letter-spacing: 0.15em;
  z-index: 10000;
  pointer-events: none;
}

/* Footer */
footer {
  background: #000 !important;
  border-top: 1px solid var(--border);
  color: #3a3a3a !important;
}
footer i { color: #3a3a3a; transition: color 0.2s; margin: 0 10px; cursor: pointer; }
footer i:hover { color: var(--gold); }
footer a { color: #3a3a3a; }
footer a i { color: #3a3a3a; transition: color 0.2s; }
footer a:hover i { color: var(--gold); }
footer p { color: #333 !important; font-size: 0.8em; margin-top: 14px; letter-spacing: 0.1em; }

/* Contact */
.contact-icon { color: var(--gold) !important; margin-right: 16px; }

/* Profile image */
.art-profile-img {
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto 32px;
  max-width: 100%;
}

/* Text content sections */
.art-text-section p { color: #ccc; }
.art-text-section ul li { color: #ccc; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #060606; }
::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
