html {
    scroll-behavior: smooth;
}



/*--------------------------------content-----------------------------*/
.split-container {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    height: 100vh;
}

.left-column {
    flex: 1;
    margin-left: 10%;
    display: flex;
    flex-direction: column;
    margin-right: 1%;
    /*border: 1px solid red;*/
    width: 40%;
}

.right-column {
    flex: 1;
    margin-right: 10%;
    display: flex;
    flex-direction: column;
    margin-left: 1%;
    width: 40%;
    /*border: 1px solid red;*/
}


/*--------------------info container---------------------*/
.info-container {
    text-align: left;
    height: auto;
    margin-bottom: 2%;
}

.info-container h1 {
    font-family: "Jost";
    font-size: 32px;
    font-weight: 300;
    color: white;
    height: auto;
    text-align:left;
    border-bottom: 1px solid white;
}

#section-buttons-container{
    height: auto;
}

#rank-branch {
    display: flex;
    justify-content: left;
    align-items: left;
    height: auto;
}

#rank-branch h2{
    font-family: "Jost";
    font-size: 18px;
    font-weight: 300;
    color: #d2d2d2;
    text-align: center;
}

#rank {
    margin: 0;
    margin-right: 5px;
}

#branch {
    margin: 0;
    margin-left: 5px;
}

/*-----------------------------------------------------------------buttons-------------------------------------*/

.section-button {
    background-color: #333333;
    color: #FFB719;
    border: none;
    padding: 20px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 18px;
    font-family: "Jost";
}

/* Style for section buttons on hover */
.section-button:hover {
    background-color: white;
    color: #FFB719;
    transform: scale(1.05);
    transition: transform .2s;
}

.active-section-button {
    background-color: white;
    color: #FFB719;
}

/*-------------------------------------------narrative--------------------------*/

.narrative-scroll-container {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.narrative-content-container {
    font-family: Garamond, serif;
    font-size: 18px;
    color: #d2d2d2;
    white-space: pre-line;
    text-align: justify;
    line-height: 1.2;
    margin-right:10px;
    height: 0px;
}

.narrative-content-container h1 {
    font-family: "Jost";
    font-size: 24px;
    font-weight: 300;
    color: white;
    height: auto;
    text-align:center;
    line-height: 1.2;
}

.narrative-scroll-container::-webkit-scrollbar {
    width: 0.5em;
}

.narrative-scroll-container::-webkit-scrollbar-thumb {
    background-color: darkgray;
    border-radius: 2px;
}

.narrative-scroll-container::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: rgba(169, 169, 169, 0.2);
}



/*---------------------------------------------------images--------------------------------*/
.gallery-container {
    text-align: center;
    height: 75%;
    margin: 0;
    margin-bottom: 2%;
    padding-top: 10%;
    /*border: 1px solid blue;*/
}

.main-gallery-image {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.main-gallery-image:hover{
    cursor: pointer;
}

/*--------------------------------------------thumbnails--------------------------------------*/

.thumbnail-scroll-container {
    height: 150px;
    width: 100%;
    overflow-y: hidden;
    overflow-x: auto;
    justify-content: center;
    white-space: nowrap;
    /*border: 1px solid green;*/
    scroll-behavior:auto;
}

.thumbnail-container {
    /*border:1px solid  purple;*/
    /*padding-bottom: 10%;*/
    text-align: center;
}

.thumbnail-item {
    display: inline-block;
    width: 75px;
    height: 125px;
    margin-right: 5px;
    padding: 1%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail-item img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    object-position: center center;
}

.thumbnail-item.active {
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Define the track and thumb styles */
.thumbnail-scroll-container::-webkit-scrollbar {
    height: .5em;
}

.thumbnail-scroll-container::-webkit-scrollbar-thumb {
    background-color: darkgray;
    border-radius: 2px;
}

.thumbnail-scroll-container::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: rgba(169, 169, 169, 0.2);
}


.thumbnail-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}


/*--------------------------------------------------------lightbox-----------------------------------------------------------*/
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    text-align: center;
}

#enlarged-image {
    max-width: 90%;
    max-height: 100%;
    display: block;
    margin-inline: auto;
    margin-top: 1%;
    margin-bottom: 1%;
    object-fit: contain;
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
}

/*-----------------------sources------------------------*/

.sources{
    margin-top: 2%;
    margin:0 auto;
    margin-left: 10%;
    width: 50%;
    font-family: Garamond, serif;
    font-size: 12px;
    color: #d2d2d2;
    white-space: pre-line;
    text-align: left;
    line-height: 1.2;
    height: 0px;
    height: auto;
}