/* Star ratings and comments: under blog posts and beside artworks in the gallery's picture viewer. */
.fbsec { padding: clamp(28px, 5vw, 56px) 0; background: var(--paper-2, #F3EBDD); }
.fbsec__in { max-width: 820px; }
.fb { display: grid; gap: 22px; color: var(--ink, #2A2418); }
.fb__h { font: 600 1.25rem var(--display, Georgia, serif); color: var(--olive, #3B4E00); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.fb__n { font: 600 .8rem var(--body, sans-serif); background: var(--wash-sage, #E4E9D0); color: var(--olive, #3B4E00); border-radius: 999px; padding: 1px 9px; }
.fb__rate, .fb__comments { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 24px -16px rgba(59,78,0,.4); }
.fb__stars { display: inline-flex; gap: 2px; }
.fb__star { font-size: 2rem; line-height: 1; padding: 2px 3px; border: 0; background: none; cursor: pointer; color: #D9CFBB; transition: transform .15s, color .15s; }
.fb__star.is-on { color: var(--orange, #BA6C00); }
.fb__star.is-mine.is-on { color: var(--olive, #3B4E00); }
.fb__stars:hover .fb__star { color: var(--orange, #BA6C00); }
.fb__star:hover ~ .fb__star { color: #D9CFBB; }
.fb__star:hover { transform: scale(1.15); }
.fb__star:focus-visible { outline: 2px solid #1F5FBF; outline-offset: 2px; border-radius: 6px; }
.fb__info { display: block; margin-top: 4px; color: var(--ink-soft, #5E5646); font-size: .95rem; }
.fb__note { margin: 6px 0 0; min-height: 1.2em; font-weight: 600; color: var(--olive, #3B4E00); font-size: .92rem; }
.fb__list { display: grid; gap: 12px; margin-bottom: 14px; }
.fb__c { border-left: 4px solid var(--line, #E2D8C6); padding: 2px 0 2px 14px; }
.fb__c--owner { border-left-color: var(--orange, #BA6C00); background: var(--paper, #FBF7EF); border-radius: 0 10px 10px 0; padding: 8px 12px 8px 14px; }
.fb__who { margin: 0 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.fb__who small { color: var(--ink-soft, #5E5646); }
.fb__badge { font: 600 .72rem var(--body, sans-serif); background: var(--orange, #BA6C00); color: #fff; border-radius: 999px; padding: 1px 8px; }
.fb__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.fb__empty, .fb__wait { color: var(--ink-soft, #5E5646); margin: 0 0 12px; }
.fb__form { display: grid; gap: 10px; margin-top: 6px; }
.fb__form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.fb__form input[type="text"], .fb__form input[type="email"], .fb__form textarea { font: 400 1rem var(--body, sans-serif); padding: 10px 12px; border: 1.5px solid var(--line, #E2D8C6); border-radius: 8px; background: var(--paper, #FBF7EF); color: inherit; width: 100%; }
.fb__form input:focus, .fb__form textarea:focus { outline: none; border-color: var(--orange, #BA6C00); box-shadow: 0 0 0 3px rgba(186,108,0,.15); background: #fff; }
.fb__check { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.fb__check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--olive, #3B4E00); }
.fb__trap { position: absolute !important; left: -9999px; }
.fb__msg { margin: 0; background: #FBE1D6; color: #8E2C00; border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: .92rem; }
.fb__sent { margin: 6px 0 0; background: var(--wash-sage, #E4E9D0); color: var(--olive, #3B4E00); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.fb__form .btn { justify-self: start; }
.fb__ts:empty { display: none; }

/* ----- inside the gallery's picture viewer ----- */
.lb__fb { display: none; }
.lb__fbbtn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--orange, #BA6C00); color: #fff; font: 600 .95rem var(--body, sans-serif); cursor: pointer; box-shadow: 0 8px 20px -8px #000; white-space: nowrap; }
.lb__fbbtn[hidden] { display: none; }
.lb__fbx { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2, #F3EBDD); color: var(--ink, #2A2418); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.lb--fb .lb__fb { display: block; background: var(--paper, #FBF7EF); overflow-y: auto; padding: 16px; }
.lb--fb .fb__rate, .lb--fb .fb__comments { box-shadow: none; border: 1px solid var(--line, #E2D8C6); }
@media (min-width: 1000px) {
  /* wide screens: the panel sits to the right of the picture, always visible */
  .lb.lb--fb { grid-template-columns: 70px 1fr 70px 380px; }
  .lb--fb .lb__fb { grid-column: 4; align-self: stretch; height: 100vh; }
  .lb--fb .lb__x { right: 394px; }
  .lb--fb .lb__fbbtn, .lb--fb .lb__fbx { display: none; }
}
@media (max-width: 999px) {
  /* phones and tablets: the panel slides up when the orange button is pressed */
  .lb--fb .lb__fb { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; border-radius: 18px 18px 0 0; transform: translateY(102%); transition: transform .28s ease; z-index: 4; box-shadow: 0 -12px 40px -10px #000; }
  .lb--fb.lb--fbopen .lb__fb { transform: none; }
  .lb--fb figure { padding-bottom: 64px; }
  .lb--fb img { max-height: calc(100vh - 190px); }
}
@media (prefers-reduced-motion: reduce) { .lb--fb .lb__fb, .fb__star { transition: none; } }
@media print { .fbsec, .lb__fb, .lb__fbbtn { display: none; } }

.fb [hidden], .lb [hidden] { display: none !important; }
.fb__emoji { display: flex; flex-wrap: wrap; gap: 2px; margin-top: -4px; }
.fb__emo { font-size: 1.35rem; line-height: 1; width: 38px; height: 38px; border: 0; background: none; border-radius: 8px; cursor: pointer; transition: transform .12s, background .12s; }
.fb__emo:hover, .fb__emo:focus-visible { background: var(--wash-sage, #E4E9D0); transform: scale(1.15); }

/* small round picture next to each comment: the first letter of the name, or the artist's photo */
.fb__c { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: start; }
.fb__av { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: hsl(var(--h, 30) 55% 86%); color: hsl(var(--h, 30) 45% 28%); font: 700 1.1rem var(--body, sans-serif); box-shadow: 0 0 0 2px #fff, 0 2px 6px -2px rgba(0,0,0,.3); }
.fb__c .fb__who, .fb__c .fb__text { grid-column: 2; }
