/* Specific styling for in-memoriam pages */

.memorial-page main {
    padding: 10px 30px 30px 30px;
    margin-top: 5px;
}

.memorial-page main h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.memorial-page main h2 {
    margin-top: 5px;
}

.memorial-gallery {
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
}
figure {
    margin: 0;
    position: relative;
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Custom style for h3 in navigation groups */
.memorial-page aside nav .nav-heading {
    font-size: 1rem !important;
    font-weight: normal !important;
    margin: 0.5rem 0 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--text-color) !important;
    font-family: inherit !important;
}

/* For smaller screens - 1 column */
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Optional: Further reduce header spacing */
header {
    margin-bottom: 0; /* Remove any bottom margin */
    height: 3rem; /* set the height of the header to 3 times the root font size */
}

header nav {
    padding-top: 0px; /* Reduce top padding if needed */
    padding-bottom: 0px; /* Reduce bottom padding if needed */
}
