

.calendar .slides {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	margin-bottom: 50px;
}

.calendar .inner {
	position: relative;
}
  
.calendar .img-cont {
	position: relative;
}

.calendar .img-cont img {
	width: 100%;
}

.calendar .slide .img-cont:before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	display: block;
	content: '';
	background-color: rgba(0, 0, 0, 0.15);
	transition: background-color 300ms;
	pointer-events: none;
}

@media (hover: hover) {
	.calendar .slide:hover .img-cont:before {
		background-color: rgba(159, 217, 221, .85);
	}

	.calendar .slide:hover .img-cont:before {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 0;
		display: block;
		content: '';
		background-color: rgba(159, 217, 221, .85);
		transition: background-color 300ms;
		pointer-events: none;
	}
}

.calendar .content-section {
	position: relative;
	width: 100%;
	height: 100%;
	top: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.calendar .title {
	text-transform: uppercase;
	color: var(--white);
	font-family: var(--font-display-2);
	font-size: 28px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	text-align: center;
}

.calendar .slide .title:after {
	font-family: "Font Awesome 5 Free";
	font-weight: 700;
	content: " \f105";
	opacity: 0;
	width: 0;
	display: inline-block;
	transition: opacity 250ms, width 300ms ease-out 220ms;
}

@media (hover: hover) {
	.calendar .slide:hover .title:after {
		width: 35px;
		opacity: 1;
		transition: width 250ms, opacity 300ms ease-out 220ms;
	}
}

.calendar .dialog {
	background-color: #F1EFF2;
	z-index: 1;
	width: 100%;
	padding: 20px;
	padding-left: 40px;
}

.calendar .dialog::before {
	position: absolute;
	content: "";
	top: 1px;
	left: 7px;
	height: calc(100% - 2px);
	box-shadow: 0 0 0 1px white, 8px 0 0 1px white; /* Border left */
}

.calendar .dialog-title {
	text-transform: lowercase;
	font-size: 26px;
	border-bottom: 2px solid rgba(159, 217, 221, .85);
	display: inline-block;
	margin-bottom: 10px;
}

.calendar .dates table {
	width: 100% !important;
}

.calendar .close {
	background-color: transparent;
	color: var(--red);
	display: none;
	font-size: 22px;
}

@media screen and (min-width: 40em) {
	.calendar .slides {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media screen and (min-width: 64em) {
	.calendar {
		--dialog-width: 402px;
		--dialog-offset: calc(var(--dialog-width)/ 2); 		
		max-width: 1335px;
		margin: 0 auto;
	}

	.calendar .slides {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}

	.calendar .slide:nth-of-type(4n+3) .dialog {
		left: unset;
		right: var(--dialog-offset);
	}

	.calendar .slide:nth-of-type(4n+4) .dialog {
		left: unset;
		right: 0px
	}

	.calendar .title {
		font-size: 35px;
	}

	.calendar .content-section {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.calendar .dialog {
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.22);
		left: var(--dialog-offset);
		position: absolute;
		top: 40px;
		padding: 40px;
		z-index: 3;
		min-width: var(--dialog-width);
		transform: translateY(40px);
		opacity: 0;
		transition: opacity 300ms, transform 300ms;
		pointer-events: none;
	}

	.calendar .dialog.show {
		pointer-events: all;
		opacity: 1;
		transform: translateY(0);
	}

	.calendar .dialog-title {
		margin-left: 70px;
		font-size: 32px;
	}

	.calendar .dates {
		line-height: 1.5;
		font-size: 21px;
		color: #58595B;
	}

	.calendar .dates p {
		display: flex;
		justify-content: flex-start;
	}


	.calendar .dates span {
		flex-basis: 68px;

	}

	.calendar .close {
		position: absolute;
		top: 5px;
		right: 5px;
		display: block;
	}
}

@media screen and (min-width: 90em) {
	.calendar .dialog {
		left: 225px;
		min-width: 500px;
		padding: 40px 90px;
	}
}