/* ==========================
   MAIN GALLERY PAGE STYLES
   ========================== */

.cm-gallery-body {
  background: #05060a;
  color: #e8e8e8;
  margin: 0;
  font-family: system-ui, sans-serif;
}

.cm-gallery-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.cm-gallery-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.cm-gallery-album-title {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0f0f0;
}

/* Grid for the main gallery */
.cm-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.cm-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #0b0d12;
  border: 1px solid rgba(255,255,255,0.05);
}

.cm-gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

.cm-gallery-item:hover img {
  transform: scale(1.06);
  opacity: .85;
}

/* ==========================
   LIGHTBOX
   ========================== */

.cm-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem 1rem;
  z-index: 9999;
}

.cm-lightbox.is-active {
  display: flex;
}

.cm-lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.cm-lightbox-caption {
  color: #c9c9c9;
  font-size: .9rem;
  text-align: center;
}

.cm-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media(max-width: 600px) {
  .cm-gallery-grid {
    grid-template-columns: 1fr;
  }
  .cm-gallery-item img {
    height: 200px;
  }
}

/* ==========================
   FEATURED GALLERY (Homepage mini grid)
   ========================== */

.cm-featured-gallery {
    background:#05060a;
    padding: 60px 0 !important;
    margin: 0;
    color:#e8e8e8;
}

.cm-featured-gallery * {
    box-sizing: border-box;
}

.cm-featured-title {
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:1.6rem;
    margin-bottom:1.5rem;
}

.cm-featured-grid {
    display:grid !important;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.cm-featured-item img {
    width:100%;
    height:200px !important;
    object-fit:cover !important;
    border-radius:10px;
    transition:transform .3s ease, opacity .3s ease;
    display:block;
}

.cm-featured-item:hover img {
    transform:scale(1.04);
    opacity:.85;
}

.cm-featured-button-wrap {
    margin-top:1.5rem;
}

.cm-featured-button {
    border:1px solid #f97316;
    color:#f97316;
    padding:.6rem 1.4rem;
    border-radius:999px;
    text-decoration:none;
    font-size:.85rem;
    letter-spacing:.1em;
    display:inline-block;
}

.cm-featured-button:hover {
    background:#f97316;
    color:#05060a;
}
.cm-gallery-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #f97316;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.cm-gallery-back:hover {
    opacity: 0.75;
}
/* Center text + button in featured gallery */
.cm-featured-gallery {
    text-align: center;
}

.cm-featured-title {
    text-align: center;
}

.cm-featured-button-wrap {
    text-align: center;
}
