/* 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 6.5rem;
  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-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 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.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;
}

/* —— Featured strip straddles the hero / body border —— */
.pf-ex1-featured {
  position: relative;
  z-index: 3;
  margin-top: -5.5rem;
  margin-bottom: -5.5rem;
  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: 6.75rem;
  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;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 1.35rem 2rem;
  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);
}

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

.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: 380px;
  width: 100%;
}

.pf-ex1-card-copy {
  min-width: 0;
  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;
}

.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: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

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

.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;
}

@media (min-width: 900px) {
  .pf-ex1-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .pf-ex1-featured {
    margin-top: -4.25rem;
    margin-bottom: -4.25rem;
  }

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

  .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: 4.25rem;
  }

  .pf-ex1-featured {
    margin-top: -3.5rem;
    margin-bottom: -3.5rem;
  }

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

  .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 {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    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-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 large stage as examples-gallery / demo */
body.pf-examples1-page .library-modal {
  position: fixed !important;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: rgba(50, 50, 50, 0.6) !important;
  display: none;
  z-index: 99999;
  box-sizing: border-box;
}

body.pf-examples1-page .library-modal.show {
  display: block !important;
}

body.pf-examples1-page .library-modal-content {
  margin: 0;
  position: absolute !important;
  top: 5.5%;
  left: 5.5%;
  right: 5.5%;
  bottom: 5.5%;
  width: auto !important;
  height: auto !important;
  max-width: none;
  max-height: none;
  transform: none !important;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28), 0 2px 10px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

body.pf-examples1-page .library-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  border-radius: 25px;
}

body.pf-examples1-page .library-modal-back {
  position: absolute;
  top: calc(2.25% + env(safe-area-inset-top, 0px));
  right: 2.25%;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 100001;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

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

@media (max-width: 768px) {
  body.pf-examples1-page .library-modal-content {
    top: 4%;
    left: 3.5%;
    right: 3.5%;
    bottom: 4%;
    border-radius: 18px;
  }

  body.pf-examples1-page .library-modal-frame {
    border-radius: 18px;
  }

  body.pf-examples1-page .library-modal-back {
    top: calc(1.25% + env(safe-area-inset-top, 0px));
    right: 1.5%;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}
