/*
Theme Name: Arolax
Theme URI: https://themeforest.net/user/crowdytheme/portfolio
Author: CrowdyTheme
Author URI: https://wealcoder.com/
Description: Arolax is a versatile, responsive, and easily customizable digital agency portfolio WordPress theme. It comes with 40+ unique home pages, including the Dark and Light versions, along with a broad range of inner pages. Its specifically tailored for users who want to bring their websites to life with diverse, dynamic animations. The stunning look, exclusive features, and ultra-high performance make it a perfect choice for websites for digital agencies, startup businesses, design studios, digital marketing agencies, web design and development agencies, portfolio showcases, personal portfolios, and so on.
Version: 2.1.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: arolax
Requires PHP: 7.2
Requires at least: 6.5
Tested up to: 6.7.1
Tags: theme-options, post-formats, featured-images
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --eliyar-bg: #040404;
    --eliyar-bg-soft: #0b0b0b;
    --eliyar-surface: #101010;
    --eliyar-surface-2: #151515;
    --eliyar-text: #f1f1f1;
    --eliyar-text-soft: rgba(241, 241, 241, 0.72);
    --eliyar-text-muted: rgba(241, 241, 241, 0.52);
    --eliyar-line: rgba(255, 255, 255, 0.18);
    --eliyar-line-strong: rgba(255, 255, 255, 0.32);
    --eliyar-accent: #d8d8d8;
    --eliyar-radius: 2px;
    --eliyar-radius-lg: 14px;
    --eliyar-max: 1320px;
    --eliyar-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
}

body.post-type-archive-eliyar_work,
body.single-eliyar_work,
body.tax-eliyar_work_tag {
    background: radial-gradient(circle at 88% -14%, rgba(255, 255, 255, 0.09), transparent 36%), var(--eliyar-bg);
    color: var(--eliyar-text);
    font-family: 'Archivo', sans-serif;
}

.container {
    width: min(var(--eliyar-max), calc(100% - 56px));
    margin: 0 auto;
}

.section-space {
    padding: clamp(72px, 10vw, 132px) 0;
}

.section-space--tight {
    padding-top: 40px;
}

.section-space--tight-top {
    padding-top: clamp(42px, 6vw, 82px);
}

.eyebrow {
    margin: 0 0 16px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--eliyar-text-muted);
    font-weight: 600;
}

.section-title,
.archive-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 5.4vw, 78px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 700;
    text-wrap: balance;
}

.archive-desc {
    max-width: 760px;
    margin-top: 20px;
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.8;
    color: var(--eliyar-text-soft);
}

/* HERO */
.eliyar-work-hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--eliyar-bg-soft);
    background-size: cover;
    background-position: center center;
    overflow: clip;
}

.eliyar-work-hero.is-fallback {
    background-image: linear-gradient(125deg, #080808 0%, #141414 44%, #060606 100%);
}

.eliyar-work-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 34%, rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0.06) 100%),
        radial-gradient(circle at 12% 86%, rgba(0, 0, 0, 0.72), transparent 42%);
}

.eliyar-work-hero__inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-top: 120px;
    padding-bottom: clamp(30px, 6vw, 72px);
}

.eliyar-work-hero__meta {
    max-width: 860px;
    color: #fff;
}

.eliyar-work-title {
    margin: 0 0 28px;
    font-family: 'Archivo', sans-serif;
    font-size: clamp(48px, 8.8vw, 132px);
    line-height: 0.88;
    letter-spacing: -0.055em;
    font-weight: 800;
    text-shadow: 0 8px 34px rgba(0, 0, 0, 0.38);
}

.eliyar-work-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eliyar-work-meta-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.eliyar-work-meta-item .label {
    min-width: 78px;
    opacity: 0.72;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    font-weight: 600;
}

.eliyar-work-meta-item .value {
    opacity: 0.98;
}

.eliyar-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eliyar-work-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.eliyar-work-tag:hover,
.eliyar-work-tag:focus-visible {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.eliyar-work-hero-fade {
    position: relative;
    z-index: 3;
    height: clamp(84px, 11vw, 170px);
    margin-top: calc(clamp(84px, 11vw, 170px) * -0.65);
    pointer-events: none;
}

.eliyar-work-hero-fade::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0.84) 46%, rgba(4, 4, 4, 1) 100%);
    filter: blur(16px);
    transform: scaleY(1.2);
}

/* INFO SECTION */
.eliyar-work-info-panel {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}

.eliyar-work-info-panel::after {
    display: none;
}

.eliyar-work-gallery-item img,
.eliyar-archive-card__image img,
.eliyar-related-card__image img {
    width: 100%;
    display: block;
}

.eliyar-work-info-main .section-title {
    position: relative;
    z-index: 1;
    max-width: 15ch;
    font-size: clamp(30px, 4.4vw, 62px);
    margin-bottom: 18px;
    letter-spacing: -0.035em;
}

.eliyar-work-info-kicker {
    margin-bottom: 14px;
}

.eliyar-work-info-divider {
    width: min(360px, 70%);
    height: 1px;
    margin: 0 0 28px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 58%, transparent 100%);
}

.eliyar-work-info-text {
    position: relative;
    z-index: 1;
    max-width: 920px;
    font-size: clamp(17px, 1.48vw, 24px);
    line-height: 1.92;
    letter-spacing: -0.008em;
    color: rgba(241, 241, 241, 0.94);
}

.eliyar-work-info-text p {
    margin: 0 0 1.2em;
}

.eliyar-work-info-text p:last-child {
    margin-bottom: 0;
}

/* GALLERY */
.eliyar-work-gallery {
    display: grid;
    gap: clamp(14px, 2vw, 26px);
}

.eliyar-work-gallery-cluster {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
        "slot-a slot-b"
        "slot-a slot-c"
        "slot-d slot-d";
    gap: clamp(14px, 1.6vw, 22px);
}

.eliyar-work-gallery-cluster--1 {
    grid-template-columns: 1fr;
    grid-template-areas: "slot-a";
}

.eliyar-work-gallery-cluster--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "slot-a slot-b";
}

.eliyar-work-gallery-cluster--3 {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
        "slot-a slot-b"
        "slot-a slot-c";
}

.eliyar-work-gallery-item {
    margin: 0;
}

.eliyar-work-gallery-item.slot-a {
    grid-area: slot-a;
}

.eliyar-work-gallery-item.slot-b {
    grid-area: slot-b;
}

.eliyar-work-gallery-item.slot-c {
    grid-area: slot-c;
}

.eliyar-work-gallery-item.slot-d {
    grid-area: slot-d;
}

.eliyar-work-gallery-link {
    display: block;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.eliyar-work-gallery-item.slot-a .eliyar-work-gallery-link {
    aspect-ratio: 1 / 1;
}

.eliyar-work-gallery-item.slot-b .eliyar-work-gallery-link,
.eliyar-work-gallery-item.slot-c .eliyar-work-gallery-link {
    aspect-ratio: 16 / 9;
}

.eliyar-work-gallery-item.slot-d .eliyar-work-gallery-link {
    aspect-ratio: 21 / 8;
}

.eliyar-work-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease, filter 320ms ease, opacity 320ms ease;
}

.eliyar-work-gallery-item:hover img,
.eliyar-work-gallery-item:focus-within img {
    transform: scale(1.02);
    filter: contrast(1.04) brightness(1.03);
}

/* RELATED */
.section-heading {
    margin-bottom: 36px;
}

.eliyar-work-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2vw, 28px);
}

.eliyar-related-card {
    border: 1px solid var(--eliyar-line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    overflow: hidden;
}

.eliyar-related-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.eliyar-related-card__image {
    overflow: hidden;
}

.eliyar-related-card__image img {
    aspect-ratio: 1.36 / 1;
    object-fit: cover;
    transition: transform 420ms ease;
}

.eliyar-related-card:hover .eliyar-related-card__image img {
    transform: scale(1.045);
}

.eliyar-related-card__content {
    padding: 18px;
}

.eliyar-related-card__title {
    margin: 0 0 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.eliyar-related-card__meta {
    margin: 0;
    color: var(--eliyar-text-soft);
    font-size: 13px;
}

/* ARCHIVE + TAXONOMY */
.archive-header {
    margin-bottom: 56px;
}

.eliyar-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
}

.eliyar-archive-card {
    border: 1px solid var(--eliyar-line);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.eliyar-archive-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.eliyar-archive-card__image {
    overflow: hidden;
}

.eliyar-archive-card__image img {
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
    transition: transform 440ms ease;
}

.eliyar-archive-card:hover .eliyar-archive-card__image img {
    transform: scale(1.035);
}

.eliyar-archive-card__content {
    padding: 20px 18px 18px;
}

.eliyar-archive-card__title {
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.eliyar-archive-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--eliyar-text-soft);
    font-size: 13px;
}

/* PAGINATION */
.eliyar-pagination {
    margin-top: 52px;
}

.eliyar-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eliyar-pagination a,
.eliyar-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--eliyar-line);
    color: var(--eliyar-text);
    text-decoration: none;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.eliyar-pagination a:hover,
.eliyar-pagination a:focus-visible {
    border-color: var(--eliyar-line-strong);
    background: rgba(255, 255, 255, 0.1);
}

.eliyar-pagination .current {
    background: #fff;
    color: #0b0b0b;
    border-color: #fff;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
    transition:
        opacity 900ms cubic-bezier(.2, .65, .2, 1),
        transform 900ms cubic-bezier(.2, .65, .2, 1),
        filter 900ms cubic-bezier(.2, .65, .2, 1);
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .eliyar-work-gallery-cluster {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "slot-a"
            "slot-b"
            "slot-c"
            "slot-d";
    }
}

@media (max-width: 991px) {
    .container {
        width: min(100% - 32px, var(--eliyar-max));
    }

    .section-space {
        padding: 76px 0;
    }

    .eliyar-work-hero__inner {
        padding-bottom: 30px;
    }

    .eliyar-work-related-grid,
    .eliyar-archive-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .eliyar-work-title {
        font-size: clamp(38px, 11.5vw, 68px);
    }

    .section-title,
    .archive-title {
        font-size: clamp(30px, 8.4vw, 52px);
    }

    .eliyar-related-card__title,
    .eliyar-archive-card__title {
        font-size: clamp(24px, 7vw, 30px);
    }
}

@media (max-width: 680px) {
    .eliyar-work-gallery-cluster,
    .eliyar-work-gallery-cluster--2,
    .eliyar-work-gallery-cluster--3 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "slot-a"
            "slot-b"
            "slot-c"
            "slot-d";
    }

    .eliyar-work-gallery-item.slot-a .eliyar-work-gallery-link,
    .eliyar-work-gallery-item.slot-b .eliyar-work-gallery-link,
    .eliyar-work-gallery-item.slot-c .eliyar-work-gallery-link,
    .eliyar-work-gallery-item.slot-d .eliyar-work-gallery-link {
        aspect-ratio: 16 / 10;
    }

    .eliyar-work-hero-fade {
        margin-top: -44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .eliyar-work-gallery-item img,
    .eliyar-related-card__image img,
    .eliyar-archive-card__image img,
    .eliyar-work-tag,
    .eliyar-pagination a,
    .eliyar-pagination span {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    .reveal {
        opacity: 1;
    }
}
