/* Damjana Jokic - static site styles
   Rebuilt from the WordPress "Peak" theme look & feel */

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

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #4a4a4a;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */

.site {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 20px;
  gap: 40px;
}

.site-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 20px;
}

.site-logo img {
  width: 130px;
  height: auto;
}

.site-social {
  margin-top: 40px;
}
.site-social a { color: #1a1a1a; }
.site-social svg { width: 22px; height: 22px; display: block; }

.site-nav {
  grid-column: 1;
  padding-right: 20px;
}

.site-main {
  grid-column: 2;
  min-width: 0;
}

.site-footer {
  grid-column: 1 / -1;
  margin-top: 60px;
  padding-top: 20px;
}

/* ---------- Navigation ---------- */

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b2b2b2;
}

.site-nav li {
  padding: 4px 0;
  position: relative;
}

.site-nav a {
  color: #b2b2b2;
  transition: color 0.15s;
}
.site-nav a:hover { color: #1a1a1a; text-decoration: none; }

.site-nav .sub {
  margin-top: 4px;
  padding-left: 24px;
}
.site-nav .sub li { padding: 2px 0; }

/* Active item: × before + underline + darker */
.site-nav li.active > a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-nav li.active::before {
  content: "×";
  position: absolute;
  left: -18px;
  top: 4px;
  color: #1a1a1a;
  font-weight: 400;
}
.site-nav .sub li.active::before { left: 6px; }

/* ---------- Footer ---------- */

.site-footer .contact {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #a8a8a8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer .contact span:first-child {
  color: #1a1a1a;
  margin-right: 6px;
}
.site-footer .contact a {
  color: #a8a8a8;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2px;
}
.site-footer .contact .row { display: flex; align-items: baseline; }

/* ---------- Page content ---------- */

.prose {
  max-width: 760px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #3a3a3a;
}
.prose p { margin: 0 0 14px; }
.prose h2 {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 28px 0 10px;
}
.prose h3 {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 22px 0 8px;
}
.prose em { font-style: italic; }
.prose strong { color: #1a1a1a; }

/* ---------- Home tiles ---------- */

.home-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.home-tile {
  display: block;
  text-align: center;
}
.home-tile img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 14px;
}
.home-tile .caption {
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: #1a1a1a;
}

/* ---------- Galleries ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
  align-items: start;
}

.gallery-item {
  display: block;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: auto;
}
.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(60, 60, 60, 0.78);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .cap,
.gallery-item:focus-within .cap {
  opacity: 1;
}

/* Print process - mixed sizes masonry-ish layout */
.gallery.proces { grid-template-columns: repeat(3, 1fr); }

/* Bio portrait */
.bio-portrait {
  width: 220px;
  float: left;
  margin: 0 30px 16px 0;
}

/* ---------- Artist statement / inline text ---------- */

.statement {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: #3a3a3a;
  max-width: 820px;
}
.statement p { margin: 0 0 10px; }
.statement .opening {
  margin-bottom: 32px !important;
  color: #1a1a1a !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .site-nav, .site-main { grid-column: 1; }
  .home-tiles, .gallery { grid-template-columns: repeat(2, 1fr); }
  .home-tile img { height: 260px; }
  .bio-portrait { float: none; width: 60%; margin: 0 0 20px; }
  .site-header { gap: 30px; }
}
@media (max-width: 520px) {
  .home-tiles, .gallery { grid-template-columns: 1fr; }
  .home-tile img { height: auto; }
}

/* ---------- Lightbox ---------- */

.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  cursor: default;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px 16px;
  font-family: "Roboto", sans-serif;
  line-height: 1;
}
.lb-close { top: 18px; right: 24px; font-size: 32px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  color: #ddd;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 13px;
}
