/* Project detail refinements — shared FR/EN */

/* Counter removed from markup; defensive rule for cached/dynamic variants. */
.project-intro__index{
  display:none !important;
}

/* Software list */
.project-software-list{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  align-items:center;
}

.project-software-list .software-chip{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-width:0;
  margin:0;
  padding:0;
  font-size:inherit;
  line-height:1.35;
}

.project-software-list .software-chip img{
  display:block;
  width:30px;
  height:30px;
  flex:0 0 30px;
  object-fit:contain;
  background:transparent;
}

.project-software-list .software-chip span{
  white-space:nowrap;
}

/* Tablet */
@media(max-width:1020px){
  .project-software-list{
    gap:10px 16px;
  }
  .project-software-list .software-chip img{
    width:28px;
    height:28px;
    flex-basis:28px;
  }
}

/* Mobile: compact two-column list when space permits. */
@media(max-width:700px){
  .project-software-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 16px;
    width:100%;
  }
  .project-software-list .software-chip{
    min-width:0;
  }
  .project-software-list .software-chip span{
    white-space:normal;
  }
}

/* Very narrow phones: one item per line, preventing cramped labels. */
@media(max-width:420px){
  .project-software-list{
    grid-template-columns:1fr;
    gap:10px;
  }
}


/* =========================================================
   Project detail — Emirates gallery + Star Sketchfab viewer
   ========================================================= */

/* Emirates: every gallery preview uses exactly the same box. */
.emirates-uniform-gallery .project-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.emirates-uniform-gallery .project-gallery figure{
  margin:0;
  width:100%;
  min-width:0;
}
.emirates-uniform-gallery .project-gallery figure > button{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  padding:0;
  border:0;
  overflow:hidden;
}
.emirates-uniform-gallery .project-gallery figure > button > img,
.emirates-uniform-gallery .project-gallery figure > img{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:16 / 9;
  object-fit:cover;
  object-position:center;
}

/* Star: responsive embedded Sketchfab preview. */
.sketchfab-viewer{
  width:100%;
  margin:40px 0 0;
}
.sketchfab-viewer__frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:#17191c;
}
.sketchfab-viewer__frame iframe{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  border:0;
}

@media(max-width:700px){
  .emirates-uniform-gallery .project-gallery{
    grid-template-columns:1fr;
    gap:16px;
  }
  .sketchfab-viewer{
    margin-top:30px;
  }
  .sketchfab-viewer__frame{
    aspect-ratio:4 / 3;
  }
}

@media(max-width:430px){
  .sketchfab-viewer__frame{
    aspect-ratio:1 / 1;
  }
}
