/* LEGARIJA — dodatni stilovi za Blog i zasebne Galerije
   Ovaj CSS se učitava NAKON postojećeg /style.css. */
:root {
  --leg-bg: #111;
  --leg-text: #f4f1ea;
  --leg-muted: rgba(244,241,234,.68);
  --leg-line: rgba(255,255,255,.16);
  --leg-card: rgba(255,255,255,.04);
  --leg-max: 1180px;
  --leg-reading: 760px;
}

.subpage-main { min-height: 70vh; }
.subpage-shell { width: min(var(--leg-max), calc(100% - 44px)); margin: 0 auto; }
.subpage-hero { padding: 140px 0 54px; border-bottom: 1px solid var(--leg-line); }
.subpage-hero.narrow .subpage-shell { max-width: var(--leg-reading); }
.subpage-kicker { margin: 0 0 14px; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; opacity: .68; }
.subpage-hero h1 { margin: 0; max-width: 980px; font-size: clamp(2.45rem, 7vw, 6.5rem); line-height: .95; font-weight: 500; letter-spacing: -.045em; }
.subpage-lead { max-width: 760px; margin: 26px 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; opacity: .76; }

.page-section { padding: 64px 0 96px; }
.page-section.compact { padding-top: 40px; }

.blog-grid, .gallery-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
}
.content-card { display: block; color: inherit; text-decoration: none; }
.content-card-media { overflow: hidden; background: var(--leg-card); aspect-ratio: 4 / 3; }
.content-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.content-card:hover .content-card-media img { transform: scale(1.025); }
.content-card-copy { padding: 18px 0 0; }
.content-card-meta { margin: 0 0 7px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .58; }
.content-card h2, .content-card h3 { margin: 0 0 10px; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.content-card h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.content-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.content-card p { margin: 0; line-height: 1.55; opacity: .7; }
.content-card-link { display: inline-block; margin-top: 15px; font-size: .9rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.article-wrap { width: min(var(--leg-reading), calc(100% - 44px)); margin: 0 auto; padding: 58px 0 100px; }
.article-cover { width: min(var(--leg-max), calc(100% - 44px)); margin: 48px auto 0; }
.article-cover img { display: block; width: 100%; max-height: 76vh; object-fit: cover; }
.article-body { font-size: clamp(1.03rem, 1.5vw, 1.16rem); line-height: 1.78; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { margin: 2.3em 0 .7em; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; font-weight: 500; letter-spacing: -.025em; }
.article-body figure { margin: 2.6em 0; }
.article-body figure.wide { width: min(var(--leg-max), calc(100vw - 44px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.article-body img { width: 100%; display: block; }
.article-body figcaption { margin-top: 9px; font-size: .82rem; opacity: .58; }
.article-back { display: inline-block; margin-top: 36px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

.gallery-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; font-size: .9rem; opacity: .62; }
.gallery-page-grid { columns: 3 300px; column-gap: 12px; }
.gallery-page-grid .photo-card { width: 100%; display: block; break-inside: avoid; margin: 0 0 12px; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-page-grid .photo-card img { width: 100%; height: auto; display: block; }
.gallery-page-grid .photo-card.is-mobile-hidden { display: none; }
.load-more-gallery-page { display: none; margin: 28px auto 0; border: 1px solid var(--leg-line); border-radius: 999px; background: transparent; color: inherit; padding: 12px 18px; font: inherit; cursor: pointer; }

.subpage-lightbox { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.94); z-index: 1000; padding: 58px 72px; }
.subpage-lightbox.is-open { display: grid; }
.subpage-lightbox img { max-width: min(1500px, 92vw); max-height: 86vh; object-fit: contain; }
.subpage-lightbox button { position: absolute; border: 0; background: rgba(0,0,0,.15); color: #fff; cursor: pointer; font: inherit; }
.subpage-lightbox .lb-close { top: 20px; right: 24px; font-size: 38px; width: 46px; height: 46px; }
.subpage-lightbox .lb-prev, .subpage-lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 52px; width: 56px; height: 76px; }
.subpage-lightbox .lb-prev { left: 10px; }
.subpage-lightbox .lb-next { right: 10px; }
body.no-scroll { overflow: hidden; }

.empty-note { padding: 24px; border: 1px solid var(--leg-line); opacity: .72; }

@media (max-width: 800px) {
  .subpage-shell, .article-wrap, .article-cover { width: min(100% - 36px, var(--leg-max)); }
  .subpage-hero { padding-top: 112px; }
  .blog-grid, .gallery-index-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery-page-grid { columns: 2 150px; gap: 8px; }
  .subpage-lightbox { padding: 52px 42px; }
}

@media (max-width: 700px) {
  .gallery-page-grid .photo-card.is-mobile-hidden { display: none; }
  .load-more-gallery-page.is-visible { display: block; }
}
