/* --- Rental page --- */
#rental_page h1 {
    max-width: 700px;
    height: 80px;
    padding: 10px 0;
    margin: 0 auto 18px;
    border: 3px solid;
    border-radius: 1.5rem;
    font-size: calc(3.2rem * var(--h1-scale, var(--font-scale)));
    color: var(--current-theme);
}

#rental_page h1::before {
    background-image: var(--bg-img);
    background-size: var(--title-bg-size);
    background-position: var(--title-bg-pos);
}

#rental_page .intro p:first-of-type {
    max-width: 950px;
    margin: auto;
}

#rental_page h2 {
    margin: 0;
    font-size: calc(2.2rem * var(--h2-scale, var(--font-scale)));
    color: var(--current-theme);
}

#rental_page .split_display {
    margin: 1.8rem auto;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1.5rem;
}

#rental_page .split_display .pictures_column {
    max-width: 600px;
}

#rental_page .split_display .text_column ul {
    margin: 0.6rem 0 1.5rem;
    padding-left: 34px;
}

#rental_page .rental_images {
    display: grid;
    padding: 0.7rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    align-content: start;
    background-color: var(--fore-color);
    border-radius: var(--radius-small);
}

#rental_page .rental_images a {
    display: block;
    padding: 8px;
    border-radius: var(--radius-small);
    overflow: hidden;
    transition: background-color 0.1s ease;
}

#rental_page .rental_images a:hover {
    cursor: pointer;
    background-color: var(--current-theme);
}

#rental_page .rental_images a img {
    display: block;
    height: auto;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid var(--current-theme);
    border-radius: var(--radius-small);
    transition: border-color 0.1s ease;
}

#rental_page .rental_images a:hover img {
    border-color: transparent;
}

#rental_page > nav > a {
    display: inline-block;
    margin: 1.3rem auto 1.3rem;
    padding: 0.6rem 3rem;
    font-size: 2rem;
    font-weight: bold;
    --current-theme: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-main);
}

/* --- Lightbox --- */
#lightbox_overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15rem;
    gap: 1.5rem;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

#lightbox_overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
}

#lightbox_image {
    order: 2;
    max-width: 75vw;
    max-height: 90vh;
    border: 2px solid var(--current-theme);
    border-radius: 0.5rem;
    flex-shrink: 1;
    user-select: none;
}

#lightbox_close {
    position: absolute;
    top: 5px;
    right: 30px;
    color: var(--select-color);
    font-size: 5rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

#lightbox_prev,
#lightbox_next {
    position: relative;
    flex-shrink: 0;
    color: var(--select-color);
    font-size: 5rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    z-index: 1001;
    transition: color 0.1s ease;
}

#lightbox_prev {
    order: 1;
}

#lightbox_next {
    order: 3;
}

#lightbox_prev:hover,
#lightbox_next:hover,
#lightbox_close:hover {
    color: var(--current-theme);
}