/* =============================================================================
   FULLPAINTING.CSS
   Order follows fullpainting.ejs: container → navigation → title → painting → details
   ============================================================================= */

.fullpainting-container {
    width: 95vw;
    text-align: center;
    margin: 0 auto;
}

/* =============================================================================
   NAVIGATION (Previous | Title | Next)
   ============================================================================= */

.navigation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0px;


    margin: 4px 0;
    max-width: 94vw;
    padding-top: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid;
}

.navprev-button,
.navnext-button {
    box-sizing: border-box;
    flex-grow: 0;
    flex-shrink: 1;


    display: inline-table;
    /* Back to flex but... */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */

    height: 1.8em;
    /* Fixed height */
    line-height: 1;

    padding-left: 0.4em;
    padding-right: 0.4em;
    padding-top: 6px;
    padding-bottom: 6px;
    max-width: 25%;

    background-color: rgb(85, 74, 66);
    color: rgb(163, 196, 225);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid;

    font-size: clamp(0.7rem, 0.4vw + 0.45rem, 1rem);
    transition: all 0.3s ease;
}

a.navprev-button:hover,
a.navnext-button:hover {
    color: #cdddeb;
    border: 1px solid;
}

.nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* =============================================================================
   TITLE SECTION
   ============================================================================= */

.fullpainting-title-wrap {


    flex-grow: 0;

    padding-bottom: 3px;
    margin-top: 4px;

    margin-right: 1px;
    margin-left: 1px;


}

.fullpainting-title {

    background-color: Var(--Title-Background-Color);
    color: #ffae82;
    font-size: clamp(1rem, 1.2vw, 1.0rem);
    width: 15rem;
    max-width: 70%;
    padding-left: 6px;
    padding-right: 6px;
    padding-bottom: 4px;
    padding-top: 4px;
    margin: auto;
    border: 1px solid var(--BaseLightColor);
    align-content: center;
}

/* =============================================================================
   PAINTING IMAGE
   ============================================================================= */

.fullpainting-wrap {
    display: flex;
    flex-shrink: 1;

    /*max-height: 98vh;*/
    align-items: center;


    /* Responsive max-width without media query */
    margin: 8px auto 8px auto;
    padding-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;

    gap: 20px;
    /* Responsive gap */
}

.fullpainting {
    background-color: rgb(100, 100, 100);
    padding: 6px;
    height: auto;
    max-height: 82vh;
    max-width: 65vw;
    border: 1px solid;
    object-fit: contain;
    flex-shrink: 1;
    transition: width 0.3s;
}

/* =============================================================================
   DETAILS PANEL
   ============================================================================= */

.fullpainting-details {

    padding: 6px;
    font-size: 0.85rem;
    color: rgb(217, 167, 139);
    border: 1px solid;
    height: fit-content;

    flex: 1 1 auto;
    width: clamp(200px, 30vw, 300px);
    max-width: min(240px, 50vw);
}

.process-link {
    color: var(--AccentColor);
}

/* =============================================================================
   MISC (possibly unused)
   ============================================================================= */

.image-wrap {
    color: white;
    width: 80vw;
    height: 80vh;
    margin-left: auto;
    margin-right: auto;
}