/* =========================================
   GRAPHIC PORTFOLIO
========================================= */

.graphic-portfolio-page {
    background: var(--bg);
    color: var(--white);
}


/* =========================================
   HERO
========================================= */

.graphic-portfolio-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-deep);
}

.graphic-portfolio-hero .portfolio-hero-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 6, 9, .96) 0%,
            rgba(3, 6, 9, .82) 45%,
            rgba(3, 6, 9, .55) 100%
        ),
        url("../images/portfolio/graphic-portfolio-bg.webp")
        center / cover no-repeat;

    opacity: .9;
}

.graphic-portfolio-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: 8%;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(66, 165, 255, .18);
    border-radius: 50%;
}

.graphic-portfolio-hero::after {
    content: "";
    position: absolute;

    width: 260px;
    height: 260px;

    right: 14%;
    top: 50%;

    transform: translateY(-50%);

    border: 1px solid rgba(66, 165, 255, .12);
    border-radius: 50%;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;
    padding: 110px 0;
}

.portfolio-hero-content h1 {
    margin: 0;

    color: var(--white);

    font-size: clamp(46px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.portfolio-hero-content h1 span {
    display: block;
    color: var(--accent);
}

.portfolio-hero-content p {
    max-width: 650px;
    margin: 25px 0 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   PORTFOLIO SECTION
========================================= */

.graphic-portfolio-section {
    padding: 90px 0 110px;
    background: var(--bg);
}


/* =========================================
   FILTERS
========================================= */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 9px;
    margin-bottom: 55px;
}

.portfolio-filter {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    color: var(--muted);

    padding: 10px 18px;

    border-radius: 50px;

    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.portfolio-filter:hover {
    color: var(--white);
    border-color: rgba(66,165,255,.45);
    transform: translateY(-2px);
}

.portfolio-filter.active {
    background: var(--accent);
    color: #03101b;
    border-color: var(--accent);
}


/* =========================================
   RESPONSIVE MASONRY GALLERY
========================================= */

.graphic-portfolio-masonry {
    position: relative;
    width: 100%;
}


/* =========================================
   5 COLUMNS — LARGE LAPTOP / DESKTOP
========================================= */
.graphic-portfolio-item {
    position: absolute;

    width: auto;

    margin: 0;

    background: var(--panel-2);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: var(--radius-md);

    overflow: hidden;

    box-sizing: border-box;
}

/* =========================================
   IMAGE
========================================= */

.portfolio-image-link {
    display: block;

    width: 100%;

    background: #080d14;

    overflow: hidden;
}


.portfolio-image-link img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    object-fit: contain;

    transition:
        transform .55s ease,
        opacity .35s ease;
}


.graphic-portfolio-item:hover
.portfolio-image-link img {
    transform: scale(1.025);
}


/* =========================================
   PROJECT INFO
========================================= */

.portfolio-item-info {
    padding: 14px 15px 16px;
}


.portfolio-item-info span {
    display: block;

    margin-bottom: 5px;

    color: var(--accent);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.portfolio-item-info h3 {
    margin: 0;

    color: var(--white);

    font-size: 14px;

    line-height: 1.35;

    font-weight: 600;
}


/* =========================================
   HIDDEN ITEMS
========================================= */

.graphic-portfolio-item[hidden] {
    display: none !important;
}

/* =========================================================
   PORTFOLIO LIGHTBOX
========================================================= */

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.portfolio-lightbox.active {
    display: flex;
}

.portfolio-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .94);
    cursor: pointer;
}

.portfolio-lightbox-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 92vw);
    height: min(88vh, 850px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.portfolio-lightbox-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-lightbox-image {
    display: block;
    max-width: calc(100% - 120px);
    max-height: calc(100% - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

/* =========================================================
   CLOSE BUTTON
========================================================= */

.portfolio-lightbox-close {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 50% !important;

    background: #0b1724 !important;
    color: #fff !important;

    font-size: 22px !important;
    line-height: 1 !important;

    cursor: pointer;
    z-index: 20;
}

/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.portfolio-lightbox-prev,
.portfolio-lightbox-next {
    position: absolute !important;
    top: 50% !important;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    transform: translateY(-50%) !important;

    border: 1px solid rgba(255, 255, 255, .15) !important;
    border-radius: 50% !important;

    background: rgba(7, 17, 27, .95) !important;
    color: #fff !important;

    font-size: 30px !important;
    line-height: 1 !important;

    cursor: pointer;
    z-index: 20;
}

.portfolio-lightbox-prev {
    left: 15px !important;
}

.portfolio-lightbox-next {
    right: 15px !important;
}

.portfolio-lightbox-prev:hover,
.portfolio-lightbox-next:hover,
.portfolio-lightbox-close:hover {
    background: var(--cyan) !important;
    border-color: var(--cyan) !important;
    color: #fff !important;
}

/* =========================================================
   COUNTER
========================================================= */

.portfolio-lightbox-counter {
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;

    transform: translateX(-50%) !important;

    padding: 7px 14px !important;

    border-radius: 20px !important;
    background: rgba(0, 0, 0, .7) !important;
    color: #fff !important;

    font-size: 14px !important;
    line-height: 1 !important;

    z-index: 20;
}

/* Single image */
.portfolio-lightbox.single-image .portfolio-lightbox-prev,
.portfolio-lightbox.single-image .portfolio-lightbox-next {
    display: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .portfolio-lightbox {
        padding: 20px;
    }

    .portfolio-lightbox-content {
        width: 100%;
        height: 90vh;
    }

    .portfolio-lightbox-image {
        max-width: calc(100% - 70px);
        max-height: calc(100% - 80px);
    }

    .portfolio-lightbox-close {
        top: -5px !important;
        right: -5px !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 20px !important;
    }

    .portfolio-lightbox-prev,
    .portfolio-lightbox-next {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 24px !important;
    }

    .portfolio-lightbox-prev {
        left: 3px !important;
    }

    .portfolio-lightbox-next {
        right: 3px !important;
    }

    .portfolio-lightbox-counter {
        bottom: 5px !important;
    }
}

/* =========================================================
   LOAD MORE
========================================================= */

.portfolio-load-more-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.portfolio-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    cursor: pointer;
}
/* =========================================
   BROCHURE MASONRY MINI SLIDER
   ========================================= */

.brochure-slider-wrap {
    position: relative;
    overflow: hidden;
}

.brochure-slider-wrap .portfolio-image-link {
    display: block;
}

.brochure-slider-image {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.25s ease;
}


/* Arrows */

.brochure-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 25px;
    line-height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 5;

    opacity: 0;
    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.brochure-prev {
    left: 10px;
}

.brochure-next {
    right: 10px;
}

.brochure-slider-wrap:hover .brochure-slider-arrow {
    opacity: 1;
}

.brochure-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
}


/* Page counter */

.brochure-page-count {
    position: absolute;
    left: 10px;
    bottom: 10px;

    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.7);
    color: #fff;

    font-size: 12px;
    line-height: 1;

    z-index: 5;
}


/* Pages badge */

.brochure-pages-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;

    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.92);
    color: #111;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    z-index: 5;
}


/* Mobile */

@media (max-width: 768px) {

    .brochure-slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 22px;
        opacity: 1;
    }

    .brochure-prev {
        left: 7px;
    }

    .brochure-next {
        right: 7px;
    }

}