.back-to-library {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}
.back-to-library::before {
    position: absolute;
    content: '';
    background-image: url(/20241028203053oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-back-arrow.svg);
    width: 24px;
    height: 24px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.back-to-library a {
    font-size: 112.5%;
    font-weight: 600;
}
/*template layout*/
.layout-block {
    margin-bottom: 30px;
}
.layout-block .title {
    font-size: 175%;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 15px;
}
.layout-block .small-title {
    font-size: 87.5%;
    color: var(--clr-primary);
    margin-bottom: 20px;
    font-style: italic;
}
.layout-block .view-button {
    padding: 10px 30px;
    font-size: 87.5%;
    background-color: var(--clr-primary);
    color: white;
    border-radius: 8px;
    width: fit-content;
}
/*image text row*/
.image-text-row {
    display: flex;
    column-gap: 30px;
}
.image-text-row.reverse {
    flex-direction: row-reverse;
}
.image-text-row .image-container {
    width: 30%;
}
.image-text-row .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 65%;
    margin-left: auto;
}
.image-text-row.reverse .content {
    margin-left: unset;
    margin-right: auto;
}
.image-text-row .content .view-button {
    margin-top: 30px;
}
@media(max-width: 820px) {
    .image-text-row {
        flex-direction: column !important;
    }
    .image-text-row .image-container {
        width: 100%;
    }
    .image-text-row .image-container img {
        max-width: unset;
        width: 100%;
    }
    .image-text-row .content {
        width: 100%;
    }
}
/*full width section*/
.full-width-section {
    position: relative;
    min-height: 473px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.full-width-section .image-container{
    position: absolute;
    top: 0;
    left: calc(-50vw + var(--max-container-width) / 2 - 2rem);
    width: 100vw;
    height: 100%;
}
.full-width-section .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: unset;
}
.full-width-section .image-container::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #410A41 0%, #410A41 5%, rgba(74, 12, 74, 0.8) 5%, rgba(74, 12, 74, 0.8) 10%, rgba(74, 12, 74, 0.6) 10%, rgba(74, 12, 74, 0.6) 15%,rgba(74, 12, 74, 0.4) 15%,rgba(74, 12, 74, 0.4) 100%);
}
.full-width-section .content {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    min-height: 473px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}
.full-width-section .content .heading {
    font-size: 180%;
    font-weight: 600;
    text-align: center;
}
.full-width-section .content .text {
    margin-top: 40px;
    margin-bottom: 65px;
    text-align: center;
}
.full-width-section .content .view-button {
    background-color: white;
    color: var(--clr-primary);
}
@media(max-width: 1296px) {
    .full-width-section .image-container{
        left: -2rem;
    }
}
/*swiper section*/
.swiper-section .swiper-slide {
    max-width: 441px;
}
.swiper-section .card {
    position: relative;
    padding-top: calc(308.25 / 411 * 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 15px;
    overflow: hidden;
}
.swiper-section .card .text {
    position: absolute;
    display: flex;
    align-items: center;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 85px;
    background-color: rgba(74, 12, 74, 0.8);
    color: white;
    font-size: 87.5%;
    font-weight: 500;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.swiper-section .swiper-button-prev,
.swiper-section .swiper-button-next{
    width: 32px;
    height: 32px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.swiper-section .swiper-button-prev {
    background-image: url(/20241028203053oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-prev.svg);
    transform: translateX(-50%);
}
.swiper-section .swiper-button-next {
    background-image: url(/20241028203053oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-next.svg);
    transform: translateX(50%);
}
.swiper-section .swiper-button-prev::after,
.swiper-section .swiper-button-next::after{
    display: none;
}
/*gallery*/
.gallery-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    row-gap: 20px;
    margin-top: 30px;
}
.gallery-card .image-container {
    border-radius: 15px;
    overflow: hidden;
    max-height: 411px;
}
.gallery-card .image-container img {
    max-width: unset;
    width: 100%;
}
.gallery-card .caption {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    color: var(--clr-font);
}
.gallery-section + .pagination {
    margin-top: 30px;
}
@media (max-width: 1000px) {
    .gallery-section {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .gallery-section {
        display: flex;
        flex-direction: column;
    }
}
/*table*/
.custom-content table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(119, 119, 119, 0.2);
    margin: 0;
}
.custom-content table td {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
    border-right: solid 1px #C0C0C0; 
    border-left: solid 1px #C0C0C0;
    border-top: 0;
    border-bottom: 0;
}
.custom-content table td,
.custom-content table td a{
    color: var(--clr-font);
}
.custom-content table tr {
    background-color: rgba(247, 247, 247, 0.95);
}
.custom-content table tr:nth-of-type(2n+1) {
    background-color: #DBDADA;
}
.custom-content table tr:nth-of-type(1) {
    background-color: var(--clr-primary);
}
.custom-content table tr:nth-of-type(1) td,
.custom-content table tr:nth-of-type(1) td a {
    color: white;
    font-weight: 600;
}
@media(max-width:1000px) {
    .custom-content table {
        min-width: 1200px;
    }
    .custom-content {
        overflow: auto;
    }
}
/* width */
.custom-content::-webkit-scrollbar {
    width: 11px;
}

/* Track */
.custom-content::-webkit-scrollbar-track {
    background: #F3ECF3;
    border-radius: 10px;
}

/* Handle */
.custom-content::-webkit-scrollbar-thumb {
    background: #6D1B6D;
    border-radius: 10px;
}

.photo-overlay {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
}
.photo-overlay .close-btn {
    position: absolute;
    right: 20px;
    top: 8%;
    width: 70px;
    height: 70px;
    background-image: url(/20241028203053oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-overlay-close-white.svg);
    background-repeat: no-repeat;
}
.photo-overlay.active {
    display: flex;
}
.photo-overlay .photo-container {
    width: 80%;
    height: 80%;
}
.photo-overlay .gallery-swiper {
    height: 100%;
}
.photo-overlay .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.photo-overlay .swiper-slide img {
    object-fit: contain;
    max-width: 80%;
	height: 95%;

}
.photo-overlay .swiper-button-prev::after,
.photo-overlay .swiper-button-next::after {
    content: '';
}
.photo-overlay .swiper-button-prev,
.photo-overlay .swiper-button-next {
    width: 24px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
}
.photo-overlay .swiper-pagination {
    color: white;
}
.photo-overlay .swiper-button-prev {
    background-image: url(/20241028203053oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-prev-white.svg);
}
.photo-overlay .swiper-button-next {
    background-image: url(/20241028203053oe_/https://www.lib.cuhk.edu.hk/wp-content/themes/twentytwenty/assets/images/icon-next-white.svg);
}

.img_container{
    height: 70vh;
    width: 70vw;
    text-align: center;
}

.photo-overlay .pop-text {
	color: #FFF;
    position: absolute;
    bottom: 0;
	margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.img_container iframe
{
    width: 100% !important;
    height: 95% !important;
}

@media(max-width:1000px) {
    .img_container iframe
    {
        height: 50% !important;
        text-align: center;
        position: relative;
        top: 23%;
    }
}

@media(max-width:800px) {
    .photo-overlay .swiper-slide img {
		height: 90% !important;
	}
	.photo-overlay .pop-text {
		bottom:20% !important;
	}
}

/*.bg-white {
    height: 85vh;
    width: 50vw;
    background-color: #ffffff;
}*/