/* styles.css */
body {
  background-color: #ffffff; /* Light gray background */
  font-family: 'Didact Gothic', sans-serif; /* Apply Didact Gothic for body text */
  line-height: 1.6;
  color: #333;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

header p {
  font-size: 1.1rem;
  color: #666;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  transition: all 0.3s ease;
}


.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 10px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Project title styles (placed below image) */
.project-title {
  padding: 0.5rem 1rem 0rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.project-year{
 padding-left: 1rem;
  font-size:1rem;

  color: #333;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  grid-column: 1 / -1;
}

.loading::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media (min-width: 480px) and (max-width: 767px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}

.gal-container {
  flex: 1;
  width: 100%;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}


footer {
  margin-top: auto;
}


.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  min-height: 300px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin: 1rem 0;
  width: 100%;
  grid-column: 1 / -1;
}

.empty-state i {
  color: #ccc;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.empty-state p {
  color: #888;
  font-size: 1rem;
}


.resize-animation-stopper * {
  transition: none !important;
}


.search-container {
  margin-bottom: 1.5rem;
}

.search-container .input-group {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.search-container .input-group-text {
  border: none;
  color: #666;
}

#gallery-search {
  border-left: none;
  border-right: none;
  box-shadow: none;
}

#gallery-search:focus {
  box-shadow: none;
  border-color: #ced4da;
}

#clear-search {
  border: 1px solid #ced4da;
  border-left: none;
}

#clear-search:hover {
  background-color: #f8f9fa;
}


@media (max-width: 767px) {
  .search-container .input-group {
    max-width: 90%;
  }
  
  #gallery-search::placeholder {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .search-container .input-group {
    max-width: 95%;
  }
  
  #gallery-search::placeholder {
    font-size: 0.8rem;
  }
  
  .search-container .input-group-text,
  #clear-search {
    padding: 0.375rem 0.5rem;
  }
}


.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.no-results i {
  font-size: 2.5rem;
  color: #ccc;
  margin-bottom: 1rem;
  display: block;
}

/* Custom dropdown styles */
.filter-dropdown .dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
  min-width: 200px;
}

.filter-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
}

.filter-dropdown .dropdown-item:hover {
  background-color: #f5f5f5;
}

.filter-dropdown .dropdown-item input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

/* Active filters styles */
.active-filter {
  display: inline-flex;
  align-items: center;
  background-color: #e9ecef;
  border-radius: 20px;
  padding: 5px 12px;
  margin: 3px;
  font-size: 0.9rem;
  cursor: pointer;
}

.active-filter:hover {
  background-color: #dee2e6;
}

.active-filter .remove-filter {
  margin-left: 6px;
  font-size: 0.8rem;
}

/* Keep dropdown open while interacting with checkboxes */
.dropdown-menu.show {
  display: block;
}

/* Responsive adjustments for filter container */
@media (max-width: 576px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-dropdown {
    width: 100%;
    margin-bottom: 8px;
  }
}