.authors-dream-shell {
  position: relative;
  margin: 2rem 0;
  padding: 28px 0 8px;
  overflow: hidden;
}

.authors-dream-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 0 18px;
}

.authors-dream-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(190, 158, 87, 0.12);
  color: #8b6b2f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.authors-dream-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: #171717;
}

.authors-dream-subtitle {
  margin: 0 auto;
  max-width: 680px;
  color: #545454;
  font-size: 1.06rem;
  line-height: 1.7;
}

.authors-dream-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.authors-dream-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: authorsDreamScroll 70s linear infinite;
  padding: 10px 18px 18px;
  will-change: transform;
}

.authors-dream-shell[data-pause="true"] .authors-dream-track:hover {
  animation-play-state: paused;
}

.authors-dream-track > * {
  width: 270px;
  flex: 0 0 auto;
}

.authors-dream-media-wrap {
  position: relative;
  display: block;
  height: 400px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #f5f2ea 0%, #e9dfcc 100%);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  text-decoration: none;
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.authors-dream-media-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}

.authors-dream-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f3efe6;
}

.authors-dream-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #7a6e5e;
  background: #f7f1e7;
}

.authors-dream-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,10,10,0.02) 0%, rgba(10,10,10,0.88) 100%);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.authors-dream-media-wrap:hover .authors-dream-overlay,
.authors-dream-media-wrap:focus .authors-dream-overlay {
  opacity: 1;
  transform: translateY(0);
}

.authors-dream-overlay h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff;
}

.authors-dream-overlay p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.authors-dream-link-label {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4c98f;
}

.authors-dream-empty {
  padding: 20px;
  border-radius: 16px;
  background: #faf6ef;
  border: 1px solid #eadfcd;
}

@keyframes authorsDreamScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 782px) {
  .authors-dream-track > * { width: 220px; }
  .authors-dream-media-wrap {
    height: 320px;
    border-radius: 20px;
  }
}

.authors-dream-products-grid {
  display: grid;
  gap: 24px;
  margin: 18px 0;
}

.authors-dream-products-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.authors-dream-products-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.authors-dream-products-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.authors-dream-products-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.authors-dream-products-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.authors-dream-products-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.authors-dream-product-card {
  border: 1px solid #e7dfd1;
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.authors-dream-product-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 1 / 1;
  background: #f7f1e7;
}

.authors-dream-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.authors-dream-product-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.authors-dream-product-title a {
  text-decoration: none;
  color: #171717;
}

.authors-dream-product-excerpt {
  color: #5b544a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.authors-dream-product-price {
  margin-top: auto;
  margin-bottom: 12px;
  font-weight: 700;
  color: #171717;
}

.authors-dream-daily-shell {
  margin: 20px 0;
}

.authors-dream-daily-image {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: #f7f1e7;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.authors-dream-daily-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.authors-dream-daily-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,10,10,0.04) 0%, rgba(10,10,10,0.82) 100%);
}

.authors-dream-daily-overlay h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.15;
}

.authors-dream-daily-overlay p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 760px;
}

@media (max-width: 1024px) {
  .authors-dream-products-cols-5,
  .authors-dream-products-cols-6,
  .authors-dream-products-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .authors-dream-products-grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .authors-dream-daily-overlay { padding: 20px 18px; }
}


.authors-dream-posts-grid {
  display: grid;
  gap: 24px;
  margin: 18px 0;
}

.authors-dream-posts-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.authors-dream-posts-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.authors-dream-posts-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.authors-dream-posts-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.authors-dream-posts-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.authors-dream-posts-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.authors-dream-post-card {
  border: 1px solid #e7dfd1;
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.authors-dream-post-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: #f7f1e7;
}

.authors-dream-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.authors-dream-post-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: #f7f1e7;
}

.authors-dream-post-cats,
.authors-dream-post-story-universe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.authors-dream-post-cats span,
.authors-dream-post-story-universe span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4ecdf;
  color: #5b544a;
  font-size: 12px;
  line-height: 1;
}

.authors-dream-post-story-universe span {
  background: #efe7ff;
  color: #4c3d75;
}

.authors-dream-post-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.authors-dream-post-title a {
  text-decoration: none;
  color: #171717;
}

.authors-dream-post-date {
  color: #7b7468;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.authors-dream-post-excerpt {
  color: #5b544a;
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.authors-dream-post-actions {
  margin-top: auto;
}

.authors-dream-post-readmore {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

@media (max-width: 1024px) {
  .authors-dream-posts-cols-5,
  .authors-dream-posts-cols-6,
  .authors-dream-posts-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .authors-dream-posts-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}


/* Remade Book Showcase Widget */
.authors-dream-book-showcase-remade {
  margin: 28px 0;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid #e7dfd1;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.authors-dream-book-showcase-remade.style-light { background: #fff; color: #171717; }
.authors-dream-book-showcase-remade.style-dark { background: #111; color: #f3efe8; border-color: rgba(255,255,255,0.08); }
.authors-dream-book-showcase-remade.style-accent { background: linear-gradient(135deg,#fff9f0 0%,#f4edff 100%); color: #171717; }

.authors-dream-book-jump-anchor { display:block; position:relative; top:-100px; visibility:hidden; }

.authors-dream-book-showcase-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
}

.authors-dream-book-showcase-remade.media-right .authors-dream-book-showcase-grid {
  flex-direction: row-reverse;
}

.authors-dream-book-showcase-media {
  flex: 0 0 calc(var(--adbs-main-width, 340px) + var(--adbs-thumb-width, 74px) + 18px);
  max-width: calc(var(--adbs-main-width, 340px) + var(--adbs-thumb-width, 74px) + 18px);
  position: relative;
}

.authors-dream-book-showcase-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 760px;
  padding-top: 8px;
}

.authors-dream-book-showcase-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: #2b5fb8;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px 12px 12px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.authors-dream-book-showcase-gallery {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.authors-dream-book-showcase-remade.thumbs-right .authors-dream-book-showcase-gallery {
  flex-direction: row-reverse;
}

.authors-dream-book-showcase-thumbs {
  width: var(--adbs-thumb-width, 74px);
  min-width: var(--adbs-thumb-width, 74px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.authors-dream-book-showcase-thumb {
  display: block;
  width: var(--adbs-thumb-width, 74px);
  padding: 0;
  border: 1px solid #dfd5c8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.authors-dream-book-showcase-thumb:hover,
.authors-dream-book-showcase-thumb.is-active {
  border-color: #2b5fb8;
  box-shadow: 0 12px 24px rgba(43,95,184,0.18);
  transform: translateY(-1px);
}

.authors-dream-book-showcase-thumb img {
  width: 100%;
  height: var(--adbs-thumb-height, 98px);
  object-fit: cover;
  display: block;
}

.authors-dream-book-showcase-main {
  width: var(--adbs-main-width, 340px);
  max-width: var(--adbs-main-width, 340px);
  border-radius: 22px;
  overflow: hidden;
  background: #f7f1e7;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.authors-dream-book-showcase-main-image {
  width: 100%;
  height: auto;
  display: block;
}

.authors-dream-book-showcase-main-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg,#f3ebdf 0%,#f8f3ff 100%);
}

.authors-dream-book-showcase-universe {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7c6954;
}

.authors-dream-book-showcase-title {
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.05;
  margin: 0 0 12px;
  color: inherit;
}

.authors-dream-book-showcase-author {
  font-size: 1.16rem;
  margin-bottom: 14px;
  opacity: .92;
}
.authors-dream-book-showcase-author span { font-weight: 700; }

.authors-dream-book-showcase-price-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.authors-dream-book-showcase-price-label {
  font-size: 1.08rem;
  font-weight: 600;
  opacity: .82;
}
.authors-dream-book-showcase-price {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.authors-dream-book-showcase-description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: .94;
}

.authors-dream-book-showcase-formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.authors-dream-book-showcase-format {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(23,23,23,0.12);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.72);
}
.authors-dream-book-showcase-remade.style-dark .authors-dream-book-showcase-format {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
.authors-dream-book-showcase-format strong { font-size: 1rem; }
.authors-dream-book-showcase-format span { font-weight: 700; opacity: .9; }

.authors-dream-book-showcase-note {
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  background: rgba(43,95,184,0.08);
  border: 1px solid rgba(43,95,184,0.14);
  line-height: 1.7;
}
.authors-dream-book-showcase-remade.style-dark .authors-dream-book-showcase-note {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

.authors-dream-book-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.authors-dream-book-showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}
.authors-dream-book-showcase-btn.primary {
  background: #2b5fb8;
  color: #fff;
}
.authors-dream-book-showcase-btn.secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(23,23,23,0.16);
}
.authors-dream-book-showcase-remade.style-dark .authors-dream-book-showcase-btn.secondary {
  border-color: rgba(255,255,255,0.18);
}

.authors-dream-book-showcase-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.authors-dream-book-showcase-text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  font-weight: 600;
}

@media (max-width: 980px) {
  .authors-dream-book-showcase-grid,
  .authors-dream-book-showcase-remade.media-right .authors-dream-book-showcase-grid {
    display: block;
  }

  .authors-dream-book-showcase-media,
  .authors-dream-book-showcase-content {
    max-width: 100%;
  }

  .authors-dream-book-showcase-content {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .authors-dream-book-showcase-remade {
    padding: 20px;
  }

  .authors-dream-book-showcase-gallery,
  .authors-dream-book-showcase-remade.thumbs-right .authors-dream-book-showcase-gallery {
    flex-direction: column;
  }

  .authors-dream-book-showcase-thumbs {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
  }

  .authors-dream-book-showcase-thumb {
    flex: 0 0 var(--adbs-thumb-width, 74px);
  }

  .authors-dream-book-showcase-main {
    width: 100%;
    max-width: 100%;
  }
}

/* 1.8.0 gates for all widgets */
.authors-dream-gated-widget { position: relative; isolation: isolate; }
.authors-dream-gate-overlay {
  position: absolute; inset: 0; z-index: 50; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  border: 0; border-radius: inherit; text-align: center; color: #fff;
  background: radial-gradient(circle at top, rgba(126, 86, 188, 0.20), transparent 30%), linear-gradient(135deg, rgba(10,10,10,0.94) 0%, rgba(31,24,48,0.96) 55%, rgba(9,9,9,0.95) 100%);
  backdrop-filter: blur(4px);
}
.authors-dream-gate-overlay.is-spoiler-gate { cursor: pointer; }
.authors-dream-gate-overlay-inner { max-width: 720px; display:flex; flex-direction:column; gap:14px; align-items:center; }
.authors-dream-gate-kicker { display:inline-flex; padding:7px 12px; border-radius:999px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.14); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.authors-dream-gate-title { margin:0; color:#fff; font-size:clamp(1.7rem,3vw,2.8rem); line-height:1.08; }
.authors-dream-gate-text { margin:0; max-width:640px; font-size:1rem; line-height:1.7; color:rgba(255,255,255,0.88); }
.authors-dream-gate-button { display:inline-flex; align-items:center; justify-content:center; margin-top:4px; padding:14px 20px; border-radius:999px; background:#2b5fb8; color:#fff; font-weight:700; text-decoration:none; box-shadow:0 12px 28px rgba(43,95,184,0.28); }
.authors-dream-gated-widget.authors-dream-spoiler-revealed > .authors-dream-gate-overlay.is-spoiler-gate { opacity:0; visibility:hidden; pointer-events:none; transform:scale(1.01); transition:opacity .25s ease, visibility .25s ease, transform .25s ease; }


/* 1.8.1 spoiler/login gate cross-browser fixes */
.authors-dream-gated-widget {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
}

.authors-dream-gate-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px;
  border: 0;
  border-radius: inherit;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background-color: rgba(13, 13, 18, 0.96);
  background-image: linear-gradient(135deg, rgba(14,14,18,0.96) 0%, rgba(35,28,53,0.96) 55%, rgba(10,10,12,0.96) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  white-space: normal;
}

.authors-dream-gate-overlay.is-spoiler-gate {
  cursor: pointer;
}

.authors-dream-gate-overlay-inner {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.authors-dream-gate-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: normal;
}

.authors-dream-gate-title {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.12;
  white-space: normal;
  text-wrap: balance;
}

.authors-dream-gate-text {
  margin: 0;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88) !important;
  white-space: normal;
  text-wrap: pretty;
}

.authors-dream-gate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 999px;
  background: #2b5fb8;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(43,95,184,0.28);
  white-space: normal;
  text-align: center;
}

.authors-dream-gated-widget.authors-dream-spoiler-revealed > .authors-dream-gate-overlay.is-spoiler-gate {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(1.01);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.authors-dream-gated-widget > .authors-dream-gate-overlay.is-login-gate {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 640px) {
  .authors-dream-gate-overlay {
    padding: 20px;
  }
}


/* 1.9.0 poster masonry widget */
.authors-dream-poster-masonry-wrap {
  border-radius: 24px;
}

.authors-dream-poster-masonry {
  column-gap: var(--adpm-gap, 18px);
  column-count: 4;
}

.authors-dream-poster-masonry.cols-2 { column-count: 2; }
.authors-dream-poster-masonry.cols-3 { column-count: 3; }
.authors-dream-poster-masonry.cols-4 { column-count: 4; }
.authors-dream-poster-masonry.cols-5 { column-count: 5; }
.authors-dream-poster-masonry.cols-6 { column-count: 6; }

.authors-dream-poster-masonry-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--adpm-gap, 18px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f1e7;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.authors-dream-poster-masonry-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.authors-dream-poster-masonry-image {
  display: block;
  width: 100%;
}

.authors-dream-poster-masonry-image img {
  display: block;
  width: 100%;
  height: auto;
}

.authors-dream-poster-masonry.ratio-poster .authors-dream-poster-masonry-image,
.authors-dream-poster-masonry.ratio-square .authors-dream-poster-masonry-image {
  display: block;
  width: 100%;
  overflow: hidden;
}

.authors-dream-poster-masonry.ratio-poster .authors-dream-poster-masonry-image {
  aspect-ratio: 3 / 4;
}

.authors-dream-poster-masonry.ratio-square .authors-dream-poster-masonry-image {
  aspect-ratio: 1 / 1;
}

.authors-dream-poster-masonry.ratio-poster .authors-dream-poster-masonry-image img,
.authors-dream-poster-masonry.ratio-square .authors-dream-poster-masonry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .authors-dream-poster-masonry.cols-6,
  .authors-dream-poster-masonry.cols-5 {
    column-count: 4;
  }
}

@media (max-width: 900px) {
  .authors-dream-poster-masonry {
    column-count: 3 !important;
  }
}

@media (max-width: 640px) {
  .authors-dream-poster-masonry {
    column-count: 2 !important;
  }
}


/* 1.9.2 Book Showcase alignment fix */
.authors-dream-book-showcase-remade.media-left .authors-dream-book-showcase-grid {
  flex-direction: row;
}

.authors-dream-book-showcase-remade.media-right .authors-dream-book-showcase-grid {
  flex-direction: row-reverse;
}

.authors-dream-book-showcase-remade.thumbs-left .authors-dream-book-showcase-gallery {
  flex-direction: row;
}

.authors-dream-book-showcase-remade.thumbs-right .authors-dream-book-showcase-gallery {
  flex-direction: row-reverse;
}


/* 2.1.0 cart widget */
.authors-dream-cart-widget-wrap {
  border-radius: 24px;
}

.authors-dream-cart-widget-wrap .authors-dream-cart-widget{
  border:1px solid #e6ddd1;
  border-radius:24px;
  background:linear-gradient(180deg,#fff 0%,#fcf8f3 100%);
  padding:22px;
  box-shadow:0 18px 50px rgba(0,0,0,0.06);
  color:#1a1a1a;
}

.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget{
  background:linear-gradient(180deg,#151515 0%,#1c1c1c 100%);
  border-color:rgba(255,255,255,0.08);
  color:#f4eee6;
}

.authors-dream-cart-widget-wrap.style-accent .authors-dream-cart-widget{
  background:linear-gradient(135deg,#fff9ef 0%,#f3ebff 100%);
  border-color:#eadfce;
  color:#1a1a1a;
}

.authors-dream-cart-widget__header{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  margin-bottom:18px;
}
.authors-dream-cart-widget__icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:#f3eadf;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__icon{
  background:rgba(255,255,255,0.08);
}
.authors-dream-cart-widget__title{
  margin:0 0 4px;
  font-size:1.35rem;
  line-height:1.15;
  color:inherit;
}
.authors-dream-cart-widget__subtitle{
  margin:0;
  color:#6c6257;
  font-size:.95rem;
  line-height:1.5;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__subtitle{
  color:rgba(255,255,255,0.72);
}
.authors-dream-cart-widget__count-wrap{
  text-align:right;
}
.authors-dream-cart-widget__count-label{
  display:block;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#857a6d;
  margin-bottom:4px;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__count-label{
  color:rgba(255,255,255,0.58);
}
.authors-dream-cart-widget__count{
  display:inline-flex;
  min-width:42px;
  height:42px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#2b5fb8;
  color:#fff;
  font-weight:700;
  font-size:1rem;
  padding:0 10px;
}
.authors-dream-cart-widget__body{
  border-top:1px solid #eee2d5;
  padding-top:16px;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__body{
  border-top-color:rgba(255,255,255,0.08);
}
.authors-dream-cart-widget__summary{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}
.authors-dream-cart-widget__summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__summary-row{
  background:rgba(255,255,255,0.06);
}
.authors-dream-cart-widget__empty{
  margin:0 0 18px;
  line-height:1.7;
  color:#6c6257;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__empty{
  color:rgba(255,255,255,0.72);
}
.authors-dream-cart-widget__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.authors-dream-cart-widget__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  line-height:1;
}
.authors-dream-cart-widget__button--primary{
  background:#2b5fb8;
  color:#fff;
}
.authors-dream-cart-widget__button--secondary{
  background:transparent;
  color:inherit;
  border:1px solid #d9cdbc;
}
.authors-dream-cart-widget-wrap.style-dark .authors-dream-cart-widget__button--secondary{
  border-color:rgba(255,255,255,0.15);
}
@media (max-width:640px){
  .authors-dream-cart-widget__header{
    grid-template-columns:auto 1fr;
  }
  .authors-dream-cart-widget__count-wrap{
    grid-column:1 / -1;
    text-align:left;
  }
  .authors-dream-cart-widget__actions{
    flex-direction:column;
  }
}


/* 2.1.1 image fixes */
.authors-dream-product-thumb img,
.authors-dream-post-thumb img {
  image-rendering: auto;
  max-width: 100%;
}

.authors-dream-post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #f7f1e7 0%, #efe6d8 100%);
  color: #8b7b68;
  font-size: 0.95rem;
}

.authors-dream-post-thumb-placeholder::after {
  content: "No image";
}

.authors-dream-product-thumb,
.authors-dream-post-thumb {
  transform: translateZ(0);
}
