/* gallery.css - עיצוב Masonry רספונסיבי עם אפקטים, ללא כיתובים ובלי פס לבן מתחת לתמונה */

@font-face {
  font-family: 'GoldenHopes';
  src: url('fonts/GoldenHopes.otf') format('opentype');
}

html, body {
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.gallery-title-container {
  margin-top: 6.5px;
  margin-bottom: 6.5px;
  text-align: center;
}

.gallery-title {
  font-family: 'GoldenHopes', serif;
  font-size: 3rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-color);
}

/* גלריה מייסונרי */
.gallery-container {
  column-count: 3;
  column-gap: 20px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 15px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  margin-bottom: 25px;
  break-inside: avoid;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: #fff;
  overflow: hidden;
}

/* אנימציית הופעה נעימה */
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* הסרת פס לבן מתחת לתמונה עם display:block */
.gallery-item img {
  display: block;      /* חשוב כדי למנוע פס לבן מתחת */
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ביטול כיתובים בזמן ריחוף */
.gallery-item::after {
  display: none !important;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
}


.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* אייקון בית צף */
.floating-home-icon {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 10000;
}
.floating-home-icon:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

/* רספונסיביות */
@media (max-width: 1024px) {
  .gallery-container {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery-container {
    column-count: 1;
  }
}
