/* 1. Basic reset & body styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fafafa;
    padding: 0;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

/* 2. Composites Grid */
.composites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-gap: 1rem;                       /* space between cells */
    max-width: 1200px;                    /* or any width you prefer */
    margin: 0 auto;                       /* center the grid in the page */
}

.composite-item {
    position: relative;
    background-color: #fff;
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.composite-item img {
    width: 100%;
    height: auto;  /* maintain aspect ratio */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.composite-item img:hover {
    transform: scale(1.02); /* slight zoom on hover */
}

.year-label {
    margin-top: 0.5rem;
    font-weight: bold;
}

/* 3. Lightbox / Fullscreen Overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* or 'cover', if you prefer */
    position: relative;
}

/* 4. Close Button */
.close-btn {
    position: absolute;
    top: 5%;
    right: 5%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: #f3f3f3;
}
