/**
 *
 * basic-page-home.scss
 *
 */
/* ------------------------------------------------------------
 pg-home-gallery
------------------------------------------------------------ */
.pg-home-gallery {
	position: relative;
}

@media screen and (min-width: 1024px) {
	.pg-home-news + .pg-home-gallery {
		margin-top: 16rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-news + .pg-home-gallery {
		margin-top: 12.2rem;
	}
}

/* ----------------------------------------
 pg-home-gallery__content
---------------------------------------- */
.pg-home-gallery__content {
	position: relative;
	height: var(--height);
	-webkit-filter: var(--shadow);
	filter: var(--shadow);
	will-change: filter;
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__content {
		width: calc( ( 1376 / var(--base-width) ) * 100%);
		--height: 54.5rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__content {
		width: calc( ( 367 / var(--base-width) ) * 100%);
	}
}

@media screen and (max-width: 1023px) and (min-width: 561px) {
	.pg-home-gallery__content {
		--height: 40rem;
	}
}

@media screen and (max-width: 560px) {
	.pg-home-gallery__content {
		--height: 21rem;
	}
}

/* ----------------------------------------
 pg-home-gallery__ui
---------------------------------------- */
.pg-home-gallery__ui {
	display: flex;
	align-items: center;
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__ui {
		position: absolute;
		right: calc( ( 81 / var(--base-width) ) * 100%);
		bottom: 0;
		flex-direction: column;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__ui {
		width: calc( ( 330 / var(--base-width) ) * 100%);
		margin: 1.1rem auto 0;
		justify-content: flex-end;
	}
}

/* ---------- pg-home-gallery__title ---------- */
.pg-home-gallery__title {
	color: var(--color-main);
	letter-spacing: calc( 40 / 1000 * 1em);
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__title {
		-webkit-writing-mode: vertical-rl;
		-ms-writing-mode: tb-rl;
		writing-mode: vertical-rl;
		font-family: var(--font-sans-serif);
		padding-top: 0.1px;
		padding-bottom: 0.1px;
		font-size: var(--font-size12);
	}
	.pg-home-gallery__title::before, .pg-home-gallery__title::after {
		content: '';
		display: block;
		width: 0;
		height: 0;
		font-size: inherit;
	}
	.pg-home-gallery__title::before {
		margin-right: var(--font-sans-serif-top);
	}
	.pg-home-gallery__title::after {
		margin-left: var(--font-sans-serif-bottom);
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__title {
		font-family: var(--font-sans-serif);
		padding-top: 0.1px;
		padding-bottom: 0.1px;
		font-size: var(--font-size10);
	}
	.pg-home-gallery__title::before, .pg-home-gallery__title::after {
		content: '';
		display: block;
		width: 0;
		height: 0;
		font-size: inherit;
	}
	.pg-home-gallery__title::before {
		margin-top: var(--font-sans-serif-top);
	}
	.pg-home-gallery__title::after {
		margin-bottom: var(--font-sans-serif-bottom);
	}
}

/* ---------- pg-home-gallery__arrow ---------- */
.pg-home-gallery__arrow {
	display: flex;
	align-items: center;
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__arrow {
		flex-direction: column;
		gap: 0.9rem;
		margin-top: 2rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__arrow {
		gap: 0.6rem;
		margin-left: 1.2rem;
	}
}

/* ---------- pg-home-gallery__counter ---------- */
@media screen and (min-width: 1024px) {
	.pg-home-gallery__counter {
		margin-top: 2.6rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__counter {
		margin-left: 1.5rem;
	}
}

.pg-home-gallery__counter div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background-color: var(--color-main);
	color: var(--color-txt2);
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__counter div {
		--size: 8.8rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__counter div {
		--size: 5.9rem;
	}
}

.pg-home-gallery__counter div::before {
	content: '';
	order: 1;
	display: block;
	height: 1px;
	background-color: currentColor;
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__counter div::before {
		width: 3.4rem;
		margin: 0.9rem 0;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__counter div::before {
		width: 2.3rem;
		margin: 0.6rem 0;
	}
}

.pg-home-gallery__counter p {
	font-family: var(--font-sans-serif);
	padding-top: 0.1px;
	padding-bottom: 0.1px;
	letter-spacing: calc( 40 / 1000 * 1em);
}

.pg-home-gallery__counter p::before, .pg-home-gallery__counter p::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	font-size: inherit;
}

.pg-home-gallery__counter p::before {
	margin-top: var(--font-sans-serif-top);
}

.pg-home-gallery__counter p::after {
	margin-bottom: var(--font-sans-serif-bottom);
}

@media screen and (min-width: 1024px) {
	.pg-home-gallery__counter p {
		font-size: var(--font-size16);
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-gallery__counter p {
		font-size: var(--font-size10);
	}
}

.pg-home-gallery__counter p:nth-of-type(1) {
	order: 0;
}

.pg-home-gallery__counter p:nth-of-type(2) {
	order: 2;
}

/* ------------------------------------------------------------
 pg-home-news
------------------------------------------------------------ */
.pg-home-news__inner {
	position: relative;
}

@media screen and (min-width: 1024px) {
	.pg-home-news__inner {
		padding: 7.4rem 0 0;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-news__inner {
		padding: 2.6rem 0 0;
	}
}

/* ----------------------------------------
 pg-home-news__title
---------------------------------------- */
.pg-home-news__title {
	position: absolute;
	bottom: calc( 100% - 0.5px);
}

@media screen and (min-width: 1024px) {
	.pg-home-news__title {
		left: calc( ( 53 / var(--base-width) ) * 100%);
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-news__title {
		left: 50%;
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%);
	}
}

/* ----------------------------------------
 pg-home-news__header
---------------------------------------- */
@media screen and (min-width: 1024px) {
	.pg-home-news__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 0 0 3.8rem;
	}
}

/* ---------- pg-home-news__heading ---------- */
@media screen and (min-width: 1024px) {
	.pg-home-news__heading {
		display: flex;
		align-items: center;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-news__heading {
		text-align: center;
	}
}

@media screen and (min-width: 1024px) {
	.pg-home-news__button {
		margin-left: 2.5rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-news__button {
		width: -webkit-fit-content;
		width: -moz-fit-content;
		width: fit-content;
		margin: 1.6rem auto 0;
	}
}

/* ---------- pg-home-news__category ---------- */
@media screen and (max-width: 1023px) {
	.pg-home-news__category {
		margin-top: 4.7rem;
	}
}

/* ----------------------------------------
 pg-home-news__list
---------------------------------------- */
@media screen and (min-width: 1024px) {
	.pg-home-news__list {
		margin-top: 4.8rem;
	}
}

@media screen and (max-width: 1023px) {
	.pg-home-news__list {
		margin-top: 3rem;
	}
}
