/* Gutenberg card patterns use the same card classes as the designed pages. */

.vk-news-shell :is(.vk-news-card, .vk-news-feature, .vk-event-card, .vk-room-card, .vk-about-venue) :is(.wp-block-group, .wp-block-image, .wp-block-heading, .wp-block-button, p, h2, h3, h5, figure) {
	margin-top: 0;
	margin-bottom: 0;
}

.vk-news-card.wp-block-group,
.vk-room-card.wp-block-group,
.vk-event-card.wp-block-group {
	display: grid;
}

.vk-room-card.wp-block-group,
.vk-event-card.wp-block-group {
	display: flex;
}

.vk-room-card,
.vk-event-card,
.vk-news-card,
.vk-news-feature {
	position: relative;
	cursor: pointer;
}

.vk-news-card > .vk-card-link,
.vk-news-feature > .vk-card-link {
	position: absolute;
	inset: 0;
	z-index: 4;
	margin: 0;
}

.vk-news-card:hover .vk-news-card__title,
.vk-news-feature:hover .vk-news-feature__title {
	color: #d9732a;
}

.vk-news-card:hover .vk-news-card__more .wp-block-button__link {
	color: #d9732a;
}

.vk-news-feature:hover .vk-news-feature__button .wp-block-button__link {
	background: #d9732a;
	color: #fff;
}

.vk-news-card:focus-within,
.vk-news-feature:focus-within {
	outline: 2px solid #2c4246;
	outline-offset: 3px;
}

.vk-room-card .vk-room-card__more a::after,
.vk-event-card .vk-event-card__more a::after,
a.vk-room-card__more::after,
a.vk-event-card__more::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.vk-room-card:hover .vk-room-card__title,
.vk-event-card:hover .vk-event-card__title {
	color: #d9732a;
}

.vk-room-card:focus-within,
.vk-event-card:focus-within {
	outline: 2px solid #2c4246;
	outline-offset: 3px;
}

.vk-news-feature.wp-block-group {
	display: grid;
}

.vk-news-card__body.wp-block-group,
.vk-news-feature__copy.wp-block-group,
.vk-event-card__body.wp-block-group,
.vk-room-card__body.wp-block-group,
.vk-about-venue__body.wp-block-group {
	display: flex;
	flex-direction: column;
}

.vk-event-card__media-wrap {
	position: relative;
}

.vk-event-card__media-wrap > .wp-block-image,
.vk-room-card > .wp-block-image,
.vk-news-card > .wp-block-image,
.vk-about-venue > .wp-block-image,
.vk-news-feature > .wp-block-image {
	margin: 0;
}

.vk-event-card .wp-block-image img,
.vk-room-card .wp-block-image img,
.vk-about-venue .wp-block-image img,
.vk-news-feature .wp-block-image img,
.vk-news-card .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vk-event-card .wp-block-image img,
.vk-room-card .wp-block-image img {
	aspect-ratio: 16 / 10;
}

.vk-news-card > .wp-block-image {
	width: 200px;
	height: 200px;
	overflow: hidden;
	border-radius: 16px;
	background: #f5f0eb;
}

.vk-news-card .wp-block-image img {
	width: 200px;
	height: 200px;
	border-radius: 16px;
}

.vk-news-feature .wp-block-image img,
.vk-about-venue .wp-block-image img {
	min-height: 240px;
}

.vk-news-feature > .wp-block-image {
	min-height: 360px;
	overflow: hidden;
	background: #e6ddd3;
}

.vk-news-feature .wp-block-image img {
	min-height: 360px;
}

.vk-news-shell .vk-news-feature .vk-news-feature__copy .vk-news-feature__title {
	margin-bottom: 0.9rem;
	font-size: clamp(1.5rem, 2.5vw, 2.15rem);
	line-height: 1.15;
}

.vk-news-shell .vk-news-feature .vk-news-feature__copy .vk-news-card__date {
	margin-bottom: 0.9rem;
}

.vk-news-shell .vk-news-feature .vk-news-feature__copy .vk-news-feature__excerpt {
	margin-bottom: 1.6rem;
}

.vk-news-feature__excerpt {
	max-width: 30rem;
}

@media (max-width: 800px) {
	.vk-news-shell .vk-news-feature .vk-news-feature__copy .vk-news-feature__title {
		font-size: 1.55rem;
	}

	.vk-news-shell .vk-news-feature .vk-news-feature__copy .vk-news-feature__excerpt {
		font-size: 0.95rem;
		margin-bottom: 1.25rem;
	}
}


.vk-event-card .wp-block-image:has(img[src=""]),
.vk-room-card .wp-block-image:has(img[src=""]),
.vk-news-card .wp-block-image:has(img[src=""]),
.vk-news-feature .wp-block-image:has(img[src=""]),
.vk-about-venue .wp-block-image:has(img[src=""]) {
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 40%),
		linear-gradient(160deg, #d9cfc3, #c3bbb0);
}

.vk-event-card .wp-block-image img[src=""],
.vk-room-card .wp-block-image img[src=""],
.vk-news-card .wp-block-image img[src=""],
.vk-news-feature .wp-block-image img[src=""],
.vk-about-venue .wp-block-image img[src=""] {
	opacity: 0;
}

.vk-event-card__badge.wp-block-group {
	position: absolute;
	z-index: 2;
}

.vk-event-card__badge .wp-block-paragraph,
.vk-event-card__badge p {
	margin: 0;
	color: #fff;
}

.vk-news-shell :is(.vk-news-card__more, .vk-event-card__more, .vk-room-card__more, .vk-about-venue__more).wp-block-button {
	width: auto;
	margin: 0;
}

.vk-news-shell .vk-room-card {
	height: 100%;
}

.vk-news-shell .vk-room-card__body {
	flex: 1;
}

.vk-news-shell .vk-room-card__more.wp-block-button {
	margin-top: auto;
}

.vk-news-shell :is(.vk-news-card__more, .vk-event-card__more, .vk-room-card__more, .vk-about-venue__more) .wp-block-button__link {
	display: inline;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #f3873f;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: none;
}

.vk-news-shell .vk-news-feature__button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	height: 52px;
	padding: 0 1.4rem;
	border-radius: 12px;
	background: #f3873f;
	color: #fff;
}

.vk-news-shell .vk-news-feature__button .wp-block-button__link:hover,
.vk-news-shell :is(.vk-news-card__more, .vk-event-card__more, .vk-room-card__more) .wp-block-button__link:hover {
	background: transparent;
	color: #d9732a;
}

.vk-news-shell .vk-news-feature__button .wp-block-button__link:hover {
	background: #d9732a;
	color: #fff;
}

.vk-about-venue__place::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 0.15rem;
	background: #f3873f;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s6-5.2 6-10a6 6 0 1 0-12 0c0 4.8 6 10 6 10Z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='11' r='2.1' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s6-5.2 6-10a6 6 0 1 0-12 0c0 4.8 6 10 6 10Z' fill='none' stroke='black' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='11' r='2.1' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vk-event-card__meta--when::before,
.vk-event-card__meta--place::before,
.vk-room-card__meta--seats::before,
.vk-room-card__meta--gear::before {
	content: "";
	flex: 0 0 auto;
	margin-top: 0.12rem;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	-webkit-mask: none;
	mask: none;
}

.vk-event-card__meta--when::before,
.vk-event-card__meta--place::before {
	width: 18px;
	height: 18px;
	margin-top: 0;
}

.vk-event-card__meta--when::before {
	background-image: url("../../../../calendar-clear-outline.svg");
}

.vk-event-card__meta--place::before {
	background-image: url("../../../../location-outline.svg");
}

.vk-room-card__meta--seats::before {
	width: 22px;
	height: 22px;
	background-image: url("../../../../people-outline.svg");
}

.vk-room-card__meta--gear::before {
	width: 20px;
	height: 20px;
	background-image: url("../../../../checkmark-circle-outline.svg");
}

.vk-about-venues {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

@media (max-width: 800px) {
	.vk-news-card > .wp-block-image,
	.vk-news-card .wp-block-image img {
		width: 100%;
		height: 180px;
	}
}

@media (min-width: 801px) {
	.vk-news-shell .vk-news-card__more.wp-block-button {
		margin-top: auto;
		padding-top: 0.7rem;
	}

	.vk-rooms-board,
	.vk-events-grid {
		grid-template-columns: repeat(auto-fill, 310px);
		justify-content: start;
		gap: 20px;
	}

	.vk-news-shell .vk-room-card,
	.vk-news-shell .vk-event-card,
	.vk-room-card,
	.vk-event-card {
		box-sizing: border-box;
		width: 310px;
		height: 446px;
		max-width: 310px;
	}

	.vk-event-card__body,
	.vk-room-card__body {
		flex: 1;
		min-height: 0;
	}

	.vk-news-shell :is(.vk-event-card__more, .vk-room-card__more).wp-block-button,
	.vk-event-card__more,
	.vk-room-card__more {
		margin-top: auto;
	}

	.vk-home-events .vk-event-card {
		width: 100%;
		max-width: none;
		height: 446px;
	}

	/* Rooms page: three equal cards per row, remainder centered. */
	body.vk-rooms-shell .vk-rooms-board {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: stretch;
		gap: 20px;
		width: min(1300px, calc(100% - 2.5rem));
		margin: 2rem auto 4.5rem;
	}

	body.vk-rooms-shell .vk-rooms-board > .vk-room-card {
		flex: 0 0 calc((100% - 40px) / 3);
		width: calc((100% - 40px) / 3);
		max-width: calc((100% - 40px) / 3);
		height: auto;
	}
}

@media (min-width: 801px) and (max-width: 999px) {
	body.vk-rooms-shell .vk-rooms-board > .vk-room-card {
		flex-basis: calc((100% - 20px) / 2);
		width: calc((100% - 20px) / 2);
		max-width: calc((100% - 20px) / 2);
	}
}

/* Front page: three event cards and the month calendar. */
.vk-home-events {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
	width: 100%;
}

.vk-home-events__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
	min-width: 0;
}

.vk-home-events__empty {
	margin: 0;
	color: #4a4a4a;
}

/* Fixed slot. The beige calendar grows inside it when a day has events,
   and the section below stays put. */
.vk-home-events__cal {
	height: 463px;
}

.vk-home-events__cal .vb-calendar--card {
	width: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

/* Six week rows, so a shorter month does not shrink the card. */
.vk-home-events__cal .fc-daygrid-body {
	min-height: 276px;
}

.vk-home-events__cal .vb-calendar__caption {
	flex-wrap: nowrap;
	align-items: center;
}

.vk-home-events__cal .vb-calendar__caption[hidden] {
	display: none;
}

.vk-home-events__cal .vb-calendar__caption-title {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 1200px) {
	.vk-home-events {
		grid-template-columns: 1fr;
	}

	.vk-home-events__cal {
		max-width: 360px;
	}
}

@media (max-width: 800px) {
	.vk-home-events__cards {
		grid-template-columns: 1fr;
	}

	.vk-home-events .vk-event-card {
		width: 100%;
		max-width: none;
		height: auto;
	}
}
