/* Home page. Desktop: the auto-fitting roster. Phone: the photo grid. */

.home-roster {
  position: fixed;
  inset: 0;
  height: var(--viewport-height);
  overflow: hidden;
  mix-blend-mode: multiply;
  pointer-events: none;
}
html.home:not(.mobile), html.home:not(.mobile) body { overflow: hidden; }

.artists-wrap {
  position: fixed;
  top: 29vh;
  left: 2vw;
  right: 2vw;
  height: calc(var(--viewport-height) - 29vh - 15px);
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}
.artists-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 8px;
}
.artists-wrap.agent-mode .artists-flex {
  justify-content: flex-start;
  gap: 20px;
}
.artists-wrap.agent-mode .artists-col {
  flex: 1 0 auto;
  width: auto;
  max-width: 242px;
}
.artists-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.artists-letter {
  font-family: sans-serif;
  font-weight: 1000;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  opacity: 0.5;
  padding-bottom: 3px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  width: 50%;
  pointer-events: none;
}
.im_wrapper {
  display: block;
  position: relative;
  pointer-events: none;
}
.im_wrapper a {
  font-family: sans-serif;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  display: inline;
  pointer-events: auto;
}
.im_wrapper a:hover { color: transparent; }
.im_wrapper a:hover::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  font-family: cursive;
  font-weight: 600;
  color: #b8899a;
  white-space: nowrap;
  pointer-events: none;
}
.artists-gif-left,
.artists-gif-right {
  position: fixed;
  top: 16vh;
  left: 50%;
  transform: translateX(-50%) scale(1.2);
  transform-origin: top center;
  pointer-events: none !important;
}
.artists-gif-left img,
.artists-gif-right img { pointer-events: none !important; display: block; }
.artists-gif-left { z-index: 0; opacity: 0; }
.artists-gif-right { z-index: 1; opacity: 0.20; }
.artist-image-space {
  position: fixed;
  top: 13.4vh;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  z-index: 40;
  pointer-events: none;
  overflow: visible;
}
.artists-image-holder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  width: 260px;
  height: 260px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  filter: grayscale(10%);
  overflow: visible;
  display: none;
  transform: scale(0.5);
  transform-origin: top left;
}
.artists-sort-control {
  position: fixed;
  top: 24vh;
  right: 2vw;
  z-index: 999;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.artists-search {
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 600;
  width: 130px;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 4px;
  background: transparent;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
}
.artists-search::placeholder { color: rgba(0,0,0,0.45); font-weight: 500; }
.artists-search:focus { border-color: rgba(0,0,0,0.6); }
.artists-empty {
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
}
.artists-sort-control select {
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0);
  color: #000;
  cursor: pointer;
}

/* ---- Phone grid --------------------------------------------------------- */

html.mobile body.home { background-color: #ccbddd; }
.home-grid {
  padding-top: calc(9rem + 2 * var(--pad)); /* clears the three-line menu */
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  align-items: start;
}
.grid-controls { display: flex; gap: 8px; margin-bottom: 14px; }
/* 16px text keeps iPhones from zooming the page when a field is tapped. */
.grid-controls input, .grid-controls select {
  font: 500 16px var(--font-sans);
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  background: transparent;
  color: #000;
}
.grid-controls input { flex: 1 1 42%; width: auto; }
.grid-controls select { flex: 1 1 58%; }
.grid-controls input::placeholder { color: rgba(0, 0, 0, 0.5); }
.grid-empty { font: 500 16px var(--font-sans); color: rgba(0, 0, 0, 0.55); text-align: center; padding: 30px 0; }
.grid-empty[hidden], .gallery-grid .item[hidden] { display: none; }
.gallery-grid .item {
  display: block;
  margin-bottom: var(--pad);
  text-decoration: none;
}
.gallery-grid .item img { display: block; width: 100%; height: auto; }
.gallery-grid .item:nth-child(3n+1) { transform: rotate(-1deg); }
.gallery-grid .item:nth-child(3n+2) { transform: rotate(1deg); }
.gallery-grid .item:nth-child(3n+3) { transform: rotate(-0.5deg); }
html.mobile.home .logo { transform: rotate(1deg); }

.gallery-grid .caption {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  font-family: var(--font-sans);
  line-height: 1.2;
  display: block;
  margin-top: .5em;
  margin-bottom: 2em;
  text-align: center;
}
html.mobile .gallery-grid .cursive {
  color: rgba(79, 79, 79, 0.75);
  -webkit-text-stroke: 1px;
  font-size: 17px;
  font-family: "Caption";
  position: relative;
  line-height: 1.2;
}
html.mobile .gallery-grid .cursive .word-first {
  font-family: "Pinyon Script" !important;
  font-size: 23px !important;
}
