/* LAZY IN-CONTENT GALLERIES (desktop / morning)
   ============================================================
   Placeholder that hydrates into a Swiper carousel (see js/lazy-gallery.js).
   Unlike the mobile (Breezy) version this is NOT full-bleed: it fills the
   article content column (#content is 630px) rather than the viewport.
   Loading state = dark box (matches the swiper) with a centred spinner; once
   hydrated the .pt-lg-loaded class flips it to normal block flow so the swiper
   lays out. */
.pt-lazy-gallery {
	position: relative; margin: 16px 0; width: 100%;
	background: #000; min-height: 0;
	display: flex; align-items: center; justify-content: center;
}
.pt-lazy-gallery.pt-lg-loaded { display: block; }
.pt-lazy-gallery-ph {
	color: #c7ccd2;
	font: 13px/1.4 Arial, sans-serif;
	text-align: center;
	padding: 24px 12px;
}
.pt-lazy-gallery-ph::before {
	content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 12px;
	border: 3px solid rgba(255,255,255,.18); border-top-color: rgba(255,255,255,.72);
	border-radius: 50%; animation: pt-lg-spin .8s linear infinite;
}
@keyframes pt-lg-spin { to { transform: rotate(360deg); } }
.pt-lazy-gallery noscript a { color: #ff8a8a; text-decoration: underline; }
.pt-ig-swiper { position: relative; background: #000; overflow: hidden; }
.pt-ig-slide { display: block; line-height: 0; }
.pt-ig-slide img { width: 100%; height: auto; display: block; }
/* counter pill doubles as the "show all / grid view" button (matches attachment page) */
.pt-ig-counter {
	position: absolute; top: 8px; left: 8px; z-index: 5;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; margin: 0; border: 0; border-radius: 999px;
	background: rgba(0,0,0,.55); color: #fff;
	font: 500 12px/1.4 Arial, sans-serif; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	transition: background-color .15s ease;
}
.pt-ig-counter:hover, .pt-ig-counter:focus { background: rgba(0,0,0,.75); outline: none; color: #fff; }
.pt-ig-counter-icon { display: block; opacity: .85; }
/* full-screen grid view */
.pt-ig-grid {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; flex-direction: column;
	background: #0b0b0b; color: #fff;
}
.pt-ig-grid[hidden] { display: none; }
.pt-ig-grid-header {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
	background: rgba(0,0,0,.4); flex-shrink: 0;
}
.pt-ig-grid-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-ig-grid-logo { width: 90px; height: auto; flex-shrink: 0; display: block; }
.pt-ig-grid-title {
	font-size: 15px; font-weight: 500; color: #fff; line-height: 1.3;
	min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pt-ig-grid-close {
	width: 44px; height: 44px; border: 0; background: transparent; color: #fff;
	cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0; -webkit-appearance: none; appearance: none; opacity: .85; transition: opacity .15s ease;
}
.pt-ig-grid-close:hover, .pt-ig-grid-close:focus { opacity: 1; outline: none; }
.pt-ig-grid-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 10px; box-sizing: border-box; }
.pt-ig-grid-items { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pt-ig-grid-items .pt-ig-grid-thumb {
	position: relative; aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: 4px;
	overflow: hidden; cursor: pointer; background: #222; padding: 0; -webkit-appearance: none; appearance: none;
}
.pt-ig-grid-items .pt-ig-grid-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-ig-grid-items .pt-ig-grid-thumb.is-active { border-color: #fff; }
@media (min-width: 1200px) { .pt-ig-grid-items { grid-template-columns: repeat(8, 1fr); } }
body.pt-ig-grid-open { overflow: hidden; }
/* Prev/next as full-height edge zones: the stage uses autoHeight, so a centered
   button would slide up/down as the aspect ratio changes between slides. A tall
   click zone keeps the target stable (wherever the icon lands, the whole side is
   clickable). Subtle edge gradient instead of an opaque button so the image isn't
   obscured; chevron stays vertically centered. */
.pt-ig-nav {
	position: absolute; top: 0; height: 100%; z-index: 4;
	width: 72px; margin: 0; padding: 0; border: 0; border-radius: 0;
	display: flex; align-items: center;
	color: #fff; font-size: 30px; line-height: 1;
	text-shadow: 0 1px 3px rgba(0,0,0,.6); cursor: pointer;
	background: transparent; -webkit-tap-highlight-color: transparent;
	transition: opacity .15s ease;
}
.pt-ig-prev { left: 0; justify-content: flex-start; padding-left: 10px;
	background: linear-gradient(to right, rgba(0,0,0,.42), rgba(0,0,0,0)); }
.pt-ig-next { right: 0; justify-content: flex-end; padding-right: 10px;
	background: linear-gradient(to left, rgba(0,0,0,.42), rgba(0,0,0,0)); }
.pt-ig-prev:hover { background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.pt-ig-next:hover { background: linear-gradient(to left, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.pt-ig-nav.pt-ig-nav-off { opacity: 0; pointer-events: none; }
/* thumbnail strip — matches the attachment-page thumbs (72x72 square, padding:6px 0, no gap) */
.pt-ig-thumbs { background: #111; padding: 6px 0; box-sizing: border-box; }
.pt-ig-thumbs .swiper-slide.pt-ig-thumb {
	width: 72px; height: 72px; flex-shrink: 0;
	border-radius: 4px; overflow: hidden;
	opacity: .55; border: 2px solid transparent; cursor: pointer;
	transition: opacity .15s ease, border-color .15s ease;
}
.pt-ig-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-ig-thumbs .pt-ig-thumb.swiper-slide-thumb-active { opacity: 1; border-color: #fff; }
