/* «گالری ناخن» — real nail photos. Reuses the hair library's grammar (hlo, hl__bar, hc, hs) and adds the colour ribbon,
   the swatches drawn from each photo, the studio hand-off card and the fanned band on the nails page. */

/* opening: a ribbon of every photo's main colour, each a nail tip */
.ngo__in { gap: clamp(22px, 3vw, 40px); }
.ngo__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.ngo__rib { display: flex; align-items: end; gap: clamp(2px, .35vw, 5px); height: clamp(46px, 6vw, 78px); }
.ngo__rib i { flex: 1; min-width: 0; height: 100%; background: var(--sw); border-radius: 9999px 9999px 2px 2px;
  box-shadow: inset 0 0 0 1px rgba(46,34,32,.08); transform-origin: 50% 100%; animation: ngRib 1.1s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
.ngo__rib i:nth-child(3n+2) { height: 84%; } .ngo__rib i:nth-child(3n) { height: 70%; }
@keyframes ngRib { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .ngo__rib i { animation: none; } }

/* swatches drawn from the photo, on the card and in the sheet */
.ng__sw { display: flex; gap: 4px; padding: 5px 7px; }
.ng__sw i, .ng__dot, .ng__shades i { display: inline-block; width: 10px; height: 15px; border-radius: 9999px 9999px 2px 2px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(46,34,32,.14); }
.ng__dot { width: 9px; height: 13px; margin-inline-end: 7px; vertical-align: -2px; }
.ng__shades { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ng__shades span { display: inline-flex; align-items: center; gap: 7px; }

/* «طراحی همین در آتلیه»: the same look drawn as three nails, then into the studio */
.ng__studio { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; color: inherit; text-decoration: none;
  background: var(--blush); border: 1px solid transparent; transition: border-color .4s var(--ease), background .4s var(--ease); }
.ng__studio:hover { border-color: var(--rosegold); background: #F5E6DF; }
.ng__set { display: flex; align-items: end; gap: 3px; height: 62px; }
.ng__set svg { height: 100%; width: auto; overflow: visible; }
.ng__set svg:nth-child(1) { height: 84%; transform: rotate(-7deg); transform-origin: 50% 100%; }
.ng__set svg:nth-child(3) { height: 84%; transform: rotate(7deg); transform-origin: 50% 100%; }
.ng__studio > span:nth-child(2) { display: grid; gap: 3px; }
.ng__studio b { font-weight: 500; font-size: 15px; }
.ng__studio small { font-size: 12px; line-height: 1.8; color: var(--cocoa); }

/* nails page: the gallery band, five photos fanned like prints on a table */
.ngb { background: var(--blush); overflow: hidden; }
.ngb__in { display: grid; gap: clamp(30px, 4vw, 60px); align-items: center; }
@media (min-width: 900px) { .ngb__in { grid-template-columns: .9fr 1.25fr; } }
.ngb__body { display: grid; gap: 18px; justify-items: start; }
.ngb__body .muted { max-width: 32em; line-height: 2.05; margin: 0; }
.ngb__n { display: flex; gap: 8px 26px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--cocoa); }
.ngb__n b { font-family: var(--f-display); font-weight: 200; font-size: 40px; color: var(--bordeaux); margin-inline-end: 6px; }
.ngb__fan { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44vw); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px; scrollbar-width: none; }
.ngb__fan::-webkit-scrollbar { display: none; }
.ngb__c { display: grid; gap: 8px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.ngb__c .media { border-radius: 9999px 9999px 2px 2px; overflow: hidden; background: var(--nude); box-shadow: 0 18px 34px -22px rgba(46,34,32,.55); }
.ngb__c .media img { transition: transform 1.4s var(--ease); }
.ngb__c small { font-size: 12.5px; color: var(--espresso); text-align: center; }
@media (min-width: 900px) {
  .ngb__fan { position: relative; display: block; height: clamp(380px, 36vw, 540px); overflow: visible; margin: 0; padding: 0; }
  .ngb__c { position: absolute; bottom: 0; width: 30%; inset-inline-start: calc(var(--i) * 17.5%);
    transform-origin: 50% 120%; transform: rotate(calc((var(--i) - 2) * 6deg)) translateY(calc(var(--d) * 18px));
    transition: transform .9s var(--ease), z-index 0s; z-index: calc(10 - var(--d)); }
  .ngb__c small { opacity: 0; transition: opacity .5s var(--ease); }
  .ngb__c:hover, .ngb__c:focus-visible { transform: rotate(0deg) translateY(-26px) scale(1.04); z-index: 20; }
  .ngb__c:hover small, .ngb__c:focus-visible small { opacity: 1; }
  .ngb__c:hover .media img { transform: scale(1.05); }
}

/* studio header: the way into the gallery */
.studio__gal { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; }
.studio__gal svg { color: var(--rosegold); flex: none; }
