@charset "UTF-8";

/* =============================== */
/* Page Base                       */
/* =============================== */
.portfolio-page {
    padding: 180px 0 140px;
    background: #fff;
    min-height: 100vh;
}

/* =============================== */
/* Page Header                     */
/* =============================== */
.pf-header {
    margin-bottom: 48px;
}

.pf-title {
    font-size: 92px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1;
}

/* =============================== */
/* Filter                          */
/* =============================== */
.pf-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-filter form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pf-filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(35, 35, 35, 0.25);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.6);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pf-filter-btn:hover,
.pf-filter-btn.active {
    border-color: #1f1f1f;
    color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
}

/* =============================== */
/* Grid                            */
/* =============================== */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 24px;
    margin-bottom: 60px;
}

.pf-card {
    cursor: pointer;
}

.pf-card-img {
    width: 100%;
    aspect-ratio: 1.3 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.pf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pf-card:hover .pf-card-img img {
    transform: scale(1.04);
}

.pf-card-no-img {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.pf-card-info {
    padding-top: 20px;
}

.pf-card-cat {
    font-size: 13px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.45);
    margin-bottom: 8px;
}

.pf-card-title {
    font-size: 28px;
    font-weight: 300;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 8px;
}

.pf-card-address {
    font-size: 15px;
    font-weight: 400;
    color: rgba(35, 35, 35, 0.55);
}

.pf-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    font-size: 16px;
    color: rgba(35, 35, 35, 0.4);
}

/* =============================== */
/* Pagination                      */
/* =============================== */
.pf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pf-page-num,
.pf-page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    color: rgba(35, 35, 35, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pf-page-num:hover,
.pf-page-arrow:hover {
    color: #1f1f1f;
}

.pf-page-num.active {
    background: #1f1f1f;
    color: #fff;
}

/* =============================== */
/* Lightbox                        */
/* =============================== */
.pf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pf-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.pf-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.pf-lightbox-wrap {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    overflow-y: auto;
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pf-lightbox.active .pf-lightbox-wrap {
    transform: translateY(0);
}

.pf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
}

.pf-lightbox-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background: #1f1f1f;
}

.pf-lightbox-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pf-lightbox-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pf-lightbox-content {
    display: flex;
    flex-direction: column;
}

.pf-lightbox-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pf-lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-lightbox-info {
    padding: 36px 48px 48px;
}

.pf-lightbox-cat {
    font-size: 13px;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.45);
    margin-bottom: 12px;
}

.pf-lightbox-title {
    font-size: 36px;
    font-weight: 300;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 10px;
}

.pf-lightbox-address {
    font-size: 16px;
    color: rgba(35, 35, 35, 0.55);
    margin-bottom: 28px;
}

.pf-lightbox-body {
    font-size: 16px;
    color: #2d2d2d;
    line-height: 1.8;
}

/* =============================== */
/* Responsive                      */
/* =============================== */
@media (max-width: 1200px) {
    .portfolio-page {
        padding-top: 130px;
    }

    .pf-title {
        font-size: 44px;
    }
}

@media (max-width: 1024px) {
    .portfolio-page {
        padding: 110px 0 100px;
    }

    .pf-title {
        font-size: 36px;
    }

    .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pf-lightbox-info {
        padding: 24px 28px 36px;
    }

    .pf-lightbox-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .portfolio-page {
        padding: 90px 0 80px;
    }

    .pf-title {
        font-size: 28px;
    }

    .pf-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .pf-card-title {
        font-size: 18px;
    }

    .pf-card-address {
        font-size: 13px;
    }

    .pf-lightbox-wrap {
        width: 95%;
        max-height: 95vh;
    }

    .pf-lightbox-info {
        padding: 20px 20px 28px;
    }

    .pf-lightbox-title {
        font-size: 22px;
    }
}
