/*
Theme Name: Alchemy of Shorts
Theme URI: none
Author: alhimikus
Author URI: none
Description: Don't forget to explore the match.
Version: 1.01
License: License
License URI: No license required
Text Domain: None
Tags: No need to search for this topic, it is not available anywhere else
*/


.page-title {
    position: relative;
}

.page-title-content {
    position: relative;
}

.page-title-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: var(--filter_back_title);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.swiper-wrapper {
    height: auto !important;
}

.tariff-card .button-purchase-course {
    background-color: var(--accent-color-average);
    ;
    color: var(--white-color);
    border: none;
    width: 100%;
    margin-top: 25px;
    margin-bottom: 0;
}

.purchase-course {
    margin: 0 !important;
}

@media only screen and (min-width: 1200px) {
    .mainpage__cover {
        background-position: 100% 0, 0 0 !important;
    }
}

@media only screen and (min-width: 1400px) {
    .mainpage__cover {
        background-position: 100% 0, 0 0 !important;
    }
}

@media only screen and (min-width: 1200px) {
    .page__main {
        background-position: left top !important;
    }
}

.page-section._bg-section-4 {
    background-position: left top !important;
}

@media only screen and (max-width: 1200px) {
    .page-section._bg-section-4 {
        background-position: center center !important;
    }
}

div.text-pod-postlist {
    margin-top: 60px;
}

.mainpage__catalog-list-grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

@media only screen and (min-width: 500px) {
    .mainpage__catalog-list-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 768px) {}

@media only screen and (min-width: 1200px) {}

/* Indentation for lists is the distance between the lines */
li {
    padding-top: 0;
}

/* Indentation style for single articles in posts */
.course-product-div {
    padding: 0;
}

.course__pr {
    min-height: 25px;
}

/* Temporary style while there are three authors on the main page, not four or more */
@media only screen and (min-width: 1000px) {
    .mainpage__profiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Darkening at the bottom of the thumbnail image on links to articles */
.course-product__img::after {
    background: -webkit-gradient(linear, left bottom, left top, from(var(--accent-color-average)), color-stop(80%, rgba(168, 144, 107, .15)), to(rgba(200, 190, 174, 0)));
    background: -o-linear-gradient(bottom, var(--accent-color-average) 0, rgba(168, 144, 107, .15) 80%, rgba(200, 190, 174, 0) 100%);
    background: linear-gradient(to top, var(--accent-color-average) 0, rgba(168, 144, 107, .15) 80%, rgba(200, 190, 174, 0) 100%);
}

/* Перенос строк аккордионов в мобильной версии */
@media only screen and (max-width:1000px) {
    .accordion__toggle-text strong {
        white-space: normal;
    }
}

/* Стили для отзывов в виде картинок */
.review-card__image {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    /* Отступы вокруг изображения */
    box-sizing: border-box;
}

.review-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 15px;
}

.fullscreen-overlay {
    display: none;
    /* Изначально скрываем оверлей */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Полупрозрачный черный фон */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Высокий z-index для перекрытия всего остального */
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-overlay.active {
    display: flex;
    /* Показываем оверлей при активации */
}

.textblock-item {
    margin-top: 10px;
}