body {
  background: linear-gradient(
    45deg in oklab,
    var(--primary-colour) 40%,
    var(--light-blue) 50% 100%
  );
}

/* Filter Pills */
.filter-container {
  display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px 20px;
    border-bottom: 1px solid white;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--med-pink);
  border-radius: 25px;
  padding: 0.1rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--pink);
  box-shadow: 1px 3px 3px rgba(190, 24, 93, 0.1);
}

.filter-pill:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 1px 4px 2px rgba(236, 72, 153, 0.3);
}

.filter-pill.active {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
  box-shadow: 1px 4px 2px rgba(236, 72, 153, 0.3);
}

/* Gallery */
.gallery {
  column-count: 4;
  column-gap: 20px;
}

.gallery h1 {
  position: absolute;
  left: 50%;
  margin-top: 4rem;
  transform: translate(-50%, -50%);
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(190, 24, 93, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

/* Card Content */
.card-content {
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  text-align: center;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: transform 0.3s ease;
}

.card-text {
  /*background: rgba(255, 255, 255, 0.1);*/
  background: rgba(249, 108, 108, 0.1);
  backdrop-filter: blur(10px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 10px 10px;
  padding: 0.2rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #be185d;
  margin-bottom: 8px;
}

.card-category {
  font-size: 0.9rem;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 80vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
}

.lightbox-image {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  vertical-align: middle;
}

.lightbox-text {
  flex: 1;
  text-align: left;
}

.lightbox-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-card-category {
  font-size: 1.1rem;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}

.lightbox-card-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #be185d;
  margin-bottom: 25px;
  line-height: 1.2;
}

.lightbox-card-description {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 40px;
}

.book-button {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899, #06b6d4);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.book-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.4);
}

/* Lightbox Controls */
.lightbox-controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 15px;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.lightbox-share.fade-out {
  opacity: 0;
}

.lightbox-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(10px);
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.lightbox-close {
  background: rgba(220, 38, 38, 0.8);
}

.lightbox-close:hover {
  background: rgba(220, 38, 38, 1);
}

.lightbox-share {
  background: rgba(59, 130, 246, 0.8);
}

.lightbox-share:hover {
  background: rgba(59, 130, 246, 1);
}

/* Image Counter */
.image-counter {
  position: absolute;
  bottom: 0.5vh;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(1px);
}

/* Navigation Arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1vw;
}

.lightbox-next {
  right: 1vw;
}

.icon.arrow {
  position: absolute;
  content: "";
  top: 0.9rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
}

.lightbox-next .icon.arrow {
  right: 0.95rem;
  transform: rotate(45deg);
}

.lightbox-prev .icon.arrow {
  right: 0.68rem;
  transform: rotate(225deg);
}

/* Slide Animations */
.slide-in-left {
  animation: slideInLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right {
  animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-out-left {
  animation: slideOutLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-out-right {
  animation: slideOutRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 1200px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery {
    column-count: 2;
    column-gap: 15px;
  }

  .gallery-item {
    margin-bottom: 15px;
  }

  .lightbox-text {
    text-align: center;
  }

  .lightbox-card-title {
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    column-count: 2;
  }

  .lightbox-content {
    max-width: 90vw;
  }

  .lightbox-card-title {
    font-size: 1.8rem;
  }

  .lightbox-nav {
    background: transparent;
    backdrop-filter: none;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
