/* =========================
   13) Gallery (Albums)
========================= */

.gallery-page{
  padding: 48px 0;
  background: #fff;
}

/* نفس كونتينر اللاندنغ (80px) */
.gallery-container{
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: 80px;
  box-sizing: border-box;
}
@media (max-width: 768px){
  .gallery-container{ padding-inline: 20px; }
}

/* =====================================================
   ✅ Title icon like other pages (from /public/icons/ui/gallery.svg)
===================================================== */
.gallery-page .section-title{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: rtl;
}

.gallery-page .title-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.gallery-page .title-icon-img{
  width: 28px;
  height: 28px;
  display: block;

  /* ✅ Orange even if svg is black */
  filter: invert(63%) sepia(88%) saturate(2200%) hue-rotate(2deg) brightness(102%) contrast(102%);
}

@media (max-width: 520px){
  .gallery-page .title-icon{
    width: 36px;
    height: 36px;
  }
  .gallery-page .title-icon-img{
    width: 22px;
    height: 22px;
  }
}

/* ===== Grid ===== */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

@media (max-width: 1100px){
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .gallery-grid{ grid-template-columns: 1fr; margin-top: 18px; }
}

/* ===== Card ===== */
.gallery-album{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.gallery-album:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.10);
}

.gallery-album-link{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* cover */
.album-cover{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b3a78;
}

.album-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .7s ease;
  display: block;
}

.gallery-album:hover .album-cover img{
  transform: scale(1.08);
}

/* overlay to make title pop */
.album-cover::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11,58,120,.70) 0%,
    rgba(11,58,120,.12) 55%,
    rgba(11,58,120,0) 100%
  );
  opacity: .85;
}

/* count badge */
.album-badge{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245,158,11,.92);
  color: #fff;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}

.album-badge svg{
  width: 16px;
  height: 16px;
}

/* content */
.album-body{
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  text-align: right;
}

.album-title{
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.35;
  color: #0b2f63;
  transition: color .25s ease;
}

.gallery-album:hover .album-title{
  color: #0b3a78;
}

.album-meta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: rgba(0,0,0,.45);
  font-family: "Tajawal", sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.album-meta svg{
  width: 16px;
  height: 16px;
}

/* footer action */
.album-action{
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.album-action .cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #0b3a78;
}

.album-action .cta svg{
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.gallery-album:hover .album-action .cta svg{
  transform: translateX(-4px);
}

/* ===== Empty state ===== */
.gallery-empty{
  grid-column: 1 / -1;
  padding: 48px 18px;
  border-radius: 18px;
  background: #f7f8fb;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.gallery-empty .icon{
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: grid;
  place-items: center;
  color: rgba(0,0,0,0.25);
}

.gallery-empty p{
  margin: 0;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: rgba(0,0,0,0.45);
}

/* ===== Pagination ===== */
.gallery-pagination{
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.gallery-pagination nav{ direction: rtl; }
.gallery-pagination .pagination{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.gallery-pagination .page-link,
.gallery-pagination .page-item span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #0b3a78;
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  text-decoration: none;
}
.gallery-pagination .page-item.active .page-link{
  background: #0b3a78;
  border-color: #0b3a78;
  color: #fff;
}
.gallery-pagination .page-item.disabled span{ opacity: .5; }
