* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: #18324a;
    background: #f5f7f8;
    font:
        16px/1.6 system-ui,
        -apple-system,
        Segoe UI,
        sans-serif;
}
header {
    background: #123b56;
    color: #fff;
    padding: 1.2rem 5vw;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.brand {
    font:
        700 1.6rem Georgia,
        serif;
    color: #fff;
    text-decoration: none;
}
nav ul {
    display: flex;
    gap: 0.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
nav a {
    color: #d9eef8;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}
nav a:hover,
nav a.active {
    background: #2c6d8f;
    color: #fff;
}
main {
    max-width: 1180px;
    margin: 2rem auto;
    padding: 0 1.2rem;
    background: #fff;
    min-height: 65vh;
}
main > p:first-child {
    margin-top: 0;
}
h1,
h2,
h3 {
    font-family: Georgia, serif;
    color: #123b56;
}
h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #dce8ed;
    padding-bottom: 0.5rem;
}
a {
    color: #17658b;
}
img {
    max-width: 100%;
    height: auto;
}
.float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 48%;
}
.vessel-listing,
.photos-listing {
    list-style: none;
    padding: 0.45rem 0.7rem;
    margin: 0.25rem 0;
    background: #edf4f7;
}
.vessel-listing a,
.photos-listing a {
    font-weight: 600;
}
.salties-photo {
    display: inline-block;
    vertical-align: top;
    width: 31%;
    margin: 1%;
}
.salties-photo img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.photo-title {
    font-weight: 700;
}
.photo-details {
    font-size: 0.9rem;
    color: #607382;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
}
th,
td {
    border: 1px solid #c7d5dc;
    padding: 0.4rem 0.55rem;
    text-align: left;
}
th {
    background: #e5eff3;
}
.countries {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.countries abbr {
    border: 1px solid #c7d5dc;
    padding: 0.15rem 0.35rem;
}
footer {
    background: #e8eff2;
    text-align: center;
    padding: 1.5rem 1.5rem 2rem;
    color: #526b79;
    font-size: 0.9rem;
}
.notice {
    padding: 1rem;
    background: #fff5d6;
    border-left: 4px solid #d6a400;
}
@media (max-width: 700px) {
    .salties-photo {
        width: 47%;
    }
    .float-left {
        float: none;
        max-width: 100%;
        margin-right: 0;
    }
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.contact-form {
    max-width: 720px;
    margin: 1.5rem 0 2rem;
}
.form-field {
    margin: 1rem 0;
}
.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #9db4c0;
    border-radius: 4px;
    padding: 0.7rem;
    font: inherit;
    color: #18324a;
    background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: 3px solid #b9d9e8;
    border-color: #17658b;
}
.form-field .has-error {
    border-color: #b42318;
}
.field-error {
    min-height: 1.5em;
    margin: 0.25rem 0 0;
    color: #b42318;
    font-size: 0.92rem;
}
.form-status {
    min-height: 1.5em;
    color: #315b6d;
}
.contact-form button {
    border: 0;
    border-radius: 4px;
    padding: 0.7rem 1.15rem;
    background: #17658b;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.contact-form button:hover,
.contact-form button:focus {
    background: #123b56;
}
.response-time {
    padding: 0.8rem 1rem;
    background: #edf4f7;
    border-left: 4px solid #2c6d8f;
}
.letter-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.6rem;
    padding: 0;
    list-style: none;
}
.letter-index li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.65rem 0.8rem;
    background: #edf4f7;
    border: 1px solid #d5e2e7;
}
.letter-index li a {
    font-size: 1.2rem;
    font-weight: 700;
}
.letter-index li span {
    font-size: 0.85rem;
    color: #607382;
}
.vessel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.7rem;
    list-style: none;
    padding: 0;
}
.vessel-card {
    padding: 0.8rem 1rem;
    background: #edf4f7;
    border-left: 4px solid #2c6d8f;
}
.vessel-card h2 {
    font-size: 1.1rem;
    margin: 0.1rem 0;
}
.vessel-card p {
    margin: 0.1rem 0;
    color: #607382;
    font-size: 0.9rem;
}
.breadcrumb {
    color: #607382;
}
.vessel-facts {
    display: table;
    max-width: 42rem;
}
.related-links {
    margin: 2rem 0;
}
.vessel-list li {
    margin: 0.35rem 0;
}
.home-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 0 0 1.5rem;
}
.home-feature > a {
    flex: 0 0 42%;
    display: block;
}
.home-feature > a img {
    display: block;
    width: 100%;
    height: auto;
}
.home-feature > div {
    flex: 1;
    min-width: 0;
}
@media (max-width: 700px) {
    .home-feature {
        display: block;
        margin-bottom: 1.5rem;
    }
    .home-feature > a {
        margin-bottom: 1rem;
    }
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.86);
    cursor: zoom-out;
}
.lightbox img {
    max-width: 96vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #123b56;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    background: #2c6d8f;
    outline: 3px solid #b9d9e8;
    outline-offset: 2px;
}
.photo-credit {
    display: block;
    font-size: 0.85rem;
    color: #607382;
    margin-top: 0.15rem;
}
.home-feature > .home-photo {
    flex: 0 0 42%;
    margin: 0;
}
.home-feature > .home-photo > a {
    display: block;
}
.home-feature > .home-photo > a img {
    display: block;
    width: 100%;
    height: auto;
}
@media (max-width: 700px) {
    .home-feature > .home-photo {
        margin-bottom: 1rem;
    }
}
/* Responsive quality pass */
html {
    overflow-x: hidden;
}
header {
    min-width: 0;
}
header .brand {
    flex: 0 1 auto;
    min-width: 0;
}
nav {
    min-width: 0;
}
nav ul {
    align-items: center;
}
main {
    overflow-wrap: anywhere;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}
.salties-photo {
    display: block;
    width: auto;
    margin: 0;
}
.salties-photo a {
    display: block;
}
.salties-photo img {
    display: block;
    width: 100%;
}
footer p:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0;
}
footer p:last-child a {
    white-space: nowrap;
}
.form-field input,
.form-field textarea,
.contact-form button {
    min-height: 2.75rem;
}
.lightbox {
    overflow: auto;
    padding: 4rem 1rem 1rem;
}
.lightbox-close {
    z-index: 1;
    min-width: 2.75rem;
    min-height: 2.75rem;
}
.lightbox img {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 5rem);
}
@media (max-width: 700px) {
    header {
        padding: 0.9rem 4vw;
        gap: 1rem;
    }
    .brand {
        font-size: clamp(1.25rem, 7vw, 1.6rem);
    }
    nav ul {
        gap: 0.35rem;
    }
    nav a {
        padding: 0.55rem 0.65rem;
    }
    .letter-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vessel-list {
        grid-template-columns: 1fr;
    }
    main {
        margin: 1rem auto;
        padding: 0 0.9rem;
    }
    h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }
    .lightbox {
        padding-top: 4.5rem;
    }
}
@media (min-width: 701px) and (max-width: 1000px) {
    main {
        margin: 1.5rem auto;
    }
    .vessel-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
