/* CD_MOBILE_GALLERY_V41: mobile-only bottom section navigation. */

#cd-life-gallery-v2 .cdm41-nav {
  display: none;
}

@media (max-width: 800px) {
  #cd-life-gallery-v2 .cdm41-nav {
    display: block;
    position: relative;
    z-index: 2;
    min-width: 0;
    margin-top: 24px;
    padding: 20px 0 2px;
    border-top: 1px solid #bfae9c;
    color: #27211d;
  }

  #cd-life-gallery-v2 .cdm41-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
  }

  #cd-life-gallery-v2 .cdm41-label {
    color: #99593a;
    font: 700 10px/1.4 system-ui,sans-serif;
    text-transform: uppercase;
    letter-spacing: .14em;
  }

  #cd-life-gallery-v2 .cdm41-current {
    color: #68594d;
    font: 500 11px/1.4 system-ui,sans-serif;
    text-align: right;
  }

  #cd-life-gallery-v2 .cdm41-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  #cd-life-gallery-v2 .cdm41-actions button {
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #bca999;
    border-radius: 2px;
    background: transparent;
    color: #3b2c25;
    font: 650 13px/1.4 system-ui,sans-serif;
    cursor: pointer;
    text-align: center;
  }

  #cd-life-gallery-v2 .cdm41-actions button:hover,
  #cd-life-gallery-v2 .cdm41-actions button:focus-visible {
    border-color: #99593a;
    background: #eee1d4;
  }

  #cd-life-gallery-v2 .cdm41-actions button:focus-visible {
    outline: 2px solid #99593a;
    outline-offset: 2px;
  }

  #cd-life-gallery-v2 .cdm41-neighbors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    color: #726357;
    font: 400 11px/1.5 system-ui,sans-serif;
    margin: 10px 0 0;
  }

  #cd-life-gallery-v2 .cdm41-neighbors span:last-child {
    text-align: right;
  }

  #cd-life-gallery-v2 .cdlg-title {
    scroll-margin-top: 110px;
  }
}
