/* HOBMW Masonry Gallery */
.hobmw-gallery {
  --hobmw-gap: 12px;
  --hobmw-row: 8px; /* virtual row height for masonry calculations */
  position: relative;
  width: 100%;
}
.hobmw-gallery .hobmw-grid {
  display: grid;
  grid-auto-rows: var(--hobmw-row);
  grid-gap: var(--hobmw-gap);
}
/* Responsive columns */
@media (min-width: 1025px) {
  .hobmw-gallery .hobmw-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 691px) and (max-width: 1024px) {
  .hobmw-gallery .hobmw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 690px) {
  .hobmw-gallery .hobmw-grid { grid-template-columns: repeat(1, 1fr); }
}
.hobmw-gallery .hobmw-item {
  margin: 0;
  padding: 0;
  display: block;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8f8;
}
.hobmw-gallery .hobmw-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .25s ease;
}
.hobmw-gallery .hobmw-link:hover .hobmw-img,
.hobmw-gallery .hobmw-item:hover .hobmw-img {
  transform: scale(1.02);
}
.hobmw-gallery .hobmw-item-caption {
  font-size: .9rem;
  line-height: 1.4;
  padding: 8px 10px;
  color: #333;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* Notice */
.hobmw-notice {
  padding: 12px 14px;
  background: #fff7e6;
  border: 1px solid #ffe4b3;
  border-radius: 6px;
  color: #6b4e00;
}

/* Lightbox */
.hobmw-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.hobmw-lightbox.is-open { display: flex; }
.hobmw-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}
.hobmw-lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hobmw-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border-radius: 6px;
}
.hobmw-lightbox-close,
.hobmw-lightbox-prev,
.hobmw-lightbox-next {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  transition: background .2s ease;
  backdrop-filter: blur(2px);
}
.hobmw-lightbox-close {
  top: 24px;
  right: 24px;
  transform: none;
  font-size: 28px;
}
.hobmw-lightbox-prev { left: 24px; }
.hobmw-lightbox-next { right: 24px; }
.hobmw-lightbox-close:hover,
.hobmw-lightbox-prev:hover,
.hobmw-lightbox-next:hover { background: rgba(255,255,255,.2); }

/* Accessibility helpers */
.hobmw-link { text-decoration: none; color: inherit; }

/* Prevent body scroll when modal open */
body.hobmw-modal-open {
  position: fixed;
  left: 0; right: 0;
  overflow: hidden;
}
