/* =========================================================
   HOEKSE RAKKERS — FOTOGALERIJ
   WordPress + Elementor proof
   ========================================================= */

.hr-gallery-section,
.hr-gallery-section *,
.hr-gallery-empty,
.hr-gallery-empty * {
  box-sizing: border-box !important;
}

.hr-gallery-section {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 34px 22px 58px !important;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Intro */
.hr-gallery-intro {
  max-width: 760px !important;
  margin: 0 auto 28px !important;
  text-align: center !important;
}

.hr-gallery-intro__eyebrow {
  display: inline-flex !important;
  margin: 0 0 10px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  background: #ffc629 !important;
  color: #111 !important;
  box-shadow: 0 3px 0 #d99f00 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.hr-gallery-intro .hr-gallery-intro__title {
  margin: 0 0 8px !important;
  color: #0057a0 !important;
  font: 900 clamp(32px, 4vw, 46px)/1.1 "Nunito", system-ui, sans-serif !important;
  letter-spacing: -.025em !important;
}

.hr-gallery-intro .hr-gallery-intro__text {
  margin: 0 !important;
  color: #516b80 !important;
  font: 600 16px/1.6 "Nunito", system-ui, sans-serif !important;
}

/* Grid */
.hr-gallery-section .hr-gallery {
  display: grid !important;
  grid-template-columns: repeat(var(--hr-gallery-columns, 4), minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hr-gallery-section .hr-gallery__item {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: #edf5fb !important;
  box-shadow: 0 10px 26px rgba(0,87,160,.12) !important;
  text-decoration: none !important;
  transform: none !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}

.hr-gallery-section .hr-gallery__item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 34px rgba(0,87,160,.18) !important;
}

.hr-gallery-section .hr-gallery__item > img {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 20px !important;
  transform: none !important;
  transition: transform .25s ease !important;
}

.hr-gallery-section .hr-gallery__item:hover > img {
  transform: scale(1.035) !important;
}

/* Zoom badge */
.hr-gallery-section .hr-gallery__zoom {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #ffc629 !important;
  color: #111 !important;
  box-shadow: 0 4px 0 #d99f00 !important;
  opacity: 0 !important;
  transform: translateY(5px) !important;
  transition: opacity .15s ease, transform .15s ease !important;
}

.hr-gallery-section .hr-gallery__zoom svg {
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
}

.hr-gallery-section .hr-gallery__item:hover .hr-gallery__zoom,
.hr-gallery-section .hr-gallery__item:focus-visible .hr-gallery__zoom {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Empty state */
.hr-gallery-section--empty {
  padding-top: 28px !important;
}

.hr-gallery-empty {
  width: min(760px, 100%) !important;
  margin: 18px auto 30px !important;
  padding: 38px 30px 34px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  background: #fff !important;
  border: 1px solid rgba(0,87,160,.14) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 34px rgba(0,87,160,.11) !important;
}

.hr-gallery-empty__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #ffc629 !important;
  color: #111 !important;
  box-shadow: 0 5px 0 #d99f00 !important;
}

.hr-gallery-empty__icon svg {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
}

.hr-gallery-empty__eyebrow {
  margin: 0 0 8px !important;
  color: #0057a0 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

.hr-gallery-empty h2 {
  margin: 0 0 9px !important;
  color: #0057a0 !important;
  font: 900 clamp(26px,3vw,34px)/1.15 "Nunito",system-ui,sans-serif !important;
}

.hr-gallery-empty p {
  margin: 0 !important;
  color: #516b80 !important;
  font: 600 16px/1.6 "Nunito",system-ui,sans-serif !important;
}

/* Responsive */
@media (max-width: 980px) {
  .hr-gallery-section .hr-gallery {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}

@media (max-width: 700px) {
  .hr-gallery-section {
    padding: 26px 14px 42px !important;
  }

  .hr-gallery-section .hr-gallery {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 13px !important;
  }

  .hr-gallery-section .hr-gallery__zoom {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 440px) {
  .hr-gallery-section .hr-gallery {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-gallery-section .hr-gallery__item,
  .hr-gallery-section .hr-gallery__item > img,
  .hr-gallery-section .hr-gallery__zoom {
    transition: none !important;
  }
}


/* =========================================================
   LOAD MORE
   ========================================================= */

.hr-gallery-load-more-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 30px 0 0 !important;
}

.hr-gallery-load-more {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffc629 !important;
  color: #111111 !important;
  font: 900 15px/1 "Nunito", system-ui, sans-serif !important;
  cursor: pointer !important;
  box-shadow: 0 5px 0 #d99f00 !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.hr-gallery-load-more:hover,
.hr-gallery-load-more:focus-visible {
  background: #ffd452 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 0 #d99f00 !important;
}

.hr-gallery-load-more:disabled {
  opacity: .72 !important;
  cursor: wait !important;
  transform: none !important;
}

.hr-gallery-load-status {
  min-height: 20px !important;
  margin: 0 !important;
  color: #6a7e90 !important;
  font-size: 13px !important;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

body.hr-gallery-lightbox-open {
  overflow: hidden !important;
}

.hr-gallery-lightbox,
.hr-gallery-lightbox * {
  box-sizing: border-box !important;
}

.hr-gallery-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background: rgba(0, 34, 61, .96) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  animation: hrGalleryFadeIn .16s ease both;
}

.hr-gallery-lightbox.is-closing {
  opacity: 0 !important;
  transition: opacity .14s ease !important;
}

.hr-gallery-lightbox__panel {
  position: relative !important;
  width: min(1180px, 94vw) !important;
  max-height: 94vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}

.hr-gallery-lightbox__image-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 20px 20px 0 0 !important;
  background: #001f38 !important;
}

.hr-gallery-lightbox__image-wrap > img {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(94vh - 92px) !important;
  margin: 0 !important;
  object-fit: contain !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: none !important;
}

.hr-gallery-lightbox__close {
  position: absolute !important;
  top: -15px !important;
  right: -15px !important;
  z-index: 5 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 3px solid #002c4f !important;
  border-radius: 50% !important;

  background: #ffc629 !important;
  color: #111111 !important;

  cursor: pointer !important;
  box-shadow: 0 7px 0 #d99f00, 0 12px 26px rgba(0,0,0,.22) !important;
}

.hr-gallery-lightbox__close svg {
  display: block !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round !important;
}

.hr-gallery-lightbox__bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;

  min-height: 72px !important;
  padding: 12px 16px !important;

  border-radius: 0 0 20px 20px !important;
  background: #ffffff !important;
}

.hr-gallery-lightbox__actions {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
}

.hr-gallery-lightbox__action,
.hr-gallery-lightbox__action:link,
.hr-gallery-lightbox__action:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  min-height: 44px !important;
  padding: 0 15px !important;

  border: 1px solid #cfe0ee !important;
  border-radius: 999px !important;

  background: #f4f9fd !important;
  color: #0057a0 !important;

  font: 800 14px/1 "Nunito",system-ui,sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.hr-gallery-lightbox__action:hover,
.hr-gallery-lightbox__action:focus-visible {
  background: #e8f3fb !important;
  color: #003c70 !important;
}

.hr-gallery-lightbox__action svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.hr-gallery-lightbox__volunteer,
.hr-gallery-lightbox__volunteer:link,
.hr-gallery-lightbox__volunteer:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 46px !important;
  padding: 0 18px !important;

  border-radius: 999px !important;
  background: #0057a0 !important;
  color: #ffffff !important;

  font: 900 14px/1 "Nunito",system-ui,sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  box-shadow: 0 4px 0 #003c70 !important;
}

.hr-gallery-lightbox__volunteer:hover,
.hr-gallery-lightbox__volunteer:focus-visible {
  background: #086bb8 !important;
  color: #fff !important;
}

@keyframes hrGalleryFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 700px) {
  .hr-gallery-lightbox {
    padding: 14px !important;
  }

  .hr-gallery-lightbox__panel {
    width: 100% !important;
  }

  .hr-gallery-lightbox__close {
    top: -9px !important;
    right: -6px !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
  }

  .hr-gallery-lightbox__bar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
  }

  .hr-gallery-lightbox__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .hr-gallery-lightbox__action,
  .hr-gallery-lightbox__volunteer {
    width: 100% !important;
  }

  .hr-gallery-lightbox__image-wrap > img {
    max-height: calc(88vh - 145px) !important;
  }
}
