/* Petersen's Ice Cream — flavor & location templates
   Palette taken from the shop's neon sign: mint tube, pink cone, dark ground.
   The page stays calm; the 34 flavour cards carry the colour. */

/* The tokens below resolve to the Astra global palette, so the archives track
   Customize -> Global -> Colors instead of carrying a second, near-miss set of
   their own. The literals are fallbacks for when this CSS is loaded outside
   the theme (e.g. a standalone preview), and match the palette recorded in
   backup/REBUILD-NOTES.md. */
.pt-scope {
  --pt-paper:      var(--ast-global-color-4, #fff8f0);
  --pt-card:       var(--ast-global-color-8, #ffffff);
  --pt-ink:        var(--ast-global-color-3, #2e2a28);
  --pt-ink-soft:   var(--ast-global-color-6, #5c5450);
  --pt-ink-faint:  #8d837d;
  --pt-mint:       var(--ast-global-color-0, #16707a);
  --pt-mint-deep:  var(--ast-global-color-1, #0f565e);
  --pt-mint-lit:   var(--ast-global-color-7, #8fd3d6);
  --pt-pink:       var(--ast-global-color-2, #b34a5f);
  --pt-blush:      var(--ast-global-color-5, #fbc3cb);
  --pt-rule:       #e7dccf;
  --pt-shadow:     0 1px 2px rgba(46,42,40,.05), 0 10px 30px rgba(46,42,40,.07);

  /* The site loads Playfair Display (Astra body + nav) and Karla (Elementor
     headings). These tokens previously pointed at generic system stacks, so the
     cards rendered in Georgia and -apple-system and read as a different site. */
  --pt-display: "Playfair Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --pt-sans: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  background: var(--pt-paper);
  color: var(--pt-ink);
  font-family: var(--pt-sans);
}

.pt-scope *,
.pt-scope *::before,
.pt-scope *::after { box-sizing: border-box; }

/* Break out of whatever fixed-width container the active theme wraps the
   content in, so the grids get the full viewport regardless of theme. */
.pt-scope {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* The full-bleed trick can otherwise expose a horizontal scrollbar. */
html:has(.pt-scope) { overflow-x: hidden; }

/* Embedded in a page layout rather than owning the viewport: keep the design
   tokens, drop the full-bleed break-out and the paper ground so the block sits
   inside whatever container the page put it in. */
.pt-scope--inline {
  width: auto;
  max-width: none;
  margin-inline: 0;
  background: none;
}

.pt-locs--inline { padding-bottom: 0; }

.pt-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- masthead ---------- */

.pt-mast {
  padding: 56px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.pt-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pt-mint);
  margin: 0;
}

.pt-mast h1 {
  font-family: var(--pt-display);
  font-style: italic;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--pt-ink);
  text-wrap: balance;
}

.pt-mast p.pt-lede {
  margin: 0;
  max-width: 56ch;
  color: var(--pt-ink-soft);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: balance;
}

.pt-rule {
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pt-mint-lit), var(--pt-pink));
}

/* ---------- filter bar ---------- */

.pt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 44px 0 34px;
}

.pt-chip {
  appearance: none;
  border: 1px solid var(--pt-rule);
  background: var(--pt-card);
  color: var(--pt-ink-soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.pt-chip:hover {
  border-color: var(--pt-mint);
  color: var(--pt-mint);
  background: #eef5f4;
}

.pt-chip[aria-pressed="true"] {
  background: var(--pt-mint);
  border-color: var(--pt-mint);
  color: #fff;
}

.pt-chip[aria-pressed="true"]:hover {
  background: var(--pt-mint-deep);
  border-color: var(--pt-mint-deep);
  color: #fff;
}

.pt-chip:focus-visible { outline: 2px solid var(--pt-pink); outline-offset: 2px; }

/* ---------- flavour grid ---------- */

.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  padding-bottom: 72px;
  list-style: none;
  margin: 0;
}

/* The hidden attribute only carries a UA-stylesheet display:none, which loses
   to any author display rule - and .pt-card below sets display:flex. Without
   this the category filter sets [hidden] correctly and nothing disappears. */
.pt-scope [hidden] { display: none !important; }

.pt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pt-card);
  border: 1px solid var(--pt-rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--pt-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pt-card:hover,
.pt-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(46,42,40,.06), 0 18px 40px rgba(46,42,40,.12);
}

/* The cone photography is a transparent cut-out, so each card gets its own
   flavour-tinted ground behind it. */
.pt-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--pt-tint, #f6ece1);
  overflow: hidden;
}

.pt-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(255,255,255,.34), transparent);
  pointer-events: none;
}

.pt-card__media img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(46,42,40,.22));
  transition: transform .25s ease;
}

.pt-card:hover .pt-card__media img { transform: scale(1.05) rotate(-1.5deg); }

.pt-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pt-card__body h2 {
  font-family: var(--pt-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--pt-ink);
}

.pt-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

/* Stretch the title link over the whole card so the entire tile is clickable
   while only one link lands in the accessibility tree. */
.pt-card__body h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pt-card__body h2 a:focus-visible::after {
  outline: 2px solid var(--pt-pink);
  outline-offset: -3px;
  border-radius: 16px;
}

.pt-card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pt-ink-soft);
}

.pt-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pt-pink);
  color: #fff;
}

.pt-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--pt-ink-faint);
}

/* ---------- single flavour ---------- */

.pt-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 80px;
}

@media (max-width: 860px) {
  .pt-single { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
}

.pt-single__media {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: var(--pt-tint, #f6ece1);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pt-single__media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(46,42,40,.24));
}

.pt-single h1 {
  font-family: var(--pt-display);
  font-style: italic;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 12px 0 16px;
  text-wrap: balance;
}

.pt-single__desc {
  font-size: 19px;
  line-height: 1.6;
  color: var(--pt-ink-soft);
  margin: 0 0 26px;
  max-width: 46ch;
}

.pt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pt-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--pt-rule);
  color: var(--pt-ink-soft);
  background: var(--pt-card);
}

.pt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pt-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: background .15s;
}

.pt-btn:hover { background: var(--pt-mint); color: #fff; }
.pt-btn:focus-visible { outline: 2px solid var(--pt-pink); outline-offset: 3px; }

.pt-back {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pt-mint);
  text-decoration: none;
}

.pt-back:hover { text-decoration: underline; }

/* ---------- locations ---------- */

/* Four across on desktop - one column per shop. An explicit column count
   rather than auto-fit, because auto-fit was settling on three and leaving
   the fourth shop stranded on its own row. */
.pt-locs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 72px;
}

@media (max-width: 1180px) {
  .pt-locs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 620px) {
  .pt-locs { grid-template-columns: minmax(0, 1fr); }
}

.pt-loc {
  background: var(--pt-card);
  border: 1px solid var(--pt-rule);
  border-radius: 16px;
  box-shadow: var(--pt-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pt-loc__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The map heads the card as a picture of where the shop is, and the whole
   frame is a link through to the location page. Pointer events are switched
   off on the iframe itself so a click reaches that link instead of panning
   Google's map inside the card. */
.pt-loc__map {
  position: relative;
  display: block;
  height: 168px;
  background: #f0e8de;
  border-bottom: 1px solid var(--pt-rule);
  text-decoration: none;
}

.pt-loc__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.pt-loc__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 45, 0);
  transition: background .18s ease;
}

.pt-loc:hover .pt-loc__map::after,
.pt-loc__map:focus-visible::after { background: rgba(20, 40, 45, .13); }

.pt-loc__map:focus-visible { outline: 2px solid var(--pt-pink); outline-offset: -3px; }

.pt-loc__more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  background: #fff;
  color: var(--pt-ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .17);
}

.pt-loc h2 {
  font-family: var(--pt-display);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}

.pt-loc h2 a { color: inherit; text-decoration: none; }
.pt-loc h2 a:hover { color: var(--pt-mint); }

.pt-addr {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--pt-ink-soft);
  font-style: normal;
}

.pt-tel {
  font-size: 15px;
  font-weight: 650;
  color: var(--pt-ink);
  text-decoration: none;
}

.pt-tel:hover { color: var(--pt-mint); }

/* Open/closed reads as form as well as text, so status is scannable. */
.pt-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: #e4f1f0;
  color: var(--pt-mint-deep, #0f565e);
}

.pt-status[data-state="shut"] { background: #f7e7ea; color: var(--pt-pink, #b34a5f); }

.pt-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pt-hours {
  border-top: 1px solid var(--pt-rule);
  padding-top: 14px;
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.pt-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--pt-ink-soft);
}

.pt-hours dt { color: var(--pt-ink-faint); }
.pt-hours dd { margin: 0; }

.pt-hours > div[data-today="1"] {
  color: var(--pt-ink);
  font-weight: 700;
}

.pt-loc__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pt-btn--ghost {
  background: transparent;
  color: var(--pt-ink);
  border: 1px solid var(--pt-rule);
  padding: 11px 20px;
  font-size: 14px;
}

.pt-btn--ghost:hover { background: var(--pt-ink); color: #fff; border-color: var(--pt-ink); }

/* ---------- single location ---------- */

.pt-locsingle {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  padding: 40px 0 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .pt-locsingle { grid-template-columns: 1fr; gap: 30px; }
}

.pt-locsingle h1 {
  font-family: var(--pt-display);
  font-style: italic;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin: 10px 0 18px;
  letter-spacing: -.02em;
}

.pt-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--pt-rule);
  border-radius: 16px;
  overflow: hidden;
  background: #E8F1EE;
}

.pt-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.pt-flavcount {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--pt-rule);
  color: var(--pt-ink-soft);
  font-size: 14.5px;
}

@media (prefers-reduced-motion: reduce) {
  .pt-scope * { transition: none !important; }
  .pt-card:hover { transform: none; }
  .pt-card:hover .pt-card__media img { transform: none; }
}


/* =====================================================================
   Archive hero
   The Astra header is position:absolute and ~132px tall, so the hero owns
   that band itself: the photo runs up under the header and the copy is
   padded clear of it. That is also what makes the nav legible - see the
   header rules further down. The image is supplied per-template as
   --pt-hero-img.
   ===================================================================== */

.pt-hero {
  position: relative;
  isolation: isolate;
  padding: 188px 0 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background-color: var(--pt-ink);
  background-image: var(--pt-hero-img);
  background-size: cover;
  background-position: center 58%;
}

/* Two stops rather than a flat wash: heavier at the top so the menu has a
   dependable ground to sit on, lighter over the copy so the photo reads. */
.pt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(26,22,20,.74) 0,
    rgba(26,22,20,.52) 42%,
    rgba(26,22,20,.62) 100%
  );
}

.pt-hero .pt-eyebrow { color: var(--pt-blush); }

.pt-hero h1 {
  font-family: var(--pt-display);
  font-style: italic;
  font-size: clamp(40px, 6.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ast-global-color-4, #fff8f0);
  text-wrap: balance;
}

.pt-hero .pt-lede {
  margin: 0;
  max-width: 54ch;
  padding: 0 24px;
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(255,248,240,.88);
  text-wrap: balance;
}

.pt-hero .pt-rule {
  background: linear-gradient(90deg, var(--pt-blush), var(--pt-mint-lit));
}

@media (max-width: 860px) { .pt-hero { padding: 150px 0 56px; } }
@media (max-width: 600px) { .pt-hero { padding: 128px 0 46px; background-position: center; } }

/* ---------- call-to-action row ---------- */

.pt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 10px;
}

.pt-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.pt-cta__btn--solid {
  background: var(--pt-mint);
  border-color: var(--pt-mint);
  color: #fff;
}

.pt-cta__btn--solid:hover,
.pt-cta__btn--solid:focus-visible {
  background: var(--pt-blush);
  border-color: var(--pt-blush);
  color: var(--pt-ink);
}

.pt-cta__btn--ghost {
  background: transparent;
  border-color: rgba(255,248,240,.62);
  color: var(--ast-global-color-4, #fff8f0);
}

.pt-cta__btn--ghost:hover,
.pt-cta__btn--ghost:focus-visible {
  background: var(--pt-blush);
  border-color: var(--pt-blush);
  color: var(--pt-ink);
}

/* On a light band rather than over the hero photo. */
.pt-cta--onpaper .pt-cta__btn--ghost {
  border-color: var(--pt-mint);
  color: var(--pt-mint);
}

.pt-cta__btn:focus-visible { outline: 2px solid var(--pt-blush); outline-offset: 3px; }

/* =====================================================================
   Header legibility on the archives
   Without a transparent-header context Astra falls back to the Primary Menu
   colour, which is the cream page ground - cream on cream, invisible.
   Written against :has() so the rules are right in both states: light type
   where the page opens on a darkened hero, brand teal where it does not.
   ===================================================================== */

body.post-type-archive-flavor .site-header .menu-link,
body.post-type-archive-location .site-header .menu-link {
  color: var(--ast-global-color-0, #16707a);
}

body.post-type-archive-flavor .site-header .menu-link:hover,
body.post-type-archive-location .site-header .menu-link:hover,
body.post-type-archive-flavor .site-header .current-menu-item > .menu-link,
body.post-type-archive-location .site-header .current-menu-item > .menu-link {
  color: var(--ast-global-color-2, #b34a5f);
}

body.post-type-archive-flavor .site-header .ast-mobile-menu-trigger-minimal,
body.post-type-archive-location .site-header .ast-mobile-menu-trigger-minimal {
  color: var(--ast-global-color-0, #16707a);
}

/* The off-canvas panel has its own light ground, so put the ink back. */
body.post-type-archive-flavor .ast-mobile-popup-drawer .menu-link,
body.post-type-archive-location .ast-mobile-popup-drawer .menu-link {
  color: var(--ast-global-color-2, #b34a5f);
}

/* =====================================================================
   Heritage strip
   Genuine images only - the 1919 newspaper ad, the founder, the original
   storefront, the 1939 street, today's owners, and two shop shots. Used
   instead of a stock "experience" gallery, which would not be their shops.
   ===================================================================== */

.pt-heritage {
  padding: 74px 0 78px;
  background: var(--pt-card);
  border-top: 1px solid var(--pt-rule);
  border-bottom: 1px solid var(--pt-rule);
}

.pt-heritage__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-bottom: 34px;
}

.pt-heritage__head h2 {
  font-family: var(--pt-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  margin: 0;
  color: var(--pt-ink);
}

.pt-heritage__head p {
  margin: 0;
  max-width: 56ch;
  color: var(--pt-ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  text-wrap: balance;
}

.pt-heritage__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-heritage__item {
  position: relative;
  grid-column: span 3;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pt-tint, #f6ece1);
  border: 1px solid var(--pt-rule);
}

/* Two wider tiles give the row some rhythm instead of four identical boxes. */
.pt-heritage__item--wide { grid-column: span 6; }

.pt-heritage__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .4s ease;
}

.pt-heritage__item--wide img { aspect-ratio: 16 / 9; }

.pt-heritage__item:hover img { transform: scale(1.04); }

.pt-heritage__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 11px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(26,22,20,.82), transparent);
}

@media (max-width: 1000px) {
  .pt-heritage__item { grid-column: span 6; }
  .pt-heritage__item--wide { grid-column: span 12; }
}

@media (max-width: 560px) {
  .pt-heritage { padding: 52px 0 56px; }
  .pt-heritage__item,
  .pt-heritage__item--wide { grid-column: span 12; }
}

/* ---------- closing call-to-action band ---------- */

.pt-close {
  padding: 72px 0 84px;
  text-align: center;
  background: var(--pt-paper);
}

.pt-close h2 {
  font-family: var(--pt-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  color: var(--pt-ink);
}

.pt-close p {
  margin: 0 auto 26px;
  max-width: 54ch;
  color: var(--pt-ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
}

/* The hero carries the page title, so the plain masthead would only repeat it. */
.pt-scope:has(.pt-hero) .pt-mast { display: none; }

/* =====================================================================
   Heritage lightbox
   Self-contained: no library, and deliberately not Elementor's lightbox,
   whose frontend JS is not loaded on these archive templates.
   ===================================================================== */

.pt-heritage__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.pt-heritage__zoom:focus-visible {
  outline: 2px solid var(--pt-pink);
  outline-offset: -3px;
  border-radius: 14px;
}

.pt-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(26,22,20,.93);
}

.pt-lb.is-open { display: flex; }

/* Locks the page behind the overlay without the scrollbar-width jump. */
html.pt-lb-lock { overflow: hidden; }

.pt-lb__fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1080px, 100%);
  max-height: 100%;
}

.pt-lb__img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--pt-card, #fff);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.pt-lb__cap {
  margin: 0;
  max-width: 68ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,248,240,.9);
}

.pt-lb__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,248,240,.4);
  background: rgba(26,22,20,.55);
  color: var(--ast-global-color-4, #fff8f0);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pt-lb__btn:hover {
  background: var(--ast-global-color-5, #fbc3cb);
  border-color: var(--ast-global-color-5, #fbc3cb);
  color: var(--ast-global-color-3, #2e2a28);
}

.pt-lb__btn:focus-visible {
  outline: 2px solid var(--ast-global-color-5, #fbc3cb);
  outline-offset: 3px;
}

.pt-lb__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.pt-lb__prev  { left:  clamp(8px, 2.4vw, 26px); top: 50%; transform: translateY(-50%); }
.pt-lb__next  { right: clamp(8px, 2.4vw, 26px); top: 50%; transform: translateY(-50%); }

.pt-lb__count {
  position: absolute;
  bottom: clamp(12px, 3vw, 26px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(255,248,240,.66);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .pt-lb__btn { width: 42px; height: 42px; font-size: 19px; }
  .pt-lb__prev { left: 6px; }
  .pt-lb__next { right: 6px; }
  .pt-lb__img { max-height: 66vh; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-lb__btn { transition: none; }
}

/* ---------- location archive: wider measure, room under the hero ---------- */

body.post-type-archive-location .pt-wrap { max-width: 1440px; }

.pt-locs { padding-top: 52px; }

@media (max-width: 1180px) {
  .pt-locs { padding-top: 40px; }
}
