/**
 * Bridge of Hope - Premium Gallery & Lightbox Styles
 * Brand Palette:
 *   --boh-navy: #102B52
 *   --boh-navy-light: #173B70
 *   --boh-navy-dark: #0B1C36
 *   --boh-gold: #C9A13B
 *   --boh-gold-hover: #E0B74C
 *   --boh-gold-soft: rgba(201, 161, 59, 0.15)
 *   --boh-white: #FFFFFF
 *   --boh-ivory: #FFFDF8
 */

:root {
  --boh-gal-navy: #102B52;
  --boh-gal-navy-deep: #0B1B34;
  --boh-gal-navy-light: #173B70;
  --boh-gal-gold: #C9A13B;
  --boh-gal-gold-light: #E4BE58;
  --boh-gal-gold-glow: rgba(201, 161, 59, 0.25);
  --boh-gal-white: #FFFFFF;
  --boh-gal-ivory: #FFFDF8;
  --boh-gal-text-muted: rgba(255, 253, 248, 0.78);
  --boh-gal-border: rgba(201, 161, 59, 0.3);
  --boh-gal-radius: 14px;
  --boh-gal-radius-sm: 8px;
  --boh-gal-shadow: 0 16px 40px rgba(11, 27, 52, 0.35);
  --boh-gal-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Homepage Featured Gallery Section
   ========================================================================== */

.home-gallery-section {
  background: linear-gradient(175deg, #0D2344 0%, var(--boh-gal-navy) 40%, var(--boh-gal-navy-deep) 100%);
  color: var(--boh-gal-ivory);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.home-gallery-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 161, 59, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home-gallery-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(23, 59, 112, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home-gallery-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.gallery-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.gallery-header-copy {
  max-width: 680px;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--boh-gal-gold);
  margin-bottom: 0.75rem;
}

.gallery-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--boh-gal-gold);
}

.gallery-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--boh-gal-white);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.gallery-title em {
  font-style: normal;
  color: var(--boh-gal-gold);
}

.gallery-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--boh-gal-text-muted);
  margin: 0;
}

.gallery-header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--boh-gal-gold);
  border: 1.5px solid var(--boh-gal-gold);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--boh-gal-transition);
  white-space: nowrap;
}

.gallery-view-all-btn:hover,
.gallery-view-all-btn:focus-visible {
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 161, 59, 0.35);
  outline: none;
}

/* ==========================================================================
   Carousel Viewport & Slides
   ========================================================================== */

.boh-carousel-container {
  position: relative;
  background: var(--boh-gal-navy-deep);
  border: 1px solid var(--boh-gal-border);
  border-radius: var(--boh-gal-radius);
  overflow: hidden;
  box-shadow: var(--boh-gal-shadow);
  touch-action: pan-y;
  user-select: none;
}

.boh-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  cursor: pointer;
}

.boh-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease-in-out, visibility 0.75s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060E1A;
}

.boh-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.boh-slide-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.boh-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.001);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.boh-slide.active .boh-slide-image {
  transform: scale(1.05);
}

/* Image Vignette / Gradient Overlay */
.boh-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 27, 52, 0.94) 0%,
    rgba(11, 27, 52, 0.6) 35%,
    rgba(11, 27, 52, 0.1) 70%,
    rgba(11, 27, 52, 0.3) 100%
  );
  pointer-events: none;
}

/* Expand Cue Icon */
.boh-slide-expand-cue {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(16, 43, 82, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--boh-gal-border);
  color: var(--boh-gal-gold);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
  transition: var(--boh-gal-transition);
  z-index: 4;
}

.boh-carousel-viewport:hover .boh-slide-expand-cue {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--boh-gal-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Slide Caption Block */
.boh-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.25rem 2.5rem 2.25rem;
  z-index: 3;
  color: var(--boh-gal-ivory);
  pointer-events: none;
}

.boh-caption-inner {
  max-width: 820px;
  pointer-events: auto;
}

.boh-caption-category {
  display: inline-block;
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.boh-caption-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--boh-gal-white);
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.boh-caption-description {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: var(--boh-gal-text-muted);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Carousel Navigation Bar & Controls
   ========================================================================== */

.boh-carousel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(11, 27, 52, 0.98);
  border-top: 1px solid var(--boh-gal-border);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.boh-controls-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.boh-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--boh-gal-navy-light);
  border: 1.5px solid var(--boh-gal-border);
  color: var(--boh-gal-gold);
  cursor: pointer;
  transition: var(--boh-gal-transition);
}

.boh-nav-btn:hover,
.boh-nav-btn:focus-visible {
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  border-color: var(--boh-gal-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--boh-gal-gold-glow);
  outline: none;
}

.boh-nav-btn:active {
  transform: translateY(0);
}

.boh-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boh-slide-counter {
  font-family: monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--boh-gal-gold);
}

.boh-slide-counter .current-index {
  color: var(--boh-gal-white);
  font-size: 1.1rem;
}

/* Indicators / Dots */
.boh-indicators {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.boh-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--boh-gal-transition);
}

.boh-indicator-dot.active {
  width: 32px;
  background: var(--boh-gal-gold);
  box-shadow: 0 0 10px var(--boh-gal-gold);
}

.boh-indicator-dot:hover:not(.active),
.boh-indicator-dot:focus-visible:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

/* Autoplay Toggle */
.boh-autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--boh-gal-text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--boh-gal-transition);
}

.boh-autoplay-toggle:hover,
.boh-autoplay-toggle:focus-visible {
  border-color: var(--boh-gal-gold);
  color: var(--boh-gal-gold);
  outline: none;
}

.boh-autoplay-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   Full-Screen Lightbox
   ========================================================================== */

.boh-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 36, 0.96);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.boh-lightbox.active {
  opacity: 1;
  visibility: visible;
}

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

.boh-lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 92vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 2rem;
  box-sizing: border-box;
}

.boh-lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  color: var(--boh-gal-ivory);
}

.boh-lightbox-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--boh-gal-gold);
  letter-spacing: 0.08em;
}

.boh-lightbox-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(23, 59, 112, 0.7);
  border: 1px solid var(--boh-gal-border);
  color: var(--boh-gal-ivory);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--boh-gal-transition);
}

.boh-lightbox-close-btn:hover,
.boh-lightbox-close-btn:focus-visible {
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  transform: rotate(90deg);
  outline: none;
}

.boh-lightbox-close-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Lightbox Content Area */
.boh-lightbox-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.boh-lightbox-stage {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boh-lightbox-img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--boh-gal-radius-sm);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Lightbox Nav Buttons */
.boh-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 43, 82, 0.85);
  border: 1.5px solid var(--boh-gal-border);
  color: var(--boh-gal-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--boh-gal-transition);
  z-index: 10;
}

.boh-lightbox-nav:hover,
.boh-lightbox-nav:focus-visible {
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  transform: translateY(-50%) scale(1.1);
  outline: none;
}

.boh-lightbox-prev {
  left: 0.5rem;
}

.boh-lightbox-next {
  right: 0.5rem;
}

.boh-lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Lightbox Caption Box */
.boh-lightbox-caption {
  background: rgba(11, 27, 52, 0.95);
  border: 1px solid var(--boh-gal-border);
  border-radius: var(--boh-gal-radius-sm);
  padding: 1rem 1.5rem;
  margin-top: 0.85rem;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.boh-lightbox-badge {
  display: inline-block;
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.boh-lightbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--boh-gal-white);
  margin: 0 0 0.35rem;
}

.boh-lightbox-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--boh-gal-text-muted);
  margin: 0;
}

/* ==========================================================================
   Dedicated Gallery Page (/gallery)
   ========================================================================== */

.page-gallery-hero {
  background: linear-gradient(135deg, #0B1C36 0%, var(--boh-gal-navy) 60%, var(--boh-gal-navy-light) 100%);
  color: var(--boh-gal-ivory);
  padding: 5rem 0 3.5rem;
  position: relative;
  text-align: center;
}

.page-gallery-hero .gallery-header-copy {
  margin: 0 auto;
}

.page-gallery-hero .gold-divider {
  display: block;
  width: 70px;
  height: 3px;
  background: var(--boh-gal-gold);
  margin: 1.25rem auto 0;
  border-radius: 999px;
}

/* Category Filter Bar */
.gallery-filter-section {
  background: #0B1C36;
  border-bottom: 1px solid rgba(201, 161, 59, 0.2);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.gallery-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--boh-gal-ivory);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--boh-gal-transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn:focus-visible {
  border-color: var(--boh-gal-gold);
  color: var(--boh-gal-gold);
  outline: none;
}

.gallery-filter-btn.active {
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  border-color: var(--boh-gal-gold);
  box-shadow: 0 4px 14px var(--boh-gal-gold-glow);
}

/* Gallery Grid */
.gallery-grid-section {
  padding: 4rem 0 5.5rem;
  background: #F9F9FB;
}

.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: #FFFFFF;
  border-radius: var(--boh-gal-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 43, 82, 0.08);
  border: 1px solid rgba(16, 43, 82, 0.06);
  transition: var(--boh-gal-transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(16, 43, 82, 0.16);
  border-color: rgba(201, 161, 59, 0.4);
}

.gallery-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0B1C36;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.07);
}

.gallery-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--boh-gal-gold);
  color: var(--boh-gal-navy-deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.gallery-card-zoom-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(16, 43, 82, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--boh-gal-border);
  color: var(--boh-gal-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--boh-gal-transition);
  z-index: 2;
}

.gallery-card:hover .gallery-card-zoom-btn {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-zoom-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.gallery-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--boh-gal-navy);
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.gallery-card-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #556270;
  margin: 0;
  flex-grow: 1;
}

/* Empty filtered results */
.gallery-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
  color: #556270;
}

.gallery-empty-state h3 {
  color: var(--boh-gal-navy);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Admin Gallery Management Styles
   ========================================================================== */

.admin-gallery-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #FFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-gallery-table th {
  background: var(--boh-gal-navy);
  color: #FFF;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-gallery-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #EEE;
  vertical-align: middle;
  font-size: 0.9rem;
}

.admin-gallery-thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #DDD;
}

.badge-featured {
  background: #FFF4D9;
  color: #8C6A15;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-published {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-draft {
  background: #FFEBEE;
  color: #C62828;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .gallery-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .boh-carousel-viewport {
    aspect-ratio: 16 / 10;
    min-height: 420px;
  }
  .gallery-masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .home-gallery-section {
    padding: 3.5rem 0;
  }
  .boh-carousel-viewport {
    aspect-ratio: 4 / 3;
    min-height: 360px;
    max-height: 440px;
  }
  .boh-slide-caption {
    padding: 1.5rem 1.25rem 1.5rem;
  }
  .boh-caption-title {
    font-size: 1.2rem;
  }
  .boh-caption-description {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .boh-carousel-controls-bar {
    padding: 0.85rem 1.25rem;
    gap: 1rem;
    justify-content: center;
  }
  .boh-controls-left {
    gap: 0.85rem;
  }
  .boh-lightbox-dialog {
    padding: 1rem 0.75rem;
    height: 98vh;
  }
  .boh-lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .gallery-masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .boh-indicators {
    display: none; /* Hide dots on small mobile to avoid cramped controls */
  }
}

/* Small Mobile (max-width: 430px) */
@media (max-width: 430px) {
  .boh-carousel-viewport {
    aspect-ratio: 1 / 1;
    min-height: 320px;
  }
  .gallery-title {
    font-size: 1.75rem;
  }
  .boh-slide-expand-cue {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
  }
  .boh-nav-btn {
    width: 38px;
    height: 38px;
  }
  .gallery-filter-tabs {
    gap: 0.4rem;
  }
  .gallery-filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .boh-slide,
  .boh-slide-image,
  .boh-lightbox,
  .boh-indicator-dot,
  .gallery-card,
  .gallery-card-img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .boh-slide.active .boh-slide-image {
    transform: none !important;
  }
}

:focus-visible {
  outline: 2.5px solid var(--boh-gal-gold) !important;
  outline-offset: 3px !important;
}
