/* OneGo Page Builder: Photos, Audio and uploaded video. */

.ogpb-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.ogpb-gallery__item { position: relative; margin: 0; border-radius: var(--r-l, 14px); overflow: hidden; background: var(--mist, #f2f4f7); }
.ogpb-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ogpb-gallery__item figcaption { padding: 10px 14px 12px; font-size: 15px; color: var(--slate, #4b5567); background: var(--surface, #fff); }
.ogpb-gallery__item .ogpb-image-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 16px; text-align: center; color: var(--muted, #6b7486); border: 2px dashed var(--line, #dce1e8); border-radius: var(--r-l, 14px); cursor: pointer; }

.ogpb-audio__list { display: grid; gap: 14px; margin-top: 24px; }
.ogpb-audio__item { position: relative; padding: 16px 18px; border: 1px solid var(--line, #dce1e8); border-radius: var(--r-l, 14px); background: var(--surface, #fff); }
.ogpb-audio__title { margin: 0 0 10px; font-weight: 620; color: var(--ink, #13203a); }
.ogpb-audio__item audio { width: 100%; }

.ogpb-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--band, #111214); object-fit: contain; }

.ogpb-media-empty { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 16px; text-align: center; color: var(--muted, #6b7486); border: 2px dashed var(--line, #dce1e8); border-radius: var(--r-m, 10px); cursor: pointer; }
.ogpb-video__frame .ogpb-media-empty { position: absolute; inset: 0; color: #e3e8f0; border-color: rgba(255, 255, 255, .25); }

/* Empty picture spots while editing: a clear, clickable box. */
.window .ogpb-image-empty, .app-hero__visual .ogpb-image-empty { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 24px; text-align: center; color: var(--muted, #6b7486); background: var(--mist, #f2f4f7); border: 2px dashed var(--line, #dce1e8); cursor: pointer; font-size: 16px; }

/* Click a photo to see it full size. */
.ogpb-gallery__open { display: block; cursor: zoom-in; }
.ogpb-gallery__open img { transition: transform .35s ease, filter .35s ease; }
.ogpb-gallery__open:hover img, .ogpb-gallery__open:focus-visible img { transform: scale(1.03); }
.ogpb-gallery__open:focus-visible { outline: 3px solid var(--accent, #e8461f); outline-offset: -3px; }

/* Row: one line of tall cards (documents, posters), scrolling sideways on small screens. */
.ogpb-gallery--row .ogpb-gallery__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.ogpb-gallery--row .ogpb-gallery__item { scroll-snap-align: start; box-shadow: 0 18px 40px -26px rgba(60, 22, 10, .45); }
.ogpb-gallery--row .ogpb-gallery__item img { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .ogpb-gallery--row .ogpb-gallery__grid { grid-auto-columns: 72%; } }

.ogpb-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(20, 16, 14, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ogpb-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ogpb-lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: var(--surface, #fff); }
.ogpb-lightbox figcaption { color: #f2f2f4; font-size: 15px; text-align: center; }
.ogpb-lightbox button { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ogpb-lightbox button:hover, .ogpb-lightbox button:focus-visible { background: #e8461f; outline: none; }
.ogpb-lightbox [data-close] { top: 14px; right: 14px; }
.ogpb-lightbox [data-prev] { left: 12px; top: 50%; transform: translateY(-50%); }
.ogpb-lightbox [data-next] { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .ogpb-lightbox { padding: 56px 10px 70px; } .ogpb-lightbox [data-prev], .ogpb-lightbox [data-next] { top: auto; bottom: 14px; transform: none; } }
