.gallery-detail {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.gallery-detail h1 {
  font-size: 28px;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  color: #113355;
}

.gallery-detail .date {
  font-size: 14px;
  color: #777;
  text-align: center;
  margin-bottom: 20px;
}

.gallery-detail .desc {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  padding: 0 10px;
  margin-bottom: 30px;
  white-space: pre-line;
  text-align: justify;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 0 10px;
}

.gallery-images img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-images img:hover {
  transform: scale(1.03);
}


  /* =========================== */
  /* ✅ 影像遮罩與 ICON 效果     */
  /* =========================== */
  .gallery-image-link {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .gallery-image-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-hover-icon {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
  }
  
  .gallery-hover-icon i {
    font-size: 36px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-image-link:hover .gallery-hover-icon {
    background: rgba(0, 0, 0, 0.5);
  }
  
  .gallery-image-link:hover .gallery-hover-icon i {
    opacity: 1;
  }
@media (max-width: 1024px) {
  .gallery-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

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