/*
Theme Name: Nicex (Child Theme)
Theme URI: http://madsparrow.us/
Author: Mad Sparrow
Author URI: https://themeforest.net/user/madsparrow
Description: Nicex – brings your site to life with immersive featured images and subtle animations. With a focus on portfolio sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our theme works great in many languages, for any abilities, and on any device.
Tags: one-column, two-columns, right-sidebar, custom-menu, post-formats, sticky-post, translation-ready, page transition
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nicex
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Template: nicex
*/

/* Add your own modification from here
-------------------------------------------------------------- */

/* ==== TAB ACTIVE STATE (Press / Media) ==== */
/*.btn.tab-active:hover,
.btn.tab-active:focus {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}
.btn.tab-active::before,
.btn.tab-active::after {
    background-color: #fff !important;
}
.btn.tab-active .text--main,
.btn.tab-active .text--ghost,
.btn.tab-active:hover .text--main,
.btn.tab-active:hover .text--ghost {
    color: #000 !important;
}*/

/* ==== TYPOGRAPHY ==== */
body, h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Noto Sans Thai", sans-serif !important;
}

/* ==== HEADER ==== */
.main-header__layout::after {
    content: "";
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 40%,
        rgba(0,0,0,0.15) 75%,
        rgba(0,0,0,0) 100%
    );
    border-bottom: 0px;
}
.main-header__logo a, .main-header__logo svg, .main-header__logo img {
    height: 60px !important;
}
.contact-icon {
    font-size: 22px;
    margin-left: 20px;
}

/* ==== HEADER SOCIALS ==== */
.main-header__socials {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 24px;
}
.header-social {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}
.header-social span {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform .45s cubic-bezier(.76,0,.24,1), opacity .35s ease;
}
.header-social .icon-default {
    opacity: 1;
    transform: translateY(0);
}
.header-social .icon-hover {
    opacity: 0;
    transform: translateY(120%);
}
.header-social:hover .icon-default {
    opacity: 0;
    transform: translateY(-120%);
}
.header-social:hover .icon-hover {
    opacity: 1;
    transform: translateY(0);
}
.header-social:hover {
    transform: translateY(-2px);
}
.header-social i {
    font-size: 28px;
}
.main-header__socials i {
    color: white !important;
}

/* ==== HOME ==== */
.ms-slider--cont .ms-cont__inner--reordered .ms-sc--desc{
	max-width:100%;
}
/*overlay-img*/
.overlay-img::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:150px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        transparent
    );

    pointer-events:none;
}
@media (max-width: 767px) {
    .elementor-1904 .elementor-element.elementor-element-6b47cc1 .ms-sc--st {
       width: 80%;
    		align-self: center;
    }
}
@media (max-width: 767px) {
    .elementor-1904 .elementor-element.elementor-element-6b47cc1 .ms-slider--cont .ms-cont__inner {
        position: absolute;
        bottom: 7em;
        margin-bottom: 0;
    }
}
.elementor-1904 .elementor-element.elementor-element-6b47cc1 .ms-slider--img::after,
.elementor-1904 .elementor-element.elementor-element-6b47cc1 .ms-slider--video::after {
    background-image: linear-gradient(180deg, rgba(35, 40, 47, .15) 50%, #171717 100%);
}
.home-slider .ms-sc--l text {
    line-height: 50px !important;
}


/* ==== YT COUNTER ==== */
.yt-counter-wrap {
    opacity: 0;
    transition: opacity .4s ease, transform .4s ease;
    transform: translateY(20px);
}
.yt-counter-wrap.active {
    opacity: 1;
    transform: translateY(0);
}
.yt-counter {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}
.yt-eye {
    font-size: 36px;
    animation: eyePulse 2s infinite;
    margin-right: 5px;
}
.yt-dynamic {
    color: #00d2ff;
    min-width: 32px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0,210,255,.8);
    animation: flicker .15s infinite;
}
@keyframes eyePulse {
    0%   { transform: scale(1);    opacity: 1; }
    50%  { transform: scale(1.12); opacity: .7; }
    100% { transform: scale(1);    opacity: 1; }
}

/* ==== ROLLING DIGIT ==== */
.rolling-wrap {
    display: flex;
    overflow: hidden;
    height: 1em;
    line-height: 1em;
}
.digit {
    position: relative;
    width: .6em;
    height: 1em;
    overflow: hidden;
}
.digit-track {
    position: absolute;
    left: 0;
    top: 0;
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.digit-track div {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.digit-1 .digit-track { animation: rollFast 1.2s infinite linear; }
.digit-2 .digit-track { animation: rollFast 0.7s infinite linear; }
@keyframes rollFast {
    from { transform: translateY(0); }
    to   { transform: translateY(-10em); }
}

/* ==== KEN BURNS ==== */
.ms-slider .swiper-slide { overflow: hidden; }
.ms-slider--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}
.ms-slider .swiper-slide:nth-child(1).swiper-slide-active .ms-slider--img img {
    animation: kenburnsLeft 10s ease forwards;
}
.ms-slider .swiper-slide:nth-child(3).swiper-slide-active .ms-slider--img img {
    animation: kenburnsRight 8s ease forwards;
}
@keyframes kenburnsLeft {
    from { transform: scale(1) translate3d(0,0,0); }
    to   { transform: scale(1.12) translate3d(1%,0%,0); }
}
@keyframes kenburnsRight {
    from { transform: scale(1) translate3d(0,0,0); }
    to   { transform: scale(1.12) translate3d(0%,5%,0); }
}
.kenburns {
    animation: kenburns 12s ease-in-out;
}
@keyframes kenburns {
    0%   { transform: scale(1) translate3d(0,0,0); }
    50%  { transform: scale(1.12) translate3d(0%,5%,0); }
    100% { transform: scale(1) translate3d(0,0,0); }
}
.kenburns-left {
    animation: kenburnsLeft 10s ease forwards;
}

/* ==== STICKY COLUMN ==== */
@media (min-width: 1025px) {
    .sticky-column {
        position: sticky;
        top: 80px;
        align-self: flex-start;
    }
}

/* ==== PREVIEW GRADIENT OVERLAY (top & bottom) ==== */
.portfolio-feed.ms-p--l .ms-p-list__aside-wrap::before,
.portfolio-feed.ms-p--l .ms-p-list__aside-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    z-index: 10;
    pointer-events: none;
}
.portfolio-feed.ms-p--l .ms-p-list__aside-wrap::before {
    top: 0;
    height: 38%;
    background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 100%);
}
.portfolio-feed.ms-p--l .ms-p-list__aside-wrap::after {
    bottom: 0;
    height: 38%;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
}

/* ==== PRESS ==== */
/*TAB ACTIVE BUTTON*/
.btn.tab-active .ms-btn__text{
    background-color: #fff;
}
.btn.tab-active .ms-btn__text .text--main{
    color: black !important;
}
.elementor-widget-ms-button .btn .ms-btn__text .text--main{
    padding-left:10px;
    padding-right:10px;
}
.elementor-widget-ms-button .btn{
    padding-left:10px;
    padding-right:10px;
}
/*BULLET CAROUSEL*/
.swiper-pagination .swiper-pagination-bullet-active {
    width: 40px!important;
    border-radius: 12pt !important;
    -webkit-transition: width .5s cubic-bezier(.645, .045, .355, 1), opacity .5s cubic-bezier(.645, .045, .355, 1);
    transition: width .5s cubic-bezier(.645, .045, .355, 1), opacity .5s cubic-bezier(.645, .045, .355, 1);
}

.swiper-pagination .swiper-pagination-bullet{
 -webkit-transition: width .5s cubic-bezier(.645, .045, .355, 1), opacity .5s cubic-bezier(.645, .045, .355, 1);
    transition: width .5s cubic-bezier(.645, .045, .355, 1), opacity .5s cubic-bezier(.645, .045, .355, 1);
}
/*.press .ms-carousel-showcase .ms-p-img {
    justify-content: flex-start !important;
}
.press .media-wrapper img, .media-wrapper video {
    object-position: 50% 0% !important;
}
.press .ms-carousel-showcase .ms-p-img img {
    border-radius: 0px !important;
}
.press .ms-carousel-showcase .swiper-slide {
    padding: 0px !important;
    width: 35vw !important;
}
.press .ms-carousel-showcase figure.ms-p-img {
    position: relative;
    overflow: hidden;
}
.press .ms-carousel-showcase figure.ms-p-img:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.65));
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}
.press .ms-carousel-showcase .swiper-wrapper {
    margin-top: 5em;
}
.press .swiper-horizontal > .swiper-pagination-bullets,
.press .swiper-pagination-bullets.swiper-pagination-horizontal,
.press .swiper-pagination-custom,
.press .swiper-pagination-fraction {
    bottom: 40px;
}
.press .swiper-slide-active figure.ms-p-img:after {
    opacity: 1;
}
.press .ms-carousel-showcase .ms-p-content h1 {
    font-size: 2em !important;
    line-height: 1.4em !important;
    padding: 20px;
    bottom: 50px;
}
@media (max-width: 767px) {
    .press .ms-carousel-showcase .ms-p-content h1 {
        bottom: 10px;
        font-size: 1.4em !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .press .ms-carousel-showcase .swiper-slide {
        width: 100vw !important;
        padding: 14vw !important;
        max-height: 768px;
        overflow: hidden;
    }
}
@media (max-width: 1024px) {
    .press .ms-carousel-showcase .swiper-slide {
        width: 100vw !important;
    }
}
*/
/* ==== SINGLE PORTFOLIO ==== */
.ms-content--portfolio {
    padding-top: 6em;
}
.single-portfolios .ms-portfolio--meta {
    max-width: 1200px;
}
.single-portfolios .ms-portfolio--meta h1 {
    font-family: 'Noto Sans Thai' !important;
    text-align: center;
    font-size: 60px !important;
}
.single-portfolios .ms-portfolio--meta .ms-portfolio--subtitle {
    font-size: 24px !important;
    text-align: center;
    font-weight: 700;
}
.single-portfolios .ms-portfolio--meta .ms-portfolio--source {
    text-align: center;
    justify-content: center;
}
.single-portfolios .ms-portfolio--meta .ms-portfolio--source a {
    text-transform: none;
}
.single-portfolios .ms-spn--wrap {
    margin-top: 40px;
}
@media (max-width: 767px) {
    .single-portfolios .ms-portfolio--meta .ms-portfolio--source {
        flex-direction: column;
    }
    .single-portfolios .ms-portfolio--meta h1 {
        font-size: 26px !important;
    }
    .single-portfolios .ms-spn--wrap {
        margin-top: 0px;
    }
    .ms-spn--wrap .ms-spn--content {
        min-height: 2vh;
    }
    .single-portfolios .ms-portfolio--meta {
        padding-top: 20px;
    }
}
@media (max-width: 1024px) {
    .single-portfolios .ms-spn--wrap {
        margin-top: 0px;
    }
    .single-portfolios .ms-spn--wrap .ms-spn--content {
        min-height: 2vh;
    }
}

/* ==== SERIES ==== */
.grid-item-p__list {
    padding-bottom: 40px;
    margin-top: 40px !important;
}
.portfolio-series .portfolio-feed.ms-p--l .ms-p-list__item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.portfolio-series .ms-series-meta {
    margin-left: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.portfolio-series .portfolio-feed.ms-p--l .ms-p-list__item h3 {
    margin-bottom: 0px;
}
.portfolio-series .ms-series-meta .ms-series-role {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
}
.portfolio-series .ms-series-channels {
    margin-top: 10px;
}
.portfolio-series .ms-series-ch img {
    max-height: 50px;
    padding: 12px;
    border-radius: 12px;
    background-color: black;
}

/* ==== SERIES META BASE ==== */
.ms-series-meta {
    width: 100%;
    padding: 2px 0 var(--space-xs) 0px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ms-series-subtitle {
    font-size: .85rem;
    color: var(--color-contrast-medium);
    margin: 0;
    line-height: 1.4;
}
.ms-series-role {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-contrast-low);
    margin: 0;
    line-height: 1.4;
}
.ms-series-channels {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.ms-series-ch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ch-color, currentColor);
}
.ms-series-ch svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}
.ms-series-ch__img {
    height: 28px;
    width: auto;
    max-width: 80px;
    display: block;
    object-fit: contain;
}
.ms-series-ch__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 4px;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
}

/* ==== SONG CHANNELS ==== */
.porfolio-song .portfolio-feed.ms-p--l .ms-p-list__item > a h3 {
    flex-grow: 0;
}
/*.ms-p-list__item > a .p-list-item__svg {
    flex-shrink: 0;
    margin-left: auto;
}*/
.porfolio-song .portfolio-feed.ms-p--l .ms-p-list__item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.porfolio-song .ms-song-channels__list {
    margin-left: 40px;
}
.porfolio-song .song-counter-hilight {
    font-size: 30px;
    color: hsl(250, 93%, 65%);
    font-weight: 700;
}
.ms-song-channels {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.ms-song-channels__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-contrast-medium);
    white-space: nowrap;
    margin: 0;
}
.ms-song-channels__list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16pt;
}
/* channels ขึ้นบรรทัดใหม่ใต้ title */
/*.ms-p-list__item > a {
    flex-wrap: wrap;
}*/
.ms-p-list__item .ms-song-channels__list {
    flex-basis: 100%;
    margin-top: 4px;
    padding-bottom: 8px;
}

/* ==== SONG CHANNEL ICONS ==== */
.ms-song-ch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--ch-color, currentColor);
    text-decoration: none;
    transition: transform .3s ease, opacity .3s ease;
}
.ms-song-ch:hover {
    transform: translateY(-3px);
    opacity: .75;
}
.ms-song-ch svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
}
.ms-song-ch__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--ch-color, #04BE64);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
    white-space: nowrap;
}
