/* Styles for gallery.html and resources.html */
.pg-compact { min-height: 0 !important; height: auto !important; }
.pg-compact .p25-hero-content { padding-top: 56px; padding-bottom: 56px; }

/* Gallery */
.pg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pg-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #2a4a3a; cursor: pointer; border: 0; padding: 0; }
.pg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pg-photo:hover img { transform: scale(1.05); }
.pg-empty { text-align: center; color: #666; margin-top: 24px; }

.pg-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.pg-lightbox[hidden] { display: none; }
.pg-lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 6px; }
.pg-lb-close { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.pg-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 44px; width: 52px; height: 72px; cursor: pointer; border-radius: 6px; }
.pg-lb-nav:hover { background: rgba(255,255,255,.25); }
.pg-lb-prev { left: 16px; }
.pg-lb-next { right: 16px; }
.pg-lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }

/* Resources */
.pg-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pg-res-card { background: #fff; border: 1px solid #e3e8e5; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.pg-res-icon { width: 44px; height: 44px; border-radius: 10px; background: #eaf3ee; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.pg-res-card h3 { font-size: 1.05rem; margin: 0; color: #1a1a1a; }
.pg-res-card p { font-size: .9rem; color: #555; line-height: 1.6; flex: 1; margin: 0 0 8px; }
.pg-res-btn { align-self: flex-start; font-size: 13px; display: inline-block; }
.pg-res-soon { padding: 9px 16px; border-radius: 4px; background: #eef1ef; color: #777; font-weight: 600; }

@media (max-width: 600px) {
  .pg-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pg-lb-nav { width: 40px; height: 56px; font-size: 34px; }
}
