@charset "UTF-8";
/* ---------- ギャラリー ---------- */
.gallery-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* 画像リンク */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item img {
  transition: transform .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- hover overlay（PCのみ） ---------- */
@media (hover: hover) and (pointer: fine) {

  .gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
  }

  .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/report/icon-zoom.png") no-repeat center;
    background-size: 48px 48px;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 2;
  }

  .gallery-item:hover::before,
  .gallery-item:hover::after {
    opacity: 1;
  }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 80%;
  max-height: 80%;
}

/* ナビ */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* スマホでは矢印非表示 */
@media (max-width: 767px) {
  .lightbox-nav {
    display: none;
  }
}

/* キャプション */
.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  max-width: 90%;
  text-align: center;
  opacity: 0.9;
}

