
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.2s linear;
}

.title-container {
    text-align: left;
    padding: 2rem 5%;
}

.title-container h1 {
    color: #333;
    font-size: 3.0rem;
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 0.5rem;
}

.title-container .subtitle {
    color: #666;
    font-size: 1.2rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    margin-top: 0;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .title-container {
        max-width: 75%;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 50px;
    right: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    opacity: 0.5;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #171717;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover .bar {
    background-color: #555;
}

.hamburger-menu.white {
    background-color: white;
}

@keyframes propagate {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.propagate-animation {
    animation: propagate 0.3s ease-out forwards;
}

@media (max-width: 767px) {
    .hamburger-menu {
        top: 20px;
        right: 20px;
    }
}

/* Modal Menu Styles */
.modal-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    transition: background-color 0.5s ease;

}

.menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.menu-content a {
    font-size: 2.0rem;
    font-family: 'Josefin Sans', sans-serif;
    display: block;
    margin-bottom: 80px;
    color: #fff;
    text-decoration: none;
}

.menu-content a:hover {
    text-decoration: underline;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
/* ---------- Submenu (hamburger modal) ---------- */
.menu-item.has-submenu {
    margin-bottom: 60px;
}

.submenu-toggle {
    font-size: 2rem;
    font-family: 'Josefin Sans', sans-serif;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.submenu-toggle:hover {
    text-decoration: underline;
}

.caret {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.submenu {
    margin-top: 20px;
}

.submenu a {
    font-size: 1.6rem;
    display: block;
    margin: 16px 0;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.submenu a:hover {
    text-decoration: underline;
}

/* rotate caret when expanded */
.submenu-toggle[aria-expanded="true"] .caret {
    transform: rotate(90deg);
}

/* top  button */
#backToTop {
    position: fixed;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(17,17,17,0.85);
    color: #fff;
    font: 600 12px/48px 'Josefin Sans', sans-serif;
    text-align: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 50;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#backToTop:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* IMAGES */
.container {
    padding: 2rem 5%;
}

.container .image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 10px;
    grid-auto-flow: dense;
}

.container .image-container img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 0.7rem;
    opacity: 0;
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

.container .image-container img.horizontal {
    grid-column: span 1; /* span 2 columns */
    grid-row: span 1; /* Take up 1 row */
    aspect-ratio: 16/9; /* aspect ratio*/
}

.container .image-container img.vertical {
    grid-column: span 1; /* Span 1 column */
    grid-row: span 3; /* Vertical images span more rows */
    aspect-ratio: 9/16; /* aspect ratio*/
}

.container .image-container img.fade-in {
    opacity: 1;
}

.container .image-container img:hover {
    transform: scale(1.015);
}

@media (max-width: 767px) {
    .container .image-container {
        columns: 1;
    }
}

/* FOOTER */
.footer-container {
    background-color: #fff;
    color: #151414;
    text-align: center;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    font-family: 'Josefin Sans', sans-serif;
}

.footer-container .copyright-container,
.footer-container .email-container,
.footer-container .instagram-container,
.footer-container .vsco-container{
    margin-top: 10px;
}
.footer-container .email-container img {
    margin-top: -8px;
    margin-left: 10px;
    width: 30px;
}
.footer-container .instagram-container img {
    margin-top: -8px;
    margin-left: 10px;
    width: 30px;
}
.footer-container .vsco-container img {
    margin-top: -8px;
    margin-left: 10px;
    width: 30px;
}


.footer-container a {
    text-decoration: none;
    color: #000;
}

.footer-container a:hover {
    text-decoration: underline;
}


/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox .text-container {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    text-align: center;
    background-color: black;
    padding: 10px;
    border-radius: 5px;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.lightbox:target {
    display: flex;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 65px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

@media (max-width: 767px) {
    .lightbox .text-container {
        text-align: left;
        padding: 5px;
        font-size: 0.75rem;
    }

    .lightbox .close {
        right: 20px;
        top: 30px;
        font-size: 2rem;
    }
}

/* Masonry - try to keep bottom flush*/
.image-container.masonry {
    display: flex;
    align-items: flex-start;
    gap: 24px;                 /* current gap */
}
.image-container .masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;                 /* vertical gap between images */
}
/* fill column width */
.image-container .masonry-col img {
    width: 100%;
    height: auto;
    display: block;
}
