/* JUSTE GALLERY – public site. Same black/white look as before, now responsive. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.4;
}

a, a:visited { color: #fff; text-decoration: underline; }
a:hover, a:active, a:focus { text-decoration: none; }
img { max-width: 100%; height: auto; border: 0; }

.container {
  width: 92%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 25px 0 40px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 30px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto 10px;
}
.site-header .logo { text-align: center; }
.site-header .logo img { display: block; margin: 0 auto; }

.site-nav {
  grid-column: 1;
  font-weight: bold;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-nav a.active { text-decoration: none; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; text-align: center; }
  .site-nav { grid-column: 1; justify-content: center; }
}

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

.content { text-align: center; margin-top: 15px; }

/* home */
.feature-img { display: block; margin: 0 auto; max-width: 100%; width: 994px; }
.feature-title { margin: 12px 0 0; }

/* events */
.events section { margin-bottom: 8px; }
.events h2 { font-size: 1em; margin: 14px 0 4px; }
.events ul { list-style: none; margin: 0; padding: 0; }
.events li { margin: 0; }

/* interviews grid */
.iv-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px 22px;
  text-align: left;
}
.iv-card, .iv-card:visited { display: block; text-decoration: none; }
.iv-card img, .iv-noimg {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #161616;
  margin-bottom: 8px;
}
.iv-card:hover img, .iv-card:focus img { opacity: .82; }
.iv-card-artist { display: block; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; font-size: .9em; }
.iv-card-headline { display: block; font-style: italic; margin-top: 2px; }
.iv-card:hover .iv-card-headline, .iv-card:focus .iv-card-headline { text-decoration: underline; }

/* interview popup */
.iv-dialog {
  width: min(900px, 94vw);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid #555;
  background: #0b0b0b;
  color: #fff;
  overflow: auto;
  overscroll-behavior: contain;
}
.iv-dialog::backdrop { background: rgba(0, 0, 0, .88); }
.iv-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.iv-close:hover, .iv-close:focus { background: #fff; color: #000; }

.iv { padding: 0 0 26px; text-align: left; }
.iv-images { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; background: #000; }
.iv-images img {
  flex: 0 0 100%;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  scroll-snap-align: center;
}
.iv-multi img { flex-basis: 92%; }
.iv-multi::after { content: ""; flex: 0 0 1px; }
.iv-title, .iv-artist, .iv-body, .iv-share { padding-left: 26px; padding-right: 26px; }
.iv-title { font-size: 1.7em; font-style: italic; font-weight: normal; line-height: 1.2; margin: 22px 0 8px; }
.iv-artist { font-weight: bold; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 18px; }
.iv-body p { margin: 0 0 1em; font-size: 1.05em; line-height: 1.55; }
.iv-share { display: flex; gap: 8px; align-items: center; margin-top: 22px; }
.share-btn {
  padding: 8px 18px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.share-btn:hover, .share-btn:focus { background: #fff; color: #000; }
.share-url {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #444;
  background: #000;
  color: #ccc;
  font: inherit;
  font-size: .9em;
}
.iv-missing { padding: 30px; text-align: center; }

html.modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .iv-title, .iv-artist, .iv-body, .iv-share { padding-left: 16px; padding-right: 16px; }
  .iv-title { font-size: 1.4em; }
  .iv-share { flex-wrap: wrap; }
  .iv-dialog { width: 100vw; max-height: 100vh; height: 100vh; border: 0; }
}
