/* =========================================================
   PD GALLERY
========================================================= */

.pd-gallery-section {
    width: 100%;
    padding: 20px 0 70px;
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

.pd-gallery-container {
    width: calc(100% - 28px);
    max-width: 1320px;

    margin: 0 auto;

    box-sizing: border-box;
}


/* =========================================================
   PAGE TITLE — PD GALLERY
========================================================= */

.pd-gallery-title {
    margin: 0 0 38px;
    line-height: 1.2;
    font-weight: 700;
    color: #111111;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.pd-gallery-layout {
    display: grid;

    grid-template-columns: 379px minmax(0, 1fr);

    column-gap: 36px;

    align-items: start;
}


/* =========================================================
   SIDEBAR
========================================================= */

.pd-gallery-sidebar {
    width: 100%;
}


/* =========================================================
   SIDEBAR BOX
========================================================= */

.pd-gallery-sidebar-box {
    width: 100%;

    padding: 16px 14px 14px;

    box-sizing: border-box;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: #ffffff;
}


/* =========================================================
   SIDEBAR TITLE
========================================================= */

.pd-gallery-sidebar-title {
    margin: 0 0 12px;

    padding-bottom: 12px;

    border-bottom: 1px solid #dddddd;

    line-height: 1.3;
    font-weight: 700;
    font-size: 22px;
    color: #000;
}


/* =========================================================
   COMPANY LIST
========================================================= */

.pd-gallery-company-list {
    max-height: 400px;

    overflow-y: auto;

    display: flex;
    flex-direction: column;

    gap: 4px;

    padding-right: 8px;
}


/* =========================================================
   COMPANY LIST SCROLLBAR
========================================================= */

.pd-gallery-company-list::-webkit-scrollbar {
    width: 5px;
}

.pd-gallery-company-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pd-gallery-company-list::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}


/* =========================================================
   COMPANY LINK
========================================================= */

.pd-gallery-company-link {
    display: block;

    padding: 10px 14px;

    text-decoration: none;

    color: #222222;

    border-radius: 6px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* =========================================================
   COMPANY LINK HOVER
========================================================= */

.pd-gallery-company-link:hover {
    background: #f2f6f8;
}


/* =========================================================
   ACTIVE COMPANY
========================================================= */

.pd-gallery-company-link.active {
    background: #0c6aa5;

    color: #ffffff;
}


/* =========================================================
   GALLERY CONTENT
========================================================= */

.pd-gallery-content {
    min-width: 0;

    width: 100%;
}


/* =========================================================
   GALLERY HEADER
   TITLE + IMAGE COUNT
========================================================= */

.pd-gallery-content-header {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin: 0 0 18px;

    box-sizing: border-box;
}


/* =========================================================
   COMPANY TITLE
========================================================= */

.pd-gallery-company-title {
    margin: 0;

    font-size: 32px;

    line-height: 1.3;

    font-weight: 600;

    color: #111111;
}


/* =========================================================
   IMAGE COUNT
========================================================= */

.pd-gallery-count {
    margin-left: auto;


    line-height: 1.3;

    color: #222222;

    white-space: nowrap;

    text-align: right;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.pd-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    column-gap: 10px;

    row-gap: 10px;

    width: 100%;
}


/* =========================================================
   GALLERY ITEM
========================================================= */

.pd-gallery-item {
    display: block;

    width: 100%;

    aspect-ratio: 1.45 / 1;

    overflow: hidden;

    background: #eeeeee;

    text-decoration: none;
}


/* =========================================================
   GALLERY IMAGE
========================================================= */

.pd-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.25s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.pd-gallery-item:hover img {
    transform: scale(1.03);
}


/* =========================================================
   EMPTY
========================================================= */

.pd-gallery-empty {
    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 300px;

    color: #777777;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   PAGINATION
========================================================= */

.pd-gallery-pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 42px;
}


/* =========================================================
   PAGINATION LINKS
========================================================= */

.pd-gallery-pagination .page-numbers {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    color: #999999;

    font-size: 9px;

    line-height: 1;

    text-decoration: none;
}


/* =========================================================
   CURRENT PAGE
========================================================= */

.pd-gallery-pagination .page-numbers.current {
    background: #0878b9;

    color: #ffffff;
}


/* =========================================================
   PAGINATION HOVER
========================================================= */

.pd-gallery-pagination a.page-numbers:hover {
    color: #0878b9;
}


/* =========================================================
   PREVIOUS / NEXT
========================================================= */

.pd-gallery-pagination .prev,
.pd-gallery-pagination .next {
    font-size: 18px;

    color: #aaaaaa;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .pd-gallery-layout {
        grid-template-columns:
            190px minmax(0, 1fr);

        column-gap: 25px;
    }


    .pd-gallery-grid {
        column-gap: 8px;

        row-gap: 8px;
    }


    .pd-gallery-item {
        aspect-ratio: 1.4 / 1;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 700px) {

    .pd-gallery-container {
        width: calc(100% - 30px);
    }


    .pd-gallery-layout {
        grid-template-columns: 1fr;

        row-gap: 30px;
    }


    .pd-gallery-sidebar-box {
        width: 100%;
    }


    .pd-gallery-company-list {
        flex-direction: row;

        flex-wrap: wrap;

        gap: 4px 18px;

        max-height: 220px;
    }


    .pd-gallery-company-link {
        padding: 6px 0;
    }


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

        column-gap: 10px;

        row-gap: 10px;
    }


    .pd-gallery-item {
        aspect-ratio: 1.35 / 1;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    .pd-gallery-container {
        width: calc(100% - 24px);
    }


    .pd-gallery-title {
        margin-bottom: 25px;

        font-size: 28px;
    }


    .pd-gallery-content-header {
        margin-bottom: 14px;

        gap: 10px;
    }


    .pd-gallery-company-title {
        font-size: 14px;
    }




    .pd-gallery-grid {
        column-gap: 7px;

        row-gap: 7px;
    }


    .pd-gallery-item {
        aspect-ratio: 1.25 / 1;
    }


    .pd-gallery-pagination {
        margin-top: 30px;

        gap: 7px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .pd-gallery-grid {
        grid-template-columns: 1fr;
    }


    .pd-gallery-item {
        aspect-ratio: 1.6 / 1;
    }

}