@import url("https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap");
@font-face {
  font-family: "Vazir";
  font-weight: normal;
  src: url("../fonts/Vazir.ttf") format("truetype");
}
@font-face {
  font-family: "Vazir";
  font-weight: bold;
  src: url("../fonts/Vazir-Bold.ttf") format("truetype");
}
body.no-scroll {
  overflow: hidden;
}

.gallery-container {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 5rem);
  font-family: "Vazir", serif;
  color: #212121;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(14, 17, 24, 0.06) 0%, rgba(14, 17, 24, 0) 100%);
}

.gallery-heading {
  text-align: center;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}
.gallery-heading h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #212121;
  margin: 0;
  position: relative;
  display: inline-block;
}
.gallery-heading h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #E9D8A6;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.gallery-card {
  position: relative;
  display: block;
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 45px -32px rgba(13, 20, 30, 0.65);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  padding: 0;
  text-align: start;
  font-family: inherit;
  color: inherit;
}
.gallery-card:hover, .gallery-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(10, 14, 25, 0.65);
}
.gallery-card:hover .gallery-card__overlay, .gallery-card:focus-visible .gallery-card__overlay {
  opacity: 1;
  transform: translateY(0);
}
.gallery-card:hover .gallery-card__image img, .gallery-card:focus-visible .gallery-card__image img {
  transform: scale(1.03);
}
.gallery-card:focus-visible {
  outline: 3px solid rgba(233, 216, 166, 0.6);
  outline-offset: 3px;
}
.gallery-card__image {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #03181d;
}
.gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 22, 39, 0.4);
  color: #fff;
  opacity: 0;
  transform: translateY(8%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-card__overlay-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.gallery-card__overlay-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: rgba(7, 11, 20, 0.76);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}
.gallery-lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
}
.gallery-lightbox__content {
  position: relative;
  background: rgba(16, 21, 32, 0.85);
  backdrop-filter: blur(24px);
  border-radius: clamp(14px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px -20px rgba(10, 14, 25, 0.65);
  max-width: min(1024px, 90vw);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  color: #fff;
}
@media (min-width: 768px) {
  .gallery-lightbox__content {
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  }
}
.gallery-lightbox__media {
  position: relative;
  background: #0e131f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.gallery-lightbox__media img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: clamp(12px, 2vw, 18px);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.75);
}
.gallery-lightbox__info {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  max-height: 100%;
  overflow-y: auto;
}
.gallery-lightbox__info h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #fff;
}
.gallery-lightbox__info p {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}
.gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  transition: transform 0.4s ease, background 0.4s ease;
}
.gallery-lightbox__close:hover, .gallery-lightbox__close:focus-visible {
  transform: scale(1.05);
  background: rgba(233, 216, 166, 0.75);
}
.gallery-lightbox__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem 3rem;
  font-family: "Vazir", serif;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #212121;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.pagination-btn:hover {
  background: #E9D8A6;
  color: #fff;
  border-color: #E9D8A6;
}
.pagination-btn.active {
  background: #E9D8A6;
  color: #fff;
  border-color: #E9D8A6;
  font-weight: 700;
  cursor: default;
}

@media (max-width: 640px) {
  .gallery-card {
    border-radius: 10px;
  }
  .gallery-lightbox__info {
    padding-inline: 1.5rem;
  }
  .pagination {
    gap: 0.35rem;
    padding: 1.5rem 1rem 2.5rem;
  }
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-card__image img,
  .gallery-card__overlay,
  .gallery-lightbox,
  .gallery-lightbox__close,
  .pagination-btn {
    transition: none !important;
  }
}

/*# sourceMappingURL=gallery.css.map */
