body {
    direction: rtl;
    font-family: 'Arimo', sans-serif;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #fff; /* רקע כהה */
    color: white; /* צבע טקסט לבן */
    padding: 20px;
    margin: 0;
  }
  
.gcont {

  display: flex; /* מאפשר שימוש ב-flexbox */
  flex-wrap: wrap; /* מאפשר לתמונות לעבור לשורה הבאה אם אין מקום */
  justify-content: center; /* מרכז את התוכן */
  padding: 10px; /* רווח פנימי סביב הגלריה */
      margin: 0px;
	 margin-top: 90px;
}


  .column {
    flex: 1 0 11%;
    margin: 10px;
    position: relative;
  }
    
  .gallery {
    position: relative; /* מאפשר למקם אלמנטים יחסית */
    overflow: hidden; /* מוודא שהתמונה לא יוצאת */
    border: 2px solid #5a523f; /* צבע מסגרת */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* מעבר חלק בצבע המסגרת ובצל */
    margin-bottom: 10px; /* רווח בין התמונה לתמונה */
  }
  .gallery:hover {
    border-color: #5e5849; /* צבע מסגרת כשמעבירים את העכבר */
    box-shadow: 0 0 15px #5a523f; /* הוספת זוהר סביב המסגרת */
	  opacity: 1; /* מגדיל את השקיפות בעת חיפוש על התמונה */
  }
  
  .gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* מעבר חלק בזום */
    cursor: pointer; /* משתנה הסמן כשמרחפים על התמונה */
    display: block; /* מוודא שאין רווחים סביב התמונה */
    margin: 0; /* אין מרווחים סביב התמונה */
  }
  .gallery img:hover {
    transform: scale(1.1); /* זום קל כשמעבירים את העכבר */
  }


.info {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  background-color: rgba(0, 0, 0, 0.7);
  color: white; 
  padding: 5px; 
  text-align: center; 
  font-size: 0.9em; 
  opacity: 0.4; 
  transition: opacity 0.3s; 
}

.info:hover {
  opacity: 1; /* מגדיל את השקיפות בעת חיפוש על התמונה */
}

  .dimensions {
    margin: 0; /* אין רווחים סביב */
    font-size: 0.9em; /* גודל טקסט של מידות */
  }


 .buy-button {
            background-color: #5a523f; /* צבע כפתור רגיל */
            padding: 10px 15px; /* רווח פנימי */
            font-size: 1em; /* גודל טקסט */
            color: white; /* צבע טקסט */
            border: none;
            cursor: pointer; /* משתנה הסמן כשמרחפים על הכפתור */
            border-radius: 5px;
            width: 70%;
            transition: background-color 0.3s ease, transform 0.3s ease; /* מעבר חלק בצבע ובגודל */
        }

        .buy-button:hover {
            background-color: #898555; /* צבע כפתור ברולאובר */
        }
  
  .btn {
            background-color: #8a9371; /* צבע כפתור רגיל */
            padding: 10px 15px; /* רווח פנימי */
            font-size: 1em; /* גודל טקסט */
            color: white; /* צבע טקסט */
            border: none;
            cursor: pointer; /* משתנה הסמן כשמרחפים על הכפתור */
            border-radius: 5px;
            width: 70%;
            transition: background-color 0.3s ease, transform 0.3s ease; /* מעבר חלק בצבע ובגודל */
        }

        .btn:hover {
            background-color: #a5ae8b; /* צבע כפתור ברולאובר */
        }

        .done {
            pointer-events: none; /* מונע לחיצות נוספות במהלך טעינה */
            background-color: #8a9371; /* צבע התחלה */
            color: #ffffff; /* צבע טקסט */
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.5s ease; /* מעבר חלק בין צבעים */
        }

        /* עובר צבע */
        @keyframes colorChange {
            0% { background-color: #898555; }
            50% { background-color: #ffffff; color: #898555; }
            100% { background-color: #898555; }
        }

        /* מחלקת האנימציה */
        .animate {
            animation: colorChange 1s infinite; /* לופ אין סופי */
        }

        .button-container {
            display: flex; /* מאפשר להשתמש ב-Flexbox */
            justify-content: center; /* שולי בין הכפתורים למרכז */
            gap: 10px; /* רווח בין הכפתורים */
            margin-top: 20px; /* מרחק מהחלק העליון (אופציונלי) */
        }

  @media (max-width: 800px) {
    .column {
      flex: 1 0 46%;
    }
  }
  
  @media (max-width: 500px) {
    .column {
      flex: 1 0 100%;
    }
  }



.image-container {
    overflow: hidden; /* חייב כדי למנוע גלילה לא רצויה */
    width: 100%; /* גודל מיכל */
    height: 100%; /* גודל מיכל */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* הכרחי לצורך פננינג */
}

.modal-content {
    max-width: 99vw; /* מקסימום רוחב 90% מהחלון */
    max-height: 99vh; /* מקסימום גובה 90% מהחלון */
    width: auto;
    height: auto;
    object-fit: contain; /* לשמור על יחס גובה-רוחב */
}


.modal {
    display: none; /* מודאל מוסתר עד שפותחים */
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);

}

.image-container {
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}

.modal-content {
    transition: transform 0.2s ease; /* מעבר חלק */
    cursor: grab;
    position: absolute; /* הכרחי לפננינג */
}

/* שדות טופס */

/* סגנון פופאפ */
.popup {
    display: none; /* תחילה נסתר */
    position: fixed; /* קבוע עם הדף */
    z-index: 1; /* עליון על שאר התוכן */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* גלילה במידת הצורך */
    background-color: rgba(0,0,0,0.7); /* רקע שקוף */
    align-items: center; /* ממקם במרכז ורטיקלית */
    justify-content: center; /* ממקם במרכז אופקית */
	
}

/* תוכן הפופאפ */
.popup-content {
    background-color: #5f5949;
    border-radius: 12px; /* פינות מעוגלות */
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* צל אישי */
    width: 90%; /* רוחב יחסית */
    max-width: 500px; /* רוחב מקסימלי */
    position: relative; /* מאפשר מיקום מאוחר יותר */
}

label {
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* מחשב את הרוחב כולל רווחים */
    transition: border-color 0.3s ease;
}

/* סגנון כשממוקדים */
input:focus,
textarea:focus {
    border-color: #5a523f; /* צבע קו דגש */
    outline: none; /* הסרת קו דגש ברירת המחדל */
}

/* כפתור שליחת הטופס */
button[type="submit"] {
    background-color: #8a9371; /* צבע כפתור */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* רוחב מלא */
    transition: background-color 0.3s ease; /* מעבר צבע */
}

button[type="submit"]:hover {
    background-color: #898555; /* צבע כפתור בעכבר */
}

/* הסגנון של כפתור סגירה */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

  .fi {
 background-color: #585244;
  color: white; 
  padding: 10px 5px; 
  text-align: center; 
  font-size: 0.9em; 
      border-radius: 40px;
}