body {
    margin: 0;
    background-image: url('../img/body.jpg');
    display: flex;
    background-repeat: no-repeat;
    background-color: #000000;
    background-position: center top;
    background-size: 100% auto;
    flex-direction: column;
    align-items: center;
}

@font-face {
    font-family: 'Georgia';
    src: url(font/Georgia-Regular.ttf);
}

@font-face {
    font-family: 'Lucida Grande';
    src: url(font/LucidaGrande-Regular.ttf);
}

@font-face {
    font-family: 'Trajan Pro';
    src: url(font/TrajanPro-Regular.otf);
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.banner {
    display: flex;
    background-color: #89745b;
    background-repeat: repeat-x;
    background-image: url('../img/banner_bg.jpg');
    background-size: 1100px;
    width: 100%;
    justify-content: center;
}

#topnav-current {
    background-color: #f4eee5;
    color: #433529;
}

.topnav {
    background-color: #544433;
    position: relative;
    z-index: 999;
    font-family: 'Trajan Pro', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #eee6dc;
    display: block;
    padding: 0px;
    justify-content: center;
    width: 100%;
}

@media (min-width: 887px) {
    .topnav {
        display: flex;
    }
}

@media (min-width: 1025px) {
}

.topnav a {
    display: flex;
    text-align: center;
    border-radius: 0;
    padding: 15px 8px;
    margin-left: 4px;
    margin-right: 4px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #eee6dc;
}

@media (min-width: 887px) {
    .topnav a {
        padding-top: 15px;
        padding-bottom: 12px;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
        margin-top: -3px;
        min-height: 81px;
    }
}

@media (min-width: 1033px) {
    .topnav a {
        display: block;
        padding-top: 15px;
        padding-bottom: 12px;
        min-height: 0px;
    }
}

main {
    display: block;
    font-family: 'Lucida Grande', sans-serif;
    font-size: 14px;
    padding: 12px;
    flex-basis: 0;
    flex-grow: 1;
    margin: 10px;
}

@media (min-width: 887px) {
    main {
        padding: 20px;
    }
}

footer {
    width: 100%;
    background-color: #191919;
    font-family: 'Lucida Grande', sans-serif;
    justify-content: center;
    display: grid;
    color: #d3d3d3;
    padding: 30px 0px;
    font-size: 12px;
}

@media (min-width: 887px) {
    footer {
        margin-top: 30px;
    }
}

.content-grid {
    background-color: #ffffff;
    width: 100%;
    display: block;
    box-shadow: 0 0 20px 0px #000000;
    flex-basis: 0;
    background-image: url('../img/bg_main.jpg');
    background-repeat: no-repeat;
}

@media (min-width: 887px) {
    .content-grid {
        width: 90%;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        max-width: 1100px;
        display: flex;
        box-shadow: 0 0 20px 0px #000000;
        flex-basis: 0;
    }
}

.footer-grid {
    max-width: 1100px;
    display: block;
}

@media (min-width: 887px) {
    .footer-grid {
        grid-template-columns: 3fr 1fr 1fr 1fr;
        display: grid;

        /* width: 90% */
    }
}

@media (min-width: 1025px) {
    .footer-grid {
    }
}

.sidenav {
    font-family: 'Lucida Grande', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    background-color: #7d6c51;
    background-image: url('../img/bg_sidenav.jpg');
    background-repeat: no-repeat;
    color: #FCFAF8;
}

@media (min-width: 887px) {
    .sidenav {
        width: 240px;
        margin: 10px;
    }
}

.sidenav a {
    color: #F6F1E9;
    text-decoration: none;
    display: block;
    display: flex;
    padding: 4px 5px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 8px rgba(255, 0, 0, 1);
}

.sidenav a:hover {
    background-color: #544433;
}

#sidenav-current {
    background-color: #544433;
}

footer a {
    color: #d3d3d3;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-top: 1px;
    padding-bottom: 1px;
}

h1 {
    font-family: 'Georgia', serif;
    font-variant: small-caps;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 20px;
}

p {
    line-height: 1.9;
    margin-top: 22px;
    margin-bottom: 22px;
    text-wrap: pretty;
}

.topnav a:hover {
    background-color: #f4eee5;
    color: #433529;
}

figcaption {
    text-align: center;
    font-family: 'Lucida Grande', sans-serif;
    text-wrap: balance;
}

figure {
    border-radius: 10px;
    padding: 20px;
    background-color: #f4eee5;
    margin-bottom: 20px;
    margin-top: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    min-width: 82%;
}

h2 {
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: normal;
    margin-top: 22px;
    margin-bottom: 22px;
    text-wrap: pretty;
}

section {
}

.fig-wrapper {
    display: flex;
    justify-content: center;
}

a {
    color: #726547;
    text-decoration-line: underline;
    text-decoration-color: rgba(114, 101, 71, 0.5);
}

.banner-img {
    max-width: 1100px;
}

.topnav-toggle-area {
    display: none;
}

@media (min-width: 887px) {
    .topnav-toggle-area {
        display: flex;
        margin-left: 20px;
        margin-right: 20px;
        justify-content: center;
    }
}

.topnav-hamburger[aria-expanded='true'] + .topnav-toggle-area {
    display: block;
}

.topnav-hamburger[aria-expanded='true'] {
    display: none;
}

.hero {
    border-radius: 10px;
    max-width: 1100px;
}

.topnav-hamburger {
    display: flex;
    color: inheret;
    position: fixed;
    top: 0;
    right: 0;
    margin: 10px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: rgba(84, 68, 51, 0.75);
    border-radius: 10%;
    justify-content: center;
    align-items: center;
    border-top: 1px none;
    border-right: 1px none;
    border-bottom: 1px none;
    border-left-style: none;
    padding: 18px;
}

@media (min-width: 887px) {
    .topnav-hamburger {
        display: none;
    }
}

.sidenav-img-container {
    margin-top: 40px;
    margin-bottom: 40px;
    display: none;
    width: 100%;
}

@media (min-width: 887px) {
    .sidenav-img-container {
        display: grid;
        row-gap: 20px;
    }
}

.footer-nav li {
}

.footer-title {
    font-weight: bold;
    color: #ffffff;
    padding-bottom: 2px;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.9;
    align-items: center;
}

.gallery-home-container {
    display: grid;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    grid-template-columns: 1fr 1fr;
}

.photo-wall-container {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

@media (min-width: 620px) {
    .photo-wall-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1033px) {
    .photo-wall-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) {
    .gallery-home-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.photo-wall-elem {
    display: flex;
    width: 100%;
    aspect-ratio: 1/1;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.27);
    border-radius: 6px;
    background-color: #3d3d3d;
}

.photo-wall-elem:hover {
    transition: transform .25s ease;
    transform: scale(103%);
    border-radius: 6px;
}

@media (min-width: 887px) {
}

.gallery-home-img:hover {
    transform: scale(102%, 102%);
    border-radius: 5px;
}

.gallery-home-label {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    font-size: 13px;
    align-items: flex-end;
    position: absolute;
}

.photo-wall-label {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    width: 100%;
    padding: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    font-size: 13px;
    align-items: flex-end;
    position: absolute;
}

.footer-logo {
    width: 100%;
}

.footer-logo-containter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 80%;
    max-width: 300px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.sidenav > ul {
}

.sidenav > ul ul {
    padding-left: 24px;
    list-style-position: outside;
    list-style-type: disc;
}

.topnav ul {
    align-items: center;
    position: fixed;
    background-color: #544433;
    top: 0;
    right: 0;
    padding: 100px 20px 20px;
    width: 100%;
    transition: transform 0.5s ease;
}

@media (min-width: 887px) {
    .topnav ul {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        position: static;
        padding: 0;
    }
}

@media (min-width: 1033px) {
    .topnav ul {
        display: flex;
    }
}

#topnav-toggle {
    display: none;
}

footer a:hover {
    color: #ffffff;
}

.footer-aoc {
    padding-right: 20px;
    padding-left: 20px;
}

.footer-nav {
    padding: 20px;
    line-height: 1.9;
}

.table-row-headers {
}

th {
    background-color: #f4eee5;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: top;
    font-weight: bold;
}

table {
    border-collapse: collapse;
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: left;
}

td {
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: top;
}

.table-col-headers {
}

.demo {
    color: #ff0000;
    font-style: italic;
    font-weight: bold;
}

.main-temp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure img {
    margin-bottom: 20px;
}

.placeholder {
    color: #0035ff;
    font-weight: bold;
    background-color: #18ff00;
}

.submit-circle {
    background-color: #7d6c51;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F6F1E9;
    margin-right: 20px;
    font-size: 26px;
    aspect-ratio: 1/1;
}

.submit-step {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

address {
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

a:hover {
    text-decoration-color: #726547;
}

.glossary dt {
    font-weight: bold;
}

.glossary {
    margin-top: 20px;
}

.glossary dd {
    margin-bottom: 20px;
}

.list-belligerents {
    display: grid;
    line-height: 1.9;
}

@media (min-width: 887px) {
    .list-belligerents {
        grid-template-columns: 1fr 1fr;
    }
}

.list-belligerents li ul li {
    list-style-type: disc;
    list-style-position: inside;
}

h3 {
    margin-top: 22px;
    margin-bottom: 22px;
}

.arrow {
    border: solid;
    border-color: #726547;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.nav-page {
    margin-top: 22px;
    margin-bottom: 22px;
    padding-left: 10px;
    padding-right: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-page-left {
    text-align: left;
}

.nav-page-right {
    text-align: right;
}

.roll-no-content {
    font-style: italic;
}

aside {
    font-style: italic;
    line-height: 1.9;
}

aside em {
    font-style: normal;
}

.table-survivors {
    display: grid;
}

.table-survivors tr {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    display: grid;
}

.roll-surname {
    text-transform: uppercase;
    display: contents;
}

.photo-wall-container a {
    text-decoration: none;
    color: #ffffff;
}

.table-sailor-content tr {
    grid-template-columns: 1fr 4fr;
    display: grid;
}

.photo-wall-elem:hover .photo-wall-label {
    display: flex;
}

a:focus .photo-wall-label {
    display: flex;
}

.gallery-grid img {
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
    height: 150px;
}

.gallery-grid-uneven {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: flex-start;
}

.gallery-grid a {
    overflow: hidden;
    line-height: 0;
    flex: 0 0 auto;
}

.gallery-grid a:hover img {
    transform: scale(1.04);
}

.timeline img {
    object-fit: cover;
    overflow: hidden;
}

.gallery-home-link {
    color: #ffffff;
    text-decoration: none;
}

.team-list dt {
    font-weight: bold;
    margin-top: 20px;
    font-variant: small-caps;
    text-transform: uppercase;
}

.nav-page-left a {
    display: grid;
    grid-template-columns: 6px 1fr;
    align-items: center;
    gap: 5px;
}

.nav-page-right a {
    display: grid;
    grid-template-columns: 1fr 6px;
    align-items: center;
    gap: 3px;
}

.post-meta {
    font-style: italic;
}

.post-index {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-index > li {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.post-index > li:last-child {
    border-bottom: none;

    /* optional */
}

.post-title {
    display: grid;
    align-items: center;
    gap: 12px;
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    grid-template-columns: 50px 1fr;
}

.post-icon {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.icon-doc {
    width: 50px;
    height: 50px;
    display: block;
}

.post-title a:hover,
.post-title a:focus {
    text-decoration: underline;
}

.post-meta {
}

.excerpt-note {
    font-style: italic;
}

.nav-page-hidden {
}

.list-paragraph {
    line-height: 1.9;
    list-style: bullet;
    list-style-type: disc;
    margin-left: 25px;
}

.list-paragraph li {
    list-style-position: outside;
}

.em-roman {
    font-style: normal;
}

figure table {
    margin-top: 0;
    width: 100%;
    text-align: center;
}

table caption {
    margin-bottom: 10px;
}

h4 {
    margin-top: 22px;
}

.table-personnel {
    width: 100%;
}

.table-personnel tr {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr;
}

.table-personnel tbody th {
    font-weight: normal;
    background: none;
}

.table-timeline tbody th {
    font-weight: normal;
    background: none;
}

.table-timeline tr {
    display: grid;
    grid-template-columns: 110px 1fr;
}

.table-timeline h3 {
    text-align: left;
}

.table-coords {
    text-align: center;
    min-width: 60%;
}

.table-coords tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.table-coords th {
    text-align: center;
}

.table-coords tbody th {
    font-weight: normal;
    background: none;
}

.table-dives tr {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
}

.table-dives tbody th {
    font-weight: normal;
    background: none;
}

.table-wrecksite tbody th {
    font-weight: normal;
    background: none;
}

.table-wrecksite tr {
    display: grid;
    grid-template-columns: 1fr 110px 110px;
}

.table-wreckdives tbody th {
    font-weight: normal;
    background: none;
}

.table-wreckdives tr {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
}

.poem {
    font-style: italic;
    text-align: center;
    margin-top: -22px;
    margin-bottom: -22px;
}

.roll-table th {
    background: none;
}

.gallery-home-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    background-color: #f4eee5;
    padding: 10px;
    border-radius: 6px;
    margin-top: -8px;
    box-shadow: 0 0 5px 0px #9e9e9e;
}

.gallery-home-container:hover {
    transform: scale(102%, 102%);
}

.book-details {
    display: grid;
    grid-template-columns: 1fr 4fr;
}

cite em {
    font-style: normal;
}

.gallery-grid {
    display: grid;
    flex-wrap: wrap;
    gap: 5px;
    align-items: flex-start;
    grid-template-columns: 1fr 1fr 1fr;
}

.list-numbered {
    list-style-type: decimal;
}

h5 {
    font-size: 14px;
    font-weight: normal;
    text-decoration: underline;
}

.inline-url {
}

.photo-wall-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 5px;
    object-fit: cover;
    object-position: center;
}

.footer-glenfield {
    width: 30px;
    height: 15px;
    display: inline;
}

.gallery-home-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

.img-submission-form {
    max-width: 620px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    background-color: #ffffff;
    padding: 10px;
}

.table-wrecksite {
    width: 100%;
}

.table-rov-target tr {
    display: grid;
    grid-template-columns: 2fr 7fr 3fr 3fr;
}

.table-timeline tbody tr {
    margin-bottom: 20px;
}

.table-volumes tr {
    display: grid;
    grid-template-columns: 100px 1fr;
}

.volume-heading {
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

.photo-wall-elem:active {
    transform: scale(1.0);
}

.footer-copyright a {
    /* white-space: nowrap */
    display: inline-flex;
}

li {
    text-wrap: pretty;
}

.policy-meta {
    font-style: italic;
    margin-top: 0;
    margin-bottom: 0;
}

.table-archival tbody th {
    background: none;
    font-weight: normal;
}

.table-archival tbody tr:nth-child(even) {
    background-color: #f9f6f2;
}

.table-retention tr {
    grid-template-columns: 4fr 2fr 3fr 3fr;
    display: grid;
}

p a,
table a,
aside a {
    padding-top: 2px;
    padding-bottom: 2px;
}

.table-survivors tfoot tr {
    grid-template-columns: 2fr 1fr 2fr;
    font-weight: bold;
}