#pic-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    text-align: center;
}

#pic-page a {
    flex: 0 0 auto;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e5e9ef;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#pic-page a:hover img,
#pic-page a.active img,
#pic-page a.bx-pager-link.active img {
    border-color: #FF9E16;
}

#pic-page a img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: middle;
}

.gallery-sample .bx-wrapper {
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.gallery-sample .bx-wrapper .bx-viewport {
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e5e9ef;
}

.gallery-sample .bx-wrapper img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
}

.gallery-sample .bx-wrapper .bx-controls-direction a,
.gallery-sample .bx-wrapper .bx-prev,
.gallery-sample .bx-wrapper .bx-next {
    width: 36px !important;
    height: 36px !important;
    margin-top: -18px !important;
    border-radius: 50%;
    background: rgba(0, 46, 91, 0.85) !important;
    background-image: none !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    line-height: 36px !important;
    text-align: center;
    overflow: visible !important;
    transition: background 0.2s;
}

.gallery-sample .bx-wrapper .bx-controls-direction a:hover,
.gallery-sample .bx-wrapper .bx-prev:hover,
.gallery-sample .bx-wrapper .bx-next:hover {
    background: #FF9E16 !important;
    background-image: none !important;
}

.gallery-sample .bx-wrapper .bx-prev::before,
.gallery-sample .bx-wrapper .bx-next::before {
    content: "" !important;
    display: inline-block !important;
    width: 9px;
    height: 9px;
    margin: 0;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    vertical-align: middle;
    box-sizing: border-box;
}

.gallery-sample .bx-wrapper .bx-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.gallery-sample .bx-wrapper .bx-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.gallery-sample .bx-wrapper .bx-prev {
    left: 10px !important;
}

.gallery-sample .bx-wrapper .bx-next {
    right: 10px !important;
}
