/* AmharicLab shop — "Look inside" sample pages, preview PDF buttons and the page viewer.
   Loaded after shop.css (does not change the basket or checkout styles). */
.card__preview { margin: .2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; font-size: .9rem; }
.card__preview-label { font-weight: 700; margin-right: .2rem; }
.shop .card__preview-label .en { font-weight: 400; }
.shop a.pdflink { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border: 1.5px solid #C0392B; border-radius: 999px; color: #C0392B; font-weight: 700; text-decoration: none; background: #fff; }
.shop a.pdflink:hover, .shop a.pdflink:focus-visible { background: #C0392B; color: #fff; }
.shop a.pdflink:hover .en, .shop a.pdflink:focus-visible .en { color: #fff; }
.shop a.pdflink .en { font-weight: 400; }

.inside { margin: .3rem 0 0; }
.inside__label { margin: 0 0 .4rem; font-size: .9rem; font-weight: 700; }
.shop .inside__label .en { font-weight: 400; }
.inside__strip { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.inside__thumb { flex: 0 0 auto; width: 78px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; scroll-snap-align: start; font: inherit; color: inherit; }
.inside__thumb img { display: block; width: 78px; height: auto; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 6px; border: 1px solid #DDE2EA; box-shadow: 0 2px 6px rgba(15, 20, 30, .08); background: #fff; transition: transform .15s, box-shadow .15s; }
.inside__thumb:hover img { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 20, 30, .16); }
.inside__thumb:focus-visible { outline: none; }
.inside__thumb:focus-visible img { outline: 3px solid #049FB4; outline-offset: 2px; }
.inside__thumb span { display: block; margin-top: .25rem; font-size: .7rem; line-height: 1.25; color: #5B6475; }

.lightbox img { display: block; max-height: 82vh; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.lightbox__cap { color: #fff; font-weight: 700; font-size: .95rem; text-align: center; }
.lightbox .lightbox__cap .en { color: #D6DBE3; margin-left: .3rem; }
.lightbox__count { display: inline-block; margin-left: .6rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 400; font-size: .8rem; }
.lightbox__nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: #1D2433; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.lightbox.is-gallery .lightbox__nav { display: block; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox.is-gallery img { max-height: 72vh; }
}
