a {
    color: black;
    text-decoration: none;
}

nav div {
    padding: 0 !important;
    margin-left: 5px !important;
}

/* styles the hero image and navbar */

:root {
    --image: url(images/paintings/architectonics_ii/hotelmac1.jpg);
    --height: 75vh;
}



.heroimage {
    height: var(--height);
    background-image: var(--image);
    background-size: cover;
    background-position: center top;
    /* horizontally center, fix to top vertically */
    background-repeat: no-repeat;
    background-attachment: local;
}

#heromenu {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 15vh;
    text-align: center;
    background-image: var(--image);
    background-size: cover;
    background-position: center calc(-1 * var(--height));
    /* horizontally center, shift start of top by the height of .heroimage */
    background-repeat: no-repeat;

}

#heromenu A {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: helvetica, 'inter', sans-serif;
}

.nav-link.active {
    font-weight: bold;
}

.gallery-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item.hide {
    display: none;
}

/*styles the gallery captions*/
.lightbox-caption {
    margin: 5px 42% 0 42%;
    font-family: helvetica, 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.8rem;
}

.img-hover:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.masonry-container {
    column-count: 3;
    column-gap: 16px;
    width: 100%;
}

img {
    max-width: 100%;
}

.bio-pic {
    max-width: 60%;
    margin: auto;
}

.masonry-item {
    max-width: 100%;
    margin-bottom: 16px;
    break-inside: avoid;
    align-content: center;
}


.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black !important;
    opacity: 1 !important;
    z-index: 1040;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1050;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: helvetica, 'Inter', sans-serif;
}

.body {
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    padding-bottom: 15px;
}

figcaption {
    margin: 0 40%;
}

figcaption h3 {
    font-size: 1.2rem;
    font-style: italic;
}

.logo {
    width: 246px;
    height: 30px;
    margin-left: 40px;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 48px;
    margin: 48px;
}

.grid-item {
    display: flex;
}

.grid-item img {
    width: 100%;
    height: auto;
}

.item-1-contact {
    display: block;
}

.item-2-index {
    display: block;
}

.item-2-bio {
    display: block;
}

.bio-container {
    margin: 48px;
}

.navbar-header img {
    max-height: 100%;
    width: auto;
    align-items: start;
}

/* Styles the footer*/
/* Desktop default: Displays items side-by-side in a row */
.footer-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.social-links {
    margin: 30px 0 30px 0;
    gap: 30px;
}


/* Styles the contact form*/
.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

/* centers the submit button */
.button-container {
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

button {
    background-color: #000000;
    max-height: 60px;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

button a {
    color: white;
    text-decoration: none;
}

button:hover {
    background-color: #292929;
}


/* changes hero background image to portrait orientation on mobile */
@media screen and (max-width: 768px) {
    :root {
        --image: url(images/paintings/architectonics_i/bridge_15.jpg);
        --height: 75vh;

        /* Mobile responsive: Switches to a single vertical column below 768px */
        .masonry-container {
            column-count: 1;
        }

        .footer-container {
            flex-direction: column;
        }
        .navbar-collapse {
            background-color: black;

        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
        }

        .grid-container-bio {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
        }


        .custom-dropup .container-fluid {
            position: relative;
        }

        .custom-dropup .navbar-collapse.show,
        .custom-dropup .navbar-collapse.collapsing {
            position: absolute;
            bottom: 100%;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.95);
            padding: 15px;
            z-index: 1050;
        }


        .custom-dropup .navbar-nav {
            display: flex;
            flex-direction: column-reverse;
        }

        .masonry-container {
            column-count: 2;
        }
    }

