body {
    margin: 0;
    font-family: Georgia, serif;
	text-align: center;
    color: white;

    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(10,15,30,0.9)),
        url("images/background.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 50px;

    width: max-content;
    margin: 0 auto;
	
	align-items: start;
}

.book img {
    width: 100%;
    height: auto;
}

.subtitle {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.book a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;

    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: black;
    text-decoration: none;
    font-weight: bold;

    border-radius: 6px;
    transition: all 0.3s ease;
}

.book a:hover {
    background: linear-gradient(45deg, #ffd700, #fff2a8);
    transform: scale(1.05);
}

.book {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.3s ease;
	 display: flex;
    flex-direction: column;
    align-items: center;
}

.book:hover {
    transform: translateY(-5px);
	z-index: 1000;
}

h1 {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.intro {
    color: #D3D3D3;
    margin-bottom: 50px;
    font-size: 1rem;
}

/* =========================
   Hover Preview System
========================= */

.preview-container {
    position: relative;
    display: inline-block;
}

.preview-popup {
    position: absolute;
    top: 0;
    left: 105%;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 12px;

    background: rgba(10, 10, 20, 0.95);

    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;

    box-shadow:
        0 0 25px rgba(0,0,0,0.8),
        0 0 15px rgba(212,175,55,0.25);

    opacity: 0;
    visibility: hidden;

    transform: translateX(15px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;

    z-index: 999;
}

.preview-popup img {
    width: 180px;
    height: auto;

    border-radius: 8px;

    border: 1px solid rgba(255,255,255,0.15);
}

.preview-container:hover .preview-popup {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}

.preview-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}