/* CSS Document */

.events{
	display: grid;
    grid-template-columns: none;
	justify-items: start;
	grid-row-gap: 55px;
	max-width: 1320px;
	margin: auto;
    padding: var(--wp--preset--spacing--50) 0;
}

.events h2{
    font-size: var(--wp--preset--font-size--x-large);
    margin-top: 0;
    color: var(--wp--preset--color--primary);
}

.events h2::after {
    content: "";
    display: block;
    border-bottom: 4px solid var(--wp--preset--color--secondary);
    width: 55px;
    margin: 1.0em 0;
}

.events h3{
    font-size: var(--wp--preset--font-size--medium);
    font-style: italic;
}

/* Hide Events Block on Home Page if 0 events */
.home-event-outer .events.num-of-events-0 {
    display: none;
}

.open-box-editor p{
	margin: 0px;
    padding: 10px 0;
}

.open-box-editor p:last-of-type {
    padding-bottom: 30px;
}

.single-event{
	display: grid;
    grid-template-columns: 400px minmax(auto, 895px);
    column-gap: var(--wp--preset--spacing--50);
}

.single-event:not(:last-of-type) {
	border-bottom: 5px solid var(--wp--preset--color--black);
}
body.text-black .single-event:not(:last-of-type) {border-bottom-color: var(--wp--preset--color--black);}
body.text-white .single-event:not(:last-of-type) {border-bottom-color: var(--wp--preset--color--white);}

.event-thumbnail{
	max-height: 400px;
	max-width: 310px;
    justify-self: center;
    padding-bottom: 60px;
}

.event-thumbnail svg {
    width: 300px;
    height: 300px;
}
body.text-black .event-thumbnail svg {fill: var(--wp--preset--color--black);}
body.text-white .event-thumbnail svg {fill: var(--wp--preset--color--white);}

.event-thumbnail img.pdf {
	background-color: var(--wp--preset--color--white);
}

.event-thumbnail img {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.event-details{
	padding: var(--wp--preset--spacing--50);
    margin-bottom: 10px;
	position: relative;
    min-height: 275px;
}

.event-details-inner {
    padding-bottom: 100px;
}

.single-event.box-editor .event-details-inner {
    padding-bottom: 0;
}

.single-event.box-editor:not(:has(.event-thumbnail)){
	display: block;
}

.open-box-editor{
	flex: 1 1 auto;
	overflow: auto;
}

.event-post{
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1320px;
    margin: auto;
}

.event-image{
	text-align: center;
}

.view-event a, .title a {
    text-decoration: none;
}


/* Modal Styles */
.event-modal .modal {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal .modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.event-modal .modal-subtitle {
    background-color: var(--wp--preset--color--black);
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    padding: 1rem;
    text-align: center;
}

/* Scoped close button override — keeps it anchored inside the modal box */
.event-modal .modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    line-height: 1;
}

/* Zoom cursor signals the jpeg thumbnail is clickable */
.single-event.jpeg .event-thumbnail a {
    cursor: zoom-in;
    display: block;
}


@media screen and (max-width: 700px){
	.single-event{
		display: block;
        width: 100%;
	}
	.event-thumbnail{
		margin: auto;
        padding-bottom: 0;
	}
    .event-details{
        min-height: 242px;
        margin-bottom: 15px;
    }
    .event-details-inner {
        padding-bottom: 40px;
    }
}

@media screen and (min-width: 701px){
	.view-event{
		position: absolute;
		bottom: 45px;
	}
}
