-proj\galnew\styles.css
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f8f9fa;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.header h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 2px;
}

.back-btn {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.back-btn:hover {
  background: #34495e;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Hide radio inputs */
input[type="radio"] {
  display: none;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filters label {
  display: inline-block;
  padding: 12px 24px;
  background: #ecf0f1;
  color: #2c3e50;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.filters label:hover {
  background: #bdc3c7;
  transform: translateY(-2px);
}

input[type="radio"]:checked + label,
input[type="radio"]:checked ~ .filters label[for="all"] {
  background: #2c3e50;
  color: white;
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

#all:checked ~ .filters label[for="all"],
#hygge:checked ~ .filters label[for="hygge"],
#wood:checked ~ .filters label[for="wood"],
#dvir:checked ~ .filters label[for="dvir"],
#chan:checked ~ .filters label[for="chan"] {
  background: #2c3e50;
  color: white;
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__overlay i {
  color: white;
  font-size: 2rem;
}

/* Filter functionality */
/* Show all cards by default when "all" is checked */
#all:checked ~ .gallery .card {
  display: block;
  animation: slideIn 0.5s ease;
}

/* Hide all cards first, then show specific ones */
#hygge:checked ~ .gallery .card {
  display: none;
}

#hygge:checked ~ .gallery .card.hygge {
  display: block;
  animation: slideIn 0.5s ease;
}

#wood:checked ~ .gallery .card {
  display: none;
}

#wood:checked ~ .gallery .card.wood {
  display: block;
  animation: slideIn 0.5s ease;
}

#dvir:checked ~ .gallery .card {
  display: none;
}

#dvir:checked ~ .gallery .card.dvir {
  display: block;
  animation: slideIn 0.5s ease;
}

#chan:checked ~ .gallery .card {
  display: none;
}

#chan:checked ~ .gallery .card.chan {
  display: block;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* 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);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  animation: modalZoomIn 0.3s ease;
}

@keyframes modalZoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #bbb;
}

#caption {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  font-size: 1.2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .back-btn {
    position: relative;
    margin-bottom: 20px;
  }

  .filters {
    flex-direction: column;
    align-items: center;
  }

  .filters label {
    width: 200px;
    text-align: center;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .card__image {
    height: 200px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 80%;
  }

  .close {
    top: 10px;
    right: 25px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .filters label {
    width: 100%;
  }
}

/* Loading animation */
.card__image[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}