/* Draft examples page: /pdf-flipbook-examples1 */

body.pf-examples1-page {
  background: #fff;
}

body.pf-examples1-page #page.page {
  background: #fff;
  overflow: visible;
}

body.pf-examples1-page .container-xxl {
  max-width: 1480px;
}

/* —— Hero (white header band) —— */
.pf-ex1-hero {
  position: relative;
  z-index: 1;
  padding: 6.25rem 0 0;
  overflow: visible;
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(15, 188, 73, 0.1), transparent 55%),
    #ffffff;
}

.pf-ex1-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.pf-ex1-hero-shelf-band {
  position: relative;
  z-index: 4;
  margin-top: 2.15rem;
  margin-bottom: -1.4rem;
}

.pf-ex1-hero-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--green, #0fbc49);
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-ex1-hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: var(--header-color, #111111);
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.pf-ex1-hero-lead {
  max-width: 68rem;
  margin: 0 auto 1.35rem;
  font-family: var(--main-font, "Roboto", sans-serif);
  color: #3f4652;
  font-size: 1.08rem;
  line-height: 1.55;
}

.pf-ex1-hero-actions {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0;
}

.pf-ex1-hero-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  color: #5c6570;
  font-size: 0.9rem;
}

.pf-ex1-hero-shelf {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.pf-ex1-hero-shelf .library-shelf:last-child {
  margin-bottom: 0;
}

.pf-ex1-hero-shelf .book_shelf_container .shelf {
  margin-bottom: 0;
}

.pf-ex1-hero-shelf .book_shelf_container,
.pf-ex1-hero-shelf .pf-ex1-bookshelf {
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  margin: 0 auto;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.pf-ex1-hero-shelf .library-shelves {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.pf-ex1-hero-shelf .library-shelf {
  margin-bottom: 0.35rem;
}

.pf-ex1-hero-shelf .book_shelf_container .shelf,
.pf-ex1-hero-shelf.pf-ex1-more--bookshelf .shelf {
  border-bottom-color: var(--hero-shelf-color, #605c52) !important;
}

.pf-ex1-hero-shelf .book_shelf_container .shelf:after,
.pf-ex1-hero-shelf.pf-ex1-more--bookshelf .shelf:after {
  background: var(--hero-shelf-edge, url(https://d2fn54x1v3te25.cloudfront.net/gallery/shelf/shelf-texture-woodnat.jpg) top left repeat-x) !important;
}

.pf-ex1-hero-shelf .book_shelf_container .library-row .book img {
  max-height: clamp(9.5rem, 22vw, 13.5rem);
}

/* Featured strip (legacy thumbs, unused when the hero shelf is present) */
.pf-ex1-featured {
  position: relative;
  z-index: 3;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.pf-ex1-featured .container-xxl {
  position: relative;
  z-index: 1;
}

.pf-ex1-featured-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem 1.25rem;
  align-items: center;
  justify-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.pf-ex1-below {
  position: relative;
  z-index: 1;
  background: #f3f4f6;
  padding-top: 3.35rem;
  border-top: 1px solid #d1d5db;
}

.pf-ex1-featured-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 190px;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  pointer-events: auto;
}

.pf-ex1-featured-item:focus-visible {
  outline: 2px solid var(--green, #0fbc49);
  outline-offset: 4px;
  border-radius: 0.4rem;
}

.pf-ex1-featured-item:disabled {
  cursor: default;
  opacity: 0.85;
}

/* —— Page-curl thumb —— */
.pf-ex1-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 148px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.06),
    0 10px 22px rgba(17, 24, 39, 0.12);
  overflow: hidden;
  background: #fff;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.pf-ex1-thumb-inner,
.pf-ex1-thumb-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-ex1-thumb-inner {
  z-index: 1;
}

.pf-ex1-thumb-cover {
  z-index: 2;
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
}

.pf-ex1-thumb-curl {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 28%;
  height: 28%;
  pointer-events: none;
  background:
    linear-gradient(225deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 246, 0.92) 42%, rgba(156, 163, 175, 0.35) 58%, transparent 59%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  filter: drop-shadow(-1px 2px 2px rgba(0, 0, 0, 0.18));
}

.pf-ex1-thumb-curl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, transparent 46%, rgba(0, 0, 0, 0.12) 52%, transparent 60%);
}

/* Pre-rendered professional thumbs (cover-flip / spread-3d) */
.pf-ex1-thumb--composed {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
  max-width: 200px;
}

.pf-ex1-thumb--composed .pf-ex1-thumb-composed {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: none;
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-ex1-thumb--featured {
  width: 100%;
  max-width: 190px;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  padding: 0;
}

.pf-ex1-thumb--featured:not(.pf-ex1-thumb--composed) {
  aspect-ratio: 3 / 4;
  max-width: 190px;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.06),
    0 10px 22px rgba(17, 24, 39, 0.14);
}

.pf-ex1-thumb--featured .pf-ex1-thumb-composed {
  filter: drop-shadow(0 8px 18px rgba(17, 24, 39, 0.16));
}

.pf-ex1-thumb--spread,
.pf-ex1-thumb--card.pf-ex1-thumb--spread {
  max-width: 380px;
  width: 100%;
  overflow: visible;
  box-shadow: none;
}

.pf-ex1-thumb--card .pf-ex1-thumb-composed {
  filter: drop-shadow(0 10px 22px rgba(17, 24, 39, 0.14));
}

.pf-ex1-live-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  border: 0;
  background: var(--green, #0fbc49);
  color: #fff;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px)) scale(0.96);
  box-shadow: 0 8px 20px rgba(15, 188, 73, 0.28);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-ex1-featured-item:hover .pf-ex1-thumb,
.pf-ex1-featured-item:focus-visible .pf-ex1-thumb,
.pf-ex1-card-hit:hover .pf-ex1-thumb,
.pf-ex1-card-hit:focus-visible .pf-ex1-thumb {
  transform: translateY(-8px) scale(1.035);
}

.pf-ex1-featured-item:hover .pf-ex1-thumb--composed .pf-ex1-thumb-composed,
.pf-ex1-featured-item:focus-visible .pf-ex1-thumb--composed .pf-ex1-thumb-composed,
.pf-ex1-card-hit:hover .pf-ex1-thumb--composed .pf-ex1-thumb-composed,
.pf-ex1-card-hit:focus-visible .pf-ex1-thumb--composed .pf-ex1-thumb-composed {
  filter: drop-shadow(0 16px 28px rgba(17, 24, 39, 0.22));
}

.pf-ex1-featured-item:hover .pf-ex1-live-btn,
.pf-ex1-featured-item:focus-visible .pf-ex1-live-btn,
.pf-ex1-card-hit:hover .pf-ex1-live-btn,
.pf-ex1-card-hit:focus-visible .pf-ex1-live-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pf-ex1-featured-item:disabled:hover .pf-ex1-thumb,
.pf-ex1-card-hit:disabled:hover .pf-ex1-thumb {
  transform: none;
}

.pf-ex1-featured-item:disabled:hover .pf-ex1-live-btn,
.pf-ex1-card-hit:disabled:hover .pf-ex1-live-btn {
  opacity: 0;
}

/* —— SEO copy —— */
.pf-ex1-seo {
  padding: 1.25rem 0 1.25rem;
  text-align: center;
}

.pf-ex1-seo-copy {
  max-width: 68rem;
  margin: 0 auto 1rem;
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.65;
}

.pf-ex1-seo-copy a {
  color: var(--green, #0fbc49);
  text-decoration: none;
  font-weight: 600;
}

.pf-ex1-seo-copy a:hover {
  color: #0da340;
  text-decoration: underline;
}

.pf-ex1-seo-more {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
}

/* —— Card grid (Publuu boxes) —— */
.pf-ex1-cards {
  padding: 1.25rem 0 2.5rem;
}

.pf-ex1-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.pf-ex1-card {
  display: grid;
  /* Stack by default so mid-width 2-col grids never crush copy to 0. */
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 1.1rem 1.5rem;
  align-items: center;
  padding: 1.45rem 1.6rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  min-width: 0;
}

.pf-ex1-card-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.pf-ex1-card-media .pf-ex1-thumb:not(.pf-ex1-thumb--spread) {
  max-width: 168px;
}

.pf-ex1-card-media .pf-ex1-thumb--spread {
  max-width: min(380px, 100%);
  width: 100%;
}

.pf-ex1-card-copy {
  min-width: 0;
  width: 100%;
  padding-top: 0.15rem;
}

.pf-ex1-card-title {
  margin: 0 0 0.55rem;
  color: #111827;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.pf-ex1-card-desc {
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.6;
}

.pf-ex1-card-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--green, #0fbc49);
  font-weight: 600;
  text-decoration: none;
}

.pf-ex1-card-link:hover {
  text-decoration: underline;
}

.pf-ex1-card-link--about {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.95rem;
  color: #111111;
  font-family: var(--main-font, "Roboto", sans-serif);
  text-align: left;
  text-decoration: none;
}

.pf-ex1-card-link--about:hover {
  color: #111111;
  text-decoration: none;
}

.pf-ex1-card-link--about:hover .pf-ex1-card-link-topic {
  color: var(--green, #0fbc49);
}

.pf-ex1-card-link-lead {
  display: block;
  margin-bottom: 0.2rem;
  color: #111111;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pf-ex1-card-link-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green, #0fbc49);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pf-ex1-card-link-arrow {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
  background: var(--green, #0fbc49);
  clip-path: polygon(0 38%, 62% 38%, 62% 12%, 100% 50%, 62% 88%, 62% 62%, 0 62%);
  transform: translateY(0.04em);
  transition: transform 0.16s ease;
}

.pf-ex1-card-link--about:hover .pf-ex1-card-link-arrow {
  transform: translate(0.12rem, 0.04em);
}

.pf-ex1-card-hit {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.pf-ex1-card-hit:focus-visible {
  outline: 2px solid var(--green, #0fbc49);
  outline-offset: 4px;
  border-radius: 0.4rem;
}

.pf-ex1-card-hit:disabled,
.pf-ex1-live-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

/* One wide card: media | copy (enough room for spread + text). */
@media (min-width: 720px) {
  .pf-ex1-cards-grid {
    grid-template-columns: 1fr;
  }

  .pf-ex1-card {
    grid-template-columns: minmax(0, 380px) minmax(14rem, 1fr);
    justify-items: stretch;
    text-align: left;
    gap: 1.35rem 2rem;
  }
}

/* Two cards side by side: keep media stacked above copy until XL. */
@media (min-width: 1100px) {
  .pf-ex1-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .pf-ex1-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.1rem 1.5rem;
  }
}

/* Wide desktop: media | copy inside each of the two cards. */
@media (min-width: 1500px) {
  .pf-ex1-card {
    grid-template-columns: minmax(0, 340px) minmax(12rem, 1fr);
    justify-items: stretch;
    text-align: left;
    gap: 1.25rem 1.5rem;
  }

  .pf-ex1-card-media .pf-ex1-thumb--spread {
    max-width: min(340px, 100%);
  }
}

@media (max-width: 900px) {
  .pf-ex1-hero {
    padding-bottom: 0;
  }

  .pf-ex1-hero-shelf-band {
    margin-top: 1.75rem;
    margin-bottom: -1.25rem;
  }

  .pf-ex1-below {
    padding-top: 3.1rem;
  }

  .pf-ex1-featured-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 640px;
  }

  .pf-ex1-featured-item,
  .pf-ex1-thumb--featured {
    max-width: 160px;
  }
}

@media (max-width: 640px) {
  .pf-ex1-hero {
    padding-top: 5.25rem;
    padding-bottom: 0;
  }

  .pf-ex1-hero-shelf-band {
    margin-top: 1.5rem;
    margin-bottom: -1.1rem;
  }

  .pf-ex1-below {
    padding-top: 2.85rem;
  }

  .pf-ex1-featured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .pf-ex1-featured-item,
  .pf-ex1-thumb--featured {
    max-width: 140px;
  }

  .pf-ex1-card {
    padding: 1.2rem 1.1rem 1.35rem;
  }

  .pf-ex1-card-copy {
    padding-top: 0;
  }

  .pf-ex1-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pf-ex1-hero-actions .btn {
    width: 100%;
  }
}

/* —— More examples (brochures, catalogs, magazines) —— */
.pf-ex1-more {
  position: relative;
  padding: 4.25rem 0 4rem;
  overflow: hidden;
  border-top: 1px solid rgba(17, 24, 39, 0.07);
}

.pf-ex1-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: min(7.5rem, 28vw);
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--green, #0fbc49);
  box-shadow: 0 0 0 6px #f3f4f6;
}

.pf-ex1-more--band {
  background: #fff;
}

.pf-ex1-more--band::before {
  box-shadow: 0 0 0 6px #fff;
}

.pf-ex1-more--plain {
  background: transparent;
}

.pf-ex1-more-head {
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.pf-ex1-more-title {
  margin: 0 0 0.85rem;
  color: #111827;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pf-ex1-more-lead {
  margin: 0;
  color: #374151;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pf-ex1-more-learn {
  margin: 0.85rem 0 0;
}

.pf-ex1-more-foot {
  margin: 1.75rem 0 0;
  text-align: center;
}

.pf-ex1-more-foot-link {
  color: var(--green, #0fbc49);
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}

.pf-ex1-more-foot-link:hover,
.pf-ex1-more-foot-link:focus-visible {
  color: #0da340;
  text-decoration: underline;
}

.pf-ex1-more--bookshelf .pf-ex1-bookshelf {
  background-image: none;
  background-color: transparent !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  min-height: 0;
}

.pf-ex1-more--bookshelf .shelf {
  border-bottom: 30px solid #203a37;
}

.pf-ex1-more--bookshelf .shelf:after {
  background: url(https://d2fn54x1v3te25.cloudfront.net/gallery/shelf/shelf-texture-woodnat.jpg) top left repeat-x;
}

.pf-ex1-more--shelf-concrete .shelf {
  border-bottom: 30px solid #d7d7d7;
}

.pf-ex1-more--shelf-concrete .shelf:after {
  background: url(https://d2fn54x1v3te25.cloudfront.net/gallery/shelf/shelf-texture-concrete.jpg) top left repeat-x;
}

.pf-ex1-more--bookshelf .library-shelves {
  margin: 0 auto;
  max-width: 1080px;
}

.pf-ex1-more--bookshelf .book {
  cursor: pointer;
}

/* First bookshelf: clean minimal modern atmosphere */
.pf-ex1-more--modern {
  background-color: #eef1f5;
  background-image:
    radial-gradient(ellipse 74% 56% at 50% 44%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 52%, transparent 76%),
    linear-gradient(180deg, rgba(236, 240, 245, 0.5) 0%, rgba(245, 247, 250, 0.22) 48%, rgba(226, 231, 238, 0.5) 100%),
    url("../assets/examples1-thumbs/_bg/modern-bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.pf-ex1-more--modern::before {
  box-shadow: 0 0 0 6px #eef1f5;
}

.pf-ex1-more--modern::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, transparent 16%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.06) 0%, transparent 22%),
    radial-gradient(ellipse 82% 52% at 50% 46%, transparent 42%, rgba(15, 23, 42, 0.05) 100%);
}

.pf-ex1-more--modern > .container-xxl {
  position: relative;
  z-index: 2;
}

.pf-ex1-more--modern .pf-ex1-more-title {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pf-ex1-more--modern .pf-ex1-more-lead {
  color: #334155;
}

.pf-ex1-more--modern .pf-ex1-bookshelf {
  padding: 0.5rem 0.75rem 0.25rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%) !important;
}

/* Classic bookshelf: minimal fairy-tale / story atmosphere */
.pf-ex1-more--storybook {
  background-color: #e9eef4;
  background-image:
    radial-gradient(ellipse 72% 58% at 50% 46%, rgba(255, 252, 246, 0.88) 0%, rgba(255, 252, 246, 0.42) 48%, transparent 74%),
    linear-gradient(180deg, rgba(232, 238, 245, 0.55) 0%, rgba(244, 239, 230, 0.28) 52%, rgba(228, 222, 210, 0.55) 100%),
    url("../assets/examples1-thumbs/_bg/storybook-bg.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.pf-ex1-more--storybook::before {
  box-shadow: 0 0 0 6px #e9eef4;
}

.pf-ex1-more--storybook::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04) 0%, transparent 18%),
    linear-gradient(0deg, rgba(55, 48, 40, 0.1) 0%, transparent 26%),
    radial-gradient(ellipse 80% 50% at 50% 48%, transparent 40%, rgba(17, 24, 39, 0.06) 100%);
}

.pf-ex1-more--storybook > .container-xxl {
  position: relative;
  z-index: 2;
}

.pf-ex1-more--storybook .pf-ex1-more-title {
  color: #1a2332;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.65);
}

.pf-ex1-more--storybook .pf-ex1-more-lead {
  color: #334155;
}

.pf-ex1-more--storybook .pf-ex1-bookshelf {
  padding: 0.5rem 0.75rem 0.25rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(255, 252, 246, 0.55) 0%, rgba(255, 252, 246, 0.12) 70%, transparent 100%) !important;
}

.pf-ex1-more-masonry {
  column-count: auto;
  column-width: 200px;
  column-gap: 1.1rem;
  width: 100%;
}

/* Magazines: keep masonry packing, lock to 6 columns on desktop */
#magazines .pf-ex1-more-masonry {
  column-count: 6;
  column-width: auto;
}

.pf-ex1-more-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.1rem;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  transform: translateZ(0);
}

.pf-ex1-more-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.pf-ex1-more-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #e8eaee;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pf-ex1-more-media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.pf-ex1-more-hit:hover .pf-ex1-more-media,
.pf-ex1-more-hit:focus-visible .pf-ex1-more-media {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.pf-ex1-more-hit:focus-visible {
  outline: none;
}

.pf-ex1-more-hit:focus-visible .pf-ex1-more-media {
  outline: 2px solid rgba(15, 188, 73, 0.55);
  outline-offset: 3px;
}

.pf-ex1-more-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 1.6rem 0.55rem 0.45rem;
  color: #fff;
  font-family: var(--main-font, "Roboto", sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.72) 55%, rgba(17, 24, 39, 0.88) 100%);
  pointer-events: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 1099px) {
  .pf-ex1-more-masonry {
    column-width: 180px;
  }

  #magazines .pf-ex1-more-masonry {
    column-count: 4;
    column-width: auto;
  }
}

@media (max-width: 767px) {
  .pf-ex1-more-masonry {
    column-width: 150px;
    column-gap: 0.85rem;
  }

  #magazines .pf-ex1-more-masonry {
    column-count: 2;
    column-width: auto;
  }

  .pf-ex1-more-card {
    margin-bottom: 0.85rem;
  }
}

/* Lightbox: same dark stage as the homepage #libraryModal */
body.pf-examples1-page .library-modal {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  background: rgba(50, 50, 50, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  box-sizing: border-box;
}

body.pf-examples1-page .library-modal.show {
  display: flex;
}

body.pf-examples1-page .library-modal-content {
  margin: 0;
  position: fixed;
  inset: 2vh 2vw;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  background: #1a1c1f;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  clip-path: inset(0 round 25px);
  box-sizing: border-box;
}

body.pf-examples1-page .library-modal-frame {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 0;
  display: block;
  background: #1a1c1f;
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 1;
  box-sizing: border-box;
  border-radius: 25px;
}

body.pf-examples1-page .library-modal-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.pf-examples1-page .library-modal-back:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 768px), (max-height: 700px) {
  body.pf-examples1-page .library-modal-content {
    inset: 1.5vh 1.5vw;
    border-radius: 16px;
    clip-path: inset(0 round 16px);
  }

  body.pf-examples1-page .library-modal-frame {
    top: -1px;
    left: -1px;
    right: auto;
    bottom: auto;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 16px;
    background: #1a1c1f;
  }

  body.pf-examples1-page .library-modal-back {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
  }
}
