/* ===== Judges (nw) ===== */
.judges-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.judge-card{
  grid-column: span 6;
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in oklab, var(--accent) 28%, rgba(255,255,255,0.08));
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.08));
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.judge-photo{
  width:110px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.judge-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.judge-top{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap: 10px;
}

.judge-name{
  margin:0;
  font-size: 1.05rem;
  line-height:1.2;
  color: var(--accent);
  font-family: "Cinzel", serif;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.judge-country{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  opacity: 0.9;
  font-size: 0.9rem;
}

.judge-flag{ font-size: 1.05rem; line-height:1; }
.judge-bio{ margin: 10px 0 0; opacity: 0.9; }

@media (max-width: 860px){
  .judge-card{ grid-column: span 12; }
}

/* ===== Judges modal (fullscreen) ===== */
.judge-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.judge-modal__panel{
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.78));
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.judge-modal__imgWrap{
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.10);
  min-height: 280px;
}

.judge-modal__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.judge-modal__body{
  padding: 18px 18px 16px;
  overflow: auto;
}

.judge-modal__titleRow{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.judge-modal__name{
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--accent);
  font-family: "Cinzel", serif;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.judge-modal__country{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.92;
}

.judge-modal__bio{
  margin: 12px 0 0;
  opacity: 0.92;
  font-size: 1rem;
}

.judge-modal__close{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.judge-modal__close:hover{
  background: rgba(255,255,255,0.10);
}

@media (max-width: 860px){
  .judge-modal__panel{
    grid-template-columns: 1fr;
  }
  .judge-modal__imgWrap{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    max-height: 50vh;
  }
}


@media (max-width: 520px){
  .judge-card{ grid-template-columns: 86px 1fr; }
  .judge-photo{ width:86px; border-radius: 12px; }
}

.no-scroll { overflow: hidden !important; }

/* Padidinam kortelę */
.judge-card{
  grid-template-columns: 150px 1fr; /* buvo 110px */
}

/* Padidinam foto kortelėje */
.judge-photo{
  width:150px; /* buvo 110px */
}

/* Kad trumpas aprašas atrodytų švariai */
.judge-bio{
  margin: 10px 0 0;
  opacity: 0.9;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mažas hint’as */
.judge-more{
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Modal’e leisti naujas eilutes ir sąrašus su \n */
.judge-modal__bio{
  white-space: pre-line;
}

/* Mobile – proporcijos */
@media (max-width: 520px){
  .judge-card{ grid-template-columns: 110px 1fr; }
  .judge-photo{ width:110px; }
}

.no-scroll { overflow: hidden !important; }

.judge-flag{
  width: 1.4em;
  height: 1em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  flex: 0 0 auto;
}
