/* DPS Gallery Styles */

/* Main Gallery */
.dps-gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dps-gallery-header {
  /*background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);*/
  background-color: #1bae70;
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.dps-gallery-logo {
  margin-bottom: 15px;
}

.dps-gallery-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: white;
  padding: 10px;
  border-radius: 50%;
}

.dps-gallery-header h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 700;
}

.dps-gallery-subtitle {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
}

/* Category Filters */
.dps-category-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.dps-filter-btn {
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #333;
}

.dps-filter-btn:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
}

.dps-filter-btn.active {
  background-color: #1b5e20;
  border-color: #1b5e20;
  color: white;
}

/* Albums Grid */
.dps-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.dps-album-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dps-album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dps-album-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.dps-album-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dps-album-content {
  padding: 20px;
  background: #1bae70!important;
  color: white;
}

.dps-album-content h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
}

.dps-album-content p {
  margin: 0 0 15px 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.dps-view-album {
  display: inline-block;
  background: #333;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.dps-view-album:hover {
  background: #555;
  color: white;
}

.dps-no-albums {
  text-align: center;
  padding: 40px;
  color: #666;
  grid-column: 1 / -1;
}

/* Single Album Page */
.dps-album-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dps-album-single-header {
  background-color: #1bae70!important;
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.dps-back-button {
  margin-bottom: 20px;
}

.dps-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.dps-back-link:hover {
  opacity: 0.8;
  color: white;
}

.dps-album-single-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.dps-album-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 50%;
}

.dps-album-single-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.dps-album-description {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.95;
}

/* Album Images Grid */
.dps-album-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.dps-gallery-image-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #f0f0f0;
}

.dps-gallery-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dps-gallery-image-item:hover img {
  transform: scale(1.05);
}

.dps-no-images {
  text-align: center;
  padding: 40px;
  color: #666;
  grid-column: 1 / -1;
}

/* Lightbox */
.dps-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.dps-lightbox.active {
  display: flex;
}

.dps-lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.dps-lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.dps-lightbox-close:hover {
  color: #ccc;
}

.dps-lightbox-prev,
.dps-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.dps-lightbox-prev {
  left: 20px;
}

.dps-lightbox-next {
  right: 20px;
}

.dps-lightbox-prev:hover,
.dps-lightbox-next:hover {
  color: #ccc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .dps-gallery-header {
    padding: 20px;
  }

  .dps-gallery-header h1 {
    font-size: 24px;
  }

  .dps-gallery-subtitle {
    font-size: 14px;
  }

  .dps-category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dps-category-filters::-webkit-scrollbar {
    display: none;
  }

  .dps-filter-btn {
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 14px;
  }

  .dps-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .dps-album-content {
    padding: 15px;
  }

  .dps-album-content h3 {
    font-size: 16px;
  }

  .dps-album-content p {
    font-size: 13px;
  }

  .dps-album-single-title h1 {
    font-size: 22px;
  }

  .dps-album-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .dps-lightbox-prev,
  .dps-lightbox-next {
    font-size: 30px;
    padding: 10px;
  }

  .dps-lightbox-close {
    font-size: 30px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .dps-albums-grid {
    grid-template-columns: 1fr;
  }

  .dps-album-images-grid {
    grid-template-columns: 1fr;
  }
}
