/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
    background-image: url("background.jpg");
    min-width: 375px;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
header {
    margin-top: 1em;
}

.navbar {
    background-image: url("background_header.jpg");
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 10px calc(var(--bs-gutter-x) * .5);;
}

.navbar-brand {
    margin: 0;
}

.navbar-brand-title {
    font-size: 2em;
    color: white;
    letter-spacing: 0.2em;
}

.navbar-brand-title2 {
    font-size: 1.2em;
    color: white;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px black;
}

.navbar-brand-subtitle {
    font-size: .8em;
    color: silver;
    font-style: italic;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px black;
}

/* ── Main ────────────────────────────────────────────────────────────────── */

main {
    background-image: url("background2.jpg");
}

.breadcrumb {
    border-bottom: 1px solid silver;
    padding-bottom: .5em;
}

.breadcrumb a {
    color: darkred;
}

.breadcrumb a:hover {
    text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
    background-image: url("background_header.jpg");
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 15px calc(var(--bs-gutter-x) * .5);
    margin-bottom: 1em;

    color: white;

    font-size: .8em;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* ── Gallery card ────────────────────────────────────────────────────────── */
.gallery-card {
    transition: box-shadow .2s;
    border: none;
}
.gallery-card:hover {
    box-shadow: 0 .5rem 0.7rem rgba(0, 0, 0, .35) !important;
}

.gallery-card .card-title a {
    color: darkred;
}

/* ── Thumbnail strip (card cover) ────────────────────────────────────────── */
.card-img-strip {
    display: block;
    overflow: hidden;
    border-radius: .375rem .375rem 0 0;
    background: #dee2e6;
    min-height: 160px;
}

.strip-grid {
    display: grid;
    height: 180px;
    gap: 2px;
}
.strip-1 { grid-template-columns: 1fr; }
.strip-2 { grid-template-columns: 1fr 1fr; }
.strip-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.strip-3 img:first-child {
    grid-row: 1 / span 2;
}
.strip-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.strip-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: #adb5bd;
    font-size: 3rem;
}

/* ── Tag badge ───────────────────────────────────────────────────────────── */
.tag-badge {
    font-size: .75em;
    background-color: darkred;
    color: white;
}

/* ── Tag cloud ───────────────────────────────────────────────────────────── */
.tag-cloud a {
    transition: opacity .15s;
    font-size: .7em;
}
.tag-cloud a:hover {
    opacity: .75;
}

/* ── Gallery lightbox grid ───────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .5rem;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: .375rem;
    aspect-ratio: 4 / 3;
    background: #dee2e6;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.gallery-grid a:hover img {
    transform: scale(1.05);
}

/* ── Gallery description body ────────────────────────────────────────────── */
.gallery-body img {
    max-width: 100%;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination .page-link {
    color: darkred;
}

.pagination .active>.page-link {
    border-color: darkred;
    background-color: darkred;
    color: white;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
}

@media (max-width: 576px) {
    header, footer, .navbar {
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
}

.sl-overlay {
    background-color: #222;
}

.sl-image {
    box-shadow: 0px 0px 20px 5px rgba(255,255,255,0.75);
}
