/* ============================================================
   Illamma Artist Roster — frontend styles
   Scoped under .ir- prefixes so it won't clash with your theme.
============================================================ */

.ir-section,
.ir-modal-overlay{
  --ir-white: #FAFAF7;
  --ir-black: #000000;
  --ir-blue:  #1A33FF;
  --ir-grey:  #7A7A72;
  font-family: 'Space Grotesk', sans-serif;
}

.ir-section *,
.ir-modal-overlay *{ box-sizing: border-box; }

.ir-section a,
.ir-modal-overlay a{ color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce){
  .ir-roster-wrap *, .ir-modal-overlay *{ animation: none !important; transition: none !important; }
}

/* ---------- SECTION SHELL (title + intro text above the grid) ---------- */

.ir-section{
  border-bottom: 3px solid var(--ir-black);
  font-family: 'Space Grotesk', sans-serif;
}

.ir-section *{ box-sizing: border-box; }
.ir-section a{ color: inherit; text-decoration: none; }

.ir-wrap{ max-width: 1400px; margin: 0 auto; padding: 0 32px; }

.ir-sect-inner{ padding: 90px 0; }

.ir-on-black{ background: var(--ir-black); color: var(--ir-white); }
.ir-on-blue{ background: var(--ir-blue); color: var(--ir-black); }

.ir-sect-head{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  align-items: end;
}

.ir-sect-title{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
}

.ir-sect-desc{
  font-size: 16px;
  max-width: 42ch;
  margin: 0;
  color: inherit;
}

.ir-empty{ font-size: 15px; opacity: 0.8; }

/* ---------- EVENTS ---------- */

.ir-event-list{ display: flex; flex-direction: column; }

.ir-event-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 3px solid var(--ir-black);
  align-items: center;
}

.ir-event-row:first-child{ border-top: 3px solid var(--ir-black); }

.ir-event-left{ display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }

.ir-event-date{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
}

.ir-event-name{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}

.ir-event-venue{ font-size: 14px; font-weight: 500; }

.ir-event-link{
  display: inline-block;
  border: 3px solid var(--ir-black);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.ir-event-link:hover{ background: var(--ir-black); color: var(--ir-blue); }

.ir-event-more{ margin-top: 32px; }

/* ---------- LABEL / CATALOG ---------- */

.ir-catalog{ border-top: 3px solid var(--ir-black); }

.ir-cat-row{
  display: grid;
  grid-template-columns: 110px 1fr 1fr 130px;
  border-bottom: 3px solid var(--ir-black);
}

.ir-cat-row > div{
  padding: 22px 18px;
  border-right: 3px solid var(--ir-black);
  display: flex;
  align-items: center;
  font-size: 15px;
}

.ir-cat-row > div:last-child{ border-right: none; justify-content: flex-end; }

.ir-cat-num{ font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 18px; }

.ir-cat-title{ font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; }

.ir-cat-type{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ir-black);
  color: var(--ir-white);
  padding: 6px 12px;
}

.ir-cat-header > div{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ir-grey);
  padding: 12px 18px;
}

/* ---------- PAST EVENTS ARCHIVE ---------- */

.ir-page-head,
.ir-archive{
  font-family: 'Space Grotesk', sans-serif;
}

.ir-page-head *,
.ir-archive *{ box-sizing: border-box; }

.ir-page-head a{ color: inherit; text-decoration: none; }

.ir-page-head{
  padding: 90px 32px 50px;
  border-bottom: 3px solid var(--ir-black);
}

.ir-back-link{
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ir-black);
  margin-bottom: 30px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ir-back-link:hover{ color: var(--ir-blue); border-color: var(--ir-blue); }

.ir-page-title{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.86;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(48px, 11vw, 150px);
}

.ir-page-sub{
  margin-top: 30px;
  padding-top: 24px;
  border-top: 3px solid var(--ir-black);
  font-size: 16px;
  max-width: 46ch;
}

.ir-archive{ padding: 70px 0 100px; }

.ir-archive-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ir-past-card{
  border: 3px solid var(--ir-black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ir-past-card:nth-child(3n+2){ transform: rotate(-0.6deg); }
.ir-past-card:nth-child(3n+3){ transform: rotate(0.6deg); }

.ir-past-media{
  aspect-ratio: 4 / 5;
  border-bottom: 3px solid var(--ir-black);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
}

.ir-past-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills the frame without stretching the photo */
  object-position: center;
}

/* Placeholder color cycling — only visible when a card has no photo yet */
.ir-past-card:nth-child(3n+1) .ir-past-media{ background: var(--ir-black); color: var(--ir-white); }
.ir-past-card:nth-child(3n+2) .ir-past-media{ background: var(--ir-blue); color: var(--ir-black); }
.ir-past-card:nth-child(3n+3) .ir-past-media{ background: var(--ir-pink); color: var(--ir-black); }

.ir-past-media-label{
  position: relative;
  z-index: 1;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 6px 10px;
}

.ir-past-body{ padding: 22px 20px 24px; }

.ir-past-date{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ir-grey);
  margin-bottom: 10px;
}

.ir-past-name{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
}

.ir-past-venue{
  font-size: 14px;
  margin-top: 8px;
  color: var(--ir-grey);
}

.ir-past-recap{
  font-size: 14px;
  margin-top: 16px;
  line-height: 1.5;
}

.ir-archive-note{
  border: 3px dashed var(--ir-black);
  padding: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 28px;
}

/* ---------- ROSTER GRID ---------- */

.ir-roster{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ir-artist{
  border: 3px solid var(--ir-white);
  background: var(--ir-black);
  color: var(--ir-white);
  padding: 26px 22px 22px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden; /* keeps the photo's edges clipped to the card's border */
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ir-artist-photo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the card without stretching the photo */
  object-position: center;
  z-index: 0;
  transition: transform 0.4s ease;
}

.ir-artist-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
  transition: background 0.2s ease;
}

/* Text stays above the photo + overlay on cards that have one */
.ir-artist.has-photo .ir-artist-index,
.ir-artist.has-photo .ir-artist-name,
.ir-artist.has-photo .ir-artist-meta{
  position: relative;
  z-index: 2;
}

.ir-artist.has-photo:hover,
.ir-artist.has-photo:focus-visible{
  color: var(--ir-white); /* keep text white on hover — the generic invert-to-black rule below would make it unreadable over a photo */
}

.ir-artist.has-photo:hover .ir-artist-photo,
.ir-artist.has-photo:focus-visible .ir-artist-photo{
  transform: scale(1.06);
}

.ir-artist.has-photo:hover .ir-artist-overlay,
.ir-artist.has-photo:focus-visible .ir-artist-overlay{
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(26, 51, 255, 0.35) 55%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.ir-artist:nth-child(3n+1){ transform: rotate(-1deg); }
.ir-artist:nth-child(3n+2){ transform: rotate(0.8deg); }
.ir-artist:nth-child(4){ grid-column: span 2; }

.ir-artist:hover,
.ir-artist:focus-visible{ background: var(--ir-white); color: var(--ir-black); }

.ir-artist:focus-visible{ outline: 3px solid var(--ir-blue); outline-offset: 2px; }

.ir-artist-index{
  font-family: 'Archivo', sans-serif;
  font-size: 40px;
  font-weight: 900;
  opacity: 0.35;
}

.ir-artist-name{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 18px;
}

.ir-artist-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ir-artist-open-hint{ font-size: 11px; opacity: 0.6; }

.ir-roster-note{
  grid-column: 1 / -1;
  border: 3px dashed var(--ir-white);
  padding: 22px;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- MODAL ---------- */

.ir-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.ir-modal-overlay.is-open{ display: flex; }

.ir-modal-box{
  background: var(--ir-white);
  color: var(--ir-black);
  border: 3px solid var(--ir-black);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* the box itself never scrolls or shows a scrollbar */
}

/* Only this inner area scrolls when a bio is long — the close button
   above lives outside it, so it never gets scrolled out of reach. */
.ir-modal-scroll{
  overflow-y: auto;
  padding: 34px 30px 30px;
  scrollbar-width: none;      /* Firefox: keep scrolling, hide the bar */
  -ms-overflow-style: none;   /* old Edge/IE */
}

.ir-modal-scroll::-webkit-scrollbar{ display: none; } /* Chrome/Safari */

.ir-modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  border: 3px solid var(--ir-black);
  background: var(--ir-white);
  color: var(--ir-black);
  width: 36px;
  height: 36px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 2; /* stays above the scrolling content underneath it */
}

.ir-modal-close:hover{ background: var(--ir-black); color: var(--ir-white); }

.ir-modal-index{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 34px;
  opacity: 0.3;
  display: block;
}

.ir-modal-photo{
  margin-top: 16px;
  border: 3px solid var(--ir-black);
  overflow: hidden;
  height: 460px;          /* taller still so the full face reliably fits in frame */
  width: 100%;
}

.ir-modal-photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the frame without distorting/stretching the photo */
  object-position: center; /* centered crop instead of biased toward the top */
}

.ir-modal-name{
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 6vw, 40px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 16px 0 0;
}

.ir-modal-genre{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ir-grey);
  margin-top: 8px;
}

.ir-modal-bio{
  font-size: 16px;
  line-height: 1.6;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 3px solid var(--ir-black);
}

.ir-modal-bio p:first-child{ margin-top: 0; }
.ir-modal-bio p:last-child{ margin-bottom: 0; }

.ir-modal-links{
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.ir-modal-links a{
  border: 3px solid var(--ir-black);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.ir-modal-links a:hover{ background: var(--ir-black); color: var(--ir-blue); }

/* ---------- MOBILE / RESPONSIVE ---------- */

@media (max-width: 900px){
  .ir-sect-inner{ padding: 70px 0; }
  .ir-sect-head{ grid-template-columns: 1fr; gap: 20px; padding-bottom: 40px; }
  .ir-wrap{ padding: 0 24px; }
  .ir-roster{ grid-template-columns: 1fr 1fr; }
  .ir-artist:nth-child(4){ grid-column: span 2; }
  .ir-event-left{ flex-direction: column; gap: 6px; align-items: flex-start; }
  .ir-event-row{ grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .ir-cat-row{ grid-template-columns: 70px 1fr; }
  .ir-cat-row > div:nth-child(3){ grid-column: 2; border-top: 3px solid var(--ir-black); }
  .ir-cat-row > div:nth-child(4){ grid-column: 2; border-top: none; justify-content: flex-start; }
  .ir-cat-header{ display: none; }
  .ir-page-head{ padding: 70px 20px 40px; }
  .ir-archive-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .ir-roster{ grid-template-columns: 1fr; }
  .ir-artist:nth-child(4){ grid-column: span 1; }
  .ir-modal-overlay{ padding: 12px; align-items: flex-end; }
  .ir-modal-box{ max-height: 92vh; }
  .ir-modal-scroll{ padding: 26px 20px 24px; }
  .ir-modal-photo{ height: 340px; }
  .ir-modal-links{ flex-direction: column; }
  .ir-modal-links a{ text-align: center; }
  .ir-archive-grid{ grid-template-columns: 1fr; }
}
