/* Outer section — cream background, flows seamlessly into gallery-grid below */
.bsw-gallery-couples.wp-block-group.alignfull {
    background: #f8f7f4;
    padding-block: 4.5rem 0 !important;
}

/* Centered header */
.bsw-gallery-couples__header.wp-block-group {
    margin-block-end: 7rem !important;
}

/* Floral icon */
.bsw-gallery-couples__icon.wp-block-image {
    display: table !important;
    margin-inline: auto !important;
    margin-block-end: 1.25rem !important;
}

.bsw-gallery-couples__icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 59px;
}

/* Supertitle — Cormorant uppercase wide-tracked */
.bsw-gallery-couples__supertitle {
    font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 60px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: #8c857b !important;
    line-height: 1.1 !important;
    margin-block: 0 !important;
}

/* Script title — Brittany Signature */
.bsw-gallery-couples__title {
    font-family: 'Brittany Signature', cursive !important;
    font-size: 60px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #ba878f !important;
    line-height: 1 !important;
    margin-top: 5px;
}

/* Three-column row */
.bsw-gallery-couples__cols.wp-block-columns {
    gap: 20px !important;
    align-items: stretch !important;
    margin-block: 0 !important;
}

.bsw-gallery-couples__col.wp-block-column {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
}

/* Couple photo */
.bsw-gallery-couples__photo.wp-block-image {
    height: 535px;
    overflow: hidden;
    margin: 0 !important;
    line-height: 0;
    flex-shrink: 0;
}

.bsw-gallery-couples__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.bsw-gallery-couples__photo:hover img {
    transform: scale(1.05);
}

/* Info card below photo */
.bsw-gallery-couples__info.wp-block-group {
    background: #f8f7f4;
    text-align: center;
    padding-block: 1.5rem 1.75rem !important;
    padding-inline: 0.5rem !important;
}

/* Couple name — Cormorant Italic */
.bsw-gallery-couples__name {
    font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 28px !important;
    color: #867b70 !important;
    line-height: normal !important;
    margin-block: 0 0.3rem !important;
}

/* Venue name — Cardo uppercase */
.bsw-gallery-couples__venue {
    font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: #aa747c !important;
    line-height: normal !important;
    /* 16px to the rule below, per Figma (16.4 measured, both files) */
    margin-block: 0 16px !important;
}

/* Decorative rule */
.bsw-gallery-couples__rule {
    width: 43px;
    height: 1.5px;
    background: #baaa7c;
    /* 18px to the credit below, per Figma (17.75 measured, both files) */
    margin: 0 auto 18px;
}

/* Photographer credit */
.bsw-gallery-couples__photographer {
    font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #867b70 !important;
    line-height: normal !important;
    margin-block: 0 !important;
}

@media (max-width: 767px) {
    .bsw-gallery-couples.wp-block-group.alignfull {
        padding-block: 3rem 0 !important;
        padding-inline: 20px !important;
    }

    .bsw-gallery-couples__header.wp-block-group {
        margin-block-end: 4.5rem !important;
    }

    .bsw-gallery-couples__supertitle {
        font-size: 50px !important;
        letter-spacing: 0.15em !important;
    }

    .bsw-gallery-couples__title {
        font-size: 56px !important;
    }

    /* Stack columns vertically on mobile */
    .bsw-gallery-couples__cols.wp-block-columns.is-not-stacked-on-mobile {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
    }

    .bsw-gallery-couples__cols.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
        flex-basis: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-block-end: 0.625rem;
    }

    .bsw-gallery-couples__cols.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column:last-child {
        padding-block-end: 0;
    }

    .bsw-gallery-couples__photo.wp-block-image {
        height: 490px;
    }

    .bsw-gallery-couples__info.wp-block-group {
        padding-block: 1.5rem 0 !important;
    }
}

/* Each card carries its couple's full photo set as hidden tiles — the lightbox
   reads them from the markup (assets/js/lightbox.js), and browsers don't fetch
   display:none images, so the homepage still loads three photos. The visible
   cover is tile 0, so the viewer opens on the photo that was clicked. */
.bsw-gallery-couples__set.wp-block-group {
	display: none;
}
