/* ============================================================
   PORTFOLIO LISTING PAGE - Details Below Image
   ============================================================ */
.portfolio.details-below-image .details-holder {
    display: block !important;
    float: left !important;
    width: 100% !important;
    text-align: left !important;
    padding: 15px 0 25px 0 !important;
    box-sizing: border-box !important;
}
.portfolio.details-below-image .details-holder h2 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    margin: 5px 0 3px 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: block !important;
}
.portfolio.details-below-image .details-holder h2 a {
    color: #111 !important;
    text-decoration: none !important;
    transition: color .3s ease !important;
}
.portfolio.details-below-image .details-holder h2 a:hover { color: #c5a47e !important; }
.portfolio.details-below-image .details-holder .categories {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-transform: lowercase !important;
    letter-spacing: .5px !important;
}
.portfolio.details-below-image .details-holder .categories a { color: #c5a47e !important; text-decoration: none !important; font-weight: 400 !important; transition: color .3s ease !important; }
.portfolio.details-below-image .details-holder .categories a:hover { color: #111 !important; }
.portfolio.details-below-image figure { overflow: hidden !important; border-radius: 4px !important; position: relative !important; }
.portfolio.details-below-image figure img { transition: transform .5s ease !important; width: 100% !important; height: auto !important; display: block !important; }
.portfolio.details-below-image:hover figure img { transform: scale(1.05) !important; }
.portfolio.details-below-image .image-overlay { background-color: rgba(0,0,0,.1) !important; opacity: 0 !important; transition: opacity .3s ease !important; }
.portfolio.details-below-image:hover .image-overlay { opacity: 1 !important; }

/* Listing responsive */
@media only screen and (max-width:1024px) {
    .dt-sc-portfolio-container .portfolio.dt-sc-one-third { width:48% !important; margin-left:1% !important; margin-right:1% !important; }
}
@media only screen and (max-width:767px) {
    .dt-sc-portfolio-container .portfolio.dt-sc-one-third { width:100% !important; margin-left:0 !important; margin-right:0 !important; float:none !important; }
}


/* ============================================================
   PORTFOLIO DETAIL PAGE - Hide Header Navigation
   body class: .single-dt_portfolios
   ============================================================ */
body.single-dt_portfolios #header-wrapper,
body.single-dt_portfolios .top-bar {
    display: none !important;
}

/* Remove the default container padding/margin added by header.php */
body.single-dt_portfolios #main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove breadcrumb section on detail page */
body.single-dt_portfolios .sub-title-section,
body.single-dt_portfolios .dt-breadcrumb-section {
    display: none !important;
}

/* Remove default WordPress body padding if any */
body.single-dt_portfolios .wrapper,
body.single-dt_portfolios .inner-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* ============================================================
   PORTFOLIO DETAIL PAGE - Layout
   ============================================================ */

/* Prevent lightbox body scroll */
body.pfd-lb-open { overflow: hidden; }

/* Shared section */
.pfd-wrap { max-width: 100%; background: #fff; }
.pfd-section { padding: 50px 0; }
.pfd-container { max-width: 860px; margin: 0 auto; padding: 0 30px; box-sizing: border-box; }

/* ---- 1. Title + Description ---- */
.pfd-header-section { padding: 50px 0 40px; }
.pfd-title {
    display: inline-block;
    font-size: 26px;
    font-weight: 600;
    color: #111;
    border: 2px solid #e74c3c;
    padding: 10px 24px;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
.pfd-subtitle {
    font-size: 13px;
    color: #c5a47e;
    margin: 0 0 24px;
    letter-spacing: .5px;
}
.pfd-subtitle a { color: #c5a47e; text-decoration: none; }
.pfd-subtitle a:hover { color: #111; }

.pfd-description {
    column-count: 2;
    column-gap: 40px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}
.pfd-description p { margin: 0 0 14px; }
/* Elementor inside description */
.pfd-description .elementor-section,
.pfd-description .e-con { max-width: 100% !important; padding: 0 !important; }

/* ---- 2. Gallery Grid (2 columns) ---- */
.pfd-gallery-section { padding: 30px 0 50px; background: #f9f9f9; }
.pfd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.pfd-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 3px;
}
.pfd-grid-item-inner { width: 100%; height: 100%; position: relative; overflow: hidden; }
.pfd-grid-item-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pfd-grid-item:hover .pfd-grid-item-inner img { transform: scale(1.06); }
.pfd-grid-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    transition: background .3s ease;
}
.pfd-grid-item:hover .pfd-grid-overlay { background: rgba(0,0,0,.4); }
.pfd-grid-zoom { font-size: 34px; color: #fff; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; font-weight: 300; }
.pfd-grid-item:hover .pfd-grid-zoom { opacity: 1; transform: scale(1); }

/* ---- 4. CTA Footer ---- */
.pfd-cta-section { padding: 60px 0; background: #fff; border-top: 1px solid #eee; }
.pfd-cta-inner { text-align: center; }
.pfd-cta-title { font-size: 22px; font-weight: 600; color: #111; margin: 0 0 16px; }
.pfd-cta-desc { font-size: 13px; line-height: 1.8; color: #777; max-width: 560px; margin: 0 auto 28px; }
.pfd-cta-btn {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 12px 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background .25s, color .25s;
}
.pfd-cta-btn:hover { background: #c5a47e; color: #fff; }


/* ---- LIGHTBOX ---- */
.pfd-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    padding: 24px;
}
.pfd-lightbox.active { opacity: 1; pointer-events: all; }

.pfd-lightbox-wrap {
    position: relative;
    width: 100%; max-width: 1140px;
    display: flex; align-items: stretch;
}

/* Close / prev / next */
.pfd-lb-close {
    position: absolute; top: -42px; right: 0;
    background: none; border: none; color: #fff;
    font-size: 38px; cursor: pointer; line-height: 1; padding: 0 6px;
    transition: color .2s; z-index: 10;
}
.pfd-lb-close:hover { color: #c5a47e; }
.pfd-lb-prev, .pfd-lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border: none; color: #fff;
    font-size: 50px; cursor: pointer; z-index: 10;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; line-height: 1; padding: 0;
    transition: background .2s;
}
.pfd-lb-prev:hover, .pfd-lb-next:hover { background: rgba(255,255,255,.22); }
.pfd-lb-prev { left: -64px; }
.pfd-lb-next { right: -64px; }

/* Lightbox body */
.pfd-lb-body { display: flex; width: 100%; max-height: 88vh; overflow: hidden; border-radius: 4px; }

/* Image side */
.pfd-lb-img-side {
    flex: 1 1 62%;
    background: #111;
    display: flex; flex-direction: column;
    min-width: 0;
}
.pfd-lb-img-container {
    flex: 1; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #111; min-height: 0;
}
#pfd-lb-img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto; object-fit: contain; display: block;
    transition: opacity .2s ease;
}

/* Thumbnails */
.pfd-lb-thumbs {
    display: flex; gap: 4px; padding: 6px 8px;
    background: #000; overflow-x: auto; flex-shrink: 0;
    scrollbar-width: thin; scrollbar-color: #444 #111;
}
.pfd-lb-thumbs::-webkit-scrollbar { height: 4px; }
.pfd-lb-thumb {
    width: 60px; height: 45px; flex-shrink: 0; cursor: pointer;
    overflow: hidden; opacity: .45; transition: opacity .25s;
    border: 2px solid transparent; border-radius: 2px;
}
.pfd-lb-thumb:hover, .pfd-lb-thumb.active { opacity: 1; border-color: #c5a47e; }
.pfd-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Info side */
.pfd-lb-info-side {
    flex: 0 0 300px;
    background: #1a1a1a; padding: 36px 28px;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.pfd-lb-title { font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 10px; line-height: 1.35; }
.pfd-lb-cats { font-size: 12px; color: #c5a47e; margin: 0 0 18px; letter-spacing: .5px; }
.pfd-lb-cats a { color: #c5a47e; text-decoration: none; }
.pfd-lb-desc { font-size: 13px; line-height: 1.8; color: #aaa; margin: 0 0 20px; }
.pfd-lb-meta { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid #333; padding-top: 14px; }
.pfd-lb-meta li { font-size: 12px; color: #aaa; padding: 4px 0; border-bottom: 1px solid #2a2a2a; }
.pfd-lb-meta li span { color: #fff; font-weight: 500; }
.pfd-lb-cta {
    display: inline-block; margin-top: auto;
    border: 1px solid #c5a47e; color: #c5a47e;
    padding: 10px 22px; font-size: 12px; font-weight: 600;
    letter-spacing: 1.5px; text-decoration: none; text-transform: uppercase;
    transition: background .25s, color .25s; align-self: flex-start;
}
.pfd-lb-cta:hover { background: #c5a47e; color: #111; }


/* ============================================================
   RESPONSIVE - Portfolio Detail
   ============================================================ */
@media (max-width: 1100px) {
    .pfd-lb-prev { left: -10px; }
    .pfd-lb-next { right: -10px; }
    .pfd-lb-info-side { flex: 0 0 260px; padding: 28px 20px; }
}

@media (max-width: 900px) {
    .pfd-description { column-count: 1; }
    .pfd-lb-body { flex-direction: column; overflow-y: auto; max-height: 88vh; }
    .pfd-lb-img-side { flex: none; }
    #pfd-lb-img { max-height: 45vh; }
    .pfd-lb-info-side { flex: none; padding: 22px 20px; }
    .pfd-lb-prev { left: 2px; }
    .pfd-lb-next { right: 2px; }
}

@media (max-width: 767px) {
    .pfd-container { padding: 0 16px; }
    .pfd-title { font-size: 20px; padding: 8px 16px; }
    .pfd-header-section { padding: 32px 0 24px; }
    .pfd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .pfd-lb-prev, .pfd-lb-next { width: 38px; height: 38px; font-size: 36px; }
    .pfd-lb-close { font-size: 30px; top: -36px; }
}

@media (max-width: 480px) {
    .pfd-gallery-grid { grid-template-columns: 1fr; }
}
