/* General Reset */
@charset "utf-8";
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;

}
h1 {
    margin: 20px 0;
    font-size: 1.5rem;
    text-align: center;
}

/* Header Styles */
header {
    background-color: #001f3f;
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: relative;
    min-height: 100px;
    position: relative; /* Ensure the header is properly positioned */
}
header img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: inline-block;
    float: left;
    margin-right: 10px;
    border: 2px solid #fff;
    border-radius: 5px;
}
header h1 {
    margin: 0;
    font-size: 2rem;
}
.menu-toggle {
    display: none;
    background-color: #001f3f;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.menu-toggle:focus {
    outline: none;
}

/* Navigation Styles */
nav {
    margin-top: 0.5rem;
}
.nav-links {
    display: flex;
    justify-content: center;
    flex-direction: row;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}
nav a:hover {
    text-decoration: underline;
}
nav a.active {
    font-weight: bold;
    color: #fff;
}

/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 15px;
}
.gallery-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    background-color: #E3F2FD;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.gallery-item img {
    width: calc(100% - 10px);
    height: auto;
    display: block;
    margin: 5px;
    border-radius: 10px;
}

/* Modal and content structure */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Base layer */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    background-color: transparent;
    border: none;
    height: 100%;
    text-align: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 80vh;
    margin: 3% auto;
    border-radius: 15px;
}

.modal-filename {
    margin-top: 10px;
    color: white;
    font-weight: bold;
}
/* Ensure modal navigation elements are always on top */
.close, .prev, .next {
    color: #fff;
    position: absolute;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 3000; /* Ensure elements are above modal content */
    transform: translateY(-50%); /* Center vertically */
}

.close {
    top: 40px; /* Keep close button at the top */
    right: 30px;
    font-size: 30px;
}

.prev {
    left: 10px; /* Position on the left */
    top: 50%; /* Center vertically */
}

.next {
    right: 10px; /* Position on the right */
    top: 50%; /* Center vertically */
}

.close:hover, .prev:hover, .next:hover {
    background-color: #000; /* Darker hover effect */
}

/* Search Input */
#searchInput {
    margin-bottom: 20px;
    padding: 10px;
    width: 80%;
    max-width: 600px;
}
.no-images-message {
    font-size: 1.5rem;
    color: #666;
    margin-top: 20px;
}

/* Typography */
.yacht-name-title,
.yacht-name,
.yacht-name-bold {
    font-family: "Cinzel Decorative", serif;
    color: #003366;
    font-style: italic;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.yacht-name-title {
    font-family: "Cinzel Decorative", serif;
    color: #003366;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 5rem);
    text-align: center;
    clear: both; /* Ensure it clears floated elements */
    margin: 20px auto; /* Centering the element */
    display: block; /* Explicitly make it a block element */
}

.yacht-name-bold {
    font-weight: 700;
}

/* Specifications Box */
.spec-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 20px;
}
.spec-box {
    border: 2px solid #ddd;
    border-radius: 10px;

    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
ul.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
ul.spec-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
ul.spec-list li:last-child {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        text-align: left;
        margin-left: 100px;
        padding-left: 10px;
    }
    header img {
        max-width: 120px;
        margin-right: 5px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #001f3f;
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        z-index: 10;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        text-align: left;
        padding: 0.5rem;
    }
    .fullscreen {
        display: none;
    }
    .gallery-container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .close {
        font-size: 28px;
        padding: 20px;
    z-index: 2000;
    }
}
