/* ================================================
   COMMUNITY & EVENTS PAGE
   The Ardsley Carwash
   ================================================ */

/* ===== PAGE HERO ===== */
.ce-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--navy-deep);
}

.ce-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(30,121,174,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(238,58,35,0.2) 0%, transparent 60%);
  z-index: 0;
}

.ce-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,42,68,0.96) 0%, rgba(10,31,51,0.88) 100%);
  z-index: 0;
}

.ce-hero .container {
  position: relative;
  z-index: 1;
}

.ce-hero-content {
  max-width: 680px;
}

.ce-hero-label {
  margin-bottom: 12px;
}

.ce-hero h1 {
  font-family: 'Excon', 'Work Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.ce-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.ce-hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ce-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1;
}

.ce-hero-wave svg {
  width: 100%;
  height: 100%;
}


/* ===== SECTION SCAFFOLDING ===== */
.ce-section {
  padding: 96px 0;
}

.ce-section-alt {
  background: var(--light);
}


/* ===== CARD GRID ===== */
.ce-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.ce-cards-grid--partners {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}


/* ===== CARDS ===== */
.ce-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ce-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.ce-card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px 20px;
  background: var(--light);
  min-height: 130px;
  border-bottom: 1px solid var(--border);
}

.ce-card-logo {
  max-height: 80px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.ce-card-body {
  flex: 1;
  padding: 24px 24px 16px;
}

.ce-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ce-card-body p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.65;
}

.ce-card-desc {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.65;
}

.ce-card-footer {
  padding: 16px 24px 24px;
}

.ce-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s, gap 0.2s;
}

.ce-card-link:hover {
  color: var(--navy);
  gap: 8px;
}

.ce-card--partner .ce-card-logo-wrap {
  min-height: 110px;
}


/* ===== EVENT FILTER TABS ===== */
.ce-filter-tabs {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.ce-filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: transparent;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.ce-filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.ce-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}


/* ===== EVENTS GROUP ===== */
.ce-events-group {
  margin-top: 48px;
}

.ce-events-group--past {
  margin-top: 56px;
}

.ce-events-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Excon', 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.ce-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ce-dot--green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.ce-dot--gray { background: #9ca3af; }

.ce-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ===== EVENT CARD ===== */
.ce-event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ce-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ce-event-card--past {
  background: var(--light);
  opacity: 0.8;
}

.ce-event-card--past:hover {
  opacity: 1;
}


/* Date badge */
.ce-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 10px 8px;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}

.ce-event-date--past {
  background: var(--slate);
}

.ce-event-month {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  line-height: 1;
}

.ce-event-day {
  display: block;
  font-family: 'Excon', 'Work Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin: 2px 0;
}

.ce-event-year {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  line-height: 1;
}


/* Event body */
.ce-event-body {
  flex: 1;
  min-width: 0;
}

.ce-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.ce-event-time,
.ce-event-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

.ce-event-title {
  font-family: 'Excon', 'Work Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ce-event-desc {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
}


/* CTA column */
.ce-event-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}

.ce-event-past-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--light);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}


/* ===== TAGS ===== */
.ce-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.ce-tag--fundraiser { background: rgba(250,202,42,0.2); color: #92700a; }
.ce-tag--festival   { background: rgba(238,58,35,0.12); color: var(--red); }
.ce-tag--school     { background: rgba(30,121,174,0.15); color: var(--blue); }
.ce-tag--sponsorship { background: rgba(15,42,68,0.1); color: var(--navy); }


/* ===== PARTNER WITH US CTA ===== */
.ce-partner-cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.ce-partner-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 50%, rgba(250,202,42,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 60%, rgba(30,121,174,0.2) 0%, transparent 60%);
}

.ce-partner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  backdrop-filter: blur(4px);
}

.ce-partner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(250,202,42,0.15);
  border-radius: var(--radius-lg);
  color: var(--yellow);
  flex-shrink: 0;
}

.ce-partner-text h2 {
  font-family: 'Excon', 'Work Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.ce-partner-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 540px;
}

.ce-partner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}


/* ===== COMMUNITY QUOTE BANNER ===== */
.ce-quote-banner {
  position: relative;
  background: linear-gradient(160deg, #0a1628 0%, #0f2240 40%, #0d1e3a 70%, #0a1628 100%);
  padding: 40px 24px 48px;
  overflow: hidden;
  text-align: center;
}

/* ---- Background layer ---- */
.ce-qb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Side neighborhood scenes */
.ce-qb-scene {
  position: absolute;
  bottom: 0;
  width: 240px;
  height: auto;
  opacity: 0.6;
}
.ce-qb-scene--left  { left: 0; }
.ce-qb-scene--right { right: 0; transform: scaleX(-1); }

@media (max-width: 900px) {
  .ce-qb-scene { width: 160px; opacity: 0.4; }
}
@media (max-width: 580px) {
  .ce-qb-scene { display: none; }
}

/* Stars */
.ce-qb-stars {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 60px;
  pointer-events: none;
}

.ce-star { animation: ceStar 3s ease-in-out infinite; transform-origin: center; }
.ce-star--1 { animation-delay: 0s;    animation-duration: 2.8s; }
.ce-star--2 { animation-delay: 0.7s;  animation-duration: 3.2s; }
.ce-star--3 { animation-delay: 1.4s;  animation-duration: 2.6s; }
.ce-star--4 { animation-delay: 0.3s;  animation-duration: 3.5s; }
.ce-star--5 { animation-delay: 1.9s;  animation-duration: 2.9s; }

@keyframes ceStar {
  0%,100% { opacity: 0.3; transform: scale(0.85) rotate(-5deg); }
  50%      { opacity: 1;   transform: scale(1.2)  rotate(5deg); }
}

/* Floating bubbles */
.ce-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.2);
  animation: ceBubble linear infinite;
}
.ce-bubble--1 { width: 18px; height: 18px; left: 12%;  bottom: -20px; animation-duration: 7s;  animation-delay: 0s; }
.ce-bubble--2 { width: 10px; height: 10px; left: 28%;  bottom: -20px; animation-duration: 9s;  animation-delay: 1.5s; }
.ce-bubble--3 { width: 24px; height: 24px; left: 50%;  bottom: -20px; animation-duration: 8s;  animation-delay: 3s; }
.ce-bubble--4 { width: 14px; height: 14px; left: 68%;  bottom: -20px; animation-duration: 10s; animation-delay: 0.8s; }
.ce-bubble--5 { width: 20px; height: 20px; left: 82%;  bottom: -20px; animation-duration: 7.5s; animation-delay: 2s; }
.ce-bubble--6 { width: 8px;  height: 8px;  left: 42%;  bottom: -20px; animation-duration: 6.5s; animation-delay: 4s; }

@keyframes ceBubble {
  0%   { transform: translateY(0)   scale(1);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-200px) scale(0.6); opacity: 0; }
}

/* Animated car */
.ce-qb-car {
  position: absolute;
  bottom: 14px;
  width: 72px;
  height: auto;
  animation: ceDriveCar 14s linear infinite;
}

@keyframes ceDriveCar {
  0%   { left: -80px;  opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: calc(100% + 80px); opacity: 0; }
}

/* Water drop wobble on scenes */
.ce-qb-drop--1 { animation: ceDropFall 4s ease-in-out infinite; }
.ce-qb-drop--2 { animation: ceDropFall 4s ease-in-out infinite 1s; }
.ce-qb-drop--3 { animation: ceDropFall 4s ease-in-out infinite 2s; }

@keyframes ceDropFall {
  0%,100% { transform: translateY(0);   opacity: 0.5; }
  50%      { transform: translateY(6px); opacity: 0.9; }
}

/* Car sparkles */
.ce-car-spark--1 { animation: ceSparkFade 1.2s ease-in-out infinite; }
.ce-car-spark--2 { animation: ceSparkFade 1.2s ease-in-out infinite 0.4s; }
@keyframes ceSparkFade {
  0%,100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* ---- Quote content ---- */
.ce-qb-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.ce-qb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: ceIconPulse 3s ease-in-out infinite;
}

.ce-qb-icon svg {
  width: 40px;
  height: 40px;
}

@keyframes ceIconPulse {
  0%,100% { transform: scale(1)    rotate(-3deg); }
  50%      { transform: scale(1.1)  rotate(3deg); }
}

.ce-qb-quote {
  margin: 0 0 20px;
  padding: 0;
  border: none;
  position: relative;
}

.ce-qb-open-quote,
.ce-qb-close-quote {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 0;
  color: rgba(250, 202, 42, 0.35);
  position: absolute;
}
.ce-qb-open-quote  { top: 14px;  left: -6px; }
.ce-qb-close-quote { bottom: -8px; right: -6px; }

.ce-qb-line {
  display: block;
  font-family: 'Excon', 'Work Sans', sans-serif;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: ceLineReveal 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

.ce-qb-line--1 { font-size: clamp(1.1rem, 2.5vw, 1.55rem); animation-delay: 0.2s; }
.ce-qb-line--2 {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: #FACC15;
  margin: 6px 0;
  animation-delay: 0.5s;
}
.ce-qb-line--3 { font-size: clamp(0.95rem, 2vw, 1.25rem); color: rgba(255,255,255,0.85); animation-delay: 0.8s; }

@keyframes ceLineReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Signature */
.ce-qb-sig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  animation: ceLineReveal 0.7s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}

.ce-qb-sig-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(250, 202, 42, 0.4);
}

.ce-qb-sig-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 202, 42, 0.75);
  white-space: nowrap;
}

@media (max-width: 580px) {
  .ce-quote-banner { padding: 28px 20px 36px; }
  .ce-qb-open-quote,
  .ce-qb-close-quote { font-size: 2.5rem; }
}

/* ===== NAV ACTIVE STATE ===== */
.nav-active {
  color: var(--red) !important;
  font-weight: 600;
}


/* ===== HIDDEN EVENT FILTER ===== */
.ce-event-card.ce-hidden {
  display: none;
}

.ce-events-group.ce-hidden {
  display: none;
}


/* ===== LOADING / EMPTY STATES ===== */
.ce-events-loading,
.ce-events-empty {
  font-size: 0.95rem;
  color: var(--gray);
  padding: 32px 0;
  font-style: italic;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ce-partner-inner {
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 36px 32px;
  }
  .ce-partner-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .ce-hero {
    padding: 100px 0 60px;
    min-height: 400px;
  }

  .ce-section {
    padding: 64px 0;
  }

  .ce-cards-grid {
    grid-template-columns: 1fr;
  }

  .ce-event-card {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .ce-event-cta {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: row;
  }

  .ce-partner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .ce-partner-icon {
    margin: 0 auto;
  }

  .ce-partner-text p {
    max-width: 100%;
  }

  .ce-partner-actions {
    justify-content: center;
  }

  .ce-hero-links {
    flex-direction: column;
  }

  .ce-hero-links .btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ce-event-meta {
    gap: 6px;
  }

  .ce-filter-tabs {
    gap: 6px;
  }
}


/* ================================================
   GALLERY SECTION
   ================================================ */

/* --- Grid container --- */
.ce-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
  margin-top: 48px;
}

/* --- Varied sizes via positional classes --- */
.ce-gallery-item--wide  { grid-column: span 2; }
.ce-gallery-item--tall  { grid-row:    span 2; }
.ce-gallery-item--big   { grid-column: span 2; grid-row: span 2; }

/* --- Item shell --- */
.ce-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--navy-deep);
  cursor: pointer;
}

/* --- Image --- */
.ce-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s ease;
  will-change: transform;
}

/* --- Hover overlay --- */
.ce-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 30, 55, 0.88) 0%,
    rgba(10, 30, 55, 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.ce-gallery-overlay-caption {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ce-gallery-overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
}

/* --- Hover states --- */
.ce-gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.85);
}

.ce-gallery-item:hover .ce-gallery-overlay {
  opacity: 1;
}

.ce-gallery-item:hover .ce-gallery-overlay-caption {
  transform: translateY(0);
}

.ce-gallery-item:hover .ce-gallery-overlay-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Loading state --- */
.ce-gallery-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 0;
}

.ce-gallery-loading span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-deep);
  opacity: 0.25;
  animation: ce-gallery-pulse 1.2s ease-in-out infinite;
}
.ce-gallery-loading span:nth-child(2) { animation-delay: 0.2s; }
.ce-gallery-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ce-gallery-pulse {
  0%, 100% { opacity: 0.15; transform: scale(0.85); }
  50%       { opacity: 0.6;  transform: scale(1.1); }
}

/* --- Empty state --- */
.ce-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- Lightbox overlay --- */
.ce-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ce-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ce-lightbox-inner {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ce-lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.ce-lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}

.ce-lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.ce-lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}

/* --- Gallery tag badge --- */
.ce-gallery-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ce-gallery-tag--blue   { background: rgba(37,99,235,0.82);  color: #fff; }
.ce-gallery-tag--red    { background: rgba(220,38,38,0.82);  color: #fff; }
.ce-gallery-tag--green  { background: rgba(22,163,74,0.82);  color: #fff; }
.ce-gallery-tag--yellow { background: rgba(234,179,8,0.9);   color: #1a1a1a; }
.ce-gallery-tag--purple { background: rgba(124,58,237,0.82); color: #fff; }
.ce-gallery-tag--orange { background: rgba(234,88,12,0.82);  color: #fff; }
.ce-gallery-tag--navy   { background: rgba(15,42,68,0.88);   color: #fff; }

/* Fade tag out slightly on hover so overlay is the focus */
.ce-gallery-item:hover .ce-gallery-tag {
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .ce-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 640px) {
  .ce-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 8px;
  }

  .ce-gallery-item--big {
    grid-column: span 2;
    grid-row: span 1;
  }
}
