body {
    margin: 0;
    background: linear-gradient(#fff9fd, #eedde7);
    background-size: 300px;
    color: #fff;
    font-family: 'Itim', cursive;
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffcceb;
}


header {
    text-align: center;
    padding: 40px 20px 20px;
}

header h1 {
    font-family: "Mrs Saint Delafield", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 100px;
    margin: 0px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

header img {
    max-width: 500px;
}

nav {
    margin-bottom: 0px;
}

nav a {
    font-family: 'Cookie', cursive;
    font-size: 26px;
    text-decoration: none;
    color: #63001e;
    background: #fff;
    padding: 6px 35px;
    border: 3px dotted #000000;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #fff;
    background: #000;
    border-color: #fff;
    box-shadow: 0 0 10px #fff;
}

main {
    margin: 20px auto;
    background: rgba(255, 255, 255, 0);
    border-radius: 100px;
    padding: 20px;
    max-width: 1000px;
}

.blog-entry {
    margin-bottom: 50px;
    animation: fadeIn 1.2s ease;
}

/* FULL CONTAINER GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    margin: -90px auto 20px;

}

.grid img:hover {
    filter: grayscale(0%) contrast(100%) brightness(1.1);
    transform: scale(1.02);
}

.flip-img {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.entrybox {
    margin-top: 15px;
    font-size: 20px;
    font-family: 'Itim', cursive;
    color: #ddd;
    text-align: center;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    height: max-content;

}

.gallery img {
    width: 100%;
    height: 500px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 6px;
    object-fit: cover;
    border: 0px solid #1d0000;

}

.gallery img:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #ffffffd9;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal.show img {
    opacity: 1;
    transform: scale(1);
}


.modal-caption {
    max-width: 80%;
    text-align: center;
    font-family: 'Itim', cursive;
    font-size: 18px;
    color: #f2caca;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #3a0000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}


.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 6px #000;
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fdb9e1;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.arrow:hover {
    color: #fdb9e1;
}

.arrow-left {
    left: 30px;
}

.arrow-right {
    right: 30px;
}


/*Pages*/
.page {
    display: block;
    /* hide all by default */
    margin-bottom: 40px;
}


.page h2 {
    font-family: fantasy;
    /*"Jacquard 24", sans-serif;*/
    font-size: 30px;
    color: #000000;
    text-shadow: -1px 0 #ffffff, 0 1px #ffffff, 1px 0 #ffffff, 0 -1px #ffffff;
    text-align: center;
}

.page h2::before,
.page h2::after {
    content: "";
}


.page p {
    background-image: linear-gradient(rgb(82, 134, 76), rgb(72, 72, 122));
    color: transparent;
    background-clip: text;
    font-size: 20px;

}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 14px;
    cursor: pointer;
    color: aliceblue;
    border: 1px solid #333;
    background: #000000;
}

.page-number {
    font-weight: bold;
}



footer {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 14px;
    color: #fff;
    font-family: 'Cookie', cursive;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 50px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}