/* Custom Modal Styling */
.modal-dialog.modal-xl {
  max-width: 90%;
  margin: 1.75rem auto;
}

@media (max-width: 992px) {
  .modal-dialog.modal-xl {
    max-width: 95%;
  }
}

.modal {
  overflow-y: auto !important;
}

.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

.modal-content {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.modal-backdrop {
  opacity: 0.7 !important;
}

/* Ensure modal is centered and visible */
.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

/* Fix for project details display */
.project-info {
  padding: 20px;
}

/* Improve slider in modal */
.project-slider {
  margin-bottom: 20px;
}

.project-slider .slick-dots {
  bottom: 10px;
}

/* Make entire project card clickable */
.shuffle-item {
  cursor: pointer;
}

/* Make project cards look clickable */
.project-img-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shuffle-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

/* Apply hover effect to all project cards */
.shuffle-item:hover .project-img-container,
.project-img-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Add visual feedback for clickable elements */
.project-item-title a:hover,
.project-img-container a:hover {
  color: #ffb600;
}

/* Highlight effect for project cards */
.shuffle-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.02);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.shuffle-item:hover::before {
  opacity: 1;
}

/* Fix modal position */
.modal.fade .modal-dialog {
  transform: translate(0, 0) !important;
}

.modal.show .modal-dialog {
  transform: translate(0, 0) !important;
}
