/*
 * BBM ELEGANT EDITORIAL GALLERY
 * Joomla 5 / Cassiopeia / sigplus Slideplus
 *
 * BEGIN BBM EDITORIAL V1
 *
 * Styling only:
 * - no changes to carousel geometry
 * - no changes to original image files
 * - no changes to lightbox behavior
 */

/* Refined gallery image treatment */
.slideplus-container a.sigplus-image > img {
    border-radius: 10px;
    box-shadow:
        0 4px 14px rgba(40, 34, 30, 0.14),
        0 1px 3px rgba(40, 34, 30, 0.08);
    transition:
        box-shadow 220ms ease,
        filter 220ms ease;
}

/* Subtle editorial hover effect */
@media (hover: hover) and (pointer: fine) {
    .slideplus-container a.sigplus-image:hover > img {
        box-shadow:
            0 8px 20px rgba(40, 34, 30, 0.2),
            0 2px 5px rgba(40, 34, 30, 0.1);
        filter: brightness(1.025);
    }
}

/* Make keyboard focus visible */
.slideplus-container a.sigplus-image:focus-visible {
    outline: 2px solid #917a65;
    outline-offset: 3px;
    border-radius: 10px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .slideplus-container a.sigplus-image > img {
        transition: none;
    }
}

/* END BBM EDITORIAL V1 */

/*
 * BEGIN BBM EDITORIAL NAVIGATION V2
 * Styling only. Existing Slideplus behavior preserved.
 */

/* Soften the large overlay navigation graphics */
.slideplus-container .slideplus-viewport.slideplus-horizontal > .slideplus-button {
    background-size: 42px 42px;
    opacity: 0.76;
    transition: opacity 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .slideplus-container .slideplus-viewport.slideplus-horizontal > .slideplus-button:hover {
        opacity: 1;
    }
}

/* Refine bottom navigation graphics */
.slideplus-container .slideplus-navigation > a {
    background-size: 1.1em 1.1em;
    background-position: center;
    opacity: 0.72;
    transition: opacity 180ms ease;
}

.slideplus-container .slideplus-navigation > a:hover {
    opacity: 1;
}

/* Editorial numbered pagination */
.slideplus-container .slideplus-paging .slideplus-pager {
    color: #665d55;
    background-color: #fff;
    border: 1px solid #dcd6cf;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(40, 34, 30, 0.06);
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

/* Active gallery position */
.slideplus-container .slideplus-paging .slideplus-pager.slideplus-current {
    color: #fff;
    background-color: #766655;
    border-color: #766655;
}

/* Hover and keyboard accessibility */
.slideplus-container .slideplus-paging .slideplus-pager:hover {
    border-color: #766655;
}

.slideplus-container .slideplus-paging .slideplus-pager:focus-visible,
.slideplus-container .slideplus-navigation > a:focus-visible,
.slideplus-container .slideplus-viewport > .slideplus-button:focus-visible {
    outline: 2px solid #917a65;
    outline-offset: 2px;
}

/* Keep existing hidden navigation controls hidden */
.slideplus-container .slideplus-hidden {
    pointer-events: none;
}

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
    .slideplus-container .slideplus-paging .slideplus-pager,
    .slideplus-container .slideplus-navigation > a,
    .slideplus-container .slideplus-viewport > .slideplus-button {
        transition: none;
    }
}

/* END BBM EDITORIAL NAVIGATION V2 */

/*
 * BEGIN BBM MOBILE NAVIGATION V1
 * Elegant Editorial mobile pagination.
 * Desktop carousel remains unchanged.
 */

@media (max-width: 600px) {

    .slideplus-container .slideplus-navigation.slideplus-bottom {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-items: center;
        align-items: center;
        row-gap: 10px;
        width: 100%;
    }

    .slideplus-container .slideplus-navigation.slideplus-bottom > .slideplus-paging {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 5px;
        width: 100%;
    }

    .slideplus-container .slideplus-navigation.slideplus-bottom > span {
        display: none;
    }

    .slideplus-container .slideplus-navigation.slideplus-bottom > a {
        justify-self: center;
    }

    .slideplus-container .slideplus-paging .slideplus-pager {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }
}

/* END BBM MOBILE NAVIGATION V1 */

/* BEGIN BBM LIGHTBOX CONTROLS V1 */
.boxplusx-controls.boxplusx-below > .boxplusx-previous,
.boxplusx-controls.boxplusx-below > .boxplusx-next {
    display: none !important;
}
/* END BBM LIGHTBOX CONTROLS V1 */

/* BEGIN BBM LIGHTBOX VISIBILITY V1 */
body:has(.boxplusx-container:not(.boxplusx-hidden)) .slideplus-navigation.slideplus-bottom {
    visibility: hidden !important;
}
/* END BBM LIGHTBOX VISIBILITY V1 */

/* BEGIN BBM OPAQUE LIGHTBOX V1 */
.boxplusx-container .boxplusx-dialog {
    background-color: #f6f4f1 !important;
}
/* END BBM OPAQUE LIGHTBOX V1 */

/* BBM STEP 339 MOBILE CAROUSEL
   Staging design: champagne dots, no photo overlay arrows.
   Desktop gallery is intentionally unchanged.
*/
@media screen and (max-width: 767px) {

  /* Remove previous/next arrows over the image */
  .sigplus-gallery .slideplus-viewport
  ~ .slideplus-button,
  .sigplus-gallery .slideplus-button {
    display: none !important;
  }

  /* Retain the lower pagination area */
  .sigplus-gallery .slideplus-navigation {
    display: block !important;
  }

  /* Small circular pagination dots */
  .sigplus-gallery .slideplus-navigation .slideplus-pager {
    box-sizing: border-box !important;
    display: inline-flex !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;
    max-width: 9px !important;
    max-height: 9px !important;
    padding: 0 !important;
    margin: 0 5px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #BAC0C8 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    vertical-align: middle !important;
  }

  /* Active image indicator */
  .sigplus-gallery .slideplus-navigation
  .slideplus-pager.slideplus-current {
    background: #C6A77A !important;
    transform: scale(1.25);
  }
}
/* END BBM STEP 339 MOBILE CAROUSEL */

/* BBM STEP 367 COMPACT MOBILE HEADER */
@media screen and (max-width: 767px) {
  .container-header {
    padding: 12px 16px !important;
  }

  .container-header .navbar-brand {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container-header .navbar-brand .brand-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(20px, 5.5vw, 25px) !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-decoration: none !important;
  }

  .container-header .container-nav {
    width: 100% !important;
    padding: 8px 0 0 !important;
  }

  .container-header .mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .container-header .mod-menu > li {
    display: block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container-header .mod-menu > li > a {
    display: inline-block !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 5px 0 !important;
  }
}
/* END BBM STEP 367 */


/* BBM STEP 399 — RESPONSIVE HOMEPAGE HERO */
.bbm-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1220px;
  margin: 28px auto 42px;
  overflow: hidden;
  border-radius: 20px;
  background: #142448;
  color: #fff;
}
.bbm-home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(28px, 4vw, 64px);
}
.bbm-home-eyebrow {
  color: #C6A77A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bbm-home-hero .bbm-home-hero-copy h1 {
  color: #fff;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0;
}
.bbm-home-hero .bbm-home-hero-copy p {
  color: #F2F0EB;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}
.bbm-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bbm-home-actions a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.bbm-home-actions a:first-child {
  background: #C6A77A;
  color: #142448;
}
.bbm-home-actions a:last-child {
  color: #fff;
  border: 1px solid #C6A77A;
}
.bbm-home-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .bbm-home-hero {
    grid-template-columns: minmax(0, 1fr);
    margin: 16px auto 28px;
    border-radius: 14px;
  }
  .bbm-home-hero-copy {
    padding: 28px 22px;
    gap: 18px;
  }
  .bbm-home-hero .bbm-home-hero-copy h1 {
    font-size: clamp(28px, 7vw, 36px);
  }
  .bbm-home-actions {
    flex-direction: column;
    width: 100%;
  }
  .bbm-home-actions a {
    text-align: center;
  }
  .bbm-home-hero-image {
    min-height: 220px;
    max-height: 350px;
  }
}
/* END BBM STEP 399 */