.gallery-page {
	--gallery-ink: #172a3d;
	--gallery-muted: #627080;
	--gallery-gold: #c39738;
	--gallery-paper: #fff;
	--gallery-ground: #f4f6f7;
	background: var(--gallery-ground);
}

.gallery-header {
	position: relative;
	z-index: 10;
	background: #fff;
}

.gallery-header .tg-header__top {
	padding: 12px 0;
	background: #0f0f7d;
	color: #fff;
}

.gallery-header__contact-inner {
	display: flex;
	width: min(1320px, calc(100% - 40px));
	min-height: 21px;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 auto;
	font-size: 11px;
	letter-spacing: .025em;
}

.gallery-header__contact-inner a {
	color: inherit;
	text-decoration: none;
}

.gallery-header__contact-inner a:hover {
	color: #e0ba65;
}

.gallery-header .tg-header__area {
	min-height: 100px;
	background: #fff;
}

.gallery-header__main {
	width: min(1320px, calc(100% - 40px));
	margin: 0 auto;
}

.gallery-header .tgmenu__nav {
	display: flex;
	min-height: 100px;
	align-items: center;
	justify-content: space-between;
	gap: clamp(12px, 1.5vw, 24px);
}

.gallery-header__brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	text-decoration: none;
}

.gallery-header__logo {
	display: block;
	width: 171px;
	height: 65px;
	object-fit: contain;
}

.gallery-header .tgmenu__navbar-wrap {
	margin-left: auto;
}

.gallery-header .navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.25vw, 18px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-header .navigation a {
	position: relative;
	padding: 42px 0;
	color: #0f0f7d;
	font-family: Inter, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.gallery-header .navigation a::after {
	position: absolute;
	right: 0;
	bottom: 3px;
	left: 0;
	height: 2px;
	background: #c39738;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

.gallery-header .navigation a:hover::after,
.gallery-header .navigation a[aria-current="page"]::after {
	transform: scaleX(1);
}

.gallery-header .navigation a[aria-current="page"] {
	color: #896315;
}

.gallery-header__register {
	display: inline-flex;
	flex: 0 0 auto;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	background: #0f0f7d;
	color: #fff;
	font-family: Inter, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease;
}

.gallery-header__register:hover {
	background: #2828a2;
}

.gallery-header .tgmenu__action {
	flex: 0 0 auto;
}

.gallery-header .mobile-nav-toggler {
	display: none;
}

.gallery-header a:focus-visible,
.gallery-header button:focus-visible,
.gallery-intro__footer a:focus-visible,
.gallery-item:focus-visible,
.gallery-viewer button:focus-visible {
	outline: 3px solid var(--gallery-gold);
	outline-offset: 4px;
}

.tgmobile__menu {
	display: none;
}

.gallery-main {
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
	padding: clamp(44px, 7vw, 88px) 0 90px;
}

.gallery-intro {
	margin-bottom: clamp(32px, 6vw, 72px);
}

.gallery-eyebrow {
	margin: 0 0 18px;
	color: #896315;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.gallery-intro__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #d8dee3;
}

.gallery-intro h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(52px, 9.5vw, 116px);
	font-weight: 400;
	letter-spacing: -.065em;
	line-height: .94;
}

.gallery-intro h1 em {
	color: #9c7421;
	font-weight: 400;
}

.gallery-intro__count {
	flex: 0 0 auto;
	margin: 0 0 6px;
	color: var(--gallery-muted);
	font-size: 12px;
	line-height: 1.55;
	text-align: right;
}

.gallery-intro__count span {
	display: block;
	margin-bottom: 2px;
	color: var(--gallery-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	line-height: 1;
}

.gallery-intro__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 18px;
}

.gallery-intro__footer p {
	max-width: 520px;
	margin: 0;
	color: var(--gallery-muted);
	font-size: 15px;
}

.gallery-intro__footer a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--gallery-ink);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.gallery-intro__footer a span {
	color: #9c7421;
	font-size: 18px;
}

.gallery-grid {
	columns: 4;
	column-gap: 14px;
}

.gallery-item {
	position: relative;
	display: inline-block;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: #d9dfe2;
	color: #fff;
	cursor: zoom-in;
	text-align: left;
	break-inside: avoid;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
	transform: scale(1.035);
}

.gallery-item__label {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 36px 16px 13px;
	background: linear-gradient(transparent, rgb(12 27 40 / 76%));
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .07em;
	opacity: 0;
	text-transform: uppercase;
	transition: opacity .2s ease;
}

.gallery-item:hover .gallery-item__label,
.gallery-item:focus-visible .gallery-item__label {
	opacity: 1;
}

.gallery-viewer:not([open]) {
	display: none;
}

.gallery-viewer[open] {
	display: grid;
	width: min(96vw, 1440px);
	height: min(92vh, 1000px);
	max-width: none;
	max-height: none;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 12px;
	padding: 20px clamp(16px, 3vw, 44px) 16px;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 18%);
	background: #101c27;
	color: #fff;
	box-shadow: 0 30px 120px rgb(0 0 0 / 50%);
}

.gallery-viewer::backdrop {
	background: rgb(7 13 19 / 94%);
	backdrop-filter: blur(8px);
}

.gallery-viewer__top {
	display: flex;
	min-height: 42px;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.gallery-viewer__brand {
	margin: 0;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.gallery-viewer__brand span {
	color: #c6a357;
	font-weight: 500;
}

.gallery-viewer__counter {
	margin: 0 50px 0 auto;
	color: #c6a357;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .12em;
}

.gallery-viewer__stage {
	position: relative;
	display: flex;
	min-height: 0;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.gallery-viewer__figure {
	position: absolute;
	inset: 0 62px;
	display: flex;
	min-height: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: hidden;
}

.gallery-viewer__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 14px 60px rgb(0 0 0 / 30%);
}

.gallery-viewer__caption {
	margin: 0;
	color: #f3f0e9;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
}

.gallery-viewer__bottom {
	display: grid;
	grid-template-columns: minmax(120px, .55fr) minmax(0, 1.45fr);
	align-items: center;
	gap: 20px;
	padding-top: 12px;
	border-top: 1px solid rgb(255 255 255 / 13%);
}

.gallery-viewer__filmstrip {
	display: flex;
	min-width: 0;
	gap: 7px;
	overflow-x: auto;
	padding: 2px 2px 6px;
	scrollbar-color: #66717b transparent;
	scrollbar-width: thin;
}

.gallery-viewer__thumbnail {
	position: relative;
	flex: 0 0 58px;
	width: 58px;
	height: 42px;
	overflow: hidden;
	padding: 0;
	border: 1px solid transparent;
	background: #24323f;
	cursor: pointer;
	opacity: .58;
	transition: opacity .2s ease, border-color .2s ease;
}

.gallery-viewer__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-viewer__thumbnail:hover,
.gallery-viewer__thumbnail[aria-current="true"] {
	border-color: #d1ad5e;
	opacity: 1;
}

.gallery-viewer__close,
.gallery-viewer__step {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid rgb(255 255 255 / 35%);
	background: rgb(255 255 255 / 5%);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 22px;
	transition: background-color .2s ease, border-color .2s ease;
}

.gallery-viewer__close:hover,
.gallery-viewer__step:hover,
.gallery-viewer__thumbnail:hover {
	border-color: #d1ad5e;
	background: rgb(195 151 56 / 17%);
}

.gallery-viewer__close {
	width: 38px !important;
	height: 38px !important;
	font-size: 27px !important;
}

.gallery-viewer__step {
	position: absolute;
	z-index: 1;
	top: 50%;
	transform: translateY(-50%);
}

.gallery-viewer__step--previous {
	left: 0;
}

.gallery-viewer__step--next {
	right: 0;
}

.forum-footer a:focus-visible {
	outline: 2px solid var(--gallery-gold);
	outline-offset: 4px;
}

.forum-footer {
	background: #0f0f7d;
	color: #fff;
}

.forum-footer__main {
	display: grid;
	width: min(1250px, calc(100% - 40px));
	grid-template-columns: minmax(0, 1.7fr) minmax(150px, .7fr) minmax(150px, .7fr);
	gap: clamp(28px, 5vw, 68px);
	margin: 0 auto;
	padding: 72px 0 68px;
}

.forum-footer__brand > a {
	display: inline-block;
}

.forum-footer__brand img {
	display: block;
	width: min(100%, 220px);
	height: auto;
}

.forum-footer__brand p {
	max-width: 560px;
	margin: 22px 0 0;
	color: #fff;
	font-family: Inter, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.62;
}

.forum-footer__links h2 {
	margin: 0 0 20px;
	color: #fff;
	font-family: Outfit, Arial, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.forum-footer__links ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.forum-footer__links a {
	color: #fff;
	font-family: Inter, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	text-decoration: none;
	transition: color .2s ease;
}

.forum-footer__links a:hover {
	color: #e4d989;
}

.forum-footer__copyright {
	display: flex;
	min-height: 101px;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #b8a100;
	text-align: center;
}

.forum-footer__copyright p {
	margin: 0;
	color: #fff;
	font-family: Inter, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 1023.98px) {
	.gallery-header .tgmenu__navbar-wrap,
	.gallery-header .tgmenu__action {
		display: none;
	}

	.gallery-header .mobile-nav-toggler {
		display: grid;
		width: 50px;
		height: 50px;
		place-items: center;
		border: 1px solid #dce1e5;
		background: #fff;
		color: #0f0f7d;
		cursor: pointer;
	}

	.gallery-header .mobile-nav-toggler svg {
		display: block;
		width: 18px;
		height: 18px;
	}

	.tgmobile__menu {
		position: fixed;
		z-index: 1000;
		inset: 0;
		display: block;
		visibility: hidden;
		pointer-events: none;
	}

	.tgmobile__menu.is-open {
		visibility: visible;
		pointer-events: auto;
	}

	.tgmobile__menu-backdrop {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		border: 0;
		background: rgb(9 17 24 / 68%);
		cursor: pointer;
		opacity: 0;
		transition: opacity .25s ease;
	}

	.tgmobile__menu.is-open .tgmobile__menu-backdrop {
		opacity: 1;
	}

	.tgmobile__menu-box {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		width: min(88vw, 380px);
		height: 100%;
		flex-direction: column;
		padding: 22px 24px;
		background: #fff;
		box-shadow: -14px 0 38px rgb(0 0 0 / 16%);
		transform: translateX(105%);
		transition: transform .3s ease;
	}

	.tgmobile__menu.is-open .tgmobile__menu-box {
		transform: translateX(0);
	}

	.tgmobile__menu-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding-bottom: 20px;
		border-bottom: 1px solid #e5e9ed;
	}

	.tgmobile__menu .close-btn {
		width: 44px;
		height: 44px;
		border: 1px solid #dce1e5;
		background: #fff;
		color: #172a3d;
		cursor: pointer;
		font-size: 25px;
	}

	.tgmobile__menu .navigation {
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 12px 0;
	}

	.tgmobile__menu .navigation li {
		border-bottom: 1px solid #edf0f2;
	}

	.tgmobile__menu .navigation a {
		display: block;
		padding: 12px 2px;
		font-size: 14px;
	}

	.tgmobile__menu .navigation a::after {
		display: none;
	}

	.tgmobile__menu .navigation .current-menu-item a {
		color: #896315;
	}

	.tgmobile__menu-box > .gallery-header__register {
		margin-top: auto;
	}
}

@media (max-width: 760px) {
	.gallery-header .tg-header__top {
		display: none;
	}

	.gallery-header__contact-inner,
	.gallery-header__main {
		width: calc(100% - 36px);
	}

	.gallery-header .tg-header__area {
		min-height: 114px;
	}

	.gallery-header .tgmenu__nav {
		min-height: 64px;
		gap: 10px;
	}

	.gallery-header__logo {
		width: 155px;
		height: 60px;
	}

	.gallery-main {
		width: min(100% - 36px, 1240px);
		padding: 42px 0 56px;
	}

	.forum-footer__main {
		width: calc(100% - 40px);
		grid-template-columns: 1fr;
		gap: 42px;
		padding: 54px 0;
	}

	.forum-footer__brand p {
		max-width: 520px;
		font-size: 15px;
	}

	.gallery-intro__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.gallery-intro__count {
		display: flex;
		align-items: baseline;
		gap: 8px;
		text-align: left;
	}

	.gallery-intro__count span {
		display: inline;
	}

	.gallery-intro__footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.gallery-grid {
		columns: 2;
		column-gap: 9px;
	}

	.gallery-item {
		margin-bottom: 9px;
	}

	.gallery-item__label {
		padding: 30px 10px 9px;
		font-size: 9px;
		opacity: 1;
	}

	.gallery-viewer[open] {
		width: calc(100vw - 16px);
		height: calc(100vh - 20px);
		gap: 8px;
		padding: 12px 10px 10px;
	}

	.gallery-viewer__stage {
		min-height: 0;
	}

	.gallery-viewer__figure {
		inset: 0 40px;
	}

	.gallery-viewer__stage > .gallery-viewer__step {
		width: 36px;
		height: 40px;
	}

	.gallery-viewer__bottom {
		grid-template-columns: 1fr;
		gap: 8px;
		padding-top: 8px;
	}

	.gallery-viewer__caption {
		font-size: 16px;
	}

	.gallery-viewer__thumbnail {
		flex-basis: 50px;
		width: 50px;
		height: 38px;
	}
}

@media (min-width: 761px) and (max-width: 1050px) {
	.gallery-grid {
		columns: 3;
	}
}

@media (max-width: 420px) {
	.gallery-main {
		width: calc(100% - 28px);
	}

	.gallery-grid {
		columns: 1;
	}

	.gallery-intro h1 {
		font-size: clamp(48px, 14vw, 62px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gallery-item img,
	.gallery-item__label {
		transition: none;
	}
}
