.macan-gallery-page .macan-page-links [aria-current="page"]{color:#c9a86a}
.macan-gallery-hero{min-height:610px}
.macan-gallery-hero:not(.has-image) .macan-page-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.macan-gallery-hero .macan-page-hero__veil{background:linear-gradient(90deg,rgba(11,11,11,.32),rgba(11,11,11,.86) 78%),linear-gradient(0deg,#0b0b0b 0%,transparent 72%)}
.macan-gallery{padding:clamp(75px,9vw,130px) clamp(20px,5vw,80px) clamp(85px,10vw,145px);background:radial-gradient(circle at 85% 12%,rgba(201,168,106,.055),transparent 24%),#0b0b0b}
.macan-gallery__heading{width:min(760px,100%);margin:0 auto clamp(48px,6vw,78px);text-align:center}
.macan-gallery__heading>span{color:rgba(201,168,106,.8);font:500 .68rem/1 'Inter',sans-serif;letter-spacing:.3em;text-transform:uppercase}
.macan-gallery__heading>i{display:block;width:56px;height:1px;margin:18px auto 23px;background:rgba(201,168,106,.55)}
.macan-gallery__heading h2{margin:0;color:#fff;font:500 clamp(1.75rem,4vw,3rem)/1.5 'Vazirmatn',sans-serif}
.macan-gallery__heading h2 em{color:#c9a86a;font-style:normal}
.macan-gallery__intro{margin:22px auto 0;color:rgba(255,255,255,.48);font:300 .95rem/2 'Vazirmatn',sans-serif}.macan-gallery__intro p{margin:0}
.macan-gallery__grid{width:min(1200px,100%);margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,20px)}
.macan-gallery__item{position:relative;display:block;width:100%;aspect-ratio:1;border:0;border-radius:14px;padding:0;overflow:hidden;background:#171717;cursor:zoom-in;box-shadow:0 12px 35px rgba(0,0,0,.24)}
.macan-gallery__item:nth-child(6n+1),.macan-gallery__item:nth-child(6n+4){grid-row:span 2;aspect-ratio:auto;min-height:100%}
.macan-gallery__item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.65,.3,1),filter .5s ease}
.macan-gallery__shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.62),transparent 45%);opacity:.45;transition:opacity .4s ease}
.macan-gallery__number{position:absolute;right:18px;bottom:15px;color:rgba(255,255,255,.55);font:400 .65rem/1 'Inter',sans-serif;letter-spacing:.14em}
.macan-gallery__item:hover img{transform:scale(1.055)}.macan-gallery__item:hover .macan-gallery__shade{opacity:.8}
.macan-gallery__item:focus-visible{outline:2px solid #c9a86a;outline-offset:4px}
.macan-gallery__empty{margin:0;text-align:center;color:rgba(255,255,255,.45);font:300 1rem/2 'Vazirmatn',sans-serif}
.macan-lightbox{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:70px clamp(55px,8vw,120px);background:rgba(5,5,5,.97);opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease}
.macan-lightbox.is-open{opacity:1;visibility:visible}.macan-lightbox figure{margin:0;max-width:100%;max-height:100%;text-align:center}.macan-lightbox figure img{display:block;max-width:100%;max-height:calc(100vh - 150px);margin:auto;object-fit:contain}.macan-lightbox figcaption{margin-top:13px;color:rgba(255,255,255,.42);font:300 .72rem/1.5 'Vazirmatn',sans-serif}
.macan-lightbox button{position:absolute;display:grid;place-items:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(0,0,0,.35);color:rgba(255,255,255,.75);font-size:1.7rem;cursor:pointer;transition:.25s ease}.macan-lightbox button:hover{border-color:#c9a86a;color:#c9a86a}.macan-lightbox__close{top:24px;left:24px}.macan-lightbox__next{right:24px;top:50%}.macan-lightbox__prev{left:24px;top:50%}
body.macan-lightbox-open{overflow:hidden}
@media(max-width:900px){.macan-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.macan-gallery__item:nth-child(6n+1),.macan-gallery__item:nth-child(6n+4){grid-row:auto;aspect-ratio:1}.macan-gallery__item:nth-child(5n+1){grid-row:span 2;aspect-ratio:auto}.macan-gallery-hero{min-height:520px}}
@media(max-width:520px){.macan-gallery__grid{gap:10px}.macan-gallery__item{border-radius:9px}.macan-gallery__number{right:11px;bottom:10px}.macan-lightbox{padding:65px 14px 55px}.macan-lightbox__next{right:10px}.macan-lightbox__prev{left:10px}.macan-lightbox button{width:40px;height:40px}.macan-lightbox__close{top:14px;left:14px}}
@media(prefers-reduced-motion:reduce){.macan-gallery__item img,.macan-gallery__shade,.macan-lightbox{transition:none}}
