/**
 * @file
 * Commander activity node — thumbnail grid + lightbox.
 */

.mod-activity-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.mod-activity-gallery__thumb {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f4f4f4;
  cursor: pointer;
  overflow: hidden;
  width: 160px;
  height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mod-activity-gallery__thumb:hover,
.mod-activity-gallery__thumb:focus {
  border-color: var(--mod-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.mod-activity-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.mod-activity-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background: rgba(0, 0, 0, 0.85);
}

.mod-activity-gallery-lightbox[hidden] {
  display: none !important;
}

.mod-activity-gallery-lightbox__img {
  display: block;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mod-activity-gallery-lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--mod-white);
  color: var(--mod-blue);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mod-activity-gallery-lightbox__close:hover,
.mod-activity-gallery-lightbox__close:focus {
  background: var(--mod-blue);
  color: var(--mod-white);
  outline: none;
}

body.mod-activity-gallery-open {
  overflow: hidden;
}

/* Commander activity and press-release article — heading. */
.page-node-type-kicchkrrmphuubangkhabbaychaa .mod-activity-title,
.page-node-type-prachaasamphanth .mod-activity-title {
  font-weight: 700;
  color: var(--mod-blue);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Press-release article body text (matches commander activity prose). */
.page-node-type-prachaasamphanth .mod-activity-body {
  line-height: 1.7;
  margin-bottom: 1rem;
}
