/* Yangilik va e'lon rasmlarini kattalashtirib ko'rish oynasi (photo-viewer.js) */
img.pv-trigger { cursor: zoom-in; }

.pv {
    position: fixed; inset: 0;
    z-index: 1000000;               /* yuqoriga tugmasi va bayram bezaklaridan ham tepada */
    background: rgba(5, 12, 26, 0.95);
    display: flex; flex-direction: column;
    user-select: none;
}
.pv[hidden], .pv [hidden] { display: none !important; }

.pv-top, .pv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.pv-top { justify-content: space-between; }
.pv-bar { justify-content: center; flex-wrap: wrap; }
.pv-count, .pv-zoom { color: #fff; font: 600 14px/1 'Montserrat', sans-serif; }
.pv-zoom { min-width: 52px; text-align: center; }

.pv-stage {
    flex: 1; min-height: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    touch-action: none;
    margin: 0 8px;
}
.pv-img {
    max-width: 100%; max-height: 100%;
    flex: none;
    cursor: zoom-in;
    transition: transform 0.18s ease;
    will-change: transform;
}
.pv-zoomed .pv-img { cursor: grab; }
.pv-dragging .pv-img { transition: none; }
.pv-zoomed.pv-dragging .pv-img { cursor: grabbing; }

.pv-btn {
    width: 44px; height: 44px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0; cursor: pointer;
    transition: background 0.15s;
}
.pv-btn:hover { background: #1566B7; color: #fff; }
.pv-btn:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.pv-btn:disabled { opacity: 0.35; cursor: default; background: rgba(255, 255, 255, 0.1); }
.pv-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-close { margin-left: auto; width: 48px; height: 48px; }
.pv-close:hover { background: #d93025; }
.pv-close svg { width: 26px; height: 26px; }

.pv-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; background: rgba(5, 12, 26, 0.6); }
.pv-prev { left: 14px; }
.pv-next { right: 14px; }

@media (max-width: 575px) {
    .pv-bar { gap: 6px; padding: 8px; }
    .pv-btn { width: 40px; height: 40px; }
    .pv-zoom { min-width: 44px; font-size: 12px; }
    .pv-prev { left: 6px; }
    .pv-next { right: 6px; }
}
@media print { .pv { display: none !important; } }
