/* BASE STYLES */
body {
    background-color: #000;
    color: #fff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    box-sizing: border-box;
}

h1, h2 {
    margin-top: 0;
    margin-bottom: 0;
}

a {
  text-decoration: none;
}

.main-container {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-grow: 1;
    padding-bottom: 50px;
    align-items: flex-start;
}

/* STICKY NAV */
.left-column {
    flex-basis: 33.33%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 0;
    height: 90vh;
    padding-right: 20px;
    box-sizing: border-box;
}

.left-content {
    width: 75%;
    margin-top: 14vh;
}

.left-content h1, .left-content h2 {
    margin: 0;
}

.description-text {
    color: #ddd;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* LEFT NAV LINKS */
.left-content nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 10px 0;
    padding: 5px 0px;
    transition: color 0.3s;
}

.left-content nav a:hover {
    color: #b3ff00;
}

.left-content nav a.active {
    color: #b3ff00;
    font-weight: bold;
}

/* RIGHT CONTENT SECTION */
.right-column-wrapper {
    flex-basis: 66.66%;
    flex-grow: 1;
    margin-top: 16.5vh;
    padding-left: 20px; 
    box-sizing: border-box;
    position: relative;
}

.right-column-wrapper h2 {
    margin: 0 0 8px 0;
}

/* SPLASH IMAGE STYLES */
.home-image-container {
    width: 100%;
    line-height: 0;
}

.home-image-container img {
    display: block;
    width: 100%;
    margin-top: .5vh;
    height: auto;
    object-fit: cover;
}

.content-section {
    padding: 32px 0;
}

.content-section p, 
.right-column-wrapper p {
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* RECENT */
.timeline {
    position: relative;
    padding: 2px 0 0px 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #444;
}

/* for leaving site */
.timeline-item-link {
    position: relative;
    display: block;
    margin-bottom: 30px;
    padding: 0 0 0 20px;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.timeline-item-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #b3ff00;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item-link:hover::before {
    transform: scale(1.4);
    box-shadow: 0 0 10px #b3ff00;
}

.timeline-date {
    color: #ccc;
}

/* POPUP GALLERY */
#columnPopup {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    cursor: pointer;
}

#columnPopup img,
#columnPopup video { 
    max-width: 90%; 
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    object-fit: contain;
    opacity: 1; 
    transition: opacity 0.3s ease;
    cursor: default; 
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    z-index: 10000;
}

/* MULTI IMAGE BUTTONS */
#prevBtn { left: 30px; }
#nextBtn { right: 30px; }

.gallery-btn:hover {
    color: #b3ff00;
}

/* VISUALS GRID */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 5px; 
    margin: 0 0 0 auto; 
    width: 100%;
    max-width: 800px; 
}

.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* IMG HOVER BLUR */
.grid-item:hover img,
.grid-item:hover video {
    filter: blur(4px) brightness(0.7);
    transform: scale(1.03);
}

/* IMG HOVER TEXT (alt text display) */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; /**/
    max-width: 75%; /**/
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.grid-item:hover .overlay-text {
    opacity: 1;
}

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

.lightbox-content {
    display: block;
    max-width: 80%; 
    max-height: 80vh;
    object-fit: contain;
}

/* BLOG SYSTEM */
.post-date {
    color: #aaa;
    margin-top: 0;
}

.post-title {
    margin-bottom: 5px;
    color: #ffffff !important;
}

.post-title b {
    color: #ffffff !important;
}

.post-body {
    color: #ddd;
    line-height: 1.0;
}

.post-item {
    margin-bottom: 05px;
}

/* BLOG BUTTONS */
.read-more-btn,
#back-to-blog {
    color: #b3ff00; /* IS THIS IN USE */
    text-decoration: ;
    cursor: pointer;
}

/* BLOG STATUS */
.blog-status-msg {
    color: #aaa;
}

.blog-error-msg {
    color: #ff6b6b;
}

/* OVERLAY + MEDIA */
.popup-media {
    max-width: 100%;
    max-height: 100%;
}

/* MOBILE RESPONSIVE STYLES */
@media screen and (max-width: 768px) {
    .main-container {
        width: 90%;
        flex-direction: column;
        padding-bottom: 12px;
    }

    .left-column {
        flex-basis: auto;
        width: 100%;
        height: auto;
        position: relative;
        padding-right: 0;
        margin-bottom: 8px;
    }

    .left-content {
        width: 100%;
        margin-top: 40px;
    }
    
    .grid-container {
        grid-template-columns: 1fr; 
        gap: 10px; 
        margin: 0;
        max-width: 100%;
    }
    
    .left-content nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
    }

    .left-content nav a {
        display: inline-block;
        margin: 0;
        padding: 5px 0;
    }

    .right-column-wrapper {
        flex-basis: auto;
        width: 100%;
        margin-top: 0;
        padding-left: 0;
    }

    .home-image-container img {
        margin-top: 0;
    }

    .timeline {
        padding-left: 20px;
    }

    #prevBtn { left: 10px; }
    #nextBtn { right: 10px; }
    .gallery-btn {
        padding: 10px;
        background: rgba(0,0,0,0.5);
        border-radius: 5px;
    }
}
