.elementor-147 .elementor-element.elementor-element-0d83bd2{--display:flex;}/* Start custom CSS for html, class: .elementor-element-95bdb96 *//* =============== GALLERY =============== */

.jcd-gallery {
    background: #05070d;
    color: #f5f5f7;
    padding: 4rem 5vw 5rem;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.jcd-gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.jcd-gallery-title {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.75rem;
}

.jcd-gallery-intro {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
    color: #d7d9e4;
}

.jcd-gallery-subtitle {
    font-size: 1.3rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    color: #f2f3ff;
}

/* Core grid */
.jcd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
}

/* Individual items */
.jcd-gallery-item {
    background: #090c17;
    border-radius: 18px;
    padding: 0.9rem 0.9rem 1.1rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        background 0.25s ease;
}

.jcd-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    background: #0d1221;
}

.jcd-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    /* Make sure NOTHING is cropped */
    object-fit: contain;
}

/* Captions */
.jcd-gallery-item figcaption {
    margin-top: 0.7rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e3e4f0;
}

/* “Big / long” feature pieces */
.jcd-gallery-item--wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .jcd-gallery-item--wide {
        grid-column: span 1;
    }
}

/* Slight spacing tweak between the two groups */
.jcd-gallery-group + .jcd-gallery-group {
    margin-top: 1rem;
}/* End custom CSS */