/* =============================================
   Omega Beta Eta — Public Site Styles
   ============================================= */

:root {
  --obh-dark: #0d0d0d;
  --obh-surface: #1a1a1a;
  --obh-surface-light: #242424;
  --obh-red: #9b2335;
  --obh-red-dark: #7a1c2a;
  --obh-red-light: #b8293d;
  --obh-gold: #c9a84c;
  --obh-gold-light: #dfc06a;
  --obh-text: #ededed;
  --obh-text-muted: #999;
  --obh-border: rgba(255, 255, 255, 0.08);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--obh-dark);
  color: var(--obh-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.section-title {
  font-size: 2.25rem;
  color: var(--obh-gold);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--obh-red), var(--obh-gold));
  margin: 0 auto 2.5rem;
  border: none;
}

.link-no-style {
  text-decoration: none;
  color: inherit;
}
.link-no-style:hover {
  text-decoration: none;
  color: inherit;
}

/* ─── Navigation ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1160;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--obh-border);
  padding: 0;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.site-header .container-fluid {
  padding: 0.75rem 3rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo-text span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--obh-text);
}

.site-logo-text small {
  font-size: 0.7rem;
  color: var(--obh-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-nav .nav-link {
  color: var(--obh-text-muted) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.site-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--obh-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--obh-gold) !important;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: 1px solid var(--obh-border) !important;
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201,168,76,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ─── Main Content ─── */
.main-content-area {
  flex: 1;
}

/* ─── Hero / Carousel ─── */
.hero-carousel .carousel-item img {
  height: 70vh;
  object-fit: cover;
  width: 100%;
  filter: brightness(0.7);
}

.hero-carousel .carousel-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--obh-dark) 100%);
  pointer-events: none;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 5%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
  opacity: 1;
}

/* ─── Welcome Section ─── */
.welcome-section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.welcome-section h1 {
  font-size: 3rem;
  color: var(--obh-text);
  margin-bottom: 1rem;
}

.welcome-section .lead {
  max-width: 650px;
  margin: 0 auto 2rem;
  color: var(--obh-text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.welcome-section .subheading {
  font-family: 'Playfair Display', serif;
  color: var(--obh-gold);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ─── Buttons ─── */
.btn-obh {
  background: linear-gradient(135deg, var(--obh-gold), var(--obh-gold-light));
  color: var(--obh-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-obh:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
  color: var(--obh-dark);
}

.btn-obh-outline {
  background: transparent;
  color: var(--obh-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 1px solid var(--obh-gold);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-obh-outline:hover {
  background: var(--obh-gold);
  color: var(--obh-dark);
  transform: translateY(-2px);
}

.btn-obh-red {
  background: var(--obh-red);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-obh-red:hover {
  background: var(--obh-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 35, 53, 0.3);
}

/* ─── Cards ─── */
.obh-card {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.obh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.obh-card .card-img-container {
  height: 240px;
  overflow: hidden;
}

.obh-card .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.obh-card:hover .card-img-container img {
  transform: scale(1.05);
}

.obh-card .card-body {
  padding: 1.25rem;
  background: var(--obh-surface);
}

.obh-card .card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--obh-text);
  margin-bottom: 0.25rem;
}

.obh-card .card-subtitle {
  font-size: 0.85rem;
  color: var(--obh-gold);
}

/* ─── About Page ─── */
.about-section h4 {
  font-family: 'Playfair Display', serif;
  color: var(--obh-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--obh-text-muted);
  line-height: 1.8;
}

.value-card {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--obh-red);
}

.value-card i {
  color: var(--obh-gold);
  margin-bottom: 1rem;
}

.value-card h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--obh-text-muted);
  margin: 0;
}

/* ─── Brothers Directory ─── */
.brothers-directory {
  max-width: 1000px;
  margin: 0 auto;
}

.brothers-search-wrap {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.brothers-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.brothers-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

.brothers-search input {
  width: 100%;
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  color: var(--obh-text);
  border-radius: 8px;
  padding: 0.6rem 0.85rem 0.6rem 2.25rem;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.brothers-search input:focus {
  border-color: var(--obh-gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.15);
}

.brothers-search input::placeholder {
  color: rgba(255,255,255,0.3);
}

.brothers-filter-select {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  color: var(--obh-text);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.brothers-filter-select:focus {
  border-color: var(--obh-gold);
  outline: none;
}

.brothers-results-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  min-height: 1.2em;
}

.brothers-line-section {
  margin-bottom: 1.75rem;
}

.brothers-line-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--obh-gold);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--obh-border);
  margin-bottom: 0.75rem;
}

.brothers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .brothers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .brothers-card-img {
    height: 150px;
  }
  .brothers-card-body {
    padding: 0.6rem 0.4rem;
  }
  .brothers-card-name {
    font-size: 0.82rem;
  }
  .brothers-card-detail {
    font-size: 0.7rem;
  }
}

.brothers-card-link {
  text-decoration: none;
}

.brothers-card {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brothers-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.brothers-card-img {
  height: 220px;
  overflow: hidden;
}

.brothers-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.brothers-card:hover .brothers-card-img img {
  transform: scale(1.05);
}

.brothers-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

.brothers-card-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--obh-text);
}

.brothers-card-detail {
  font-size: 0.8rem;
  color: var(--obh-gold);
  margin-top: 0.15rem;
}

.brothers-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.35);
}

.brothers-no-results i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* ─── Brother Profile ─── */
.brother-detail {
  max-width: 800px;
  margin: 0 auto;
}

.brother-profile-card {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  border-radius: 12px;
  overflow: hidden;
}

.brother-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--obh-border);
}

.brother-profile-avatar {
  flex-shrink: 0;
}

.brother-profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--obh-red);
}

.brother-profile-title {
  display: flex;
  flex-direction: column;
}

.brother-profile-title h2 {
  color: var(--obh-gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.2rem;
  font-size: 1.6rem;
}

.brother-profile-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.brother-profile-body {
  padding: 1.5rem;
}

.brother-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.brother-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bro-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bro-value {
  color: var(--obh-text);
  font-size: 0.9rem;
}

.brother-about-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--obh-border);
}

.brother-about-section h5 {
  color: var(--obh-gold);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.brother-about-section p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ─── Forms ─── */
.obh-form-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.obh-form {
  max-width: 480px;
  width: 100%;
}

.obh-form .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--obh-gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.obh-form .form-control {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  color: var(--obh-text);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.obh-form .form-control::placeholder {
  color: #555;
}

.obh-form .form-control:focus {
  background: var(--obh-surface-light);
  border-color: var(--obh-gold);
  color: var(--obh-text);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.obh-form textarea.form-control {
  resize: vertical;
}

/* ─── Calendar ─── */
.calendar-hero {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

.calendar-hero .lead {
  max-width: 550px;
  margin: 0 auto;
  color: var(--obh-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.calendar-card {
  background: var(--obh-surface);
  border: 1px solid var(--obh-border);
  border-radius: 10px;
  padding: 2rem;
  overflow: hidden;
}

/* FullCalendar Dark Theme */
.fc {
  --fc-border-color: var(--obh-border);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: var(--obh-surface-light);
  --fc-list-event-hover-bg-color: var(--obh-surface-light);
  --fc-today-bg-color: rgba(201, 168, 76, 0.08);
  --fc-event-bg-color: var(--obh-red);
  --fc-event-border-color: var(--obh-red-dark);
  --fc-event-text-color: #fff;
  --fc-button-bg-color: var(--obh-surface-light);
  --fc-button-border-color: var(--obh-border);
  --fc-button-text-color: var(--obh-text);
  --fc-button-hover-bg-color: var(--obh-red);
  --fc-button-hover-border-color: var(--obh-red);
  --fc-button-active-bg-color: var(--obh-red);
  --fc-button-active-border-color: var(--obh-red-dark);
}

.fc .fc-col-header-cell {
  background: var(--obh-surface-light);
}

.fc .fc-col-header-cell-cushion {
  color: var(--obh-gold) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
}

.fc .fc-daygrid-day-number {
  color: var(--obh-text-muted) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  color: var(--obh-gold) !important;
  font-weight: 700;
}

.fc a {
  color: var(--obh-text) !important;
  text-decoration: none !important;
}

.fc-toolbar-title {
  color: var(--obh-gold) !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.4rem !important;
}

.fc .fc-button {
  border-radius: 4px !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fc .fc-button:focus {
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2) !important;
}

.fc .fc-button-active {
  background: var(--obh-red) !important;
  border-color: var(--obh-red) !important;
}

.fc .fc-daygrid-day:hover {
  background: var(--obh-surface-light);
}

.fc .fc-scrollgrid {
  border-radius: 6px;
  overflow: hidden;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--obh-dark);
  border-top: 1px solid var(--obh-border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.site-footer .social-icon {
  color: var(--obh-text-muted);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.site-footer .social-icon:hover {
  color: var(--obh-gold);
  transform: translateY(-2px);
}

.site-footer .copyright {
  color: #555;
  font-size: 0.85rem;
}

.site-footer .credit {
  color: #444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.site-footer .credit a {
  color: var(--obh-gold);
  text-decoration: none;
}

.site-footer .credit a:hover {
  text-decoration: underline;
}

/* ─── Flash Messages ─── */
.flashes {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.flashes li {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.flashes .error {
  background: rgba(244, 67, 54, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.flashes .success {
  background: rgba(76, 175, 80, 0.15);
  color: #69db7c;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* ─── Confirmation Pages ─── */
.confirmation-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-icon {
  font-size: 4rem;
  color: var(--obh-gold);
  margin-bottom: 1.5rem;
}

/* ─── Donate ─── */
.donate-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.donate-section h3 {
  color: var(--obh-gold);
  font-family: 'Playfair Display', serif;
}

.donate-section .venmo-qr img {
  max-width: 280px;
  border-radius: 8px;
  border: 2px solid var(--obh-border);
}

/* ─── Mobile Offcanvas Nav ─── */
.offcanvas {
  background: var(--obh-dark) !important;
  border-left: 1px solid var(--obh-border) !important;
  max-width: 280px;
}

.offcanvas-header {
  border-bottom: 1px solid var(--obh-border);
  padding: 1rem 1.25rem;
}

.offcanvas-title {
  font-family: 'Playfair Display', serif;
  color: var(--obh-gold);
  font-size: 1.1rem;
}

.offcanvas-body .site-nav .nav-link {
  padding: 0.75rem 1.25rem !important;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--obh-border);
}

.offcanvas-body .site-nav .nav-link:last-child {
  border-bottom: none;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .site-header .container-fluid {
    padding: 0.75rem 1.5rem;
  }
  .hero-carousel .carousel-item img {
    height: 50vh;
  }
  .welcome-section h1 {
    font-size: 2.25rem;
  }
  .welcome-section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-carousel .carousel-item img {
    height: 35vh;
  }
  .welcome-section h1 {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .site-logo-text span {
    font-size: 0.95rem;
  }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ─── Gallery ─── */
.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Grid starts invisible; JS reveals it after column layout is built */
.gallery-grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--obh-surface);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.75);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Lightbox ─── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: #fff; }

.lightbox-close {
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  padding: 0.75rem;
}

.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.15); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

@media (max-width: 768px) {
  .gallery-grid { gap: 8px; }
  .gallery-col { gap: 8px; }
  .gallery-page { padding: 2rem 0.75rem 3rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
