body {
    min-height: 100vh;
}

.mobile-contact-bar {
    display: none;
}

.markdown-content {
    max-width: 56rem;
    margin: 0 auto;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: #fff;
    background: rgb(10, 47, 69);
    text-align: center;
}

.site-footer p {
    margin: 0.25rem 0;
}

.event-photo {
    height: 14rem;
    object-fit: cover;
}

.member-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 25%;
}

.member-photo-preview,
.admin-member-photo {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.375rem;
}

.admin-event-photo {
    width: 5rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.25rem;
}

.admin-gallery-photo {
    width: 5rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.25rem;
}

.gallery-photo {
    height: 16rem;
    object-fit: cover;
}

.gallery-photo-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #111;
    text-align: left;
    cursor: zoom-in;
}

.gallery-photo-button:focus-visible {
    outline: 0.2rem solid #0d6efd;
    outline-offset: 0.15rem;
}

.gallery-photo-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.75rem 1rem;
    color: #fff;
    background: rgb(0 0 0 / 72%);
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.gallery-photo-button:hover .gallery-photo-caption,
.gallery-photo-button:focus-visible .gallery-photo-caption {
    opacity: 1;
}

.gallery-lightbox {
    position: relative;
    max-width: 96vw;
    max-height: 94vh;
    padding: 2.5rem 1rem 1rem;
    overflow: auto;
    color: #fff;
    background: #111;
    border: 0;
    border-radius: 0.375rem;
}

.gallery-lightbox::backdrop {
    background: rgb(0 0 0 / 85%);
}

.gallery-lightbox-close {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    z-index: 1;
    padding: 0 0.5rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1.25;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.gallery-lightbox-figure {
    position: relative;
    margin: 0;
}

.gallery-lightbox-image {
    display: block;
    max-width: calc(96vw - 2rem);
    max-height: calc(94vh - 4rem);
    object-fit: contain;
}

.gallery-lightbox-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.75rem 1rem;
    color: #fff;
    background: rgb(0 0 0 / 72%);
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.gallery-lightbox-figure:hover .gallery-lightbox-caption,
.gallery-lightbox-figure:focus-within .gallery-lightbox-caption {
    opacity: 1;
}

.gallery-folder {
    color: inherit;
    transition: box-shadow 0.15s ease-in-out;
}

.gallery-folder:hover,
.gallery-folder:focus-visible {
    box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 15%);
}

.front-page-photo {
    text-align: center;
}

.front-page-photo img {
    display: block;
    width: min(100%, 56rem);
    max-height: 32rem;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 0.375rem;
}

.join-section {
    padding: 2rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.join-section h2 {
    margin-bottom: 1rem;
}

.site-header {
    background: rgb(10, 47, 69);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 600;
}

.site-brand:hover,
.site-brand:focus {
    color: #fff;
}

.site-crest {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.site-menu-button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.site-menu-button:hover,
.site-menu-button:focus {
    color: rgb(10, 47, 69);
    background: #fff;
    border-color: #fff;
}

.tune-contents {
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.tune-category {
    scroll-margin-top: 1rem;
}

.tune-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto 14rem;
    align-items: center;
    gap: 0.75rem;
}

.tune-audio {
    width: 100%;
    min-width: 0;
    max-width: 14rem;
}

.tune-audio-unavailable {
    opacity: 0.45;
}

.tune-audio-unavailable audio {
    width: 100%;
    pointer-events: none;
}

.inquiry-details {
    white-space: pre-wrap;
    font: inherit;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 4.5rem;
    }

    .mobile-contact-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #0a2f45;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.18);
    }

    .mobile-contact-bar a {
        min-height: 3.5rem;
        padding: 0.75rem 0.25rem;
        color: #fff;
        font-size: 0.875rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    .mobile-contact-bar a:focus,
    .mobile-contact-bar a:hover {
        background: #164f6d;
    }

    .tune-row {
        grid-template-columns: 1fr;
    }

    .tune-audio {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}
