:root {
  --primary-color: #1877f2;
  --background-color: #E5E4E2;
  --text-color: #1c1e21;
  --subtext-color: #606770;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark {
  --background-color: #18191a;
  --text-color: #e4e6eb;
  --subtext-color: #b0b3b8;
  --white: #242526;
  --shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 24px;
  font-weight: 400;
}

.header-content span {
  margin-top: 10.5px;
}

.header-content a {
  display: inline-flex;
  text-decoration: none;
  color: var(--white);
  align-items: center;
}

.site-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.container {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.gallery-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-color);
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  justify-items: center;
}

.gallery-item {
  position: relative;
  display: inline-block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: blur(8px);
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-item.unlocked img {
  filter: blur(0);
}

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

.unlock-btn {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* optional subtle shadow */
}

#lockedOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  z-index: 9999;
}

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

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
}

.close, .prev, .next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 20px;
  right: 40px;
}

.prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.close:hover, .prev:hover, .next:hover {
  color: #ffdd57;
}
