:root {
    --primary-color: #E6B00F;
    --secondary-color: #8B4513;
    --text-color: #2C1810;
    --accent-color: #C17817;
    --background-color: #FDF5E6;
}

@font-face {
    font-family: 'Hieroglyphic';
    src: url('https://fonts.googleapis.com/css2?family=Noto+Sans+Egyptian+Hieroglyphs&display=swap');
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c17817' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pyramid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='50,10 90,90 10,90' fill='%23c17817' fill-opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(230, 176, 15, 0.2), transparent);
}

.title {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Cinzel Decorative', cursive;
}

.author {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 1rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.scroll-container {
    background-color: rgba(253, 245, 230, 0.9);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 2px solid var(--accent-color);
}

.hieroglyph-border {
    position: relative;
    padding: 2rem;
    border: 1px solid var(--accent-color);
}

.hieroglyph-border::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background-color: var(--background-color);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2l8 16H2l8-16z' fill='%23c17817'/%3E%3C/svg%3E");
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.gallery-item {
    text-align: center;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.preview-image:hover {
    transform: scale(1.05);
}

.caption {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.signature {
    text-align: right;
    font-style: italic;
    color: var(--secondary-color);
}

.buy-button {
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buy-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.purchase {
    text-align: center;
    margin: 4rem 0;
}

.footnote {
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(230, 176, 15, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.lightbox img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .scroll-container {
        padding: 1rem;
    }
}