/* --- COLLECTIONS PAGE BUTTONS --- */
.category-buttons {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 40px;
  margin-bottom: 38px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.category-btn {
  font-size: 0.5rem;
  font-family: "EB Garamond", serif;
  padding: 0;
  width: 180px;
  height: 180px;
  background: linear-gradient(180deg, #c2185b 0%, #0097a7 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(58,44,71,0.13);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
  outline: none;
  margin: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.category-btn:hover, .category-btn:focus {
  background: linear-gradient(180deg, #c2185b 0%, #0097a7 100%);
  color: #fff;
  animation: btn-bounce 0.5s;
  box-shadow: 0 8px 32px #6a82fb66;
  transform: scale(1.05);
}

@keyframes btn-bounce {
  0%   { transform: scale(1);}
  30%  { transform: scale(1.12);}
  50%  { transform: scale(0.96);}
  70%  { transform: scale(1.06);}
  100% { transform: scale(1);}
}

/* Fullscreen Viewer */
.fullscreen-viewer {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,24,44,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  flex-direction: column;
}

.fullscreen-viewer.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.fullscreen-viewer img {
  max-width: 80vw;
  max-height: 80vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  border-radius: 12px;
  margin: 24px 0;
}

.close-btn {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 3.2rem;   /* Make it big for touch */
  color: #fff;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  z-index: 2100;
  transform: translateY(-50%);
  padding: 0 16px;
  transition: color 0.2s;
}

.left-arrow { left: 40px; }
.right-arrow { right: 40px; }

.arrow:hover, .close-btn:hover {
  color: #ffb347;
}

/* Category Gallery Grid */
.category-gallery, .image-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px); /* Fixed 200px columns */
  gap: 18px;
  margin: 40px auto 60px auto;
  max-width: 1400px;
  justify-content: center;
  align-items: start;
  width: auto;
  overflow-x: visible;
}

/* Fullscreen Title */
.fullscreen-title {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
}

/* Category Modal/Header Bar (if used in category.html) */
.category-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(120deg, #232526 0%, #3a2c47 100%);
  z-index: 3000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  display: block;
}

.category-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34,24,44,0.97);
  padding: 24px 48px 18px 48px;
  border-bottom: 1.5px solid #e0b3ff;
  position: sticky;
  top: 0;
  z-index: 3100;
}

.category-heading {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: #ffb347;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px #3a2c47;
}

.close-category {
  font-size: 2.5rem;
  color: #ffb347;
  cursor: pointer;
  margin-left: 24px;
  text-shadow: 0 2px 12px #3a2c47;
  transition: color 0.2s;
  background: none;
  border: none;
  line-height: 1;
  position: absolute;
  top: 28px;
  right: 48px;
  z-index: 3100;
}
.close-category:hover {
  color: #e0b3ff;
}

.category-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0;           /* Remove rounded corners */
  border: 2px solid #6a82fb;  /* Use a blue border for a modern look */
  background: #232526;
  box-shadow: 0 2px 8px rgba(106,130,251,0.13);
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 0;
  padding: 0;
  display: block;
}

.category-img:hover {
  transform: scale(1.09) rotate(-2deg);
  box-shadow: 0 8px 32px #6a82fb66;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
  
@media (max-width: 600px) {
  .category-buttons {
    gap: 12px 8px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 0 2vw;
  }
  .category-btn {
    width: 90px;
    height: 90px;
    font-size: 0.9rem;
  }
  .category-gallery, .image-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px auto 18px auto;
    padding: 0 15vw;
  }
  .category-img {
    width: 90vw;
    max-width: 100px;
    height: 90vw;
    max-height: 100px;
  }
  .fullscreen-viewer img {
    max-width: 98vw;
    max-height: 60vh;
  }
  .arrow, .close-btn {
    font-size: 1.5rem;
    top: 8px;
    right: 8px;
    left: 8px;
    padding: 2px 6px;
  }
}

.collections-page {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.collections-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/images/bg.jpg') no-repeat center center;
  background-size: cover;
  filter: blur(14px) brightness(0.7);
  opacity: 1;
  pointer-events: none;
}

.collections-page > * {
  position: relative;
  z-index: 1;
}

.category-btn,
.category-heading,
.fullscreen-title,
.category-img,
.category-gallery,
.image-display {
  font-family: "EB Garamond", serif; /*"Estonia", cursive; */
  font-size: 1rem;
}

