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

:root {
    --header-height: 70px;
    --footer-height: 70px;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fixed Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: #000;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 35px;
}

/* Watermark Logo */
.watermark {
    text-align: right;
    line-height: 1.3;
}

.watermark-name {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.watermark-tagline {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Fixed Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background-color: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caption */
.caption {
    text-align: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.caption.fading {
    opacity: 0;
}

.caption-location {
    display: block;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.caption-details {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

/* Gallery Container - between header and footer */
.gallery {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--footer-height);
    background-color: #000;
}

/* Individual Slides - Stacked */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 2.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Images - no Ken Burns, just clean display */
.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hover Zones for Arrows */
.hover-zone {
    position: fixed;
    top: var(--header-height);
    bottom: var(--footer-height);
    width: 120px;
    z-index: 50;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.hover-zone-left {
    left: 0;
    justify-content: flex-start;
    padding-left: 20px;
}

.hover-zone-right {
    right: 0;
    justify-content: flex-end;
    padding-right: 20px;
}

/* Arrows - only visible on hover zone hover */
.arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0);
    font-size: 3.5rem;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
    line-height: 1;
}

.hover-zone:hover .arrow {
    color: rgba(255, 255, 255, 0.5);
}

.arrow:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Placeholder Message */
.placeholder-msg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #666;
}

.placeholder-msg h2 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.placeholder-msg p {
    margin-bottom: 0.5rem;
}

.placeholder-msg code {
    background-color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --footer-height: 60px;
    }

    .header {
        padding: 0 20px;
    }

    .watermark-name {
        font-size: 0.9rem;
    }

    .watermark-tagline {
        font-size: 0.55rem;
    }

    .slide {
        padding: 15px;
    }

    .caption-location {
        font-size: 0.95rem;
    }

    .caption-details {
        font-size: 0.75rem;
    }

    .hover-zone {
        width: 80px;
    }

    .arrow {
        font-size: 2.5rem;
        padding: 15px;
    }
}

/* Touch devices - always show arrows */
@media (hover: none) {
    .arrow {
        color: rgba(255, 255, 255, 0.4);
    }
}
