/**
 * Portfolio Single + Archive — Complete Styles
 */

/* ======== Layout ======== */
.pf-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    overflow: visible !important;
}

.pf-content {
    flex: 1;
    min-width: 0;
}

.pf-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky !important;
    top: 120px !important;
    align-self: flex-start;
}

.pf-single .pf-layout {
    overflow: visible !important;
}

/* Handled in sticky section below */

/* ======== Featured Image ======== */
.pf-featured {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.pf-featured__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ======== Content Description ======== */
.pf-description {
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.pf-description p {
    margin-bottom: 16px;
}

.pf-description img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pf-description figure {
    margin: 20px 0;
    max-width: 100%;
}

.pf-description figure img {
    margin: 0 0 8px;
}

.pf-description figcaption {
    font-size: 13px;
    color: #888;
    text-align: center;
    font-style: italic;
}

/* Heading Hierarchy */
.pf-description h2 {
    font-size: 28px;
    font-weight: 700;
    color: #051d44;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.pf-description h3 {
    font-size: 30px;
    font-weight: 600;
    color: #051d44;
    margin: 32px 0 12px;
    line-height: 1.4;
}

.pf-description h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 24px 0 10px;
}

.pf-description h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 20px 0 8px;
}

.pf-description h6 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0 8px;
}

.pf-description>h2:first-child,
.pf-description>h3:first-child {
    margin-top: 0;
}

/* ======== Info Card (Sidebar) ======== */
.pf-info-card {
    background: #051d44;
    border-radius: 8px;
    padding: 28px 24px;
    color: #fff;
}

.pf-info-card__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-info-card__item {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-info-card__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pf-info-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.pf-info-card__value {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
}

/* Share */
.pf-info-card__share {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-info-card__share-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pf-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
}

.pf-share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ======== Gallery — 3-col Swiper + Dot Pagination ======== */
.pf-gallery {
    margin-bottom: 50px;
    position: relative;
}

.pf-gallery .swiper {
    overflow: hidden;
    border-radius: 8px;
}

.pf-gallery .swiper-slide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pf-gallery__item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-gallery__item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pf-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dot pagination */
.pf-gallery__dots {
    display: flex;
    justify-content: center;
    padding: 20px 0 0;
}

.pf-gallery__pagination.swiper-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    position: static !important;
}

.pf-gallery__pagination .swiper-pagination-bullet {
    width: 12px;
    height: 8px;
    border-radius: 4px;
    background: #c4c4c4;
    opacity: 0.5;
    transition: all 0.4s ease;
    cursor: pointer;
}

.pf-gallery__pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: #051d44;
    opacity: 1;
}

/* Gallery hover arrows */
.pf-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(5, 29, 68, 0.7);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
}

.pf-gallery:hover .pf-gallery__arrow {
    opacity: 1;
}

.pf-gallery__arrow:hover {
    background: rgba(5, 29, 68, 0.95);
}

.pf-gallery__arrow.swiper-button-disabled {
    opacity: 0 !important;
}

.pf-gallery__arrow.pf-gallery-prev {
    left: 12px;
}

.pf-gallery__arrow.pf-gallery-next {
    right: 12px;
}

/* ======== Lightbox — Thumbnail Style ======== */
.pf-lb {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}
.pf-lb.active {
    opacity: 1;
    pointer-events: auto;
}

/* Nav group — top right: ‹ › × joined squares */
.pf-lb__nav {
    position: absolute;
    top: 16px; right: 16px;
    display: flex;
    z-index: 100010;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.pf-lb__btn {
    width: 52px; height: 52px;
    border-radius: 0;
    background: rgba(255,255,255,0.08);
    border: none;
    border-right: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.pf-lb__btn:last-child { border-right: none; }
.pf-lb__btn:hover {
    background: rgba(255,255,255,0.18);
}
.pf-lb__close {
    font-size: 30px;
}

/* Main image area */
.pf-lb__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px 12px;
    min-height: 0;
}
.pf-lb__img {
    max-width: min(900px, 85vw);
    max-height: 68vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: opacity 0.2s ease;
}

/* Divider line */
.pf-lb__thumbs {
    display: flex;
    gap: 8px;
    padding: 14px 24px 18px;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pf-lb__thumbs::-webkit-scrollbar { display: none; }
.pf-lb__thumb {
    width: 64px; height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.35;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.pf-lb__thumb.active {
    opacity: 1;
    border-color: #fff;
}
.pf-lb__thumb:hover { opacity: 0.7; }
.pf-lb__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

@media (max-width: 768px) {
    .pf-lb__main { padding: 16px 12px 8px; }
    .pf-lb__img { max-width: 95vw; max-height: 60vh; }
    .pf-lb__thumbs { padding: 10px 12px 14px; gap: 6px; }
    .pf-lb__thumb { width: 48px; height: 36px; }
    .pf-lb__nav { top: 8px; right: 8px; }
    .pf-lb__btn { width: 38px; height: 38px; font-size: 18px; }
}
/* ======== Archive ======== */
.pf-archive-hero {
    background: #051d44;
    padding: 40px 0 50px;
    margin-bottom: 50px;
    text-align: center;
}

.pf-archive-hero h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.pf-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.pf-archive-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    aspect-ratio: 16/10;
}

.pf-archive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pf-archive-card:hover img {
    transform: scale(1.05);
}

.pf-archive-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 29, 68, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: background 0.3s;
}

.pf-archive-card:hover .pf-archive-card__overlay {
    background: linear-gradient(to top, rgba(5, 29, 68, 0.95) 0%, rgba(5, 29, 68, 0.3) 100%);
}

.pf-archive-card__cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.pf-archive-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.pf-archive-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

/* ======== Responsive ======== */
@media (max-width: 992px) {
    .pf-layout {
        flex-direction: column;
    }

    .pf-sidebar {
        width: 100%;
        position: static !important;
    }

    .pf-archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pf-gallery .swiper-slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-description h2 {
        font-size: 30px;
    }

    .pf-description h3 {
        font-size: 18px;
    }

    .pf-description h4 {
        font-size: 16px;
    }

    .pf-lb__main {
        padding: 56px 16px 12px;
    }

    .pf-lb__img {
        max-width: 95vw;
        max-height: 55vh;
    }

    .pf-lb__thumbs {
        padding: 8px 16px 12px;
        gap: 6px;
    }

    .pf-lb__thumb {
        width: 56px;
        height: 42px;
    }

    .pf-lb__nav {
        top: 10px;
        right: 10px;
    }

    .pf-lb__btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .pf-gallery .swiper-slide {
        grid-template-columns: 1fr;
    }
}
/* ======== Archive — Button style ======== */
.pf-archive-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.pf-archive-card:hover .pf-archive-card__btn {
    background: #fff;
    color: #051d44;
    border-color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.pf-archive-card__btn svg {
    transition: transform 0.3s;
}
.pf-archive-card:hover .pf-archive-card__btn svg {
    transform: rotate(90deg);
    stroke: #051d44;
}

/* ======== Archive — Pagination ======== */
.pf-archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 40px 0 60px;
    padding: 0;
}
.pf-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #051d44;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.pf-archive-pagination .page-numbers:hover {
    background: #051d44;
    color: #fff;
    border-color: #051d44;
    box-shadow: 0 2px 8px rgba(5,29,68,0.2);
}
.pf-archive-pagination .page-numbers.current {
    background: #051d44;
    color: #fff;
    border-color: #051d44;
    font-weight: 700;
}
.pf-archive-pagination .page-numbers.prev,
.pf-archive-pagination .page-numbers.next {
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* ======== Sidebar sticky — override ALL overflow:hidden ancestors ======== */
body.single-portfolio,
body.single-portfolio .pxl-wapper,
body.single-portfolio .pxl-wapper.pxl-page,
body.single-portfolio #pxl-main,
body.single-portfolio .pf-single,
body.single-portfolio .container {
    overflow: visible !important;
}
/* Prevent horizontal overflow caused by visible */
body.single-portfolio {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}
body.single-portfolio .pxl-wapper,
body.single-portfolio .pxl-wapper.pxl-page {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}
.pf-sidebar {
    position: sticky !important;
    top: 120px !important;
    align-self: flex-start;
}



/* ======== Full Width Layout ======== */
.pf-fullwidth {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .pf-fullwidth { padding: 0 16px; }
}

/* ======== Horizontal overflow containment (at content level only) ======== */
.pf-content { 
    overflow-x: hidden; 
    overflow-y: visible;
}
.pf-layout img { max-width: 100%; }
/* cache-bust: 1774371630 */
