/*-------------------------------------------------------▼▼▼ GENERAL RESET ▼▼▼-------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}

body {
    background: #efefef;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

/* Highlight for logo */
.highlight {
    background-color: #32ff00;
    color: #231f20;
    padding: 4px 9px;
}

/* Desktop Name Logic */
.responsivetext {
    white-space: nowrap;
}

.firstname { display: inline; }
.firstname2 { display: none; }
.surname { display: inline; }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.menu {
    font-size: 1rem;
    list-style: none;
    display: flex;
    gap: 20px;
    font-weight: 500;
}

.menu li a {
    text-decoration: none;
    color: #101720;
}

/*-------------------------------------------------------▼▼▼ MASONRY GRID LOGIC ▼▼▼-------------------------------------------------------*/
.gallery {
    padding: 20px 20px;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #282828;
    column-span: all; 
}

.grid, .latest-grid {
    display: block; 
    column-count: 4; 
    column-gap: 15px;
    width: 100%;
}

.thenow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.image-container {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    break-inside: avoid; 
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.image-container .caption {
    display: block;
    text-align: left;
    font-size: 14px;
    color: #231f20;
    margin-top: 10px;
}

/* Lightbox Styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    outline: #efefef solid 2px;
}

/*-------------------------------------------------------▼▼▼ GLASS MOBILE NAV ▼▼▼-------------------------------------------------------*/
.mobile-nav {
    display: none; /* Shown in media query */
    position: fixed;
    
    /* Floating Dock Position */
    bottom: 20px;
    left: 5%;
    width: 90%;
    height: 65px;
    z-index: 1000;

    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* Styling */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    justify-content: space-around;
    align-items: center;
}


.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #101720;
    font-size: 11px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-item img {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
}

/*-------------------------------------------------------▼▼▼ MOBILE MEDIA QUERY ▼▼▼-------------------------------------------------------*/
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 100px; /* Space for the floating dock */
    }

    .grid, .latest-grid, .thenow-grid {
        column-count: 2;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }
    
    .caption, .menu {
        display: none;
    }
    
    .gallery-title:first-of-type {
        margin-top: -5px;
    }
    
    nav {
        padding: 22px;
    }

    .firstname2 { display: inline; }
    .firstname, .surname { display: none; }

    .mobile-nav {
        display: flex;
    }
}