/*--------------------------------------
1. GLOBAL STYLES
-----------------------------------------*/
::selection {
    background: #ffffff;
    /* WebKit/Blink Browsers */
}

::-moz-selection {
    background: #ffffff;
    /* Gecko Browsers */
}

.greyscale_all {
    filter: grayscale(100%);
}

label {
    font-weight: unset;
}

html {
    font-size: 100%;
    background-color: #f7f9fb;
    overflow-x: hidden;
}

.gallery_text .whatup_img {
    /* margin-top: 30px; */
}

html:lang(zh-HK) body,
html:lang(zh-HK) .box,
html:lang(zh-HK) .cb-text-area p {
    font-size: 16px;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    font-weight: normal;
    padding: 0;
    /*color: white;*/
    font-family: 'Open Sans', sans-serif;
    line-height: 24px;
    background: #F4F3ED;
}

@font-face {
    font-family: 'Farnham';
    /*a name to be used later*/
    src: url('../fonts/farnham/Farnham-Text.ttf') ;
    /*URL to font*/
}

@font-face {
    font-family: 'Farnham_semi_bold';
    /*a name to be used later*/
    src: url('../fonts/farnham/Farnham-Text-Semi-Bold.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Proximanova_reg';
    /*a name to be used later*/
    src: url('../fonts/proximanova/proximanova_regular.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Proximanova_bold';
    /*a name to be used later*/
    src: url('../fonts/proximanova/proximanova_bold.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Raleway_bold';
    /*a name to be used later*/
    src: url('../fonts/raleway/Raleway-Bold.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Raleway_medium';
    /*a name to be used later*/
    src: url('../fonts/raleway/Raleway-Medium.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Raleway_italic';
    /*a name to be used later*/
    src: url('../fonts/raleway/Raleway-Italic.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Raleway_bold_italic';
    /*a name to be used later*/
    src: url('../fonts/raleway/Raleway-BoldItalic.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'Raleway_regular';
    /*a name to be used later*/
    src: url('../fonts/raleway/Raleway-Regular.ttf');
    /*URL to font*/
}

.anni_title_menu{
    font-family: 'Raleway_bold_italic', serif;
    font-size: 35px;
    color: #FFFFFF;
    background-color: #004C45;
    text-align: center;
    padding: 22px 10px;
}


#history-section {
    position: relative;
    background-image: url("../images/new/60th_bg1.png");
    /* background-image: url("../images/new/60th_bg2.png"); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100% !important;
    height: 684px !important;
}

#history-section>.our_history {
    height: 84px;
    position: absolute;
    bottom: 300px;
    right: 73%;
    font-size: clamp(28px, 3.5vw, 56px);
    color: #116A30;
    font-family: "Raleway_bold_italic";
    line-height: normal;
}

.history_slider {
    position: relative;
    top: -30px;
}

.history-div {
    height: 170px !important;
    padding: 18px !important;
    overflow: hidden;
    position: relative !important;
}

.history-div>.year {
    font-family: "Raleway_bold";
    font-size: 22px;
    color: white;
    background-color: #136A30;
    position: absolute;
    width: 72px;
    height: 72px;
    text-align: center;
    display: flex;
    flex-direction: column;  
    align-items: center;  /* vertical centering */
    justify-content: center; /* horizontal centering */
    border-radius: 50%;   /* circle */
    top: 50px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    opacity: 0.5;
}

.history-div>.year p {
    font-size: 12px;
    margin: 0;            /* remove default margin */
}

.history-div>.point {
    width: 39px;
    height: 39px;
    background-color: #136A30;
    border: 5.5px solid white;
    border-radius: 50px;
    position: absolute;
    bottom: 5.5px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.line_ver {
    opacity: 0;
    position: absolute;
    bottom: 41px;
    width: 0px;
    height: 14px;
    right: 50%;
    transform: translateX(50%);
    border: 2.5px solid #136A30;
    background-color: #136A30;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.line_before {
    position: absolute;
    bottom: 18px;
    width: 50%;
    left: 0;
    border: 7.5px solid #AB9868;
    background-color: #AB9868;
}

.line_after {
    position: absolute;
    bottom: 18px;
    width: 50%;
    right: 0;
    border: 7.5px solid #5E7868;
    background-color: #5E7868;
}

.swiper-slide-active>.year {
    color: white !important;
    font-size: 22px;
    opacity: 1 !important;
    top: 44px;
    background-color: #136A30;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;        /* use flex to center text */
    align-items: center;  /* vertical centering */
    justify-content: center; /* horizontal centering */
    border-radius: 50%;   /* circle */
    text-align: center;
    font-family: "Raleway_bold";
}

.swiper-slide-active > .year p {
    font-size: 20px;
    margin: 0;            /* remove default margin */
}

.swiper-slide-active>.point {
    width: 39px;
    height: 39px;
    background-color: #136A30 !important;
    border: 6px solid white;
    bottom: 2px;
}

.swiper-slide-active>.line_ver {
    opacity: 1 !important;
}

.swiper-slide-prev>.point{
    width: 39px;
    height: 39px;
    background-color: #AB9868 !important;
    border: 6px solid white;
    bottom: 2px;
}

#history-section>.content_left {
    /* margin: 0 auto;
    max-width: 600px;
    width: 40%;
    position: absolute;
    right: 30%;
    bottom: 40px; */

    position: relative;
    margin: 0 auto;
    max-width: 600px;
    width: 40%;
    cursor: grab;
    user-select: none;
}

.content_left > a {
    color: black;
}

.content_left > a > .history-item {
    position: absolute;
    width: 100%;
    top: 140px;
}

.content_left > a > .history-item > .history-item-details{
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px 10px;
    /* border-radius: 10px; */
    box-shadow: 0px 3px 10px #00000029;
}

.content_left > a > .history-item > .thumbnail_container {
    margin: 10px 0;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* the element that scales must have the transition */
.content_left > a > .history-item >  .thumbnail_container > .image {
    padding: 0;
    border-radius: 0;
    box-shadow: 5px 5px 8px #00000029;
    border: none;

    transform: scale(1);
    transition: transform 0.5s ease;  /* key line */
    will-change: transform;           /* helps smoothness */

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* on hover, scale it */
.content_left > a > .history-item:hover > .thumbnail_container > .image {
    transform: scale(1.1);
}

.content_left > a > .history-item > .history-item-details >.title {
    width: 438px;
    font-size: 16px;
    padding: 0px 30px 0 27px;
    font-family: "Raleway_bold";
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3em;
}

.content_left > a > .history-item > .history-item-details > .date-area {
    aspect-ratio: 1 / 1;
    min-width: 89px;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    /* border-radius: 10px; */
}

.content_left > a > .history-item > .date_area_index_1{
    background: #116A30 0% 0% no-repeat padding-box;
}

.content_left > a > .history-item > .history-item-details > .date-area >.day-text {
    color: white;
    font-size: 30px;
    position: absolute;
    /* right: 50%; */
    bottom: 50%;
    transform: translate(40%, 0%);
    font-family: "Raleway_italic";
}

.content_left > a > .history-item > .history-item-details > .date-area >.month-text {
    color: white;
    font-size: 20px;
    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 150%);
    font-family: "Raleway_italic";
}

.content_left:active {
    cursor: grabbing;
}

@media screen and (max-width: 990px) {
    .anni_title_menu{
        font-size: 24px;
    }

    /* #history-section{
        min-height: 54vh;
    } */

    #history-section>.our_history {
        bottom: 0px;
        right: 0%;
        width: 100%;
        text-align: center;
    }

    #history-section>.content_left {
        width: 92%;
    }

    .content_left > a > .history-item > .thumbnail_container {
        height: 320px;
    }

    .content_left > a > .history-item > .history-item-details > .date-area{
        min-width: 69px;
        /* width: auto;
        height: auto; */
    }

    .content_left > a > .history-item > .history-item-details > .date-area >.day-text{
        font-size: 22px;
    }

    .content_left > a > .history-item > .history-item-details >.title {
        margin: 15px 0px;
        width: 87%;
    }

    .content_left > a > .history-item > .history-item-details > .date-area >.month-text {
        right: 50%;
        bottom: 50%;
        transform: translate(50%, 120%);
        font-family: "Raleway_italic";
    }

}

@media screen and (max-width: 480px) {
    #history-section>.our_history {
        height: 75px;
        bottom: 0px;
        right: 0%;
        width: 100%;
        text-align: center;
    }
}