/* Masonry Gallery Styles */
.ike-masonry-gallery {
  display: flex;
  /* grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); */
  flex-wrap: wrap;
  flex-grow: 3;
  gap: 15px;
  padding: 10px;
}

.ike-gallery-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 23%;     /* Each item takes 23% of the container width */
  max-width: 23%;    /* Ensures no item exceeds 23% width */
}

.ike-gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

.ike-gallery-item p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}


/* Modal Styles */



.ike-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.ike-modal-content {
  display: flex;
  background: white;
  border-radius: 10px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ike-modal-image-wrapper {
  flex: 4;
  overflow: hidden;
}

.ike-modal-image-wrapper img {
  width: 1000px;
  height: 500px;
  display: block;
  transition: opacity 0.3s ease-in-out;

}

.ike-modal-description {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: left;
}

.ike-modal-description h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: bold;
}

.ike-modal-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.ike-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}



.ike-modal-content.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.ike-modal-content.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Navigation Buttons */
.ike-prev,
.ike-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  border-radius: 50%;
}

.ike-prev {
  left: 20px;
}

.ike-next {
  right: 20px;
}

.ike-prev:hover,
.ike-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
