/* Gallery Item Styles */
.pbmit-gallery-item {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.pbmit-portfolio-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.pbmit-portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.pbmit-portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pbmit-portfolio-box:hover .pbmit-portfolio-image img {
  transform: scale(1.05);
}

.pbmit-portfolio-content {
  padding: 20px;
  background: white;
}

.pbmit-portfolio-content h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 15px;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  top: 50%;
  transform: translateY(-50%);
}

#modalImage {
  width: 100%;
  height: auto;
  display: block;
}

.modal-info {
  padding: 20px;
  background: white;
}

#modalTitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

#modalDescription {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

/* Navigation Buttons */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-nav-btn:hover {
  background: white;
}

.modal-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #333;
  stroke-width: 2;
}

#prevBtn {
  left: 20px;
}

#nextBtn {
  right: 20px;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 0 auto;
  }

  .modal-nav-btn {
    width: 35px;
    height: 35px;
  }

  .modal-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  #modalTitle {
    font-size: 20px;
  }

  #modalDescription {
    font-size: 14px;
  }

  .close {
    width: 25px;
    height: 25px;
  }
}

/* Loading Skeleton Styles */
.skeleton-item {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.skeleton-image {
  height: 250px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-title {
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin-bottom: 10px;
  border-radius: 4px;
}

.skeleton-text {
  height: 15px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  width: 70%;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.empty-state p {
  font-size: 16px;
  color: #999;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.category-badge.farm {
  background: #e8f5e9;
  color: #2e7d32;
}

.category-badge.events {
  background: #e3f2fd;
  color: #1565c0;
}

.category-badge.products {
  background: #fff3e0;
  color: #e65100;
}

.category-badge.community {
  background: #f3e5f5;
  color: #6a1b9a;
}

/* Featured Badge */
.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffc107;
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

/* Hover Effect Enhancement */
.pbmit-portfolio-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pbmit-portfolio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Animation */
.modal.show {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}
