/*!
Theme Name: rhap
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: rhap
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

rhap is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

.photo-blocks {
	display:block;
	margin-bottom: 20px;
	float:none;
	overflow: hidden;
}

.photo-block {
	width:46%;
	float:left;
	margin-right:4%;
	margin-bottom:15px;
}

.photo-block > a, .photo-block > a > img {
	max-width: 100%;
	display:block;
	min-height: 198px;
}

.photo-block-cover {
	width:19%;
	float:left;
	margin-right:1%;
	margin-bottom:15px;
	overflow: hidden;
	min-height: 380px;
}

.photo-block-cover .m-news__name {
	display: block;
	min-height: 75px;
	padding-top: 7px;
}

.photo-block-cover > a > img {
	max-width: 100%;
}

.photo-block-covers {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.library__list {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 100%;
}

.library__item {
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: 460px;
	max-height: 460px;
}

.library__pic {
	display: block;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	margin-bottom: 24px;
}

.library__pic > img {
	width: 100%;
	height: 100%;
	transition: all 5s ease;
	transform: scale(1) rotate(0deg);
	-o-object-fit: cover;
	object-fit: cover;
  	object-position: center;
	max-height: 234px;
	min-height: 234px;
}

.library__name {
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
	padding-right: 10px;
	transition: all 0.65s ease;
	color: #171821;
	background-image: linear-gradient(#fbb82a 0%, #fbb82a 100%);
	background-repeat: no-repeat;
	background-size: 0;
}

.library__top__column {
	flex-direction: column;
	align-items: flex-start;
}

.library__top__name {
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
	padding-right: 10px;
	transition: all 0.65s ease;
	color: #171821;
	background-image: linear-gradient(#fbb82a 0%, #fbb82a 100%);
	background-repeat: no-repeat;
	background-size: 0;
	display: block;
}

.library__top__name:hover {
    color: #171821;
    background-size: 100%;
}

.library__top__date {
	font-size: 12px;
	font-weight: 500;
	line-height: normal;
	text-align: left;
	margin: 16px 0 0;
	color: #83858f;
}

.single-post .lib__author {
	display: none;
}

.sign-up-left-block {
	flex-direction: column;
}

.single-product .product_tag-book > div.images {
	width: 35% !important;
}

.single-product .product_tag-journal > div.images {
	width: 35% !important;
}

.m-about .m-about__info {
	text-transform: none !important;
}

.popup-form > .row {
	display: flex;
}

.popup-form > .row > .item {
	width: 50%;
	padding-right: 40px;
}

.popup-form > .row > .item label {
	padding-right: 40px;
	overflow: hidden;
} 

.popmake-title.pum-title {
	animation-duration: 0.8s;
	color: rgb(239, 150, 0) !important;
	display: block;
	font-family: aktiv-grotesk;
	font-size: 60px !important;
	font-style: normal;
	font-weight: 700 !important;
	letter-spacing: normal;
	line-height: 64px !important;
	margin-bottom: 15px;
}

.popup-form p {
	font-size: 14px;
	color: rgb(2, 2, 2);
}

.popup-form ul {
	margin-bottom: 16px;
	list-style: disc;
}

.popup-form ul li {
	margin-bottom: 4px;
	color: rgb(2, 2, 2);
}

.popup-form input {
	border-bottom: 1px solid #A9A9A9;
	border-top: none;
	border-left: none;
	border-right: none;
	height: 42px;
	line-height: 24px;
}

.popup-form textarea {
	border-bottom: 1px solid #A9A9A9;
	border-top: none;
	border-left: none;
	border-right: none;
}

.wpcf7-submit {
	background-color: rgb(239, 150, 0);
	border-radius: 10px;
	width: 150px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	color: white;
	font-size: 16px;
	cursor: pointer;
	border: none;
}

.popup-form label > span {
	margin-top: 3px;
	color: rgb(2, 2, 2);
}

.lib__banner {
	height: auto;
}

.lib__banner > img {
	width: 100%;
	height: auto;
	-o-object-fit: contain;
	object-fit: contain;
}

@media screen and (max-width: 850px) {
	.library__item {
		grid-column: auto;
	}
	
	.library__list {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		max-width: 100%;
	}
}

@media (max-width:480px) {
	.photo-block { 
		width:100%;
		margin-right:0;
		float:none;
	}
	
	.photo-block > a > img {
		width: 100%;
		max-width: 100%;
	}
	
	.photo-block-cover {
		width:48%;
		float:left;
		margin-right:2%;
		margin-bottom:15px;
		overflow: hidden;
		min-height: 275px;
	}
	
	.library__list {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(1, 1fr);
		gap: 0;
		max-width: 100%;
	}
	
	.popup-form > .row {
		flex-direction: column;
	}
	
	.popup-form > .row > .item {
		width: 100%;
	}
}

@media (min-width: 1571px) and (max-width: 1700px) {
	.header__logo {
		max-width: 200px;
	}
	.header__menu-item {
		margin: 0 11px;
	}
	.header__menu-item:first-child {
		margin-right: 14px;
	}
	.header__menu-link {
		font-size: 13px;
		letter-spacing: -0.02em;
	}
}

@media (min-width: 1361px) and (max-width: 1570px) {
	.header__logo {
		max-width: 180px;
	}
	.header__menu-item {
		margin: 0 9px;
	}
	.header__menu-item:first-child {
		margin-right: 15px;
	}
	.header__menu-link {
		font-size: 12px;
		letter-spacing: -0.03em;
	}
}

@media (min-width: 1100px) and (max-width: 1360px) {
	.header__logo {
		max-width: 90px;
	}
	.header__menu-item {
		margin: 0 8px;
	}
	.header__menu-item:first-child {
		margin-right: 16px;
	}
	.header__menu-link {
		font-size: 12px;
		letter-spacing: -0.04em;
	}
}

@media (min-width: 1700px) {
    .membership {
        background-size: contain;
    }
}