/* Native Elementor settings own normal layout, typography and card styles.
   These rules cover masonry, state, dialog chrome and accessibility. */
.pcgr-gallery { -webkit-font-smoothing: antialiased; }
.pcgr-gallery .pcgr-header { backdrop-filter: blur(18px); }
.pcgr-gallery :is(section,[id]) { scroll-margin-top: 118px; }
.pcgr-gallery .pcgr-masonry { display: block; columns: 3 360px; column-gap: 16px; }
.pcgr-gallery .pcgr-item { position: relative; display: inline-flex; width: 100%; break-inside: avoid; cursor: pointer; vertical-align: top; }
.pcgr-gallery .pcgr-item.pcgr-hidden { display: none; }
.pcgr-gallery .pcgr-photo-image img { display: block; height: auto; width: 100%; }
.pcgr-gallery .pcgr-caption-overlay { pointer-events: none; }
.pcgr-gallery .pcgr-filter.pcgr-active .elementor-button { background: #fff; color: #02131f; border-color: #fff; }
.pcgr-gallery :is(a,[role="button"]):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.pcgr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.admin-bar .pcgr-gallery .pcgr-header { top: 32px; }
.pcgr-lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 36px; border: 0; background: rgba(1,13,22,.96); color: #fff; font-family: Montserrat,Arial,sans-serif; }
.pcgr-lightbox::backdrop { background: rgba(1,13,22,.96); }
.pcgr-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.pcgr-lb-inner { width: min(1280px,100%); height: min(88vh,900px); display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 18px; }
.pcgr-lb-image { display: grid; place-items: center; min-height: 0; overflow: hidden; border-radius: 22px; }
.pcgr-lb-image img { width: auto; max-width: 100%; height: auto; max-height: 76vh; object-fit: contain; border-radius: 16px; }
.pcgr-lb-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.pcgr-lb-copy h2 { margin: 0; font-family: 'Cormorant Garamond',Georgia,serif; font-size: 31px; font-weight: 500; color: #fff; }
.pcgr-lb-copy p { margin: 5px 0 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.8; }
.pcgr-lb-counter { font-size: 9px; letter-spacing: .15em; white-space: nowrap; color: rgba(255,255,255,.60); }
.pcgr-lightbox button { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.34); background: rgba(3,26,43,.58); color: #fff; backdrop-filter: blur(10px); cursor: pointer; border-radius: 50%; font: 20px Montserrat,Arial,sans-serif; }
.pcgr-lb-close { top: 24px; right: 24px; width: 46px; height: 46px; }
.pcgr-lb-prev,.pcgr-lb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.pcgr-lb-prev { left: 24px; } .pcgr-lb-next { right: 24px; }
.pcgr-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width:1024px) {
  .pcgr-gallery .pcgr-header > .e-con { position: static; }
  .pcgr-gallery .pcgr-menu.pcgr-menu-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; width: auto; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 24px 26px; background: #02131f; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 40px rgba(0,0,0,.35); max-height: calc(100vh - 100%); overflow-y: auto; }
  .pcgr-gallery .pcgr-menu.pcgr-menu-open > .elementor-element { width: auto; }
}
@media (max-width:782px) { .admin-bar .pcgr-gallery .pcgr-header { top: 46px; } }
@media (max-width:767px) {
  .pcgr-gallery .pcgr-masonry { columns: 1; }
  .pcgr-lightbox { padding: 12px; }
  .pcgr-lb-prev { left: 10px; } .pcgr-lb-next { right: 10px; } .pcgr-lb-close { top: 10px; right: 10px; }
  .pcgr-lb-copy { gap: 12px; }
}
/* Scroll reveal (approved Gallery.html: .reveal → .in, 24px, .8s, threshold .10). Active only once gallery.js ran (.pcgr-js). */
html.pc-js body:not(.elementor-editor-active) .pcgr-gallery .pc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
html.pc-js body:not(.elementor-editor-active) .pcgr-gallery .pc-reveal.pc-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion:reduce) { .pcgr-gallery * { scroll-behavior: auto; transition: none !important; animation: none !important; } .pcgr-gallery .pc-reveal { opacity: 1 !important; transform: none !important; } }
