body,
html {
    min-height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        url('/config/2022-Collage-1600x900.jpeg');
    background-color: #708090;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #003057;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header,
footer {
    background-color: #ccc;
}

.active {
    font-weight: 600;
    font-size: 17px;
}

small {
    font-size: 14px;
}

#ftrText {
    font-size: 13px;
}

.nav-link:hover {
    color: #003057;
    font-weight: 650;
    font-size: 18px;
}
.disabled-txt{
    color: #ccc !important;
}

/* remove visual outline only when this class is present */
.programmatic-focus:focus {
    outline: none;
    box-shadow: none;
}


/* ***** histGall - Card Gallery styling ***** */
article.histGall-card {
    width: 300px;
    flex: 0 0 300px;
    margin: 0;
    border-radius: .5rem;
    box-shadow: 0 .125rem .25rem rgba(0, 30, 57, .085);
    border: 3px solid rgba(0, 0, 0, .05);
}

article.histGall-card .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

article.histGall-card .card-body {
    padding: 8px;
    height: 80px;
    overflow: hidden;
    background-color: antiquewhite;
}

article.histGall-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 30, 57, .15);
    border-color: rgba(0, 0, 0, .1);
    transform: scale(1.02);
    transition: transform .2s;
    cursor: pointer;
}

/* ***** historyDetailCarousel - History Carousel in Modal styling ***** */
#historyDetailCarousel .carousel-item {
    text-align: center;
}

#historyDetailCarousel .carousel-img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ***** historyModal - History Modal styling ***** */
#historyModal {
    --bs-modal-width: 90vw;
    --bs-modal-padding: 1rem;
}

#historyModal .modal-header {
    border-bottom: none;
}

#historyModal .modal-footer {
    border-top: none;
}

#historyModal .modal-body {
    padding: .5rem;
}

/* When the available width is small enough that cards would fall to one per row,
     make the card span the full container width instead of fixed 310px.
     600px is a sensible breakpoint (2 × 300px). Adjust if you change card width or desired gap. */
@media (max-width: 767px) {
    #histGall-Gallery {
        padding: 1rem;
        margin: 1rem;
        /* center single-column cards if desired */
        justify-content: center;
    }

    .histGall-card {
        flex: 1 1 90%;
        width: 90%;
        max-width: 90%;
    }
}


/* Gap fallback for browsers without flex gap */
@supports not (gap: 1rem) {
    .d-flex.flex-wrap>.histGall-card {
        margin-right: .5rem;
        margin-bottom: .5rem;
    }

    .d-flex.flex-wrap {
        margin-right: -.75rem;
        margin-bottom: -.75rem;
    }
}

/* Optional narrow-viewport horizontal scroll behavior */
@media (max-width: 360px) {
    #histGall-Gallery {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .5rem;
    }

    .histGall-card {
        margin-left: .25rem;
        margin-right: .25rem;
    }
}