/*
Theme Name:     Newspaper Child theme
Theme URI: 		http://themeforest.net/user/tagDiv/portfolio
Description:    Child theme made by tagDiv
Author:         tagDiv
Author URI: 	http://themeforest.net/user/tagDiv/portfolio
Template:       Newspaper
Version:        9.0c
*/


/*  ----------------------------------------------------------------------------
    This file will load automatically when the child theme is active. You can use it
    for custom CSS.
*/
html {
  scroll-behavior: smooth;
}
.tdi_37 img.aligncenter, .tdi_37 .aligncenter img {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important; 
}
.small-image {
    display: inline !important;
	margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 .07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 50%;
}
.youtube-container {
    margin-bottom: 20px;
}

.swiper-gallery-wrapper{
 margin-bottom: 1.3rem;
}
.figures-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.figures-col-2 figure {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.figures-col-2 img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .figures-col-2 {
    grid-template-columns: 1fr;
  }
}

/* 🎯 Общий стиль figure */
figure,
figure.wp-block-image {
  display: block;
  margin: 1.5em auto;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

/* 🖼️ Картинки внутри figure */
figure img,
figure.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ✅ Подпись под изображением */
figure figcaption,
figure.wp-block-image figcaption {
  display: block;
  position: static; /* важно: не absolute */
  margin-top: 0.5em;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  font-style: italic;
  color: #666;
  background: none;
  text-align: center;
  box-sizing: border-box;
}

/* 🔄 Совместимость с aligncenter */
.wp-block-image.aligncenter {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.wp-block-image.aligncenter img {
  margin: 0 auto;
  display: block;
}

/* 🧼 Удаляем конфликтный стиль, если был */
figure:not(.featured-cover) > figcaption {
  position: static !important;
  background: none !important;
  color: #666 !important;
  padding: 0 !important;
}


.tdb-caption-text {
    position: relative!important;
    color: #666!important;
    margin: 6px 0 0!important;
}



#img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  cursor: zoom-out;
  display: flex;
}

.img-inner {
  max-width: 90vw;
  max-height: 90vh;
  box-sizing: border-box;
}

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


figure blockquote {
  margin: 0 0 0 1em !important;
}
@media screen and (min-width: 700px) {
  figure blockquote {
    float: right;
    width: 40%;
  }
}

/* Цитаты */
blockquote p,
.entry blockquote p {
  font-size: 1.1rem;
  padding: 15px 0;
  text-align: left;
}

/* Информационный блок */
.story-info {
  float: right;
  width: 40%;
  margin: 10px 0 10px 10px !important;
  border: 1px solid #444;
  background: #000000;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: normal;
  font-style: normal;
  font-size: 13px !important;
  padding: 10px 10px 0;
}

.story-info header {
  font-size: 13px !important;
  font-weight: bold;
  padding: 15px 0 15px !important;
  text-align: center;
  border-bottom: 1px solid #444;
  color: #444;
}

.story-info > div > div {
  margin: 20px !important;
}

.story-info h5 {
  font-size: 13px !important;
  margin: 0;
  color: #666;
  line-height: 1rem !important;
  font-weight: normal;
  font-style: normal;
}

.story-info h5 + * {
  font-size: 13px !important;
  font-weight: 500;
  margin-top: 2px;
  color: #222;
  text-transform: none;
}

/* Адаптивность на мобилках */
@media (max-width: 768px) {
  .story-info {
    float: none;
    width: 100%;
    margin: 0 0 20px !important;
  }
  .entry .story-info h5 {
    font-size: 14px !important;
    line-height: 14px !important;
  }
}


.review-verdict {
  border-radius: 12px;
  margin: 20px 0;
  font-family: sans-serif;
}

.review-verdict > p {
  margin: 0 30px 25px;
  font-style: italic;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

/* Контейнер для всех пар */
.review-pros-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 30px 30px 30px;
  box-sizing: border-box;
}

/* Каждая пара h6 + ul */
.review-pros-cons h6 {
  width: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #222;
  display: none; /* скрываем оригинальные h6 */
}

/* "Эмуляция обёртки" для каждой пары h6 + ul */
.review-pros-cons ul:nth-of-type(1)::before,
.review-pros-cons ul:nth-of-type(2)::before {
  display: block;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 8px;
  padding-left: 2px;
}

.review-pros-cons ul:nth-of-type(1)::before {
  content: "VORTEILE";
}

.review-pros-cons ul:nth-of-type(2)::before {
  content: "NACHTEILE";
}

/* Стили блоков */
.review-pros-cons ul {
  flex: 1 1 45%;
  list-style: none;
  padding: 20px;
  margin: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  position: relative;
}

/* Левые цветовые полосы */
.review-pros-cons ul:nth-of-type(1) {
  border-left: 4px solid #4caf50;
}
.review-pros-cons ul:nth-of-type(2) {
  border-left: 4px solid #f44336;
}

/* Элементы списка */
.review-pros-cons li {
  margin: 10px 0;
  padding-left: 22px;
  position: relative;
  color: #333;
}

.review-pros-cons ul:nth-of-type(1) li::before {
  content: "✔";
  color: #4caf50;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.review-pros-cons ul:nth-of-type(2) li::before {
  content: "✖";
  color: #f44336;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Адаптив */
@media (max-width: 768px) {
  .review-pros-cons ul {
    flex: 1 1 100%;
  }
}




.table-is-responsive {
    max-width: 100%;
    overflow-x: auto;
    margin: 1em 0;
    border: 1px solid #222;
    border-radius: 4px;
}

.table-is-responsive table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-is-responsive th,
.table-is-responsive td {
    padding: 8px 12px;
    border: 1px solid #222;
    white-space: nowrap;
    text-align: center;
}

.table-is-responsive thead {
    background-color: #444444;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table-is-responsive tbody tr:nth-child(odd) {
    background-color: #222222;
}
.table-is-responsive tbody tr:nth-child(even) {
    background-color: #000000;
}
.table-is-responsive th, .table-is-responsive td {
    padding: 8px 12px;
    border: 1px solid #222;
    white-space: normal;  /* Позволяет тексту переноситься */
    text-align: center;
    max-width: 150px;  /* Ограничение ширины для ячеек */
    overflow: hidden;
    word-wrap: break-word;  /* Перенос слов */
}
.entry blockquote {
    margin: 20px 0;
    padding: 0 1em 0 4em;
    color: #333;
    background-color: whitesmoke;
}
.entry blockquote:before {
    left: 11px;
}
.entry blockquote:after {
    left: 42px;
    width: 3px;
}



.single-post-thumb-outer .post-thumb {
    height: 400px; /* или другая желаемая высота */
    overflow: hidden;
    position: relative;
}

.single-post-thumb-outer .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.fancy-box {
    background: #f0f0f0;
    border-left: 5px solid #ff9900;
    padding: 20px;
    margin: 20px 0 20px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: "Segoe UI", sans-serif;
    width: 35%;
    float: right;
    clear: both;
}

.fancy_box-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    text-transform: uppercase;
}

.fancy_box_body {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

.fancy_box_body p {
    margin-top: 1rem;
    margin-bottom: 1em;
}

.fancy_box_body figure {
    margin: 0;
    text-align: center;
}

.fancy_box_body figcaption {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .fancy-box {
        float: none;
        width: 100%;
        margin-left: 0;
    }
}
.tagdiv-type blockquote{
    text-align: left;
}
.twitter-tweet {
    margin-right: auto !important;
    margin-left: auto !important;
}
cite {
    color: #666;
}


.toc-widget-column{
    padding-left: 0px;
}
.inline.fancy-list li {
    border-right: 1px solid #212121;
    display: inline;
    line-height: 2;
    list-style-type: none;
    margin-left: 8px;
    padding-right: 8px;
}
.ose-youtube, .ose-twitter, .ose-{
	width:100% !important;
	height: auto !important;
    max-height: 100% !important;
}
@media only screen and (min-width: 768px) {

@media (max-width: 767px) {
    .td-pb-span3 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span4 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span5 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span6 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span7 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span8 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span9 .td-slide-on-2-columns .td-doubleSlider-1, .td-pb-span3 .td-slide-on-2-columns .td-slide-galery-figure, .td-pb-span4 .td-slide-on-2-columns .td-slide-galery-figure, .td-pb-span5 .td-slide-on-2-columns .td-slide-galery-figure, .td-pb-span6 .td-slide-on-2-columns .td-slide-galery-figure, .td-pb-span7 .td-slide-on-2-columns .td-slide-galery-figure, .td-pb-span8 .td-slide-on-2-columns .td-slide-galery-figure, .td-pb-span9 .td-slide-on-2-columns .td-slide-galery-figure {
        /*height: 320px;*/
    }
}

.game-info-title-left .tdm-title{
    margin-bottom: 12px;
}
.game-info-title-right .tdm-title{
    margin-top: 12px;
    margin-bottom: 2px;
}
.gallery-columns-2, .gallery-columns-3, .gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 {
    /*margin: 0 -5% 20px;*/
}


/*  ----------------------------------------------------------------------------
    wordpress default galleries
*/
.gallery img {
    border: none !important;
}
/*  ----------------------------------------------------------------------------
    caption
*/
.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 2%;
}
.gallery-item img {
    margin-bottom: 0;
}
.gallery-item .gallery-caption {
    text-align: center;
    margin-bottom: 10px;
}
/*  ----------------------------------------------------------------------------
    less for gallery slider
*/
.td-gallery-slider {
    margin-left: -15px;
    margin-right: -15px;
}
.post_td_gallery {
    font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
    color: #fff;
    margin-bottom: 24px;
    background-color: #222;
    overflow: hidden;
    clear: both;
    position: relative;
}
.td-gallery-slide-top {
    position: relative;
    min-height: 60px;
    background-color: #111;
}
.td-gallery-title {
    font-size: 22px;
    line-height: 24px;
    font-weight: bold;
    padding: 0 15px;
    text-align: center;
}
/* controls wrapper */
.td-gallery-controls-wrapper {
    height: 40px;
    margin: auto !important;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}
.td-gallery-slide-count {
    display: block;
    font-style: italic;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3px;
}
.td-gallery-slide-prev-next-but {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    display: block;
    z-index: 2;
    text-align: center;
    height: 50px;
    color: #fff;
    width: 100%;
    opacity: 0.7;
    pointer-events: none;
}
.td-gallery-slide-prev-next-but .td-icon-left {
    font-size: 40px;
    padding: 5px 17px 2px 10px;
    float: left;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}
.td-gallery-slide-prev-next-but .td-icon-right {
    font-size: 40px;
    padding: 5px 10px 2px 17px;
    float: right;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}
.td-gallery-slide-copywrite {
    float: right;
    padding: 6px 15px;
    font-style: italic;
    line-height: 15px;
    font-size: 11px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 100%;
}
.td-button {
    margin: 0 4.2px 0 4.3px;
}
.td-doubleSlider-1 {
    width: auto;
    height: 240px;
}
.td-doubleSlider-1 .td-slide-galery-figure {
    text-align: center;
    position: relative;
    width: 100%;
    height: 240px;
}
.td-doubleSlider-1 .td-slide-item img {
    max-height: 100%;
    max-width: 100%;
}
.td-doubleSlider-1 .td-slide-item {
    width: 100%;
}
.td-doubleSlider-1 .td-slide-item .td-slide-galery-figure img {
    margin: auto;
    overflow: auto;
    position: absolute;
    left: -50%;
    right: -50%;
    top: -50%;
    bottom: -50%;
}
.td-doubleSlider-1 .td-slide-item .td-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: left;
    /* if caption or description text is present */
}
.td-doubleSlider-1 .td-slide-item .td-slide-caption span {
    font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
    font-size: 12px;
    color: #fff;
    line-height: 18px;
    width: 100%;
    float: left;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.6);
}
.td-doubleSlider-1 .td-slide-item .td-slide-caption.td-gallery-slide-content {
    width: 100%;
}
