/* "Fábio explica" gallery. Uses the site tokens from ../style.css. */
.fe-head { padding-top: 64px; }
.fe-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.fe-empty { padding: 40px 28px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--muted); text-align: center; }
.fe-empty a { color: var(--blue); font-weight: 700; text-decoration: underline; }

.fe-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; align-items: start; }
.fe-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease); }
.fe-item:hover { border-color: var(--blue); box-shadow: 0 18px 40px rgba(20, 18, 122, .12); transform: translateY(-4px); }
.fe-item img { width: 100%; height: auto; background: var(--paper); }
.fe-cap { display: grid; gap: 4px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.fe-cap strong { font: 800 1.4rem/1.25 var(--display); letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
.fe-cap em { margin-top: 6px; font: 700 .92rem var(--body); font-style: normal; color: var(--blue); transition: transform .3s var(--ease); justify-self: start; }
.fe-item:hover .fe-cap em { transform: translateX(6px); }

.fe-lock { overflow: hidden; }
.fe-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 12px; padding: 24px 16px 20px; background: rgba(7, 6, 46, .92); }
.fe-lightbox[hidden] { display: none; }
.fe-lightbox img { max-width: min(100%, 980px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.fe-lightbox p { margin: 0; color: #fff; font-weight: 600; text-align: center; }
.fe-lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .2s; }
.fe-lightbox__close:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 520px) {
  .fe-head { padding-top: 40px; }
  .fe-grid { grid-template-columns: 1fr; }
}
