/* style.css */

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #000;
    color: #fff;
}

/* Navigation */
nav {
    padding: 2rem;
    position: absolute;
    width: calc(100% - 4rem);
    top: 0;
    z-index: 1000;
    background: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 6rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    margin-bottom: 1rem;
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.location-label {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 1rem;
    font-weight: 300;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    padding: 6rem 0 2rem;
    letter-spacing: 3px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.pagination a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #fff;
    color: #000;
}

/* Hero Section */
.hero {
    height: 20vh;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    margin-top: 4rem;
}

/* Article/Post Styles */
.post {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    color: #333;
}

.post-content h4 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.author {
    display: flex;
    align-items: center;
}

.author::before {
    content: "•";
    margin: 0 0.5rem;
}

.timestamp {
    display: flex;
    align-items: center;
    color: #757575;
    font-size: 0.9rem;
}

.timestamp::before {
    content: "•";
    margin: 0 0.5rem;
}

/* Map Styles */
.map-container {
    height: 50vh;
    width: 90%;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

#map {
    height: 100%;
    width: 100%;
}

/* Location Page Photo Grid */
.masonry-grid {
    columns: 3;
    column-gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.02);
}

/* Content Sections */
.content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        columns: 1;
    }
}

/* Gallery Container */
.gallery-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Expand Button for Articles */
.expand-btn {
    display: block;
    width: 100%;
    padding: 0.25rem;
    margin-top: 0.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: color 0.3s ease;
}

.expand-btn:hover {
    color: #ccc;
}

.post-content.preview {
    max-height: 300px;
    position: relative;
    overflow: hidden;
}

.post-content.preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.post-content.expanded {
    max-height: none;
}

/* Dark theme for posts */
.content .post {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.content .post h3,
.content .post h4 {
    color: #fff;
}

.content .post-meta {
    color: rgba(255, 255, 255, 0.7);
}

.location-title {
    text-align: center;
    color: #fff;
    margin-top: 6rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 300;
}

.large-photo-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.large-photo-item {
    margin-bottom: 4rem;
}

.large-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.large-photo-item:hover img {
    transform: scale(1.02);
}

.large-photo-grid .location-label {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-top: 1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Lightbox styles */
.lightbox {
    /* The lightbox container takes up the full screen */
    display: none;                /* Hidden by default */
    position: fixed;             /* Sits on top of the page */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0); /* Will fade in */
    padding: 2rem;               /* Some padding around images */
    box-sizing: border-box;      /* So padding doesn't overflow */
    cursor: default;
    opacity: 0;                  /* Transition from transparent */
    overflow-y: auto;            /* Allows scrolling if image is tall */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    /* We'll center content later when active */
}

.lightbox.active {
    display: flex;                           /* Switch to flex layout */
    justify-content: center;                 /* Center horizontally */
    align-items: center;                     /* Center vertically */
    background-color: rgba(0, 0, 0, 0.9);    /* Dark overlay */
    opacity: 1;                              /* Fully opaque now */
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;    /* Ensures there's some space above/below */
    object-fit: contain; /* Keeps image proportions */
    transform: scale(0.95);
    opacity: 0;
    cursor: default;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
    opacity: 1;
}

/* Photo hover effect */
.photo-item img {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-item img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
