* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
}

.logo i {
    font-size: 1.4rem;
    color: #2c3e50;
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 500;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #2c3e50;
    color: white;
}

main {
    padding-top: 60px; /* Height of header */
    min-height: 100vh;
}

.section-header {
    padding: 1rem 6rem;
    background: transparent;
}

.section-header h2 {
font-size: 1.5rem;
color: #2c3e50;
font-weight: 400;
}

.section-header p {
font-size: 0.9rem;
color: #666;
}

.gallery-grid {
    width: 90%;
    margin: 0 auto;
}

figure {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto 30px;
    width: 95%;
    max-width: 2000px;
}

figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

figure a {
    display: block;
    overflow: hidden;
    margin-bottom: 0;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

figure:hover img {
    transform: scale(1.05);
}

figcaption {
    padding: 15px;
    border-top: 3px solid #2c3e50; /* Thick border under the image */
    background: white;
    min-height: 60px;
    font-size: 16px;
    color: #2c3e50;
    text-align: left;
}


footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    background: white;
    margin-top: 2rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }

    .logo h1 {
        display: none;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }

    .gallery-grid {
        padding: 0.5rem;
    }

    figure {
        width: 100%;
    }
}

/* Maintain single column for panorama */
/* #panoramic .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem 2rem;
    max-width: 2000px;
    margin: 0 auto;
}

#panoramic figure {
    width: 100%;
    margin: 0;
} */

/* Grid layout for travel, cityscapes, and skateboarding */
#travel .gallery-grid,
#cityscapes .gallery-grid,
#skateboarding .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem 2rem;
    max-width: 2000px;
    margin: 0 auto;
}

#travel figure,
#cityscapes figure,
#skateboarding figure {
    width: 100%;
    margin: 0;
}

/* Responsive design for grid layouts */
@media (max-width: 1200px) {
    #travel .gallery-grid,
    #cityscapes .gallery-grid,
    #skateboarding .gallery-grid {
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    #travel .gallery-grid,
    #cityscapes .gallery-grid,
    #skateboarding .gallery-grid {
        grid-template-columns: 1fr; /* Switch to single column on mobile */
    }

    #travel figure,
    #cityscapes figure,
    #skateboarding figure {
        width: 95%;
        margin: 0 auto;
    }
}

.caption-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.caption-title {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

.caption-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}