/*
Theme Name:     Bampton Archive Child
Theme URI:      https://www.elegantthemes.com/gallery/divi/
Description:    Child theme for Divi
Author:         ads creative solutions
Author URI:     https://adsoxford.co.uk
Template:       Divi
Version:        1.0.0
*/

.events-none > a {
    pointer-events: none;
}

.et_pb_image,
.et_pb_image .et_pb_image_wrap {
    height: 100%;
}

.et_pb_image_wrap img {
    object-fit: cover;
}

.et-l--header {
    position: relative;
    z-index: 999;
}

.ads-menu-header .header-menu {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ads-menu-header .header-menu li a {
    white-space: nowrap;
}

.ads-menu-header .header-menu .sub-menu li.current-menu-item a {
    background-color: #d7b566;
    color: #fff;
    font-weight: 700;
}

.ads-menu-header .site-logo {
    margin-left: 100px;
    margin-bottom: -60px;
    padding: 10px;
    background-color: #fff;
}

@media only screen and (max-width: 1279px) {
    .ads-menu-header .site-logo {
        margin-left: 0;
    }
}

@media only screen and (max-width: 1080px) {
    .ads-menu-header .header-menu {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
}

.et_right_sidebar .et-l.et-l--header {
    margin-bottom: 60px;
}

.et_pb_button {
    font-weight: 700 !important;
}

.latest-news-homepage .rightside-image,
.latest-news-homepage .rightside-image .et_pb_image_wrap,
.latest-news-homepage .rightside-image .et_pb_image_wrap img {
    height: 100%;
}

.latest-news-homepage .rightside-image .et_pb_image_wrap img {
    object-fit: cover;
}

.book-iframe iframe {
    width: 100%;
    height: 750px;
}

body .button.gform_button {
    background-color: #d7b566 !important;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif !important;
    text-transform: uppercase !important;
    border: 2px solid #d7b566 !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

body .button.gform_button:hover {
    color: #d7b566 !important;
    background-color: #fff !important;
}


/* HERO SCROLLER */

.top-scroller-section {
    width: 100%;
    height: 100%;
}

.top-scroller-section .et_pb_code_inner,
.top-scroller-section .hero-scroller {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.top-scroller-section .hero-scroller>div,
.top-scroller-section .hero-scroller>div>div {
    height: 100%;
}

.top-scroller-section .hero-scroller {
    overflow: hidden;
}

.top-scroller-section .hero-scroller .slide {
    position: relative;
}

.top-scroller-section .hero-scroller .slide>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* END HERO SCROLLER */

/* ARCHIVE PAGES */

.archive-pages {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 30px;
    column-gap: 4%;
}

.archive-pages .archive-page-item {
    width: 48%;
    background-color: #fff;
    border: 2px solid #407885;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 15px 10px;
    text-align: center;
    transition: 0.3s all;
}

.archive-pages .archive-page-item span {
    color: #407885;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.archive-pages .archive-page-item:hover {
    background-color: #407885;
}

.archive-pages .archive-page-item:hover span {
    color: #fff;
}

/* END ARCHIVE PAGES */

/* HIGHLIGHT ITEMS */

.highlight-items {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 60px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.highlight-item-image,
.highlight-item-title {
    width: 49%;
}

.highlight-item-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    color: #333;
}

.highlight-item-title h3 {
    font-weight: 700;
    line-height: 1.2;
    font-size: 26px;
}

.highlight-item-title p {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px
}

@media only screen and (max-width: 800px) {
    .highlight-item {
        flex-direction: column-reverse;
        row-gap: 20px;
    }

    .highlight-item-image,
    .highlight-item-title {
        width: 100%;
    }
}

/* END HIGHLIGHT ITEMS */

/* BOOK ITEMS */

.book-items {
    display: flex;
}

.book-items {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.book-block {
    display: block;
    width: calc((100% / 4) - 30px);
    background: #fff;
    border: 1px solid #eaeaea;
    transition: all 0.5s ease;
    order: 2;
}

.book-block.pinned {
    border: 1px solid #407885;
    position: relative;
    order: 1;
}

.book-block.pinned .thumbtack {
    position: absolute;
    top: -10px;
    right: 10px;
}

.book-block.pinned .thumbtack i {
    color: #407885;
    font-size: 34px;
}

.book-block:hover {
    transition: all 0.5s ease;
    transform: translate(0px, -5px);
    box-shadow: 0px 10px 12px -5px rgba(0, 0, 0, 0.1);
}

.book-block .book-image {
    overflow: hidden;
    background-color: #e8ecef;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-block .book-image img {
    object-fit: contain;
    height: 100%;
    /* 		width: 100%; */
    /* 		aspect-ratio: 4/3; */
}

.book-block .book-content {
    padding: 20px;
}

.book-block .book-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #407885;
}

@media only screen and (max-width: 1600px) {
    .book-items {
        gap: 30px;
    }

    .book-block {
        width: calc((100% / 3) - 20px);
    }
}

@media only screen and (max-width: 1200px) {
    .book-items {
        gap: 30px;
    }

    .book-block {
        width: calc((100% / 2) - 15px);
    }
}

@media only screen and (max-width: 800px) {
    .book-block {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .book-block .book-content {
        padding: 20px;
        height: auto;
    }

}

/* END BOOK ITEMS */

/* MAP ITEMS */

.map-items {
    display: flex;
}

.map-items {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.map-block {
    display: block;
    width: calc((100% / 3) - 30px);
    background: #fff;
    border: 1px solid #eaeaea;
    transition: all 0.5s ease;
    order: 2;
}

.map-block.pinned {
    border: 1px solid #407885;
    position: relative;
    order: 1;
}

.map-block.pinned .thumbtack {
    position: absolute;
    top: -10px;
    right: 10px;
}

.map-block.pinned .thumbtack i {
    color: #407885;
    font-size: 34px;
}

.map-block:hover {
    transition: all 0.5s ease;
    transform: translate(0px, -5px);
    box-shadow: 0px 10px 12px -5px rgba(0, 0, 0, 0.1);
}

.map-block .map-image {
    overflow: hidden;
    background-color: #e8ecef;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-block .map-image img {
    object-fit: contain;
    height: 100%;
}

.map-block .map-content {
    padding: 20px;
}

.map-block .map-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #407885;
}

/* 	@media only screen and (max-width: 1600px) {
		.map-items {
			gap: 30px;
		}

		.map-block {
			width: calc((100% / 3) - 20px);
		}
	} */

@media only screen and (max-width: 1200px) {
    .map-items {
        gap: 30px;
    }

    .map-block {
        width: calc((100% / 2) - 15px);
    }
}

@media only screen and (max-width: 800px) {
    .map-block {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .map-block .map-content {
        padding: 20px;
        height: auto;
    }
}

/* END MAP ITEMS */


/* PAGE GALLERY SCROLLER */
.page-gallery-scroller {
    overflow: hidden;
}

.page-gallery-scroller .slide {
    position: relative;
}

.page-gallery-scroller .slide>img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.page-gallery-scroller .slick-dots {
    position: relative;
    bottom: 0;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

/* END PAGE GALLERY SCROLLER */

/* EXHIBITION ITEMS */

.exhibition-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exhibition-items .exhibition-block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #E8ECEF;
    padding: 15px 15px;
    /* 		flex-wrap: wrap; */
    /* 		row-gap: 30px; */
    /* 		column-gap: 4%; */
}

.exhibition-items .exhibition-block .exhibition-content {
    width: 80%;
    color: #407885;
}

.exhibition-items .exhibition-block .exhibition-content p {
    padding: 0;
    margin: 4px 0;
    font-size: 16px;
    line-height: 1.4;
}

.exhibition-items .exhibition-block .exhibition-content p.exhibition-by {
    font-weight: 700;
    color: #d7b566;
}

.exhibition-items .exhibition-block .exhibition-image {
    width: 20%;
}

.exhibition-items .exhibition-block .exhibition-image .et_pb_button {
    width: 100%;
    text-align: center;
}

@media only screen and (max-width: 800px) {
    .exhibition-items .exhibition-block {
        flex-wrap: wrap;
    }

    .exhibition-items .exhibition-block .exhibition-content {
        width: 100%;
    }

    .exhibition-items .exhibition-block .exhibition-image {
        width: 100%;
        margin-top: 15px;
    }
}

/* END EXHIBITION ITEMS */


/* PAGINATION */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border: 1px solid #407885;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #407885;
    transition: all 0.3s ease;
}

.pagination .current {
    background-color: #407885;
    color: #fff;
}

.pagination a:hover {
    background-color: #407885;
    color: #fff;
}

@media only screen and (max-width: 800px) {

    .pagination a,
    .pagination span {
        margin: 0 2px;
        padding: 8px 9px;
        /* font-size: 12px; */
    }
}

/* END PAGINATION */