/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Century Schoolbook', Georgia, serif;
    background-color: #faf7f7;
    color: #503939;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

header h1 {
    font-size: 1.5em;
    font-weight: normal;
    margin: 0;
    letter-spacing: 2px;
    color: #503939;
}

header h1 a {
    color: #503939;
    text-decoration: none;
    cursor: pointer;
}

header h1 a:hover,
header h1 a:active,
header h1 a:visited,
header h1 a:focus {
    color: #503939;
    text-decoration: none;
}

/* Footer */
footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

footer a {
    font-family: 'Century Schoolbook', Georgia, serif;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #503939;
    text-decoration: none;
}

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

footer a:visited,
footer a:active,
footer a:focus {
    color: #503939;
    text-decoration: none;
}

/* Navigation - Top Left */
.nav-left {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.nav-left a {
    font-family: 'Century Schoolbook', Georgia, serif;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #503939;
    text-decoration: none;
}

.nav-left a:hover {
    text-decoration: underline;
}

.nav-left a:visited,
.nav-left a:active,
.nav-left a:focus {
    color: #503939;
    text-decoration: none;
}

/* Navigation - Top Right */
.nav-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.nav-right a {
    font-family: 'Century Schoolbook', Georgia, serif;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #503939;
    text-decoration: none;
}

.nav-right a:hover {
    text-decoration: underline;
}

.nav-right a:visited,
.nav-right a:active,
.nav-right a:focus {
    color: #503939;
    text-decoration: none;
}

/* Info Link - Bottom Left */
.info-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    cursor: pointer;
}

.info-link a {
    font-family: 'Century Schoolbook', Georgia, serif;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #503939;
    text-decoration: none;
}

.info-link a:hover {
    text-decoration: underline;
}

/* Info Overlay */
.info-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.info-overlay.active {
    display: flex;
}

.info-content {
    font-family: 'Century Schoolbook', Georgia, serif;
    font-size: 1.2em;
    font-weight: normal;
    letter-spacing: 2px;
    color: #503939;
    text-align: center;
    cursor: pointer;
}

/* Single Photo Page */
.single-photo {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.single-photo img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gallery - Full Screen Vertical Scroll */
#gallery {
    margin-top: 0;
    padding: 0;
}

.gallery-item {
    width: 100%;
    height: 100vh;
    background: #faf7f7;
}

.gallery-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* Responsive Design */
@media (max-width: 768px) {
    body {
        line-height: 0;
    }

    header h1 {
        font-size: 1.2em;
        line-height: 1.6;
    }

    header {
        top: 15px;
    }

    footer a {
        line-height: 1.6;
    }

    #gallery {
        line-height: 0;
    }

    .gallery-item {
        height: auto;
        min-height: auto;
        background: #faf7f7;
        margin: 0 0 -4px 0;
        padding: 0;
        line-height: 0;
        display: block;
        font-size: 0;
    }

    .gallery-item img {
        object-fit: contain;
        height: auto;
        width: 100%;
        max-height: 80vh;
        display: block;
        margin: 0;
        padding: 0;
        vertical-align: bottom;
    }

    .single-photo {
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .single-photo img {
        object-fit: contain;
        height: auto;
        width: 100%;
        max-height: 80vh;
    }
}
