/*
Theme Name: SPG BY JAMSHID AMIRI
Theme URI: https://tarhpsd.ir/
Author: jamshid amiri
Author URI: https://tarhpsd.ir
Description: spgiran by jamshid amiri
Version: 1.2.0
Text Domain: spg
*/

/* Global styles */
.center-absolute-horizontal {
    position: absolute;
    left: 50% !important;
    right: inherit !important;
    transform: translateX(-50%) !important;
}

@media screen and (max-width: 1024px) {
    .center-absolute-horizontal-tablet {
        position: absolute;
        left: 50% !important;
        right: inherit !important;
        transform: translateX(-50%) !important;
    }
}

@media screen and (max-width: 767px) {
    .center-absolute-horizontal-mobile {
        position: absolute;
        left: 50% !important;
        right: inherit !important;
        transform: translateX(-50%) !important;
    }
}

selector iframe,
selector video {
    object-fit: contain;
    background-color: black;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    display: block;
    opacity: 0.5;
}

.back-to-top:hover {
    opacity: 1;
}

/* Hide only before header is ready */
html:not(.header-ready) body:not(.elementor-editor-active):not(.elementor-editor-preview) .top-nav,
html:not(.header-ready) body:not(.elementor-editor-active):not(.elementor-editor-preview) .header-container {
    visibility: hidden;
    opacity: 0;
    min-height: 80px;
}

/* Show when header is ready */
html.header-ready .top-nav,
html.header-ready .header-container {
    visibility: visible;
    opacity: 1;
    transition: .3s;
}
/* /Global styles */

