/* ============================
   ORGANISATION PAGE STYLES
============================ */

.top-management {
  padding: 20px;
  background: #e6f0eb;
  text-align: center;
}

.top-management h1 {
  color: #0b6b3a;
  font-size: 32px;
}

/* ============================
   GALLERY GRID
============================ */

.event-item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.event-item {
  flex: 0 0 22.33%;
  cursor: pointer;
  position: relative;
}

.feat-image {
  height: 200px;
  overflow: hidden;
}

.feat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.event-item:hover img {
  transform: scale(1.1);
}

/* ============================
   POPUP
============================ */

.gallery-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.8);
}

.gallery-popup.show {
  display: block;
}

.gallery-wrapper {
  width: 95%;
  max-width: 1500px;
  margin: 40px auto;
}


/* ============================
   SLIDER
============================ */

.splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.splide__slide img,
.splide__slide video {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
}

/* ============================
   THUMBNAILS
============================ */

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.thumbnail {
  width: 90px;
  margin: 0 5px;
  cursor: pointer;
}

.thumbnail img {
  width: 100%;
}

.thumbnail.is-active {
  border: 2px solid #237a4d;
}

/* ============================
   CLOSE BUTTON
============================ */

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  background: #1bff3f;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* ==================================================
   SAFE VISUAL POLISH – NO FUNCTIONAL IMPACT
================================================== */

/* Subtle card separation (no transform, no overflow) */
.event-item {
  background-color: #ffffff;
  border: 1px solid #e2e8e2;
}

/* Cleaner image appearance */
.feat-image img {
  filter: contrast(1.02) saturate(1.05);
}

/* Better title readability */
.desc {
  padding: 10px 12px;
}

.desc h5 {
  font-size: 15px;
  font-weight: 600;
  color: #0b6b3a;
}

/* Popup background refinement (visual only) */
.gallery-popup {
  background: rgba(0, 0, 0, 0.82);
}

/* Slider media polish – SAFE */
.splide__slide img,
.splide__slide video {
  background-color: #000;
}

/* Thumbnail clarity */
.thumbnail {
  border-radius: 4px;
}

.thumbnail.is-active {
  border-color: #0b6b3a;
}

/* Close button color only */
.close-popup {
  background: #0b6b3a;
  color: #ffffff;
}

.close-popup:hover {
  background: #c62828;
}

