/*
/home/ubuntuser/Рабочий стол/Fonts/B52/B52.ttf
*/
@font-face {
font-family: 'B52';
  src: url('../../../../../fonts/B52/B52.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;  
}
@font-face {
font-family: 'Comfortaa';
  src: url('../../../../../fonts/Comfortaa/Comfortaa-Regular.ttf') format('truetype');  
  font-weight: normal;
  font-style: normal;  
}

@font-face {
font-family: 'EB Garamond';
  src: url('../../../../../fonts/EB Garamond/EBGaramond-VariableFont_wght.ttf') format('truetype');  
  font-weight: normal;
  font-style: normal;  
}

@font-face {
font-family: 'Symbola';
  src: url('../../../../../fonts/Symbola_hint.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
font-family: 'OldSoviet';
  src: url('../../../../../fonts/OldSoviet/Old-Soviet.otf');
  font-weight: normal;
  font-style: normal;
}

/* Мое дополнение для цитат */
blockquote:before, blockquote:after {
    font-size: 3em;
    color: #800;
   }

blockquote:before {
    content: '«';
    float: left;
    margin-top: -0.4em;
   }

blockquote:after {
    content: '»';
    float: right;
    margin-top: -1.2em;
   }

blockquote p { margin: 1em 3em; }

/* ************************* */
/* Мое дополнение для линии слева */
.line {
    border-left: 4px solid #afafaf; /* Параметры линии */
    margin-left: 20px; /* Отступ слева */
    padding-left: 10px; /* Расстояние от линии до текста */
   }

/* ************************ */
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}

audio, canvas, video {
    display: inline - block;
}
audio: not([controls]) {
    display: none;height: 0;
} [hidden] {
    display: none;
}
html {
    font - family: sans - serif; - ms - text - size - adjust: 100 % ; - webkit - text - size - adjust: 100 % ;
}
body {
    margin: 0;
}
a: focus {
    outline: thin dotted;
}
a: active, a: hover {
    outline: 0;
}
h1 {
    font - size: 2 em;
    margin: 0.67 em 0;
}
abbr[title] {
    border - bottom: 1 px dotted;
}
b, strong {
    font - weight: bold;
}
dfn {
    font - style: italic;
}
hr {
    -moz - box - sizing: content - box;
    box - sizing: content - box;
    height: 0;
}
mark {
    background: #ff0;color: #000;}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em;}pre{white-space:pre-wrap;}q{quotes:"\201C" "\201D" "\2018" "\2019";}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:0;}fieldset{border:1px solid # c0c0c0;margin: 0 2 px;padding: 0.35 em 0.625 em 0.75 em;
}
legend {
    border: 0;padding: 0;
}
button, input, select, textarea {
    font - family: inherit;
    font - size: 100 % ;
    margin: 0;
}
button, input {
    line - height: normal;
}
button, select {
    text - transform: none;
}
button, html input[type = "button"], input[type = "reset"], input[type = "submit"] {
    -webkit - appearance: button;
    cursor: pointer;
}
button[disabled], html input[disabled] {
    cursor: default;
}
input[type = "checkbox"], input[type = "radio"] {
    box - sizing: border - box;
    padding: 0;
}
input[type = "search"] {
    -webkit - appearance: textfield; - moz - box - sizing: content - box; - webkit - box - sizing: content - box;
    box - sizing: content - box;
}
input[type = "search"]::-webkit - search - cancel - button, input[type = "search"]::-webkit - search - decoration {
    -webkit - appearance: none;
}
button::-moz - focus - inner, input::-moz - focus - inner {
    border: 0;padding: 0;
}
textarea {
    overflow: auto;vertical - align: top;
}
table {
    border - collapse: collapse;
    border - spacing: 0;
}
*,
*::after,
*::before {
	box-sizing: border-box;
}

body {
	--color-text: #4800d4;
    --color-bg: #e8e8e8;
    --color-link: #ec1752;
    --color-link-hover: #eb1851;
    --color-info: #272526;
    --grid-item-bg: #f1f1f1;
    --color-close: #ec1752;
    /* Для тела сайта */
    /* оригинальный шрифт заменен на собственные настройки */
	/* font-family: Futura, "futura-pt", sans-serif; */
    font-family: "EB Garamond";
	min-height: 100vh;
	color: #57585c;
	color: var(--color-text);
	background-color: #fff;
	background-color: var(--color-bg);
}

/* Page Loader */
.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}.grid__item-title

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Icons */
.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}

main {
	position: relative;
}

.frame {
	position: relative;
	padding: 1.5rem 2.5rem;
}

.frame a:hover {
	color: #4c33f7;
}

/* Header */
.codrops-header {
	position: relative;
	z-index: 100;
	text-align: center;
	font-size: 1rem;
}

.codrops-header__title {
	font-size: 1rem;
	font-weight: normal;
	margin: 0;
	padding: 0;
}

.info {
	margin: 0 0 0 1.25em;
	color: var(--color-info);
}

.github {
	display: block;
	margin: 0.15em 0.15em 0.15em 0.5em;
	padding: 0.25em;
}

.title {
	text-align: center;
}

.title__name,
.title__sub {
	font-weight: normal;
	margin: 0;
	font-size: 1rem;
}

.title__sub {
	position: relative;
	margin: 0;
}

/* Top Navigation Style */
.codrops-links {
	position: relative;
	display: flex;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
}

.codrops-icon {
	display: inline-block;
	margin: 0.15em;
	padding: 0.25em;
}

.grid-wrap {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: 6rem 1rem 0;
}

.grid-wrap--hidden {
	height: 0;
	overflow: hidden;
}

.grid {
	margin: 0 auto;
	position: relative;
	display: none;
}

.js .grid {
	display: block;
}

.grid__item {
	width: 260px;
	position: relative;
	padding: 2.75rem;
	margin-bottom: 5rem;
}

.grid__item-wrap {
	position: relative;
}

.grid__item-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--grid-item-bg);
}

.grid__item-img {
	pointer-events: none;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	display: block;
	outline: 1px solid transparent;
}

.grid__item:nth-child(even) .grid__item-img {
	transform: rotate3d(0,0,1,4deg);
}

.grid__item:nth-child(odd) .grid__item-img {
	transform: rotate3d(0,0,1,-4deg);
}

.grid__item-title {
	font-weight: normal;
	position: absolute;
	left: 0;
	top: 0;
	margin: 0 0 0 1rem;
	-webkit-writing-mode: vertical-rl;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	transform-origin: 0 50%;
}

h3.grid__item-title {
    font-family: "Comfortaa";    
}

.grid__item-number {
	font-weight: bold;
    /* мое добавление гарнитуры и цвета шрифта */
    font-family:"B52";
    color: #00FF;
    /* ******************** */
	position: absolute;
	right: 0;
	bottom: 0;
    /* оригинальный размер подписи фотографии */
    /* font-size: 2.65rem; */
    /* мое изменение */
    font-size: 1.0rem;
	/* font-size:2vw; */

	margin: 0 0 0.15rem;
}

.grid__item-number > span {
	display: inline-block;
}

.content {
	margin: 0 auto;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	align-items: center;
	pointer-events: none;
}

.js .content {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.content__item {
	padding: 10rem 5vw 10rem;
	grid-area: 1 / 1 / 1 / 1;
}

.js .content__item {
	height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	pointer-events: none;
}

.js .content__item--current {
	height: auto;
	opacity: 1;
	padding: 3rem 5vw 10rem;
	pointer-events: auto;
}

.content__item-intro {
	position: relative;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	align-items: center;
}

.content__item-img {
	position: relative;
	height: auto;
	max-width: 100%;
	display: block;
	margin: 0 auto;
	grid-area: 1 / 1 / 1 / 1;
}

.js .content__item-img {
	visibility: hidden;
}

.content__item-title {    
	position: relative;
    /* добавлено мной для смещения текста блога с центра вниз/или вверх */
    /* top: 35vh; */
	top: 25vw;

	/* Размер шрифта заголовка в тексте */
	/* font-size: 7vw; */
	font-size: 5vw;

	line-height: 1;
	text-align: center;
	margin: 0;

	padding: 0 5vw;

	white-space: nowrap;
	grid-area: 1 / 1 / 1 / 1;
	/* Добавлено мной */
	font-family: "B52";
}

.content__item-title > span {
	white-space: pre;    
    display: inline-block;
    
}

.content__item-subtitle {
	text-align: center;
    /* шрифт потребовалось увеличить - слишком в оригинале мелкий для смарфтфона */
	/* font-size: 1.25rem; */
    font-size: 1.5rem;
	/*font-size:1vw;*/

	/* Добавлено мной */
	font-family: "B52";

	font-weight: normal;

	/* Первоначальное значение */
	margin: 3rem auto;

	/* Мое дополнение */
	position: relative;
	top: 2vw;
}

.content__item-text {
	text-align: justify;
	max-width: 800px;
	margin: 0 auto;
    /* шрифт потребовалось увеличить - слишком в оригинале мелкий для смарфтфона */
    font-size: 1.8rem;
}

.content__item-text p {
	margin: 0;

	/* Добавлено мной */
	/* Шрифт для текста произведения */
	/* font-family: "Symbola"; */ /* Сначала понравился, потом - нет */
	/* font-family: "OldSoviet"; */
	font-family: "EB Garamond";
	/* Межстрочное расстояние */
	line-height: 1.5em;
	/* Красная строка */
	text-indent: 10%;
}

.content__close {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	/* Первоначальное значение */
	z-index: 10000;
	transform: translateX(-50%);
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	color: var(--color-text);
}

.content__close:focus {
	outline: none;
}

.content__item--current ~ .content__close {
	pointer-events: auto;
}

.content__indicator {
	position: absolute;
	top: calc(100vh - 6rem);
	left: calc(50% - 0.75rem);
	display: none;
}

.js .content__item-title > span,
.js .content__item-subtitle,
.js .content__item-text,
.content__close,
.content__indicator {
	opacity: 0;
}

@media screen and (min-width: 55em) {
	.frame {
		display: grid;
		align-items: start;
		justify-items: start;
		grid-template-columns: 40% 60%;
		grid-template-areas: 'title header';
	}
	.codrops-header {
		grid-area: header;
		justify-self: end;
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		align-items: center;
		text-align: left;
	}
	.codrops-links {
		margin: 0 0 0 1.5rem;
	}
	.title {
		grid-area: title;
		display: flex;
		text-align: left;
	}
	.title__sub {
		position: relative;
		padding: 0 0 0 5rem;
		margin: 0 0 0 1rem;
	}
	.title__sub::before {
		content: '';
		height: 1px;
		width: 4rem;
		background: currentColor;
		position: absolute;
		top: 0.65rem;
		left: 0;
	}
	.title__sub-works {
		display: block;
	}
	.grid__item-number {
		right: -2.45rem;
	}
	.grid__item-title {
		margin-left: -0.25rem;
	}
	.content__item-subtitle {
		font-size: 3vw;
	}
	.content__item-text {
        /* настройка двух колонок */
        /* для выбранного формата не потребовалось */
  		/* column-count: 2; */
        /* расстояние между колонками */
  		/* column-gap: 20px; */
  	}
	.content__item-img {
        /* Мое изменение, иначе изображение на смартфоне не умещается */
        /* Оригинальное решение - лучше для настольного компьютера */
        max-width: none;
        height: calc(100vh - 6rem);
        /* Переделка, пригодная более для смартфона */
        /*
        max-height: none;
        width: calc(100vw - 6rem);        
        */
	}
	
	.content__item-subtitle {
        /* Мое изменение, иначе текст режется на строке */
		/* max-width: 50%; */
        max-width: 100%;
	}
	.content__indicator {
		display: block;
	}
}
