﻿* 

{
font-family: 'Alef', sans-serif;
}

body {
    margin: 10;
    padding: 0;
    position: absolute;
    left: 8%;
    right: 8%;
}


.container {
    margin: 0 0;
    padding: 0 0;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 auto; /* ריפוד קטן יותר במסכים קטנים יותר */
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 auto; /* ריפוד עוד יותר קטן במסכים של מובייל */
    }
      h1 {
                font-size: 24px;
            }

}

}
p {color: #black; FONT-WEIGHT: normal;}

a {color: #AE1A02; FONT-WEIGHT: bold;}

h1 {  text-align: center; padding: 20px; background-color: #333; color: white; margin: 0;}

h2 {color: #AE1A02; FONT-WEIGHT: bold;}

div.container {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-flow: row wrap;
        flex-flow: row wrap;
    
     }
     
div.c1 {     
     		margin:0 10px 10px 0;
     }
     
div.c2 {     
     		margin:0 10px 10px 0;
     }
     
 div.c3 {     
     		margin:0 10px 10px 0;
     }
     
 a.button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  float: left;
  width: 25%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

 .gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 10px;
      max-width: 1200px;
      margin: auto;
    }

    .gallery img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 5px;
      cursor: pointer;
      transition: transform 0.3s;
    }

    .gallery img:hover {
      transform: scale(1.05);
    }

    /* התאמה למסכים קטנים */
    @media (max-width: 768px) {
      .gallery {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* עיצוב הלייטבוקס */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 1000;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      justify-content: center;
      align-items: center;
    }

    .lightbox img {
      max-width: 90%;
      max-height: 80%;
      border-radius: 8px;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    .lightbox:target {
      display: flex;
    }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 30px;
      text-decoration: none;
      font-weight: bold;
      cursor: pointer;
    }

    .close-btn:hover {
      color: #ff4444;
    }
    
       /* עיצוב פס ניווט */
    .pagination {
      text-align: center;
      padding: 15px;
      background-color: #333;
    }

    .pagination a {
      color: white;
      text-decoration: none;
      margin: 0 10px;
      font-weight: bold;
      padding: 8px 14px;
      border-radius: 5px;
      transition: background 0.3s;
    }

    .pagination a:hover {
      background-color: #555;
    }

    .pagination a.active {
      background-color: #ff9800;
      color: white;
      cursor: default;
    }
    
    .caption {
      font-size: 14px;
      color: #333;
    }

 .gallery-item {
      text-align: center;
      background: white;
      padding: 10px;
      border-radius: 8px;
      box-shadow: 0 0 5px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }

    .gallery-item:hover {
      transform: translateY(-3px);
    }

    .gallery-item img {
      width: 100%;
      height: auto;
      border-radius: 5px;
      cursor: pointer;
      transition: transform 0.3s;
      display: block;
      margin-bottom: 8px;
    }

    .caption {
      font-size: 14px;
      color: #333;
    }
