/* Beata Amber static Gallery page. Same boxed-container fix as shop.css
   (the donor Contacts page uses Elementor's full-width template), but no
   sidebar here -- the real Gallery pages are full-width photo walls with a
   top category switcher, not a WooCommerce-style sidebar. */
.beata-gallery-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.beata-gallery-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 0.6em;
}

.beata-gallery-nav {
  margin-bottom: 28px;
}

.beata-gallery-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.beata-pill {
  border: 1px solid var(--ast-global-color-6, #d1dae5);
  background: var(--ast-global-color-5, #fff);
  color: var(--ast-global-color-3, #364151);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.beata-pill:hover {
  border-color: #c8823a;
}

.beata-pill--active {
  background: #c8823a;
  border-color: #c8823a;
  color: #fff;
}

.beata-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

@media (max-width: 980px) {
  .beata-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .beata-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.beata-gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.beata-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.beata-gallery-item:hover img {
  transform: scale(1.05);
}

.beata-gallery-loadmore-wrap {
  text-align: center;
}

.beata-gallery-loadmore {
  background: #c8823a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 15px;
  cursor: pointer;
}

.beata-gallery-loadmore:hover {
  background: #b06f2c;
}

.beata-gallery-loadmore[hidden] {
  display: none;
}

.beata-gallery-empty {
  padding: 40px 0;
  text-align: center;
  opacity: 0.7;
}

/* ---- lightbox ---- */

.beata-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Same max-value rationale as shop.css's .beata-modal-overlay: the
     theme's sticky-header plugin can toggle a JS-assigned inline z-index
     on its own fixed clone at unpredictable times. */
  z-index: 2147483647;
}

.beata-lightbox-overlay[hidden] {
  display: none;
}

body.beata-lightbox-open {
  overflow: hidden;
}

/* Wraps the image and its close button so the button can sit just outside
   the image's top-right corner instead of on top of it (matching the shop
   page's product/order modals -- see .beata-modal-close-btn below). Sizes
   to the image itself since the image's max-width/max-height varies per
   photo. */
.beata-lightbox-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 90vh;
}

.beata-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
}

/* Solid, high-contrast circular button sitting outside the dialog/image
   entirely, on the dark overlay backdrop -- the visible circle *is* the
   full clickable area, with no dead zone. Shared visual language with the
   shop page's product/order modal close button. */
.beata-modal-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  z-index: 1;
}

.beata-modal-close-btn:hover {
  background: #c8823a;
}

@media (max-width: 600px) {
  .beata-modal-close-btn {
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}
