/*
Theme Name: oldoak
Author: Dmitry Borovitsky
Author URI: https://dizgnstudio.com
Description: Custom WordPress theme for The Old Oak
Version: 1.0
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}


.post-share-wrap .a2a_kit a {
	padding-left: 0 !important;
	margin-right:5px;
}

body {
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #000;

}

ol, ul {
	list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
	text-decoration:none;
	color:#876b5f;
	font-weight:600;
}

a:hover {
	color:#684f44;
}

a .button {    
    padding: 6px 30px 6px 20px;
    background: #876b5f;
    color: white;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 600; 
    font-size: 0.9em;
    letter-spacing: 1px;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
  
    position: relative;
    padding-right: 40px; /* Место для стрелки */
}

a .button::after {
    content: '➔';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

a .button:hover {
    background: #a38477;
    padding-right: 55px; /* Увеличиваем при наведении */
	
}

a .button:hover::after {
    transform: translateY(-50%) translateX(0px);
}

/* Блок фильтров */
.blog-filters-container {
    margin-bottom: 20px;
}

.filter-group {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid #876b5f;
    color: #876b5f;
    padding: 8px 25px;
    border-radius: 1000px; /* Прямоугольник со скругленными углами */
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #f8f5f4;
}

.filter-btn.active {
    background: #876b5f;
    color: #fff;
}

/* Сетка блога */
.blog-grid {
    display: block; /* Важно для Isotope */
}

.blog-item {
    padding: 0 15px; /* Отступы между колонками */
    margin-bottom: 30px;
}

/* Гарантируем 3 в ряд на десктопе */
@media screen and (min-width: 901px) {
    .flex3.blog-item {
        width: 33.333% !important;
    }
}

/* Адаптив для Isotope */
@media screen and (max-width: 900px) {
    .flex3.blog-item {
        width: 100% !important;
        padding: 0;
    }
}


/* Уникальный блок для контента статьи */
.post-card-featured {
    border-radius: 15px;
    background-color: #fffdf9; /* Твой фирменный коричневый */
                /* Белый текст */
    overflow: hidden;
    /* box-shadow: inset 0 5px 5px rgba(0,0,0,0.02); */
    border-bottom: 2px solid #ede1d1;
    border-top: 0px solid #ede1d1;
    margin-bottom: 30px;
    padding: 30px;
}


.text_mini {
	font-size:0.8em;
}

.desktop_only {display:inherit!important;}
.mob_only {display:none!important;}


/* Бургер-меню — объединены #burger и #burger2 */
#burger, #burger2 {
	width: 36px;
	height: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-direction: column;
	cursor: pointer;	
	margin: auto 0;
	transform: scale(0.8, 0.8);
	margin-left:15px;
}

.post_process {
    padding: 10px 0 0px 0;
    line-height: 1.2;
    display: -webkit-box;
    color: #333;
}

/* Линии бургера */
.burger__item1, .burger__item2, .burger__item3 {
	height: 3px;
	width: 100%;
	background-color: #876b5f;
	transition: 0.5s;
}

/* Анимация при открытии — объединены дубли */
.change .burger__item1 {
	-webkit-transform: rotate(-405deg) translate(-5px, 10px);
	transform: rotate(-45deg) translate(-8px, 10px);
}

.change .burger__item2 {
	opacity: 0;
	width: 0%;
}

.change .burger__item3 {
	-webkit-transform: rotate(405deg) translate(-5px, 10px);
	transform: rotate(45deg) translate(-8px, -10px);
}


/* Основные кнопки меню */
.ov-button, .ov-contact-btn {
    display: block;
    width: 100%;
    max-width: 300px; /* Ограничил ширину для аккуратности */
    margin: 0 auto 10px auto;
    padding: 6px 20px;
    border: 2px solid #876b5f;
    border-radius: 1000px;
    background-color: #fff;
    color: #876b5f;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;

    letter-spacing: 1px;
    transition: 0.3s;
    text-align: center;
    box-sizing: border-box;
}

.wrap {flex-wrap:wrap;}

/* Подпункты (Services и т.д.) */
.ov-child {
    display: block;
    width: 100%;
    max-width: 270px; /* Чуть уже основных */
    margin: 10px 0;
    padding: 8px 15px;
    border: 2px solid #ead9d2;
    border-radius: 500px;
    background-color: #ffffff;
    color: #876b5f;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
 
    transition: 0.3s;
    text-align: center;
    box-sizing: border-box;
}

/* Ховер и Активные состояния */
.ov-button:hover, .ov-button.is-current,
.ov-child:hover, .ov-child.is-current,
.ov-contact-btn:hover {
    background-color: #876b5f;
    color: #fff !important;
}

/* Контакты - те же яйца, только вид в профиль */
.ov-contact-btn {
    margin-bottom: 8px;
}



/* Оверлей-меню — объединены дубли #overlaymenu */
#overlaymenu {
	padding-top: 70px;
	z-index: 8000;
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #ffffff;
	transition: 0.5s;
	transform: translateY(0%);
}

#overlaymenu.hide {
	transform: translateY(-100%);
}

#overlaymenu .whitebutton {
	min-width: 200px;
}



.round_img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service_img {
	overflow: hidden;
}

.round_img img, .service_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	transition: transform 1s ease; /* Плавность только для трансформации */
    transform-origin: center; /* Убедимся, что масштабирование от центра */
}


.scale:hover .round_img img, .scale:hover .service_img img {
    transform: scale(1.15); /* Увеличение на 20% */
}


/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦ С МИНИАТЮРОЙ (Новые)
   ============================================ */

/* Модификатор для страниц с thumbnail */
.hero-page {
    justify-content: center !important; /* Центрируем по вертикали вместо flex-end */
    padding-bottom: 0 !important; /* Убираем нижний отступ */
    min-height: 60vh; /* Можно настроить высоту */
}

/* Дополнительная центровка текста для страниц */
.hero-page .main_text {
    position: relative !important; /* Убираем absolute */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    padding: 50px 0; /* Отступы сверху/снизу */
}



/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦ С МИНИАТЮРОЙ
   ============================================ */

.hero-page {
    justify-content: center !important;
    padding-bottom: 0 !important;
    min-height: 60vh;
}

.hero-page .main_text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    padding: 50px 0;
}

/* Для карточек перелинковки - убираем hover-эффекты текста */
.around_post .post_title_mini a {
    color: #000;
}



.grass-wrapper {
width: 100%;
height: 160px;
overflow: hidden;
position: relative;
}

.grass-container {
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
width: calc(100vw + 200px);
height: 100%;
display: flex;
justify-content: center;
align-items: flex-end;
z-index:-1!important;
}

.grass {
width: 100%;
height: 100%;
background-image: url('https://theoldoak.eu/wp-content/themes/oldoak/img/grass.jpg');
background-size: auto 100%;
background-repeat: repeat-x;
background-position: center bottom;
transform-origin: bottom center;
will-change: transform;
}

#footer {
	background-color:#566052;
	color:#fff;
	box-shadow: 0 -15px 30px rgb(27 33 25 / 54%);
}

#logo_footer {
	display:inline-block;
}

#logo_footer img {
	height:50px;
}

a #logo_footer {
	opacity:0.9;
	transition:.3s;
}

a .link_pill {
	background-color:#767F72;
	color:#fff;
	padding:5px 12px;
	border-radius:100px;
	display:inline-block;
	font-weight:600;
	letter-spacing:1px;

	text-transform:uppercase;
	font-size:87%;
}

a .link_pill.brown {
	background-color: #8a785d;
}

a .link_pill:hover {
	opacity:0.9;
}



a:hover #logo_footer {
	opacity:1;
	transition:.3s;
}

#logo:hover, #logo_back:hover {
	opacity:0.8;
}

#logo {
    position: fixed;
    left: 3vw;
    top: 0px;
    padding: 9px;
    background-color: white;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
	z-index:12000;
}

#logo img {
    display: block;
    border-radius: 50%;
    width: 150px;
    height: auto;
    object-fit: cover;
}


#logo_back {
    position: fixed;
    left: 3vw;
    top: 0px;
    padding: 9px;
    background-color: white;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
	box-shadow:0 20px 10px rgba(0,0,0,0.3);
	z-index:8000;
}

#logo_back img {
    display: block;
    border-radius: 50%;
    width: 150px;
    height: auto;
    object-fit: cover;
}


#header {
	position:sticky;
	background-color:#ffffff;
	top:0;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	z-index:10000;
	padding:5px 0;
}

#hero {
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(to top, rgb(0 0 0 / 69%), rgb(141 46 17 / 28%)), url(./img/hero.jpg) no-repeat center top / cover;
    position: relative; /* Обязательно для позиционирования внутренних элементов */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Прижимает всё, что в потоке, к низу */
    padding-bottom: 50px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
}

/* Центрируем main_text */
#hero .main_text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); /* Сдвигает блок обратно на половину его размера */
    width: 100%;
	padding:0 10px;
    text-transform: uppercase;
}

#hero .numb_info {
    /* position: relative; */
    z-index: 2; /* Чтобы текст был поверх фона */
    text-align:left;
    /* width: 100%; */
}


.upper {
	text-transform:uppercase;
}

.entry-header {
	font-weight: 700;
	font-size: 1.7em;
	letter-spacing:1px;
	line-height:115%;
}

.text_huge {
	font-weight: 800;
	font-size: 4em;
	letter-spacing:3px;
	line-height:115%;
}

.text_medium {
	font-weight: 700;
	font-size: 2em;
	letter-spacing:3px;
	line-height:115%;
}

.fira {
	font-family:'Fira Mono';
	letter-spacing:3px;
}


.flexbox {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    width: 100%;
}

.flex23 {width:calc(100%/3*2);}
.flex13 {width:calc(100%/3*1);}

.flex3 {width:calc(100%/3);}
.flex4 {width:calc(100%/4);}
.flex5 {width:calc(100%/5);}

.fb_wrap {
    flex-wrap: wrap;
}

.fb_center {
    justify-content: center;
}

.fb_bottom {
	align-items: flex-end;
}

.fb_right {
    justify-content: flex-end;
}

.fb_between {
    justify-content: space-between;
}

.fb_middle {
    align-items: center;
}

.gap20 {gap:14px;}
.gap1 {gap:30px;}


.pleft {padding-left:3vw;}
.pright {padding-right:3vw;}
.pleft.pright{width:100%;max-width:1400px;margin:0 auto;}

.wrap1, .wrap2, .wrap3, .wrap0 {display:block; clear:both;}

.wrap0 {height:5px;}
.wrap1 {height:15px;}
.wrap2 {height:30px;}
.wrap3 {height:50px;}



.gr {
	background-color:#F3F3F3;
}

.big_pill_text {
	width:fit-content;
}

.big_pill {
	padding:10px 30px 10px 10px;
	border-radius:1000px;
	box-shadow: 0 10px 10px rgba(0,0,0,0.1);
	background-color:#ffffff;
}



.big_pill_img img {
	height: auto;
	width: 170px;
	border-radius:1000px;
}


.text_small {font-size:0.8em;}

.title {
	color:#4C4C0A;
	font-weight:900;
	letter-spacing:1px;
	font-size:2em;
	line-height:100%;
}

.sub_title {
	font-weight:600;
	color:#676767;
}

.service_title {
	font-weight:700;
	font-size:1.2em;
}


.service_img {
    position: relative;
    border-radius: 1500px;
    overflow: hidden;
    line-height: 0;
}

.

.service_img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}


.menu-main {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform:uppercase;
    font-weight:600;
	font-size:0.9em;
}

.menu-main > .menu-item:hover > a {
    /*background-color: #e8e8e8;*/
    color:#000000;
}

.menu-main .sub-menu > .menu-item:hover > a {
    background-color: #e9d1c696;
    color:#000000;
	border-radius: 4px;
}

.menu-main li {
    position: relative;
}

.menu-main a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #454545;
    opacity:1!important;
}


.menu-main .sub-menu,
.menu-main .children {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 4px;
}

.menu-main li:hover > .sub-menu,
.menu-main li:hover > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: #ffffff;
}

.children:hover!important {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: #281313;
}

.menu-main .sub-menu li {
    white-space: nowrap;
	list-style:none;
}

.menu-main .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.menu-main .menu-item-has-children > a {
    padding-right:25px
}

.menu-main .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    position:absolute;
    transform:translatey(4px);
}


.hr_oak {
    height: 80px;
    background-image: url('https://theoldoak.eu/wp-content/themes/oldoak/img/hr_oak.jpg');
    background-repeat: repeat-x;
    background-size: auto 80px;
    animation: scrollLeft 10000s linear infinite;
    will-change: background-position;
    transition: animation-play-state 0.3s;
}

.hr_oak:hover {
    animation-play-state: paused; /* Остановка при наведении */
}

.flip {
	transform:rotate(180deg);
}

@keyframes scrollLeft {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -30000% 0;
    }
}


.comparison-slider-wrapper {
  width: 100%;
  margin: 0 auto;
}

.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 12; 
  overflow: hidden;
  --thumb-width: 40px; /* Укажи ширину своего SVG */
}

.before, .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: left;
}

.before {
  width: 50%;
  border-right: 3px solid #fff;
  z-index: 2;
}

.slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% + var(--thumb-width));
  left: calc(var(--thumb-width) / -2);
  height: 100%;
  background: transparent;
  outline: none;
  margin: 0;
  cursor: ew-resize;
  z-index: 10;
}

/* Стили для Chrome, Safari, Edge */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-width);
  height: var(--thumb-width);
  /* Путь к твоему SVG */
  background: url('https://theoldoak.eu/wp-content/themes/oldoak/img/trigger.svg') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: ew-resize;
	transform:translateX(-2px);
}

/* Стили для Firefox */
.slider::-moz-range-thumb {
  width: var(--thumb-width);
  height: var(--thumb-width);
  background: url('https://theoldoak.eu/wp-content/themes/oldoak/img/trigger.svg') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: ew-resize;
}

.slider::-moz-range-track {
  background: transparent;
}

.partner_logo img {
	height:3vw;
	min-height:50px;
	margin-bottom:5px;
	max-width:25vw;
}

.slider_index_hit {
	pointer-events: none;
}

/* Маска слева (от белого к прозрачному) */
.slider_index_hit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10vw; /* Ширина маски */
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none; /* Чтобы не блокировать клики */
    z-index: 10;
}

/* Маска справа (от прозрачного к белому) */
.slider_index_hit::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10vw; /* Ширина маски */
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 15%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none; /* Чтобы не блокировать клики */
    z-index: 10;
}


.around_contact_form {
	border-radius: 30px;
	background-color: #fff;
	box-shadow: 0 15px 15px rgba(0,0,0,0.15);
	padding:20px;
}

div.forminator-edit-module {
	display:none!important;
}



.card_logo {
	border-radius: 30px;
	background-color: #fff;
	box-shadow: 0 15px 15px rgba(0,0,0,0.15);
	margin:3.5vw;
	padding:20px;
	line-height:145%;
	margin-bottom:25px;
}


/* Обёртка всей карточки поста с закруглёнными углами */
.around_post {
    border-radius: 15px;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 15px 15px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    padding:20px;
}

.around_post:hover .post_short_intro {
   color:#000;
}

.post_thumbnail {
    position: relative;
    width: calc(100% + 40px);
	margin:-20px -20px 10px -20px;
    padding-top: 75%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9edf2 100%);
    overflow: hidden;
}

.border21 {
	border-radius:21px!important;
}

/* Изображение без тени */
.post_thumbnail img.post-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: transform 1s ease; /* Плавность только для трансформации */
    transform-origin: center; /* Убедимся, что масштабирование от центра */
}

.around_post:hover .post_thumbnail img.post-img {
    transform: scale(1.15); /* Увеличение на 20% */
}

/* Тень СВЕРХУ изображения через псевдоэлемент */
.post_thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Поверх изображения */
    pointer-events: none; /* Не блокировать клики */
    box-shadow: inset 0 15px 35px rgba(0,0,0,0.3); /* Тень сверху */
}

.placeholder-icon {
    font-size: 3.5rem;
    color: #8c9a7e;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.post_date {
    font-size: 0.8em;
    font-weight: 500;
    color: #B5B5B5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-align:center;
}

.post_title_mini {
	color: #454502;
	line-height:125%;
	min-height:2.5em;
	font-weight:600;
}

.post_title_mini a {
	color:#000;
	font-weight:800;
}

.post_title_mini a:hover {
	color:#614545;
}

.post_short_intro {
    padding: 10px 0 20px 0;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: calc(3.6em + 10px);
    color: #333;
	margin-bottom:20px;
}

.btn_read_more {    
    padding: 6px 30px 6px 20px;
    background: #848774;
    color: white;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 600; 
    font-size: 0.9em;
    letter-spacing: 1px;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding-right: 40px; /* Место для стрелки */
}

.btn_read_more::after {
    content: '➔';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn_read_more:hover {
    background: #7a8a6d;
    padding-right: 55px; /* Увеличиваем при наведении */
	
}

.btn_read_more:hover::after {
    transform: translateY(-50%) translateX(0px);
}

/* Контейнер иконки */
.header-mob-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

/* Сама иконка */
.header-mob-icon img {
    width: 17px;
    height: 17px;
    display: block;
    /* Фильтр превращает белый (#fff) в коричневый (#876B5F) */
    filter: invert(47%) sepia(11%) saturate(1072%) hue-rotate(334deg) brightness(91%) contrast(85%);
    transition: opacity 0.3s ease;
}


.header-mob-icon:hover img {
    opacity: 0.7;
}


@media screen and (max-width: 900px) {		
.desktop_only {display:none!important;}
.mob_only {display:inherit!important;}

.mob_center {
	text-align:center;
}

/* Сама иконка */
.header-mob-icon img {
    width: 20px;
    height: 20px;
    display: block;
    /* Фильтр превращает белый (#fff) в коричневый (#876B5F) */
    filter: invert(47%) sepia(11%) saturate(1072%) hue-rotate(334deg) brightness(91%) contrast(85%);
    transition: opacity 0.3s ease;
}

/* Центрирование по вертикали во флексе */
.fb_middle {
    align-items: center;
}

#logo img {
    width: 125px;
}



#logo_back img {
    width: 125px;
}

	.mob_gap {
		gap:20px;
	}
	.numb_info .flex4 {
		width:calc(50% - 10px);
		text-align:center;
	}

	.text_huge {
	font-weight: 800;
	font-size: 2em;
	letter-spacing:2px;
}

	.card_logo {
	margin-bottom:25px;
}

	.around_post {
		width:100%;
		border-radius:15px;
	}

	.flex3 {width:100%;}
	.flex4 {width:100%;}
	.flex5 {width:100%;}

	.flex13, .flex23 {width:100%;}
	
	.mob_wrap {flex-wrap:wrap;}
	
	.reverse {flex-direction: column-reverse;}

	.service_img {
    border-radius: 15px;
}

	.big_pill {
	padding:20px;
	border-radius:20px;
	
	}



.big_pill_img, .big_pill_img img, .service_img img {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    object-position: bottom;
    border-radius: 10px;
}

.pill_oaks .big_pill_img img, .pill_oaks .big_pill_img {
	height:auto!important;
	max-width:30vw;
	object-fit: cover;
}
	
}


/* Контейнер для фото на всю ширину */
.post-thumbnail-full {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
	border-radius: 0 0 21px 21px;
}

/* Стили самого изображения */
.full-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы фото не искажалось, а заполняло область */
    object-position: center; /* Центрируем важную часть фото */
    display: block;
}

/* Адаптив для мобильных: на телефонах можно сделать чуть выше или ниже */
@media screen and (max-width: 768px) {
    .post-thumbnail-full {
        height: 40vh; /* Чуть меньше на мобилках, чтобы контент был виден сразу */
    }
}











/* Контейнер всей галереи внутри поста */
.project-description .wp-block-gallery {
    display: block; 
    column-count: 2; /* 2 колонки создают отличный ритм */
    column-gap: 20px;
    margin: 40px 0;
    padding: 0;
}

/* Элементы галереи (фигуры) */
.project-description .wp-block-gallery .wp-block-image {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px !important; /* Отступ снизу */
    break-inside: avoid; /* Чтобы картинка не разрывалась между колонками */
}

.project-description .wp-block-gallery img {
    width: 100%;
    height: auto !important;
    display: block;
    border-radius: 21px; /* Твой фирменный стиль */
    transition: all 0.5s ease;
}

/* Эффект при наведении */
.project-description .wp-block-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .project-description .wp-block-gallery {
        column-count: 1;
    }
}









   

    .studio-card {
        background: #fff;    
        box-shadow:0 15px 15px rgba(0,0,0,0.2);
        position: relative;
		border-radius:30px;
    }
	
	.studio-card .flex233 {
		padding:0 20px;
	}

    .studio-logo-img {
        max-width: 200px;
        height: auto;
        margin: 20px;
        display: block;
        border-radius:21px;
    }

    .studio-card .title {
    font-size: 1.8em;
    color: #314a31;
    }

    .studio-card .sub_title {
        font-size: 18px;
        color: #8c7355;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    /* Сетка команды */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 50px 30px;
        margin: 60px 0;
    }

    .team-item {
        text-align: center;
        transition: transform 0.3s ease;
    }

    .member-photo-wrap {
        width: 180px;
        height: 180px;
        margin: 0 auto 20px;
        border-radius: 50%;
        overflow: hidden;
        border: 5px solid #f4f4f2;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }

    .member-photo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Идеально отображает фото любых пропорций */
    }

    .member-name {
        font-weight: 700;
        font-size: 1.2rem;
        color: #314a31;
        /* margin-bottom: 5px; */
    }

    .member-pos {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #8c7355;
        margin-bottom: 1px;
        line-height: 1.3;
        font-weight: 600;
    }

    .member-bio {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #666;
        padding: 0 10px;
    }

    /* Слайдер объектов */
    .studio-gallery-slider {
        margin-top: 60px;
        border-radius: 30px;
        overflow: hidden;_box-shadow: 0 30px 50px rgba(0,0,0,0.15);
    }

    .studio-slide-item {
        height: 600px;
        outline: none;
    }

    .studio-slide-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Кроп фото под размер слайдера без деформации */
    }

.studio-gallery-slider .studio-slide-item img {
    width: 100%;
    height: 500px; /* Установите желаемую высоту */
    object-fit: cover; /* Это обрежет фото по краям, чтобы они заполнили блок */
    border-radius: 0px; /* Чтобы соответствовать общему стилю */
}

    @media (max-width: 1024px) {
        ._studio-card { padding: 40px; }
        .studio-slide-item { height: 450px; }
    }

    @media (max-width: 768px) {
        ._studio-card { padding: 30px 20px; border-radius: 20px; }
        .studio-slide-item { height: 350px; }
        ._studio-card .title { font-size: 32px; }
        ._team-grid { gap: 40px 15px; }
    }
	
	

.team-slider-container {
    margin: 60px 0;
}

.team-slider .team-item {
    outline: none;
    padding: 0 15px; /* Spacing between cards */
}

/* Ensure images stay centered in slider */
.member-photo-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f4f4f2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Slick Button Adjustments for Team Slider */
.team-slider .slick-prev, .team-slider .slick-next {
    z-index: 10;
    color: #314a31;
}

.big_pill p {
	display:none;
}