/*
  Theme Name: Rhye Child
  Template: rhye
  Theme URI: https://artemsemkin.com/rhye/wp/
  Description: This is a child theme of Rhye, used for codebase customizations
  Author: Artem Semkin
  Author URI: https://artemsemkin.com/
  Version: 1.0.0
*/

div.posts-page-header-text {
    max-width: 1140px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    font-size: 1em;
    line-height: 1.6;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 2s ease-in 0.5s forwards; /* Slower fade-in */
}

div.posts-page-header-text h1,
div.posts-page-header-text h2,
div.posts-page-header-text h3,
div.posts-page-header-text h4,
div.posts-page-header-text h5,
div.posts-page-header-text h6 {
    margin: 0 0 0.5em 0;
    padding: 0;
}

div.posts-page-header-text p {
    margin: 0 0 1em 0;
    padding: 0;
}

div.posts-page-header-text iframe {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

/* Fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    div.posts-page-header-text {
        max-width: 960px;
    }
}
@media (max-width: 992px) {
    div.posts-page-header-text {
        max-width: 720px;
    }
}
@media (max-width: 768px) {
    div.posts-page-header-text {
        max-width: 540px;
        padding: 0 10px;
    }
}
@media (max-width: 576px) {
    div.posts-page-header-text {
        max-width: 100%;
        padding: 0 15px;
    }
}

// Testing
@media (max-width: 767px) {
    .square-media-carousel .elementor-widget-container {
        width: 200px !important;
        aspect-ratio: 1 / 1 !important;
    }
}
@media (max-width: 1024px) and (min-width: 768px) {
    .square-media-carousel .elementor-widget-container {
        width: 250px !important;
        aspect-ratio: 1 / 1 !important;
    }
}

