/**
 * Theme for novaGallery - https://novagallery.org
 * Theme: "novaGallery"
 * Author: novafacile OÜ
 * License: AGPL-3.0
 */

:root {
  --bg-color: #ffffff;
  --text-color: #333;
  --link-color: #333;
  --link-color-hover: rgba(0, 0, 0, 0.9);
  --link-color-muted: #6c757d;
  --link-color-muted-hover: #6c757d;
  --lightbox-bg: #ffffff;
  --lightbox-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: transparent;
  color: var(--text-color);
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
   background-color: transparent !important;
  background: transparent !important;
}

#particles-js {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10 !important;
  background-color: #ffffff;
  pointer-events: none;
}

.row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.albums,
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  gap: 1rem !important;
}

.album-item {
  flex: 1 0 23% !important;
  max-width: 23% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.cover-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  padding: 10px;
  margin-bottom: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px !important;
}

.album-title {
  width: 100%;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #222;
  padding: 0 !important;
  margin: 0 auto !important;
  line-height: 1.3 !important;
}

.cover-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.3rem;
}

a,
a:visited {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:active {
  color: var(--link-color-hover);
}

.text-muted a,
.text-muted a:visited {
  color: var(--link-color-muted);
  text-decoration: none;
}

.text-muted a:hover,
.text-muted a:active {
  color: var(--link-color-muted-hover);
}

/* Lightbox */
.sl-overlay {
  background-color: var(--lightbox-bg);
}

.sl-wrapper .sl-image .sl-caption {
  font-size: 1rem;
  opacity: 0.9;
}

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter {
  color: var(--lightbox-color);
  opacity: 1;
}

/* 响应式 */
@media (max-width: 992px) {
  .album-item {
    flex: 1 0 31% !important;
    max-width: 31% !important;
  }
}

@media (max-width: 768px) {
  .album-item {
    flex: 1 0 48% !important;
    max-width: 48% !important;
  }
}

@media (max-width: 576px) {
  .album-item {
    flex: 1 0 100% !important;
    max-width: 100% !important;
  }
}