/* General Layout */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
    color: black;
}

.exhibits-page {
    padding: 2rem;       /* Adds space inside the box */
    margin: 2rem 3rem;   /* Adds space outside the box */
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Left Column (title + graphic) */
.graphic-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.red-dot {
    width: 1em;
    height: 1em;
    background-color: red;
    border-radius: 50%;
    margin-left: 0.5em;
    display: inline-block;
    vertical-align: middle;
}

/* Wrapper holds the graphic image */
.graphic-wrapper {
    position: relative;
    width: 100%;
    height: 0;
}

.graphic-img {
    width: 50%;
    height: auto;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0; /* Set by JS */
    left: 0;
}

/* Right Column (Gallery) */
.grid-column {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item p {
    margin-top: 0.5rem;
    font-weight: bold;
}

.gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item-link.last-item {
    grid-column-start: 2;     /* Place in right column */
    justify-self: start;      /* Align to the left inside the column */
}

@media (max-width: 768px) {
    .gallery-item-link.last-item {
        grid-column-start: auto;
        justify-self: stretch;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
    }

    .graphic-wrapper {
        position: static;     /* Reset position so image stays in flow */
        height: auto;         /* Allow height to expand naturally */
    }

    .graphic-img {
        width: 70%;
        position: static;     /* Reset from absolute */
        top: auto;            /* Clear JS offset */
        margin-top: 2rem;     /* Normal spacing */
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
