/* Portfolio Grid Styles */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-image:hover {
  filter: grayscale(0);
  transform: scale(1.05);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

/* Modal Styles */
.modal-fullscreen {
  max-width: 100% !important;
}

.modal-fullscreen .modal-content {
  background-color: #000 !important;
}

.modal-fullscreen .modal-body {
  width: 100%;
  height: 100vh;
}

.modal-fullscreen .modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  width: auto;
  padding: 1rem;
}

.modal-fullscreen .close {
  font-size: 2rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-fullscreen .close:hover {
  opacity: 1;
}

#imageFilename {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
  max-width: 100%;
}

#modalImage {
  max-width: 100% !important;
  max-height: 90vh !important;
}
