/* ================================
   MMCSPECS Album Grid + Lightbox
   File: assets/album.css
================================== */

/* Grid */
.mmcspecs-album-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Responsive (اختیاری) */
@media (max-width: 768px){
  .mmcspecs-album-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px){
  .mmcspecs-album-grid{
    grid-template-columns: 1fr;
  }
}

/* Item */
.mmcspecs-album-item{
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  background: transparent !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mmcspecs-album-item.is-full{
  grid-column: 1 / -1 !important; /* اگر 3/3/3/1 بود آخری تمام عرض */
}

/* No hover/active/focus styles */
.mmcspecs-album-item:hover,
.mmcspecs-album-item:active,
.mmcspecs-album-item:focus,
.mmcspecs-album-item:focus-visible{
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

/* Image (No crop, real aspect) */
.mmcspecs-album-img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;

  /* عدم برش */
  object-fit: contain !important;
  object-position: center center !important;

  /* radius از PHP inline هم میاد، اینجا هم تضمینی */
  border-radius: 10px !important;
}

/* =======================
   Lightbox
======================= */
.mmcspecs-lightbox{
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(0,0,0,.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

/* IMPORTANT: prevent open on load */
.mmcspecs-lightbox[hidden]{
  display: none !important;
}

.mmcspecs-lb-stage{
  max-width: 92vw !important;
  max-height: 88vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mmcspecs-lb-img{
  max-width: 92vw !important;
  max-height: 88vh !important;
  width: auto !important;
  height: auto !important;

  /* اندازه واقعی بدون کراپ */
  object-fit: contain !important;
  object-position: center center !important;

  border-radius: 10px !important;
  display: block !important;
}

/* =======================
   Lightbox Buttons
   - no background
   - size 40
   - aligned icons
======================= */
.mmcspecs-lb-close,
.mmcspecs-lb-prev,
.mmcspecs-lb-next{
  position: absolute !important;
  width: 40px !important;
  height: 40px !important;

  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;

  background: transparent !important; /* بک گراند حذف */
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;

  color: #fff !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Icons alignment */
.mmcspecs-lb-prev,
.mmcspecs-lb-next{
  font-size: 34px !important;     /* ‹ › */
  line-height: 40px !important;
  font-weight: 400 !important;
}

.mmcspecs-lb-close{
  font-size: 28px !important;     /* × */
  line-height: 40px !important;
  font-weight: 400 !important;
}

/* No hover/active/focus effects */
.mmcspecs-lb-close:hover,
.mmcspecs-lb-prev:hover,
.mmcspecs-lb-next:hover,
.mmcspecs-lb-close:active,
.mmcspecs-lb-prev:active,
.mmcspecs-lb-next:active,
.mmcspecs-lb-close:focus,
.mmcspecs-lb-prev:focus,
.mmcspecs-lb-next:focus,
.mmcspecs-lb-close:focus-visible,
.mmcspecs-lb-prev:focus-visible,
.mmcspecs-lb-next:focus-visible{
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

/* Positions */
.mmcspecs-lb-close{
  top: 18px !important;
  right: 18px !important;
}

.mmcspecs-lb-prev{
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.mmcspecs-lb-next{
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
