/* =========================================================
   Gallery Modal – Minimalist Light Layout
   Image centered, metadata below, image navigation sides
   ========================================================= */

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  overflow-y: auto;
}

/* ── Close Button ── */
.gallery-modal__close {
  position: fixed;
  top: 24px;
  right: 30px;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  z-index: 100010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
  background: rgba(0, 0, 0, 0.06);
}

.gallery-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(90deg);
}

/* ── Main content wrapper ── */
.gallery-modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: 80px 24px 60px;
  box-sizing: border-box;
}

/* ── Image slider wrapper ── */
.gallery-modal__slider {
  position: relative;
  width: 100%;
  max-width: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Images ── */
.gallery-modal__images-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__img {
  width: 100%;
  max-width: 780px;
  max-height: 520px;
  object-fit: cover;
  display: none;
  animation: gmFadeIn 0.35s ease-out;
  border-radius: 2px;
}

.gallery-modal__img.active {
  display: block;
}

/* ── Prev / Next arrows – subtle, on sides of image ── */
.gallery-modal__prev,
.gallery-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #ffffff;
  border: none;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
  box-shadow: none;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* subtle shadow to ensure visibility on light images */
}

.gallery-modal__prev { left: 20px; }
.gallery-modal__next { right: 20px; }

.gallery-modal__prev:hover,
.gallery-modal__next:hover {
  transform: translateY(-50%) scale(1.1);
}


/* ── Info section below the image ── */
.gallery-modal__info {
  width: 100%;
  max-width: 780px;
  margin-top: 32px;
  text-align: left;
}

.gallery-modal__info-wrap {
  width: 100%;
}

/* Project title */
.gallery-modal__title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #111;
  margin-bottom: 20px;
  text-align: center;
  text-transform: none;
}

/* Thin divider */
.gallery-modal__divider {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 24px;
}

/* Meta rows (Address, Type, Squads) */
.gallery-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.gallery-modal__meta-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.5rem;
  color: #222;
  line-height: 1.6;
}

.gallery-modal__meta-label {
  font-weight: 600;
  white-space: nowrap;
  color: #111;
}

.gallery-modal__meta-value {
  font-weight: 400;
  color: #444;
}

/* Description – italic link-style like reference */
.gallery-modal__description {
  font-size: 1.4rem;
  line-height: 1.7;
  color: #1e367b;
  font-style: italic;
  font-weight: 400;
  margin-top: 4px;
}

/* ── Fade animation ── */
@keyframes gmFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  .gallery-modal__content {
    padding: 70px 16px 40px;
  }

  .gallery-modal__prev { left: 4px; }
  .gallery-modal__next { right: 4px; }

  .gallery-modal__title {
    font-size: 1.8rem;
  }

  .gallery-modal__meta-row {
    font-size: 1.3rem;
  }
}
