/* گالری‌پلیر تمام‌صفحه */
html.gp-open, html.gp-open body { overflow: hidden; overscroll-behavior: contain; }
.gp-root { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 10, 16, .94); display: flex; flex-direction: column; color: #fff; direction: rtl; touch-action: none; }
.gp-root[hidden] { display: none; }
.gp-top { position: absolute; top: 0; inset-inline: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: linear-gradient(#000a, transparent); }
.gp-counter { font-size: 14px; opacity: .9; }
.gp-btn { border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.gp-btn:hover { background: rgba(255, 255, 255, .26); }
.gp-btn[hidden] { display: none; }
.gp-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; user-select: none; }
.gp-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center center; will-change: transform; transition: opacity .15s; }
.gp-img.gp-zoomed { cursor: grab; }
.gp-img.gp-loading { opacity: .35; }
.gp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; font-size: 28px; }
.gp-prev { inset-inline-start: 10px; }   /* در راست‌به‌چپ سمت راست */
.gp-next { inset-inline-end: 10px; }
.gp-caption { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; padding: 28px 16px max(16px, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; background: linear-gradient(transparent, #000b); pointer-events: none; }
.gp-caption[hidden] { display: none; }
@media (max-width: 576px) { .gp-nav { display: none; } }   /* روی گوشی ورق زدن با کشیدن */

/* تصاویر قابل بزرگ‌نمایی */
[data-gallery] a[data-gallery-item] { cursor: zoom-in; display: block; }
