/* ===== Grads: visitor counter (just above the footer) ===== */
.visitor-counter { background: #f4f7fb; border-top: 1px solid #e3e9f2; padding: 18px 0; }
.visitor-counter__inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.visitor-counter__icon { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center;
    color: #fff; background: linear-gradient(135deg, rgb(26 52 87) 0%, rgb(126 175 77) 100%); }
.visitor-counter__label { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(26 52 87); }
.visitor-counter__digits { display: inline-flex; align-items: flex-end; gap: 3px; }
.visitor-counter__digits .digit { display: inline-block; min-width: 30px; padding: 6px 0; text-align: center; font-size: 22px; font-weight: 700;
    font-variant-numeric: tabular-nums; color: #fff; background: rgb(26 52 87); border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.visitor-counter__digits .sep { font-size: 22px; font-weight: 700; color: rgb(26 52 87); padding: 0 1px; }
@media (max-width: 576px) {
    .visitor-counter__digits .digit { min-width: 24px; font-size: 18px; padding: 4px 0; }
}

/* ===== Grads: photo gallery ===== */
.pg-wrap { padding-bottom: 40px; }
.pg-empty { text-align: center; color: #6b7280; padding: 40px 0; }
.pg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 26px; }
.pg-tabs button { border: 1px solid #d6dde8; background: #fff; color: rgb(26 52 87); padding: 8px 18px; border-radius: 22px; font-weight: 600; font-size: 14px;
    transition: background .2s, color .2s, border-color .2s; }
.pg-tabs button span { font-size: 12px; font-weight: 500; opacity: .7; margin-left: 4px; }
.pg-tabs button:hover { border-color: rgb(26 52 87); }
.pg-tabs button.active { background: rgb(26 52 87); border-color: rgb(26 52 87); color: #fff; }
/* masonry: photos keep their own shape, no awkward cropping */
.pg-grid { column-count: 4; column-gap: 16px; }
@media (max-width: 1199px) { .pg-grid { column-count: 3; } }
@media (max-width: 767px)  { .pg-grid { column-count: 2; column-gap: 10px; } }
@media (max-width: 420px)  { .pg-grid { column-count: 1; } }
.pg-item { break-inside: avoid; margin: 0 0 16px; animation: pgIn .35s ease both; }
.pg-item[hidden] { display: none; }
.pg-open { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #eef2f7; cursor: zoom-in;
    box-shadow: 0 4px 14px rgba(16,24,40,.10); }
.pg-open img { display: block; width: 100%; height: auto; min-height: 120px; transition: transform .5s ease; }
.pg-open figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; text-align: left; color: #fff;
    background: linear-gradient(transparent, rgba(10,20,35,.85)); transform: translateY(35%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.pg-open figcaption strong { display: block; font-size: 15px; }
.pg-open figcaption span { display: block; font-size: 12px; opacity: .85; }
.pg-open:hover img, .pg-open:focus-visible img { transform: scale(1.06); }
.pg-open:hover figcaption, .pg-open:focus-visible figcaption { transform: none; opacity: 1; }
@media (hover: none) { .pg-open figcaption { transform: none; opacity: 1; } }
/* viewer */
.pg-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,12,20,.94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.pg-lightbox[hidden] { display: none; }
.pg-lightbox figure { margin: 0; text-align: center; max-width: 92vw; }
.pg-lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.55); }
.pg-lightbox figcaption { color: #e5e7eb; margin-top: 14px; }
.pg-lightbox figcaption strong { display: block; font-size: 17px; color: #fff; }
.pg-lightbox figcaption span { display: block; font-size: 14px; opacity: .8; }
.pg-lightbox figcaption em { display: block; font-style: normal; font-size: 12px; opacity: .6; margin-top: 6px; }
.pg-close { position: absolute; top: 12px; right: 20px; font-size: 40px; line-height: 1; color: #fff; background: none; border: 0; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; color: #fff; background: none; border: 0; padding: 0 18px; opacity: .75; }
.pg-nav:hover { opacity: 1; }
.pg-prev { left: 6px; } .pg-next { right: 6px; }
@media (max-width: 576px) { .pg-nav { font-size: 40px; padding: 0 8px; } }
@keyframes pgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-item, .pg-open img, .pg-open figcaption { animation: none; transition: none; } }
