/* Isolated BPD Carousel Styles */
.bpd-photo-gallery-section {
    margin: 2em 0;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
}
.bpd-photo-gallery-section h2 {
    margin-top: 0;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 1.2em;
}
.bpd-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    background: none;
    border-radius: 1em;
    box-shadow: none;
    padding-bottom: 8px;
}
.bpd-carousel-track {
    display: flex;
    gap: 18px;
    transition: none;
    will-change: auto;
    width: max-content;
    min-width: 100%;
    padding: 8px 0 8px 0;
}
.bpd-carousel-slide {
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f9ede3;
    border: 3px solid #c69c6d;
    box-shadow: 0 2px 8px #c69c6d22;
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
    position: relative;
}
.bpd-carousel-slide:hover {
    box-shadow: 0 4px 16px #c69c6d44;
    border-color: #a86c1d;
}
.bpd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #f6f6f6;
    display: block;
}

/* Hide nav and dots for horizontal scroll gallery */
.bpd-carousel-nav, .bpd-carousel-dots {
    display: none !important;
}

/* Popout modal styles */
.bpd-carousel-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    animation: bpd-fadein 0.2s;
    flex-direction: row;
}
.bpd-carousel-modal.active {
    display: flex;
}
.bpd-carousel-modal-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px #0008;
    background: #fff;
    outline: none;
}
.bpd-carousel-modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 8px #000a;
}
/* Modal navigation arrows */
.bpd-carousel-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border: none;
    color: #fff;
    font-size: 3em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.bpd-carousel-modal-nav:hover {
    background: rgba(0,0,0,0.5);
}
.bpd-carousel-modal-nav.left {
    left: 32px;
}
.bpd-carousel-modal-nav.right {
    right: 32px;
}
@keyframes bpd-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}
