/* =============================================================
   Portfolio Lightbox
   ============================================================= */

.pf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.pf-lightbox--open {
    display: flex;
}

body.pf-lightbox-active {
    overflow: hidden;
}

/* Dark overlay (also acts as close target) */
.pf-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

/* Centered modal card */
.pf-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: calc(100% - 120px);
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Featured image */
.pf-lightbox-img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    background: #111;
}

/* Before / After side-by-side */
.pf-lightbox-ba {
    display: flex;
    gap: 0;
    background: #111;
}

.pf-ba-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pf-ba-side + .pf-ba-side {
    border-left: 3px solid #fff;
}

.pf-ba-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 1;
    pointer-events: none;
}

.pf-ba-img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

@media (max-width: 560px) {
    .pf-lightbox-ba { flex-direction: column; }
    .pf-ba-side + .pf-ba-side { border-left: none; border-top: 3px solid #fff; }
    .pf-ba-img { max-height: 40vh; }
}

/* Title + testimonial area */
.pf-lightbox-info {
    padding: 20px 24px 28px;
}

.pf-lightbox-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1d2327;
    line-height: 1.3;
}

.pf-lightbox-testimonial-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a7aaad;
    margin: 16px 0 8px;
}

.pf-lightbox-testimonial {
    font-style: italic;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    border-left: 3px solid #d0d5db;
    margin: 0;
    padding: 6px 14px;
}

.pf-lightbox-author {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pf-lightbox-city {
    font-weight: 400;
    color: #646970;
}

.pf-lightbox-date {
    font-weight: 400;
    color: #a7aaad;
    font-size: 13px;
}

/* Close button (top-right, outside card) */
.pf-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 2;
    transition: color 0.15s;
}

.pf-lightbox-close:hover {
    color: #ccc;
}

/* Prev / Next arrows (fixed to viewport sides) */
.pf-lightbox-prev,
.pf-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 3px;
    transition: background 0.15s;
}

.pf-lightbox-prev { left: 16px; }
.pf-lightbox-next { right: 16px; }

.pf-lightbox-prev:hover,
.pf-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .pf-lightbox-dialog {
        width: calc(100% - 16px);
    }
    .pf-lightbox-prev { left: 4px; font-size: 34px; padding: 8px 10px; }
    .pf-lightbox-next { right: 4px; font-size: 34px; padding: 8px 10px; }
    .pf-lightbox-close { font-size: 28px; top: -36px; }
}


/* =============================================================
   Testimonials Section (below portfolio grid)
   ============================================================= */

.pf-testimonials-section {
    margin-top: 64px;
    padding-top: 52px;
    border-top: 2px solid #e5e5e5;
    width: 100%;
}

.pf-testimonials-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
    color: #1d2327;
    letter-spacing: -0.01em;
}

.pf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(var(--pf-cols, 3), 1fr);
    gap: 24px;
}

.pf-testimonial-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 900px) {
    .pf-testimonials-grid { grid-template-columns: repeat(min(var(--pf-cols, 3), 2), 1fr); }
}

@media (max-width: 600px) {
    .pf-testimonials-grid { grid-template-columns: 1fr; }
}

.pf-testimonial-quote {
    font-style: italic;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid #d0d5db;
    flex: 1;
}

.pf-testimonial-quote::before {
    content: '\201C';
    font-size: 22px;
    line-height: 0;
    vertical-align: -6px;
    margin-right: 2px;
    color: #a7aaad;
}

.pf-testimonial-author {
    font-size: 14px;
    color: #1d2327;
    font-weight: 600;
}

.pf-testimonial-city {
    font-weight: 400;
    color: #646970;
}

.pf-testimonial-date {
    font-weight: 400;
    color: #a7aaad;
    font-size: 13px;
}
