.gallery-rendom {
	width: 100%;
}

.gallery-rendom .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.gallery-rendom--hero {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.gallery-rendom__item {
	background: var(--gallery-rendom-content-background, #f6f4ef);
	color: #222;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr);
	min-height: 34rem;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.gallery-rendom__media {
	background: #17231f;
	min-height: inherit;
	position: relative;
}

.gallery-rendom__image {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: var(--gallery-rendom-object-position, center center);
	position: absolute;
	width: 100%;
}

.gallery-rendom__info {
	align-items: center;
	background: #0c1512;
	border: 2px solid #fff;
	border-radius: 999px;
	bottom: 1.5rem;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	height: 2.25rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 1.5rem;
	width: 2.25rem;
	z-index: 3;
}

.gallery-rendom__info:hover,
.gallery-rendom__info:focus {
	background: #333;
	color: #fff;
}

.gallery-rendom__info:focus-visible {
	outline: 3px solid #f4c542;
	outline-offset: 3px;
}

.gallery-rendom__body {
	align-content: center;
	box-sizing: border-box;
	display: grid;
	gap: 1.15rem;
	padding: clamp(2rem, 5vw, 5rem);
	position: relative;
	z-index: 2;
}

.gallery-rendom__title {
	font-size: 2.65rem !important;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	margin: 0;
	max-width: 100%;
}

.gallery-rendom__description {
	color: var(--gallery-rendom-description-color, #3f3f3f);
	font-size: 1.2rem;
	line-height: 1.55;
	max-width: 34rem;
}

.gallery-rendom__description > :first-child,
.gallery-rendom__caption {
	margin-top: 0;
}

.gallery-rendom__description > :last-child,
.gallery-rendom__caption {
	margin-bottom: 0;
}

.gallery-rendom__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 0.25rem;
}

.gallery-rendom__button {
	align-items: center;
	border: 2px solid var(--gallery-rendom-button-background, #004a89);
	border-radius: 0;
	box-sizing: border-box;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	max-width: 100%;
	min-height: 3rem;
	overflow-wrap: anywhere;
	padding: 0.8rem 1.2rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
}

.gallery-rendom__button:hover,
.gallery-rendom__button:focus {
	text-decoration: none;
}

.gallery-rendom__button:focus-visible {
	outline: 3px solid var(--gallery-rendom-button-hover-background, #003764);
	outline-offset: 3px;
}

.gallery-rendom__button--primary {
	background: var(--gallery-rendom-button-background, #004a89);
	color: var(--gallery-rendom-button-text, #fff);
}

.gallery-rendom__button--secondary {
	background: transparent;
	border-color: var(--gallery-rendom-button-background, #004a89);
	color: var(--gallery-rendom-button-background, #004a89);
}

.gallery-rendom__button--primary:hover,
.gallery-rendom__button--primary:focus {
	background: var(--gallery-rendom-button-hover-background, #003764);
	border-color: var(--gallery-rendom-button-hover-background, #003764);
	color: var(--gallery-rendom-button-hover-text, #fff);
}

.gallery-rendom__button--secondary:hover,
.gallery-rendom__button--secondary:focus {
	background: var(--gallery-rendom-button-background, #004a89);
	color: var(--gallery-rendom-button-text, #fff);
}

.gallery-rendom__caption {
	background: rgba(12, 21, 18, 0.94);
	border-radius: 0;
	bottom: 1.5rem;
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: min(28rem, calc(60vw - 6rem));
	padding: 0.9rem 1rem;
	position: absolute;
	right: calc(40% + 4.5rem);
	z-index: 4;
}

@media (max-width: 900px) {
	.gallery-rendom__item {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.gallery-rendom__media {
		aspect-ratio: 16 / 10;
		min-height: 18rem;
	}

	.gallery-rendom__body {
		padding: 2rem 1.5rem 2.5rem;
	}
	.gallery-rendom__description {
		font-size: 1.05rem;
	}

	.gallery-rendom__button {
		font-size: 16px;
		min-height: 2.75rem;
		padding: 0.75rem 0.75rem;
	}

	.gallery-rendom__caption {
		bottom: auto;
		left: 1.5rem;
		max-width: calc(100% - 6rem);
		right: auto;
		top: 1.5rem;
	}
}

@media (max-width: 520px) {
	.gallery-rendom__media {
		aspect-ratio: 4 / 3;
		min-height: 16rem;
	}
	.gallery-rendom__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.gallery-rendom__button {
		font-size: 16px;
		line-height: 1.25;
		padding: 0.75rem 0.6rem;
		width: 100%;
	}
}

@media (forced-colors: active) {
	.gallery-rendom__button,
	.gallery-rendom__info,
	.gallery-rendom__caption {
		border: 2px solid ButtonText;
	}
}
