@media screen and (max-width:1200px) {
/*
Theme Name: Payar Personal Theme
Style Name: Responsive
Author: Redina
Author URI: http://redina.ir
*/

/* =====================- Max Width 1175px -===================== */

@media screen and (max-width: 1175px) {
    #site-wrapper, #header-wrapper, #news-ticker {
        width: 980px;
    }
    main {
        width: 648px;
    }
    #slider #slider-main li .data-box {
        width: 420px;
        height: 160px;
    }

    #photo-gallery .slider-main,
    #photo-gallery.lower4 .slider-main {
        margin-right: 20px;
    }
    #photo-gallery .slider-thumb,
    #photo-gallery.lower4 .slider-thumb {
        right: auto;
        bottom: auto;
        left: 30px;
        width: 76px;
    }
    #photo-gallery .slider-thumb #right-thumb,
    #photo-gallery .slider-thumb #left-thumb {
        position: relative;
        width: 76px;
        height: auto;
    }
    #photo-gallery .slider-thumb li {
        width: 76px;
        height: 46px;
        margin-top: 4.6px;
        filter: Alpha(opacity=40);
    }
    #photo-gallery .slider-thumb li.active {
        filter: Alpha(opacity=100);
    }
    #photo-gallery .slider-thumb #right-thumb li:first-child {
        margin-top: 0;
    }
    #photo-gallery .slider-thumb #left-thumb li:first-child {
        margin-top: 4.6px;
    }
    #photo-gallery .slider-thumb li::after {
        display: none;
    }

    #site-footer #footer-wrapper {
        width: 950px;
    }
}


/* =====================- Max Width 975px -===================== */

@media screen and (max-width:1200px) {
    #site-wrapper, #header-wrapper, #news-ticker {
        width: 760px;
    }
    main {
        width: 760px;
    }

    #site-logo {
        right: 0;
    }
    #primary-nav {
        display: none;
    }
    #site-header #responsive-menu-link {
        display: block;
    }

    #slider #slider-main li .data-box {
        width: 420px;
        height: 160px;
    }

    #news-ticker.news-ticker-margin, #last-post.last-post-margin {
        margin-top: 40px;
    }
    #news-ticker h5 {
        padding-right: 15px;
    }
    #news-ticker ul li, #news-ticker ul li a {
        font: 12px/56px WIranSans;
    }

    .two-part-post #tpp-content {
        height: auto;
        max-height: 200px;
    }
    .two-part-post #tpp-content #tpp-posts .post-thumb {
        height: auto;
    }
    .two-part-post #tpp-content #tpp-posts .post-thumb h2 {
        position: relative;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        opacity: 1;
        line-height: 24px;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    #video-gallery #tpp-content #tpp-posts .post-thumb::after {
        top: 50px;
        bottom: auto;
    }
    #video-gallery #tpp-content #tpp-posts .post-thumb:hover::after {
        opacity: 1;
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    #photo-gallery .slider-main,
    #photo-gallery.lower4 .slider-main {
        margin-right: 70px;
    }
    #photo-gallery .slider-thumb,
    #photo-gallery.lower4 .slider-thumb {
        left: 80px;
    }

    #show-aside-link {
        display: block;
    }
    #hide-aside-link {
        display: block;
    }
    aside {
        position: fixed;
        top: 0;
        width: 80%;
        min-width: 318px;
        max-width: 440px;
        display: none;
        margin: 0;
        padding: 0;
        z-index: 5;
    }
    html.mm-right.mm-opening aside {
        width: 100%;
    }
    html.mm-right.mm-opening #aside-wrapper {
        width: 100%;
        height: auto;
        margin: 0;
    }
    aside .mm-panel {
        padding: 0;
    }
    #person-pic {
        text-align: center;
    }
    aside .widget {
        padding: 0;
        padding-bottom: 36px;
    }
    aside .widget header {
        margin: 0;
        margin-bottom: 12px;
    }
    aside #quick-links ul li {
        width: 100%;
        margin-right: 0;
    }
    aside .search-form {
        padding: 15px 10% 0 10%;
    }
    aside .search-form .search-input {
        width: 78%;
    }
    aside .search-form .search-submit {
        width: 20%;
    }

    #breadcrumbs {
        margin-top: 40px;
    }
    #site-article #article-header h1 {
        width: 75%;
    }
    #site-article #article-header .time {
        width: 25%;
    }

    #site-footer #footer-wrapper {
        width: 730px;
        padding: 10px 0;
    }
    #site-footer .widget ul li {
        padding: 0 10px;
    }
}


/* =====================- Max Width 755px -===================== */

@media screen and (max-width: 755px) {
    #site-wrapper, #header-wrapper, #news-ticker {
        width: 95%;
    }
    main {
        width: 100%;
    }

    #slider #slider-main li .data-box {
        width: 100%;
        height: auto;
        right: 0;
        bottom: 0;
        padding: 0;
    }
    #slider #slider-main li .data-box h2 {
        padding: 3px;
        font: 14px/24px WYekan;
        background: none;
    }
    #slider #slider-main li .data-box p {
        display: none;
    }
    
    #news-ticker {
        height: auto;
        min-height: 26px;
        border-top: 0;
    }
    #news-ticker h5 {
        display: none;
    }
    #news-ticker ul {
        width: 100%;
        height: auto;
        float: none;
        padding: 0 5px;
    }
    #news-ticker ul li {
        position: relative;
        float: none;
    }
    #news-ticker ul li, #news-ticker ul li a {
        font: 12px/26px WIranSans;
        text-align: justify;
    }
    #news-ticker ul li::before {
        margin-top: 11px;
    }

    #photo-gallery #pg-content {
        width: 100%;
        height: auto;
    }
    #photo-gallery .slider-main,
    #photo-gallery.lower4 .slider-main {
        width: 95%;
        height: auto;
        float: none;
        margin: 0 auto;
    }
    #photo-gallery .slider-main li {
        width: 100%;
        min-width: 100%;
        height: auto;
    }
    #photo-gallery .slider-thumb,
    #photo-gallery.lower4 .slider-thumb {
        display: none;
    }

    #site-article #article-header h1 {
        width: 70%;
    }
    #site-article #article-header .time {
        width: 30%;
    }

    #site-footer #footer-wrapper {
        width: 95%;
    }
    #site-footer .widget {
        width: 100%;
        margin: 10px 0;
    }
    #site-footer .widget:nth-child(2) {
        margin: 0;
    }
}


/* =====================- Max Width 320px -===================== */

@media screen and (max-width: 390px) {
    #site-header {
        height: 40px;
        padding-top: 20px;
    }
    #site-logo {
        width: 80%;
        height: auto;
        position: relative;
    }
    #site-logo img {
        display: none;
    }
    #site-logo h1, #site-logo span {
        display: block;
        text-indent: 0;
        font: 14px/1 WIranSans;
        color: #fff;
    }
    #site-header #responsive-menu-link {
        width: 24px;
        height: 20px;
        text-indent: -999px;
        background: url('../../include/img/sprite.png') no-repeat -292px -15px;
    }
    #site-header #responsive-menu-link::after {
        display: none;
    }
}


/* =====================- Max Width 320px -===================== */

@media screen and (max-width: 320px) {
    #news-ticker.news-ticker-margin, #last-post.last-post-margin {
        margin-top: 0;
    }

    #last-post article .post-thumb {
        width: 100%;
        height: auto;
        float: none;
        margin: 0;
    }

    #breadcrumbs {
        margin-top: 10px;
    }

    #site-article #article-header h1 {
        width: 100%;
        padding: 0 5px;
    }
    #site-article #article-header h1::after {
        display: none;
    }
    #site-article #article-header .time {
        width: 100%;
        padding-right: 4px;
        text-align: right;
        background: #faa61a;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
}
}

/* Mobile layout corrections, 2026-10-14. Desktop rules remain unchanged. */
@media screen and (max-width:1200px) {
  div#payar { width:100%; max-width:100%; }
  #payar #header-wrapper, #payar #site-wrapper, #payar #news-ticker { width:95% !important; box-sizing:border-box; float:none; }
  #payar main { width:100%; min-width:0; float:none; }
  #payar #slider { width:95% !important; float:none; margin:0 auto; }
  #payar #slider #slider-main, #payar #slider #slider-main li { width:100% !important; }
  #payar #primary-nav { display:none; }
  #payar aside:not(.mm-opened) { display:none; }
  #payar aside { padding:0; }
  #site-footer #footer-wrapper { width:95%; box-sizing:border-box; }
  #site-article img, #site-article video, #site-article iframe { max-width:100%; }
  #site-article img { height:auto; }
  #site-article, #last-post { overflow-wrap:anywhere; }
}
@media screen and (max-width:767px) {
  #payar #site-header { height:60px; padding-top:0; }
  #payar #header-wrapper { height:60px; display:flex; align-items:center; justify-content:space-between; }
  #payar #site-logo { position:static; width:calc(100% - 50px); height:auto; float:none; }
  #payar #site-logo img { display:none; }
  #payar #site-logo h1, #payar #site-logo span { display:block; text-indent:0 !important; font:16px/24px WIranSans,Arial,sans-serif; color:#fff; }
  #payar #site-header #responsive-menu-link { position:static; display:block; flex:0 0 24px; width:24px; height:20px; text-indent:-9999px; overflow:hidden; background:url('../../include/img/sprite.png') -292px -15px no-repeat; }
  #payar #site-header #responsive-menu-link::after { display:none; }
  #payar #slider, #payar #slider img { height:220px !important; }
  #payar #slider #slider-main { height:220px !important; }
  #payar #slider #slider-main li img { width:100% !important; float:none; object-fit:cover; }
  #payar #slider #slider-main li .data-box { position:absolute; inset:auto 0 0; width:100%; height:auto; padding:0; float:none; background:rgba(0,0,0,.65) !important; box-sizing:border-box; }
  #payar #slider #slider-main li .data-box h2 { font:16px/25px WIranSans,Arial,sans-serif; padding:8px; color:#fdb615; background:none; text-align:start; }
  #payar #slider #slider-main li .data-box p { display:none; }
  #payar #news-ticker ul { box-sizing:border-box; }
  #payar #last-post article .post-thumb { width:100%; height:auto; float:none; margin:0 0 12px; box-sizing:border-box; }
  #payar #last-post article .post-thumb img { display:block; height:auto; max-height:240px; object-fit:cover; }
  #payar #site-article #article-header h1, #payar #site-article #article-header .time { width:100%; box-sizing:border-box; float:none; }
  #payar #site-article #article-header h1::after { display:none; }
  #payar #site-article #article-header .time { text-align:start; padding:5px; }
  #payar #site-comments #respond .form-input { max-width:100%; box-sizing:border-box; }
}

#site-logo h1 { overflow:hidden; }

/* Tablet menu placement. */
@media screen and (min-width:768px) and (max-width:1200px) {
 #payar #site-header #responsive-menu-link { display:block; position:absolute; top:30px; padding-top:0; }
 html[dir="rtl"] #payar #site-header #responsive-menu-link { right:0; left:auto; }
 html[dir="ltr"] #payar #site-header #responsive-menu-link { left:0; right:auto; }
}
