/* GAON | חברי ההנהלה ומשרות המפתח
   מקור: Figma SYYawKACqZUzT0QyPgv4bf, node 1:3367. כרטיס 319x454, רדיוס 14, מרווח 46

   לולאה אינסופית, בלי אוטופליי. הסליידר נשאר סליידר גם במובייל,
   וניתן להזיז אותו גם בגרירה וב-swipe, לא רק בחיצים. */

.glx{
  --glx-card: clamp(240px, 213.67px + 7.315vw, 319px);
  --glx-gap: clamp(16px, 6px + 2.778vw, 46px);
  --glx-radius: 14px;
  --glx-scrim: 0.72;
  --glx-role-max: 215px;
  --glx-ink: #040404;
  --glx-badge-border: #CBCBCB;
  --glx-badge-bg: #FFFFFF;
  --glx-tag-bg: rgba(87, 87, 87, 0.48);
  --glx-tag-border: #CBCBCB;
  --glx-head-gap: clamp(24px, 12px + 3.333vw, 60px);
  --glx-font: "Noto Sans Hebrew", system-ui, Arial, sans-serif;

  inline-size: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--glx-head-gap);
  font-family: var(--glx-font);
  color: var(--glx-ink);
}

/* הכותרת מימין והחיצים משמאל, כמו בפריים הדסקטופ. */
.glx__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.glx__headtext{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: start;
}

.glx__badge{
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: clamp(16px, 11.77px + 1.127vw, 28px);
  padding-block: 2px;
  padding-inline: clamp(10px, 4.4px + 1.49vw, 26px);
  border: 1px solid var(--glx-badge-border);
  border-radius: clamp(5.74px, 4.24px + 0.4vw, 10px);
  background-color: var(--glx-badge-bg);
  font-size: clamp(10px, 7.54px + 0.657vw, 17px);
  line-height: 1.4;
  color: var(--glx-ink);
  white-space: nowrap;
}

.glx__title{
  margin: 0;
  font-weight: 500;
  font-size: clamp(38px, 32.92px + 1.354vw, 52.42px);
  line-height: clamp(45px, 38.94px + 1.617vw, 62.22px);
  color: var(--glx-ink);
}

.glx__br{ display: none; }

.glx__nav{
  direction: ltr;
  display: flex;
  align-items: center;
  gap: clamp(12px, 9.33px + 0.741vw, 20px);
  flex: 0 0 auto;
}

.glx .glx__btn{
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 43px;
  block-size: 24px;
  color: var(--glx-ink);
  background-color: transparent;
  border: 0;
  text-decoration: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s ease;
}
.glx .glx__btn:hover{ opacity: .55; background-color: transparent; color: var(--glx-ink); }
.glx .glx__btn:active{ opacity: .4; background-color: transparent; color: var(--glx-ink); }
.glx .glx__btn:focus{ background-color: transparent; color: var(--glx-ink); outline: none; }
.glx .glx__btn:focus-visible{ outline: 2px solid var(--glx-ink); outline-offset: 4px; border-radius: 4px; }
.glx .glx__btn .glx__ico{ display: block; inline-size: 43px; block-size: 24px; }

/* הרצועה. ב-full bleed היא יוצאת מהקונטיינר ונחתכת בשני הצדדים. */
.glx__viewport{
  overflow: hidden;
  /* Vertical scrolling stays with the browser and horizontal movement is ours.
     Without this the phone would claim the gesture before the script sees it,
     and on a strip this tall that is most of the screen. */
  touch-action: pan-y;
}

/* The drag affordance, on devices that have a cursor to show it with. */
@media (hover: hover) and (pointer: fine){
  .glx__viewport{ cursor: grab; }
  .glx__viewport:active{ cursor: grabbing; }
}

.glx--bleed .glx__viewport{
  inline-size: 100vw;
  margin-inline-start: calc(50% - 50vw);
}

.glx__track{
  display: flex;
  column-gap: var(--glx-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.glx__card{
  position: relative;
  flex: 0 0 auto;
  inline-size: var(--glx-card);
  aspect-ratio: 319 / 454;
  border-radius: var(--glx-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-block: clamp(20px, 13.33px + 1.852vw, 30px);
  padding-inline: 10px;
  background-color: #3A3D42;
  list-style: none;
}

/* A dragged image is the browser's own gesture, and it would swallow the
   swipe halfway through. */
.glx .glx__photo{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--glx-radius);
  -webkit-user-drag: none;
  user-select: none;
}

.glx__scrim{
  position: absolute;
  inset: 0;
  border-radius: var(--glx-radius);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(20, 20, 20, var(--glx-scrim)) 100%);
}

.glx__name{
  position: relative;
  margin: 0;
  inline-size: 100%;
  font-weight: 700;
  font-size: clamp(28px, 24.83px + 0.879vw, 37.49px);
  line-height: 1.1416;
  text-align: center;
  color: #FFFFFF;
  text-wrap: balance;
}

/* קפסולת התפקיד. הפיגמה מגדיר 183 פיקסל, וברוחב הזה ארבעה
   מהתפקידים נשברים לשלוש וארבע שורות בפונט של האתר. 215 הוא הערך
   הנמוך ביותר שבו כל שלושה עשר התפקידים נכנסים בשתי שורות לכל היותר.
   ה-min מול הכרטיס שומר על המרווח במובייל כשהכרטיס מתכווץ. */
.glx__role{
  position: relative;
  margin: 0;
  max-inline-size: min(var(--glx-role-max), 100%);
  padding-block: 4px;
  padding-inline: 14px;
  border: 1px solid var(--glx-tag-border);
  border-radius: 10px;
  background-color: var(--glx-tag-bg);
  font-weight: 400;
  font-size: clamp(15px, 14.33px + 0.185vw, 17px);
  line-height: 1.2941;
  text-align: center;
  text-wrap: balance;
  color: #FFFFFF;
}

@media (max-width: 767px){
  .glx__head{
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .glx__nav{ align-self: flex-start; }
  .glx .glx__btn{ inline-size: 34px; block-size: 20px; }
  .glx .glx__btn .glx__ico{ inline-size: 34px; block-size: 20px; }
}

@media (min-width: 768px){
  .glx__br{ display: inline; }
}

@media (prefers-reduced-motion: reduce){
  .glx__track{ transition: none !important; }
  .glx .glx__btn{ transition: none; }
}
