/* =========================================================
   PTK AMULET SINGLE — CANONICAL SAFE STYLE
   Owner: PTK Amulet Core
   Scope: body.single-ptk_amulet only
========================================================= */

body.single-ptk_amulet {
  --ptk-single-text: #181818;
  --ptk-single-text-soft: #2f2f2f;
  --ptk-single-border: #e8e8e3;
  --ptk-single-accent: #b28a2e;
  --ptk-single-price: #5f4b17;
  --ptk-single-price-bg: #fbf8ef;
  --ptk-single-price-border: #e8dcc0;
  --ptk-single-shadow: 0 8px 22px rgba(0, 0, 0, .045);
}

body.single-ptk_amulet img.wp-post-image,
body.single-ptk_amulet .post-thumbnail,
body.single-ptk_amulet .entry-image,
body.single-ptk_amulet .featured-image {
  display: none !important;
}

body.single-ptk_amulet .ptk-amulet-gallery-panel,
body.single-ptk_amulet .ptk-amulet-info-panel,
body.single-ptk_amulet .ptk-amulet-single-description {
  background: #f6f6f6;
  border: 1px solid var(--ptk-single-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--ptk-single-shadow);
}

body.single-ptk_amulet .ptk-amulet-gallery-panel h3,
body.single-ptk_amulet .ptk-amulet-info-panel h3,
body.single-ptk_amulet .ptk-amulet-single-description h3 {
  margin-bottom: 12px;
  color: var(--ptk-single-text);
  font-size: 19px;
  font-weight: 700;
}

body.single-ptk_amulet .ptk-amulet-info-panel h3.ptk-amulet-single-title {
  margin: 0 0 14px;
  color: var(--ptk-single-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.2px;
}

body.single-ptk_amulet .ptk-amulet-single-price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--ptk-single-price-border);
  border-radius: 12px;
  background: var(--ptk-single-price-bg);
  color: var(--ptk-single-price);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

body.single-ptk_amulet .ptk-amulet-single-price del {
  margin-right: 2px;
  color: #8f8f8f;
  opacity: .95;
  font-size: 15px;
  font-weight: 500;
}

body.single-ptk_amulet .ptk-amulet-single-price ins {
  color: var(--ptk-single-price);
  text-decoration: none;
}

body.single-ptk_amulet .ptk-amulet-single-status,
body.single-ptk_amulet .ptk-amulet-single-owner,
body.single-ptk_amulet .ptk-amulet-single-cats {
  margin-bottom: 12px;
  color: var(--ptk-single-text-soft);
  font-size: 15px;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-label {
  margin-right: 6px;
  color: var(--ptk-single-text);
  font-weight: 700;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-single-owner {
  display: inline-block;
  padding: 7px 12px;
  background: #f7f7f4;
  border: 1px solid #e7e7e2;
  border-radius: 999px;
  color: #2a2a2a;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-single-owner a {
  color: #2a2a2a;
  text-decoration: none;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-single-owner a:hover {
  color: #000;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 6px 0 0;
  padding: 6px 10px;
  border: 1px solid #e5e5df;
  border-radius: 999px;
  background: #fafaf8;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-cat-badge .ptk-count {
  color: inherit;
  opacity: .65;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-cat-badge:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #fff;
}

body.single-ptk_amulet .ptk-amulet-thumb-btn {
  padding: 0;
  border: 1px solid #e4e4de;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.single-ptk_amulet .ptk-amulet-thumb-btn.is-active {
  border-color: var(--ptk-single-accent);
  box-shadow: 0 0 0 2px rgba(178,138,46,.12);
}

body.single-ptk_amulet .ptk-amulet-main-image-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f5f5f2;
}

body.single-ptk_amulet .ptk-amulet-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Theme single header meta: วันที่ + เวลา + ผู้ลงรายการ */
body.single-ptk_amulet .ptk-single-post__meta.is-ptk-amulet-meta-enhanced {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

body.single-ptk_amulet .ptk-single-post__meta.is-ptk-amulet-meta-enhanced .ptk-single-post__date,
body.single-ptk_amulet .ptk-single-post__meta.is-ptk-amulet-meta-enhanced .ptk-single-post__author {
  margin: 0;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-btn,
body.single-ptk_amulet .ptk-amulet-info-panel .ptk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
}

/* Secondary actions: ดูพระทั้งหมด / ดูร้าน / แก้ไขรายการ */
body.single-ptk_amulet .ptk-amulet-single-actions a.ptk-btn:not(.ptk-chat-start-btn),
body.single-ptk_amulet .ptk-amulet-info-panel a.ptk-btn:not(.ptk-chat-start-btn) {
  background: #f4f4f2 !important;
  color: #222 !important;
  border: 1px solid #e3e3dd !important;
  box-shadow: none !important;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}

body.single-ptk_amulet .ptk-amulet-single-actions a.ptk-btn:not(.ptk-chat-start-btn):hover,
body.single-ptk_amulet .ptk-amulet-info-panel a.ptk-btn:not(.ptk-chat-start-btn):hover {
  background: #2a2a2a !important;
  border-color: #2a2a2a !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.single-ptk_amulet .ptk-amulet-single-actions a.ptk-btn:not(.ptk-chat-start-btn):active,
body.single-ptk_amulet .ptk-amulet-info-panel a.ptk-btn:not(.ptk-chat-start-btn):active {
  background: #383838 !important;
  border-color: #383838 !important;
  color: #fff !important;
  transform: scale(.98);
}

body.single-ptk_amulet .ptk-amulet-single-actions a.ptk-btn:not(.ptk-chat-start-btn):focus-visible,
body.single-ptk_amulet .ptk-amulet-info-panel a.ptk-btn:not(.ptk-chat-start-btn):focus-visible {
  outline: 2px solid rgba(178,138,46,.48);
  outline-offset: 2px;
}

/* Favorite: normal state */
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #e3e3dd !important;
  border-radius: 10px;
  background: #f4f4f2 !important;
  color: #222 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle:hover {
  background: #2a2a2a !important;
  border-color: #2a2a2a !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle:active {
  background: #383838 !important;
  border-color: #383838 !important;
  color: #fff !important;
  transform: scale(.97);
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle:focus-visible {
  outline: 2px solid rgba(178,138,46,.48);
  outline-offset: 2px;
}

/* Favorite: saved state — soft green, calm and readable */
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle.is-active {
  background: linear-gradient(180deg, rgba(68,190,122,.24), rgba(68,190,122,.10)) !important;
  border-color: rgba(68,190,122,.52) !important;
  color: #1f704f !important;
  box-shadow: 0 0 0 1px rgba(68,190,122,.10), 0 8px 20px rgba(68,190,122,.11) !important;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle.is-active:hover {
  background: #287a58 !important;
  border-color: #287a58 !important;
  color: #fff !important;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle.is-active:active {
  background: #326f56 !important;
  border-color: #326f56 !important;
  color: #fff !important;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-follow-wrap .ptk-btn,
body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-follow-wrap button,
body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-follow-self {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: #2c2c2c;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: none;
}

body.single-ptk_amulet .ptk-amulet-single-wrap .ptk-amulet-follow-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 21px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ebe7dd;
  color: #4b4b4b;
  font-size: 10px;
  line-height: 1;
}

body.single-ptk_amulet .ptk-amulet-description-content {
  color: #383838;
  line-height: 1.85;
}

body.single-ptk_amulet .ptk-lightbox-close,
body.single-ptk_amulet .ptk-lightbox-nav {
  background: rgba(30,30,30,.50);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  body.single-ptk_amulet .ptk-amulet-thumb-btn:hover {
    transform: translateY(-1px);
    border-color: #d8ccb0;
  }
}

@media (max-width: 980px) {
  body.single-ptk_amulet .ptk-amulet-info-panel h3.ptk-amulet-single-title { font-size: 24px; }
  body.single-ptk_amulet .ptk-amulet-single-price { font-size: 21px; }
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-gallery-panel,
  body.single-ptk_amulet .ptk-amulet-info-panel,
  body.single-ptk_amulet .ptk-amulet-single-description {
    padding: 14px;
    border-radius: 14px;
  }
}

@media (hover: none) {
  body.single-ptk_amulet .ptk-amulet-single-actions a.ptk-btn:not(.ptk-chat-start-btn):hover,
  body.single-ptk_amulet .ptk-amulet-info-panel a.ptk-btn:not(.ptk-chat-start-btn):hover,
  body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle:not(.is-active):hover {
    background: #f4f4f2 !important;
    border-color: #e3e3dd !important;
    color: #222 !important;
    transform: none;
  }

  body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle.is-active:hover {
    background: linear-gradient(180deg, rgba(68,190,122,.24), rgba(68,190,122,.10)) !important;
    border-color: rgba(68,190,122,.52) !important;
    color: #1f704f !important;
    transform: none;
  }
}


/* =========================================================
   PTK CENTRAL PAYMENT ACTIONS — v0.1.3 SAFE UI HOTFIX
   - Scoped only to paid Amulet service buttons on single page
   - Removes orange tap/focus artifacts from theme/browser rules
========================================================= */
body.single-ptk_amulet .ptk-payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

body.single-ptk_amulet .ptk-payment-actions .ptk-btn,
body.single-ptk_amulet .ptk-payment-actions button.ptk-btn,
body.single-ptk_amulet .ptk-payment-actions a.ptk-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

body.single-ptk_amulet .ptk-payment-actions .ptk-payment-primary {
  background: #222 !important;
  border: 1px solid #222 !important;
  color: #fff !important;
}

body.single-ptk_amulet .ptk-payment-actions .ptk-payment-primary:hover {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.single-ptk_amulet .ptk-payment-actions .ptk-payment-primary:active {
  background: #303030 !important;
  border-color: #303030 !important;
  color: #fff !important;
  transform: scale(.985);
}

body.single-ptk_amulet .ptk-payment-actions .ptk-payment-secondary {
  background: #f3f3f0 !important;
  border: 1px solid #deded8 !important;
  color: #242424 !important;
}

body.single-ptk_amulet .ptk-payment-actions .ptk-payment-secondary:hover {
  background: #e9e9e4 !important;
  border-color: #d4d4cd !important;
  color: #111 !important;
  transform: translateY(-1px);
}

body.single-ptk_amulet .ptk-payment-actions .ptk-payment-secondary:active {
  background: #deded8 !important;
  border-color: #cecec7 !important;
  color: #111 !important;
  transform: scale(.985);
}

body.single-ptk_amulet .ptk-payment-actions .ptk-btn:focus,
body.single-ptk_amulet .ptk-payment-actions .ptk-btn:focus-visible,
body.single-ptk_amulet .ptk-payment-actions button.ptk-btn:focus,
body.single-ptk_amulet .ptk-payment-actions button.ptk-btn:focus-visible,
body.single-ptk_amulet .ptk-payment-actions a.ptk-btn:focus,
body.single-ptk_amulet .ptk-payment-actions a.ptk-btn:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(178,138,46,.16) !important;
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-payment-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.single-ptk_amulet .ptk-payment-actions .ptk-btn,
  body.single-ptk_amulet .ptk-payment-actions button.ptk-btn,
  body.single-ptk_amulet .ptk-payment-actions a.ptk-btn {
    width: 100%;
  }
}

/* =========================================================
   PTK SINGLE MARKET GATE — v0.1.17 SAFE MODE
   - Dedicated 404 notice for an item outside the active market
   - Full-width site container with a focused dark PTK panel
========================================================= */
body.single-ptk_amulet .ptk-amulet-market-gate-page {
  width: 100%;
  padding: clamp(28px, 5vw, 72px) 0;
}

body.single-ptk_amulet .ptk-amulet-market-gate-container {
  width: 100%;
}

body.single-ptk_amulet .ptk-amulet-market-gate {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(360px, 48vw, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 6vw, 82px) clamp(20px, 6vw, 90px);
  overflow: hidden;
  border: 1px solid rgba(205, 165, 76, .38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 165, 76, .16), transparent 42%),
    linear-gradient(145deg, #171717 0%, #222 52%, #111 100%);
  color: #f7f4ed;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

body.single-ptk_amulet .ptk-amulet-market-gate::before,
body.single-ptk_amulet .ptk-amulet-market-gate::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(205, 165, 76, .14);
  border-radius: 50%;
}

body.single-ptk_amulet .ptk-amulet-market-gate::before {
  top: -120px;
  left: -70px;
}

body.single-ptk_amulet .ptk-amulet-market-gate::after {
  right: -80px;
  bottom: -130px;
}

body.single-ptk_amulet .ptk-amulet-market-gate__mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border: 1px solid rgba(217, 179, 91, .56);
  border-radius: 20px;
  background: rgba(217, 179, 91, .09);
  color: #e0bc67;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

body.single-ptk_amulet .ptk-amulet-market-gate__mark span {
  margin-left: .14em;
}

body.single-ptk_amulet .ptk-amulet-market-gate__eyebrow {
  margin: 0 0 10px;
  color: #d9b45d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.single-ptk_amulet .ptk-amulet-market-gate__title {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.24;
  text-wrap: balance;
}

body.single-ptk_amulet .ptk-amulet-market-gate__description {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.8;
}

body.single-ptk_amulet .ptk-amulet-market-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

body.single-ptk_amulet .ptk-amulet-market-gate__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

body.single-ptk_amulet .ptk-amulet-market-gate__button.is-primary {
  background: #d8af50;
  border-color: #d8af50;
  color: #171717;
}

body.single-ptk_amulet .ptk-amulet-market-gate__button.is-secondary {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  body.single-ptk_amulet .ptk-amulet-market-gate__button:hover {
    transform: translateY(-1px);
  }

  body.single-ptk_amulet .ptk-amulet-market-gate__button.is-primary:hover {
    background: #e2bd67;
    border-color: #e2bd67;
    color: #111;
  }

  body.single-ptk_amulet .ptk-amulet-market-gate__button.is-secondary:hover {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(216, 175, 80, .58);
    color: #fff;
  }
}

body.single-ptk_amulet .ptk-amulet-market-gate__button:focus-visible {
  outline: 2px solid #e1ba61;
  outline-offset: 3px;
}

body.single-ptk_amulet .ptk-amulet-market-gate__code {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-market-gate-page {
    padding: 20px 0 34px;
  }

  body.single-ptk_amulet .ptk-amulet-market-gate {
    min-height: 420px;
    padding: 36px 18px;
    border-radius: 18px;
  }

  body.single-ptk_amulet .ptk-amulet-market-gate__actions,
  body.single-ptk_amulet .ptk-amulet-market-gate__button {
    width: 100%;
  }
}


/* =========================================================
   PTK SINGLE AMULET — ELEGANT LAYOUT REFINEMENT
   v0.1.30 SAFE MODE
   Goal: cleaner hierarchy, one main title inside info block,
   stronger mobile readability, luxury calm tone
========================================================= */

body.single-ptk_amulet {
  --ptk-single-bg-soft: #fbfaf7;
  --ptk-single-bg-card: #ffffff;
  --ptk-single-bg-accent: linear-gradient(180deg, #fffdf8 0%, #f8f4ea 100%);
  --ptk-single-border-soft: #ebe4d5;
  --ptk-single-border-strong: #dcc798;
  --ptk-single-gold: #b28a2e;
  --ptk-single-gold-deep: #8b6923;
  --ptk-single-dark: #1f1f1d;
  --ptk-single-muted: #6b675c;
}

body.single-ptk_amulet .ptk-single-post__title,
body.single-ptk_amulet .ptk-single-post__header .entry-title,
body.single-ptk_amulet .ptk-single-post__header .post-title {
  display: none !important;
}

/* v0.1.31: Keep the theme's original publish date/time and author visible.
   The existing meta-enhancement JS supplies time and “ผู้ลงรายการ” text. */

body.single-ptk_amulet .ptk-amulet-single-wrap {
  margin-top: 8px;
}

body.single-ptk_amulet .ptk-amulet-back-nav {
  margin-bottom: 16px;
}

body.single-ptk_amulet .ptk-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ptk-single-border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ptk-single-dark);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

body.single-ptk_amulet .ptk-back-btn:hover {
  border-color: var(--ptk-single-border-strong);
  color: var(--ptk-single-gold-deep);
}

body.single-ptk_amulet .ptk-amulet-gallery-panel,
body.single-ptk_amulet .ptk-amulet-info-panel,
body.single-ptk_amulet .ptk-amulet-single-description,
body.single-ptk_amulet .ptk-cn-translation-wrap,
body.single-ptk_amulet .ptk-cn-request-box,
body.single-ptk_amulet .ptk-cn-translation-card,
body.single-ptk_amulet .ptk-certificate-empty,
body.single-ptk_amulet .ptk-related-wrap {
  background: var(--ptk-single-bg-card);
  border: 1px solid var(--ptk-single-border-soft);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(17, 17, 17, .05);
}

body.single-ptk_amulet .ptk-amulet-gallery-panel {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f5 100%);
}

body.single-ptk_amulet .ptk-amulet-info-panel {
  background: var(--ptk-single-bg-accent);
  border-color: #eadfca;
  box-shadow: 0 18px 42px rgba(34, 29, 18, .08);
}

@media (min-width: 981px) {
  body.single-ptk_amulet .ptk-amulet-info-panel {
    position: sticky;
    top: 92px;
  }
}

body.single-ptk_amulet .ptk-amulet-info-summary {
  display: grid;
  gap: 18px;
}

body.single-ptk_amulet .ptk-amulet-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.single-ptk_amulet .ptk-amulet-info-panel h1.ptk-amulet-single-title,
body.single-ptk_amulet .ptk-amulet-info-panel h3.ptk-amulet-single-title {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ptk-single-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.35px;
}

body.single-ptk_amulet .ptk-amulet-single-views {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #eee3cb;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #4b463d;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

body.single-ptk_amulet .ptk-amulet-price-wrap {
  display: flex;
  align-items: center;
}

body.single-ptk_amulet .ptk-amulet-single-price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 58px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #e7d8b4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0 0%, #f8efd9 100%);
  color: #5f4610;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 24px rgba(178, 138, 46, .10);
}

body.single-ptk_amulet .ptk-amulet-single-price del {
  color: #8e8a80;
  font-size: 15px;
}

body.single-ptk_amulet .ptk-amulet-info-utility {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(220, 199, 152, .55);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

body.single-ptk_amulet .ptk-amulet-single-meta-bar {
  gap: 10px;
  margin: 0;
}

body.single-ptk_amulet .ptk-amulet-stock-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-ptk_amulet .ptk-amulet-single-meta-item.is-status .ptk-amulet-status,
body.single-ptk_amulet .ptk-amulet-stock-badge {
  box-shadow: none !important;
}

body.single-ptk_amulet .ptk-amulet-single-meta-item.is-owner {
  background: #22211e;
  border-color: #2b2a25;
  color: #f4efe4;
  box-shadow: none;
}

body.single-ptk_amulet .ptk-amulet-single-meta-item.is-owner a,
body.single-ptk_amulet .ptk-amulet-single-meta-item.is-owner a:link,
body.single-ptk_amulet .ptk-amulet-single-meta-item.is-owner a:visited {
  color: #f5d061 !important;
}

body.single-ptk_amulet .ptk-amulet-single-quick-tools {
  margin: 0;
}

body.single-ptk_amulet .ptk-amulet-single-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

body.single-ptk_amulet .ptk-amulet-single-share .ptk-label {
  margin-right: 2px;
}

body.single-ptk_amulet .ptk-amulet-share-btn,
body.single-ptk_amulet .ptk-amulet-copy-link-btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #e8dcc0;
  border-radius: 999px;
  background: #fff;
  color: #6d5520;
  font-size: 13px;
  font-weight: 700;
}

body.single-ptk_amulet .ptk-amulet-share-btn:hover,
body.single-ptk_amulet .ptk-amulet-copy-link-btn:hover {
  background: #faf5e8;
  border-color: #d6ba78;
}

body.single-ptk_amulet .ptk-amulet-trust-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(220, 199, 152, .55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(248,244,234,.92));
}

body.single-ptk_amulet .ptk-amulet-section-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5efe0;
  color: var(--ptk-single-gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

body.single-ptk_amulet .ptk-amulet-trust-panel-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

body.single-ptk_amulet .ptk-amulet-owner-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-ptk_amulet .ptk-amulet-single-cats {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 14px 16px;
  border: 1px solid var(--ptk-single-border-soft);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
}

body.single-ptk_amulet .ptk-amulet-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 199, 152, .45);
}

body.single-ptk_amulet .ptk-amulet-single-actions > * {
  flex: 1 1 calc(50% - 10px);
  min-width: 180px;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-inline-form {
  display: flex;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-inline-form .ptk-btn,
body.single-ptk_amulet .ptk-amulet-single-actions > a.ptk-btn,
body.single-ptk_amulet .ptk-amulet-single-actions > button,
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-favorite-toggle,
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-amulet-chat-auth-box > a,
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn > * {
  width: 100%;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-amulet-chat-auth-box {
  order: -20;
  flex: 1 1 100%;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn,
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn > div {
  width: 100%;
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn a,
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn button,
body.single-ptk_amulet .ptk-amulet-chat-login-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #252525 0%, #171717 100%) !important;
  border: 1px solid #202020 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn a:hover,
body.single-ptk_amulet .ptk-amulet-single-actions .ptk-chat-start-btn button:hover,
body.single-ptk_amulet .ptk-amulet-chat-login-btn:hover {
  background: linear-gradient(180deg, #343434 0%, #1f1f1f 100%) !important;
  border-color: #343434 !important;
}

body.single-ptk_amulet .ptk-amulet-chat-login-note {
  margin-top: 8px;
  color: var(--ptk-single-muted);
  font-size: 12px;
  line-height: 1.55;
}

body.single-ptk_amulet .ptk-amulet-detail-tabs-wrap {
  margin-top: 28px;
}

body.single-ptk_amulet .ptk-amulet-detail-tabs {
  background: #181715;
  border-radius: 20px;
  border-color: rgba(196,154,61,.18);
  box-shadow: 0 16px 30px rgba(0,0,0,.14);
}

body.single-ptk_amulet .ptk-amulet-single-description h3 {
  margin-bottom: 14px;
  font-size: 24px;
  color: var(--ptk-single-dark);
}

body.single-ptk_amulet .ptk-related-wrap {
  margin-top: 34px;
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbf9f3 100%);
  border-color: #ebe4d5;
  box-shadow: 0 16px 36px rgba(17,17,17,.05);
}

body.single-ptk_amulet .ptk-related-wrap h3 {
  margin: 0 0 14px;
  color: var(--ptk-single-dark);
  font-size: 22px;
}

body.single-ptk_amulet .ptk-rel-item {
  background: #fff;
  border-color: #efe6d5;
  box-shadow: 0 10px 24px rgba(17,17,17,.04);
}

body.single-ptk_amulet .ptk-rel-prev,
body.single-ptk_amulet .ptk-rel-next {
  background: #221f1a;
  color: #f5d061;
}

body.single-ptk_amulet .ptk-single-post-nav a {
  border-radius: 18px !important;
}

@media (max-width: 980px) {
  body.single-ptk_amulet .ptk-amulet-info-panel h1.ptk-amulet-single-title,
  body.single-ptk_amulet .ptk-amulet-info-panel h3.ptk-amulet-single-title {
    font-size: 26px;
  }

  body.single-ptk_amulet .ptk-amulet-single-price {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  body.single-ptk_amulet .ptk-amulet-info-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.single-ptk_amulet .ptk-amulet-single-views {
    align-self: flex-start;
  }

  body.single-ptk_amulet .ptk-amulet-single-actions > * {
    flex-basis: 100%;
    min-width: 0;
  }

  body.single-ptk_amulet .ptk-amulet-single-actions {
    gap: 8px;
  }

  body.single-ptk_amulet .ptk-related-wrap,
  body.single-ptk_amulet .ptk-cn-translation-wrap,
  body.single-ptk_amulet .ptk-cn-request-box,
  body.single-ptk_amulet .ptk-cn-translation-card,
  body.single-ptk_amulet .ptk-certificate-empty {
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-gallery-panel,
  body.single-ptk_amulet .ptk-amulet-info-panel,
  body.single-ptk_amulet .ptk-amulet-single-description,
  body.single-ptk_amulet .ptk-related-wrap {
    padding: 15px;
    border-radius: 18px;
  }

  body.single-ptk_amulet .ptk-amulet-info-utility,
  body.single-ptk_amulet .ptk-amulet-trust-panel,
  body.single-ptk_amulet .ptk-amulet-single-cats {
    padding: 13px;
    border-radius: 16px;
  }

  body.single-ptk_amulet .ptk-amulet-info-panel h1.ptk-amulet-single-title,
  body.single-ptk_amulet .ptk-amulet-info-panel h3.ptk-amulet-single-title {
    font-size: 23px;
  }

  body.single-ptk_amulet .ptk-amulet-single-price {
    min-height: 0;
    padding: 12px 14px;
    font-size: 22px;
    border-radius: 16px;
  }

  body.single-ptk_amulet .ptk-amulet-detail-tab {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }

  body.single-ptk_amulet .ptk-related-wrap h3,
  body.single-ptk_amulet .ptk-amulet-single-description h3 {
    font-size: 20px;
  }
}


/* =========================================================
   PTK AMULET v0.1.32 — Full Photo, Controlled Portrait Stage
   SAFE MODE: single gallery only; archive/shop/related unchanged

   All camera aspect ratios fit *within* a consistent stage.
   Never stretch/crop the photo and never let portrait photos
   expand the page indefinitely. The gallery can be taller
   than before, balancing the information panel visually.
========================================================= */
body.single-ptk_amulet .ptk-amulet-main-stage {
  width: 100%;
  height: clamp(510px, 60vw, 690px);
  border: 1px solid #e8dfce;
  border-radius: 18px;
  background: linear-gradient(160deg, #fffdfa 0%, #f5f2eb 100%);
  overflow: hidden;
  box-sizing: border-box;
}

body.single-ptk_amulet #ptk_zoom_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.single-ptk_amulet .ptk-amulet-main-image-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

body.single-ptk_amulet .ptk-amulet-main-image-btn img,
body.single-ptk_amulet .ptk-amulet-main-image-btn:hover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
  background: transparent;
  transform: none;
  transition: none;
}

body.single-ptk_amulet .ptk-amulet-main-empty {
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: transparent;
}

/* Thumbnail tiles remain uniform squares, but display the full
   proportional medium-size file instead of a hard square crop. */
body.single-ptk_amulet .ptk-amulet-thumb-btn img {
  object-fit: contain;
  object-position: center;
  background: #faf9f5;
}

@media (max-width: 980px) {
  body.single-ptk_amulet .ptk-amulet-main-stage {
    height: clamp(480px, 90vw, 680px);
  }
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-main-stage {
    height: clamp(365px, 110vw, 530px);
    border-radius: 15px;
  }
  body.single-ptk_amulet .ptk-amulet-main-image-btn {
    padding: 14px;
  }
  body.single-ptk_amulet .ptk-amulet-main-image-btn img {
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  body.single-ptk_amulet .ptk-amulet-main-stage {
    height: clamp(335px, 113vw, 410px);
  }
  body.single-ptk_amulet .ptk-amulet-main-image-btn {
    padding: 10px;
  }
}


/* =========================================================
   PTK AMULET v0.1.33 — Seamless Full-Bleed Gallery SAFE MODE
   Photo-sized stage: actual image is the only visible frame.
   Photo remains uncropped, proportional, and height-capped.
   No nested card / image paddings or empty contain margins.
========================================================= */
body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel:hover {
  box-shadow: none;
}

body.single-ptk_amulet .ptk-amulet-gallery-panel {
  --ptk-gallery-photo-max-width: 100%;
  --ptk-gallery-photo-ratio: 4 / 5;
}

body.single-ptk_amulet .ptk-amulet-main-stage {
  /* Set precisely by on-load image dimensions (also changes with thumbnails). */
  --ptk-gallery-height-limit: 690px;
  width: min(100%, var(--ptk-gallery-photo-max-width));
  height: auto;
  aspect-ratio: var(--ptk-gallery-photo-ratio);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #f7f5ef;
  box-shadow: 0 14px 34px rgba(29, 24, 17, .10);
  overflow: hidden;
  box-sizing: border-box;
}

body.single-ptk_amulet #ptk_zoom_container,
body.single-ptk_amulet .ptk-amulet-main-image-btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

body.single-ptk_amulet .ptk-amulet-main-image-btn img,
body.single-ptk_amulet .ptk-amulet-main-image-btn:hover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: none;
  transition: none;
}

body.single-ptk_amulet .ptk-amulet-main-empty {
  min-height: 0;
  height: 100%;
}

body.single-ptk_amulet .ptk-amulet-gallery-panel .ptk-amulet-thumbs {
  width: min(100%, var(--ptk-gallery-photo-max-width));
  max-width: 100%;
  margin: 14px auto 0;
  gap: 9px;
}

body.single-ptk_amulet .ptk-amulet-gallery-panel .ptk-amulet-thumb-btn {
  border: 1px solid #e8dfce;
  border-radius: 12px;
  background: #f8f6f1;
  box-shadow: none;
  overflow: hidden;
}

body.single-ptk_amulet .ptk-amulet-gallery-panel .ptk-amulet-thumb-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: transparent;
}

body.single-ptk_amulet .ptk-amulet-gallery-panel .ptk-amulet-thumb-btn.is-active {
  border-color: #b28a2e;
  box-shadow: 0 0 0 2px rgba(178,138,46,.18);
}

@media (max-width: 980px) {
  body.single-ptk_amulet .ptk-amulet-main-stage {
    --ptk-gallery-height-limit: 660px;
  }
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-main-stage {
    --ptk-gallery-height-limit: 520px;
    border-radius: 16px;
  }
  body.single-ptk_amulet .ptk-amulet-gallery-panel .ptk-amulet-thumbs {
    gap: 8px;
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  body.single-ptk_amulet .ptk-amulet-main-stage {
    --ptk-gallery-height-limit: 430px;
  }
}


/* =========================================================
   PTK AMULET v0.1.34 — Full-Width Single Alignment SAFE MODE
   Align the single content with the theme's publish meta/back
   line by removing only inner content padding, never the site
   shell/gutter. Maintain the seamless v0.1.33 photo exactly.
========================================================= */

/* The theme's content wrappers may add a second left/right inset
   underneath the publish-meta row. Remove that inner inset for
   amulet singles only; leave the theme's outer responsive gutter. */
body.single-ptk_amulet .ptk-single-post__content:has(.ptk-amulet-single-wrap),
body.single-ptk_amulet .ptk-single-post__body:has(.ptk-amulet-single-wrap),
body.single-ptk_amulet .entry-content:has(> .ptk-amulet-single-wrap),
body.single-ptk_amulet .post-content:has(> .ptk-amulet-single-wrap) {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  box-sizing: border-box;
}

body.single-ptk_amulet .ptk-amulet-single-wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

body.single-ptk_amulet .ptk-amulet-back-nav,
body.single-ptk_amulet .ptk-amulet-single-grid,
body.single-ptk_amulet .ptk-amulet-detail-tabs-wrap,
body.single-ptk_amulet .ptk-related-wrap,
body.single-ptk_amulet .ptk-single-post-nav {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

/* More room for both the gallery and the details card without
   changing the 0.1.33 image ratio/zoom/full-frame behavior. */
body.single-ptk_amulet .ptk-amulet-single-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: clamp(14px, 1.45vw, 20px);
  row-gap: 18px;
  align-items: start;
}

body.single-ptk_amulet .ptk-amulet-info-panel {
  min-width: 0;
  padding: 16px;
}

/* Maintain the gallery's completely frameless outer panel from
   v0.1.33; do not bring back any image background or inset. */
body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel {
  min-width: 0;
  padding: 0;
}

@media (max-width: 980px) {
  body.single-ptk_amulet .ptk-amulet-single-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-single-grid {
    gap: 15px;
  }
  body.single-ptk_amulet .ptk-amulet-info-panel {
    padding: 12px;
  }
}


/* =========================================================
   PTK AMULET v0.1.35 — STABLE WIDE GALLERY / NO FLASH SAFE MODE
   v0.1.34's outer alignment stays; only the v0.1.33 frame sizing
   is fixed so load-time JS does not shrink a normal portrait photo.
   No new white panel, padding, overlays, or image crop.
========================================================= */

body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Native ratio computed by WordPress before first paint. In normal
   portraits, use the entire column; only exceptionally tall images
   narrow in order to respect a sensible height limit. */
body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel {
  --ptk-gallery-height-limit: 900px;
}
body.single-ptk_amulet .ptk-amulet-single-grid .ptk-amulet-main-stage {
  --ptk-gallery-height-limit: 900px;
  width: min(100%, calc(var(--ptk-gallery-height-limit) * var(--ptk-gallery-aspect-number, .8)));
  max-width: 100%;
  background: transparent;
}

/* Match thumbnails to the actual photo frame; prevents a wide row
   of thumbnails beneath a narrower exceptionally tall photograph. */
body.single-ptk_amulet .ptk-amulet-single-grid .ptk-amulet-thumbs {
  width: min(100%, calc(var(--ptk-gallery-height-limit) * var(--ptk-gallery-aspect-number, .8)));
  max-width: 100%;
}

@media (max-width: 980px) {
  body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel,
  body.single-ptk_amulet .ptk-amulet-single-grid .ptk-amulet-main-stage {
    --ptk-gallery-height-limit: 740px;
  }
}
@media (max-width: 640px) {
  body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel,
  body.single-ptk_amulet .ptk-amulet-single-grid .ptk-amulet-main-stage {
    --ptk-gallery-height-limit: 610px;
  }
}
@media (max-width: 360px) {
  body.single-ptk_amulet .ptk-amulet-single-grid > .ptk-amulet-gallery-panel,
  body.single-ptk_amulet .ptk-amulet-single-grid .ptk-amulet-main-stage {
    --ptk-gallery-height-limit: 540px;
  }
}


/* =========================================================
   PTK AMULET v0.1.36 — Swipe Gallery SAFE MODE
   Mobile-friendly swipe on main image; tap still opens lightbox.
========================================================= */
body.single-ptk_amulet .ptk-amulet-main-image-btn {
  touch-action: pan-y;
  transition: transform .16s ease;
  will-change: transform;
}

body.single-ptk_amulet .ptk-amulet-main-image-btn.is-swiping {
  cursor: grabbing;
}

@media (hover: none) and (pointer: coarse) {
  body.single-ptk_amulet .ptk-amulet-gallery-panel .ptk-amulet-thumbs {
    scroll-padding-inline: 8px;
  }
}


/* =========================================================
   PTK AMULET v0.1.47 — Wadjai Full-Column Single Photo SAFE MODE
   The shared v0.1.35 height-limit sizing may narrow exceptionally
   tall photos.  On Wadjai singles only, let the *photo itself*
   occupy the gallery column, preserving native aspect-ratio,
   edge-to-edge image, swipe, zoom and lightbox.  Standard singles
   retain their approved cap/sizing byte-for-byte above.
========================================================= */
body.single-ptk_amulet .ptk-amulet-single-wrap.is-ptk-wadjai-single
.ptk-amulet-single-grid .ptk-amulet-main-stage {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

/* Keep the thumbnails aligned with the same full-width image edge. */
body.single-ptk_amulet .ptk-amulet-single-wrap.is-ptk-wadjai-single
.ptk-amulet-single-grid .ptk-amulet-thumbs {
  width: 100%;
  max-width: 100%;
}
