:root {
  --ink: #101417;
  --deep: #071018;
  --deep-2: #0c1922;
  --gold: #b88a4c;
  --gold-2: #d9ad72;
  --paper: #f4f0e9;
  --paper-2: #faf7f1;
  --line: #d9cfc1;
  --muted: #79736b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  line-height: 1.9;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 145px;
  align-items: center;
  min-height: 82px;
  padding: 0 24px;
  background: rgba(7, 16, 24, 0.97);
  border-bottom: 1px solid rgba(217, 173, 114, 0.15);
  backdrop-filter: blur(14px);
}

.brand-logo {
  width: 175px;
  max-height: 62px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.4vw, 24px);
  color: #eee;
  font-size: 12px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 31px 0 26px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: width 0.3s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold-2);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  direction: ltr;
}

.language {
  color: #fff;
  font-size: 11px;
  opacity: 0.6;
}

.language.active {
  color: var(--gold-2);
  opacity: 1;
}

.menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--gold-2);
}

.mobile-menu {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 14px;
  padding: 22px 28px;
  color: #fff;
  background: rgba(7, 16, 24, 0.99);
  border-bottom: 1px solid rgba(217, 173, 114, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition: 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero */
.page-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: url("assets/national-hero.jpg") center / cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( 90deg, rgba(5, 13, 19, 0.25), rgba(5, 13, 19, 0.86) ), linear-gradient( 0deg, rgba(5, 13, 19, 0.42), transparent );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  color: #fff;
  text-align: center;
}

.page-hero-content p, .section-heading small, .intro-content small, .collection-cta small {
  margin: 0;
  color: var(--gold-2);
  font: 11px "Vazirmatn",Tahoma,Arial,sans-serif;
  letter-spacing: 2px;
  direction: ltr;
}

.page-hero-content h1 {
  margin: 12px 0 8px;
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 500;
}

.page-hero-content span {
  color: #ddd;
  font-size: 14px;
}

.page-hero-content i {
  display: block;
  width: 96px;
  height: 1px;
  margin: 25px auto 0;
  background: var(--gold);
}

/* Intro */
.collection-intro {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 55px;
  align-items: center;
  padding: 72px 0;
}

.intro-content h2 {
  margin: 9px 0 18px;
  font-size: 35px;
  font-weight: 500;
}

.intro-content p {
  color: var(--muted);
  font-size: 14px;
}

.intro-image {
  position: relative;
}

.intro-image img {
  min-height: 490px;
}

.intro-image span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(7, 16, 24, 0.86);
  font-size: 11px;
}

/* Stats */
.heritage-stats {
  background: var(--deep);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.stats-grid article {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 108px;
  padding: 18px 14px;
  text-align: center;
  border-inline-end: 1px solid rgba(217, 173, 114, 0.25);
}

.stats-grid article:last-child {
  border-inline-end: 0;
}

.stats-grid strong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stats-grid strong span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.stats-grid article > span,
.stats-grid article > span > span {
  color: #ccc;
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 620px) {
  .stats-grid {
    grid-template-columns: 1fr;
    width: min(310px, calc(100% - 32px));
  }

  .stats-grid article {
    min-height: 92px;
    padding: 15px 12px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(217, 173, 114, 0.25);
  }

  .stats-grid article:last-child {
    border-bottom: 0;
  }
}

/* Headings */
.works-section, .protection-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0;
  font-size: 33px;
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading.light h2 {
  color: #fff;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-tabs button:hover, .filter-tabs button.active {
  color: var(--gold-2);
  background: var(--deep);
}

.search-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 44px;
}

.search-form input {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  outline: 0;
}

.search-form input:focus {
  border-color: var(--gold);
}

.search-form button {
  border: 0;
  background: var(--deep);
  color: var(--gold-2);
  cursor: pointer;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px rgba(7, 16, 24, 0.12);
}

.work-card.is-hidden {
  display: none;
}

.work-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.work-image {
  position: relative;
  display: block;
  height: 285px;
  overflow: hidden;
}

.work-image img {
  height: 100%;
  transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
  transform: scale(1.06);
}

.work-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(7, 16, 24, 0);
  transition: background-color 0.35s ease;
}

.work-card:hover .work-image::after {
  background: rgba(7, 16, 24, 0.3);
}

.work-image i {
  position: absolute;
  right: 50%;
  bottom: 50%;
  z-index: 2;
  padding: 8px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-style: normal;
  opacity: 0;
  transform: translate(50%, 60%);
  transition: 0.35s ease;
}

.work-card:hover .work-image i {
  opacity: 1;
  transform: translate(50%, 50%);
}

.work-content {
  display: block;
  padding: 20px;
}

.work-content small {
  display: block;
  color: var(--gold);
  font-size: 11px;
}

.work-content strong {
  display: block;
  margin: 7px 0;
  font-size: 19px;
  font-weight: 500;
}

.work-content > span {
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  margin: 30px 0 0;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Registration */
.registration-section {
  padding: 72px 0;
  background: var(--deep);
}

.registration-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 44px;
}

.registration-steps::before {
  position: absolute;
  top: 25px;
  right: 7%;
  left: 7%;
  height: 1px;
  content: "";
  background: rgba(217, 173, 114, 0.35);
}

.registration-steps article {
  position: relative;
  padding: 58px 17px 20px;
  text-align: center;
}

.registration-steps article::before {
  position: absolute;
  top: 17px;
  right: 50%;
  width: 17px;
  height: 17px;
  content: "";
  background: var(--deep);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transform: translateX(50%);
}

.registration-steps span {
  color: var(--gold-2);
  font: 13px "Vazirmatn",Tahoma,Arial,sans-serif;
}

.registration-steps h3 {
  margin: 8px 0;
  color: #eee;
  font-size: 16px;
  font-weight: 500;
}

.registration-steps p {
  margin: 0;
  color: #aaa;
  font-size: 11px;
}

/* Protection */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.protection-grid article {
  min-height: 230px;
  padding: 28px;
  border-left: 1px solid var(--line);
}

.protection-grid article:last-child {
  border-left: 0;
}

.protection-grid article > span {
  font-size: 31px;
}

.protection-grid h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.protection-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* CTA */
.collection-cta {
  padding: 45px 0;
  background: linear-gradient(135deg, #c79b61, #9d713e);
}

.collection-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.collection-cta small {
  color: #352719;
}

.collection-cta h2 {
  margin: 6px 0;
  font-size: 29px;
  font-weight: 500;
}

.collection-cta p {
  margin: 0;
  color: #493725;
  font-size: 13px;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  padding: 10px 19px;
  color: var(--gold-2);
  background: var(--deep);
}

/* =====================================================
   FOOTER
===================================================== */
footer#contact {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #ddd;
  background: #071018;
  border-top: 3px solid var(--gold);
}

footer#contact .footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding-top: 42px;
  padding-bottom: 32px;
}

footer#contact .footer-grid > div {
  min-width: 0;
  margin: 0;
  padding-inline: 20px;
}

footer#contact .footer-grid > div:not(:last-child) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

footer#contact .footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

footer#contact .footer-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  object-fit: contain;
}

footer#contact h4 {
  margin: 0 0 12px;
  padding: 0;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 600;
}

footer#contact a {
  display: block;
  width: fit-content;
  margin: 3px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

footer#contact a:hover,
footer#contact a:focus-visible {
  color: var(--gold-2);
}

footer#contact p {
  margin: 3px 0;
  font-size: 12px;
  line-height: 1.8;
}

footer#contact a[href^="tel:"],
footer#contact a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

footer#contact .social {
  margin-top: 10px;
  color: var(--gold-2);
  font-size: 20px;
  letter-spacing: 6px;
  direction: ltr;
}

footer#contact .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.7;
}

footer#contact .copyright > span {
  display: block;
  margin: 0;
}

footer#contact .copyright > span:first-child {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

footer#contact .copyright > span:last-child {
  direction: rtl;
  text-align: right;
}

@media (max-width: 1100px) {
  footer#contact .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-inline-end: 0 !important;
  }
}

@media (max-width: 700px) {
  footer#contact .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 30px;
    padding-bottom: 20px;
  }

  footer#contact .footer-grid > div {
    padding: 18px 0;
    border-inline-end: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  footer#contact .footer-grid > div:first-child {
    padding-top: 0;
  }

  footer#contact .footer-grid > div:last-child {
    border-bottom: 0;
  }

  footer#contact .footer-brand {
    grid-column: auto;
    justify-content: flex-start;
  }

  footer#contact .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  footer#contact .copyright > span:first-child,
  footer#contact .copyright > span:last-child {
    width: 100%;
    text-align: start;
  }

  footer#contact .footer-logo {
    width: min(220px, 100%);
  }
}


/* Updated national works gallery */
.works-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.work-card{
  display:flex;
  flex-direction:column;
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
.work-open{
  display:flex;
  flex-direction:column;
  height:100%;
}
.work-image{
  height:auto;
  aspect-ratio:1/1;
  background:#070707;
}
.work-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.work-content{
  padding:18px 18px 20px;
}
.work-content small{
  margin-bottom:4px;
}
.work-content strong{
  margin:4px 0 8px;
  line-height:1.8;
}
.work-description{
  display:block;
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
}
.work-meta{
  display:block;
  color:#6e685f;
  font-size:11px;
  line-height:1.9;
}
@media(max-width:900px){
  .works-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:620px){
  .works-grid{grid-template-columns:1fr;}
}


/* Pagination: exactly 3 pages × 10 works */
.work-card[hidden]{
  display:none !important;
}

.works-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:34px;
}

.page-btn{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--paper-2);
  color:var(--ink);
  cursor:pointer;
  transition:transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.page-btn:hover{
  transform:translateY(-2px);
  border-color:var(--gold);
}

.page-btn.active{
  background:var(--deep);
  color:var(--gold-2);
  border-color:var(--deep);
}

/* Click-to-open image lightbox */
.work-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s ease, visibility .25s ease;
}

.work-lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.work-lightbox-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(0,0,0,.88);
  cursor:zoom-out;
}

.work-lightbox-dialog{
  position:relative;
  z-index:2;
  width:min(1100px, 94vw);
  max-height:92vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.work-lightbox-dialog img{
  width:auto;
  max-width:100%;
  max-height:78vh;
  object-fit:contain;
  background:#070707;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  border-radius:12px;
}

.work-lightbox-close{
  position:absolute;
  top:-14px;
  left:-14px;
  z-index:3;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:50%;
  background:#111;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.work-lightbox-caption{
  width:min(820px, 100%);
  margin-top:14px;
  padding:12px 14px;
  color:#fff;
  text-align:center;
}

.work-lightbox-caption strong{
  display:block;
  margin-bottom:4px;
  font-size:17px;
}

.work-lightbox-caption span{
  color:rgba(255,255,255,.72);
  font-size:12px;
  line-height:1.9;
}

.work-open{
  cursor:zoom-in;
}


/* HARD FIX: pagination + lightbox */
.works-grid .work-card[hidden] {
  display: none !important;
}

.works-pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
}

.works-pagination .page-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}

.works-pagination .page-btn.active {
  background: var(--deep);
  color: var(--gold-2);
  border-color: var(--deep);
}

.work-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.work-lightbox.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.work-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, .92);
  cursor: zoom-out;
}

.work-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-lightbox-dialog img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  max-height: 78vh !important;
  height: auto !important;
  object-fit: contain !important;
  background: #090909;
  border-radius: 10px;
}

.work-lightbox-close {
  position: absolute;
  top: -16px;
  left: -16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.work-open {
  cursor: zoom-in !important;
}


/* =========================================
   Refined gallery controls
========================================= */

.works-pagination{
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:max-content;
  margin:42px auto 0;
  padding:10px 14px;
  border:1px solid rgba(184,138,76,.28);
  border-radius:18px;
  background:rgba(255,255,255,.58);
  box-shadow:
    0 14px 34px rgba(7,16,24,.08),
    inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.works-pagination::before,
.works-pagination::after{
  content:"";
  width:34px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(184,138,76,.65));
}

.works-pagination::after{
  background:linear-gradient(90deg, rgba(184,138,76,.65), transparent);
}

.works-pagination .page-btn{
  position:relative;
  display:grid !important;
  place-items:center;
  width:48px;
  height:48px;
  min-width:48px;
  padding:0;
  border:1px solid rgba(16,20,23,.12);
  border-radius:14px;
  background:linear-gradient(180deg,#fffdf9 0%,#f3eee6 100%);
  color:#25211d;
  box-shadow:
    0 7px 16px rgba(7,16,24,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
  font-size:14px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  overflow:hidden;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    color .22s ease,
    background .22s ease;
}

.works-pagination .page-btn::before{
  content:"";
  position:absolute;
  inset:auto 8px 6px;
  height:2px;
  border-radius:999px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .22s ease;
}

.works-pagination .page-btn:hover{
  transform:translateY(-3px);
  border-color:rgba(184,138,76,.58);
  color:#8c6537;
  box-shadow:
    0 12px 24px rgba(7,16,24,.12),
    0 0 0 3px rgba(184,138,76,.08);
}

.works-pagination .page-btn:hover::before{
  transform:scaleX(1);
}

.works-pagination .page-btn.active{
  transform:translateY(-2px);
  border-color:#b88a4c;
  background:linear-gradient(145deg,#111b23 0%,#071018 100%);
  color:#e2bd87;
  box-shadow:
    0 12px 26px rgba(7,16,24,.22),
    0 0 0 3px rgba(184,138,76,.12),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.works-pagination .page-btn.active::before{
  transform:scaleX(1);
  background:#d9ad72;
}

.works-pagination .page-btn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 3px rgba(250,247,241,1),
    0 0 0 5px rgba(184,138,76,.48);
}

/* Lightbox close button redesign */
.work-lightbox-close{
  top:14px !important;
  left:14px !important;
  width:46px !important;
  height:46px !important;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:14px !important;
  background:rgba(12,18,24,.82) !important;
  color:#f5efe6 !important;
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  font-size:26px !important;
  font-weight:300;
  line-height:1;
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.work-lightbox-close:hover{
  transform:rotate(90deg) scale(1.05);
  background:rgba(184,138,76,.95) !important;
  border-color:#d9ad72 !important;
  color:#071018 !important;
}

@media(max-width:620px){
  .works-pagination{
    gap:8px;
    padding:8px 10px;
    border-radius:15px;
  }

  .works-pagination::before,
  .works-pagination::after{
    display:none;
  }

  .works-pagination .page-btn{
    width:44px;
    height:44px;
    min-width:44px;
    border-radius:12px;
  }

  .work-lightbox-close{
    top:10px !important;
    left:10px !important;
    width:42px !important;
    height:42px !important;
  }
}
