/* Social Glamour tour — Bootstrap 5.3.3 shims on top of Metronic-derived SG CSS. */

/* Preserve SG brand buttons (btn-default removed in BS5). */
.btn-primary {
    border: none;
    background: #e94d1c;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background: #cc3304;
    border: none;
}
/* Match live Bootstrap 3 .btn-default (style-s Metronic grey block is commented out). */
.btn-default,
a.btn-default {
    display: inline-block;
    border: 1px solid #ccc;
    color: #333;
    background-color: #fff;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.42857143;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
a.btn-default:hover,
a.btn-default:focus,
a.btn-default:active {
    border-color: #adadad;
    color: #333;
    background-color: #e6e6e6;
}
/* Live tour/members View All: class="btn btn-default viewmore" on the <a> — .viewmore font wins. */
a.btn.viewmore,
a.btn-default.viewmore,
.viewmore > a.btn,
.viewmore > a.btn-default {
    float: right;
    margin: 8px 5px 24px 0;
    color: #656565 !important;
    font: 20px/1.4 'PT Sans Narrow', sans-serif !important;
    text-transform: uppercase;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    padding: 6px 12px !important;
}
a.btn.viewmore:hover,
a.btn-default.viewmore:hover,
.viewmore > a.btn:hover,
.viewmore > a.btn-default:hover {
    color: #333 !important;
    background-color: #e6e6e6 !important;
    border-color: #adadad !important;
}

/*
 * Mobile / tablet header — Metronic hid .mobi-toggler by default and used a
 * background sprite. Under BS5 + narrow viewports the logo can push the
 * control off-screen. Use flex so the toggler stays visible at ~390px.
 */
.header .mobi-toggler {
    background-image: none !important;
    background-color: #fff;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}
.header .mobi-toggler i {
    display: inline-block;
    color: #333;
    font-size: 16px;
    line-height: 30px;
}
/* Logo and nav are floated. An empty logo leaves the header at 0 height and the
   first content row sits beside the nav. */
.header > .container::after {
    content: "";
    display: block;
    clear: both;
}
@media (max-width: 1024px) {
    .header > .container {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        overflow-x: hidden;
        max-width: 100%;
        position: relative;
        padding-right: 52px; /* room for absolute toggler at phone widths */
    }
    .header .site-logo {
        float: none !important;
        flex: 1 1 auto;
        max-width: 100% !important;
        width: auto !important;
        margin: 8px 0 !important;
    }
    .header .site-logo img {
        max-width: 100%;
        height: auto;
    }
    .header .mobi-toggler,
    .header button.mobi-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        float: none !important;
        position: absolute !important;
        top: 12px;
        right: 8px;
        flex: 0 0 40px;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        border: 1px solid #d8d8d8 !important;
        border-radius: 50% !important;
        background: #fff !important;
        background-image: none !important;
    }
    .header .mobi-toggler i,
    .header button.mobi-toggler i {
        display: inline-block !important;
        color: #333 !important;
        font-size: 18px !important;
        line-height: 1 !important;
        background: none !important;
        width: auto !important;
        height: auto !important;
    }
    .header .mobi-toggler[aria-expanded="true"] {
        border-color: #e94d1c;
        color: #e94d1c;
    }
    .header .mobi-toggler[aria-expanded="true"] i {
        color: #e94d1c !important;
    }
    .header .header-navigation {
        display: none;
        flex: 1 0 100%;
        width: 100%;
        float: none !important;
        clear: both;
        margin: 0;
        padding: 0 0 12px;
        background: #f9f9f9;
        overflow-x: hidden;
    }
    .header .header-navigation.is-open {
        display: block !important;
    }
    .header .header-navigation > ul {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .header .header-navigation > ul > li {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
    }
    .header .header-navigation > ul > li > a {
        display: block;
        padding: 10px 12px;
        word-wrap: break-word;
    }
    /* Search usable while the mobile menu is open (existing form/route). */
    .header .header-navigation.is-open .menu-search {
        display: block;
        padding: 8px 12px 12px;
    }
    .header .header-navigation.is-open .menu-search .sep {
        display: none;
    }
    .header .header-navigation.is-open .menu-search .search-btn {
        display: inline-block;
        margin-bottom: 8px;
        cursor: pointer;
    }
    .header .header-navigation.is-open .menu-search .search-box {
        display: block !important;
        position: static;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
    .header .header-navigation.is-open .menu-search .input-group {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
    }
    .header .header-navigation.is-open .menu-search .form-control {
        min-width: 0;
        flex: 1 1 auto;
    }
}
@media (min-width: 1025px) {
    .header .mobi-toggler {
        display: none !important;
    }
}

.sg-hero {
    max-width: 1920px;
    width: 100%;
    margin: -23px auto 0;
}
.sg-hero .swiper-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .sg-hero .swiper-slide img {
        height: 240px;
    }
}
.sg-hero .swiper-button-next,
.sg-hero .swiper-button-prev {
    color: #fff;
}

.sg-parallax {
    min-height: 600px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 20px 0 30px;
}
@media (max-width: 768px) {
    .sg-parallax { min-height: 400px; }
}
@media (max-width: 600px) {
    .sg-parallax { min-height: 250px; }
}
@media (max-width: 400px) {
    .sg-parallax { min-height: 180px; }
}

.pi-img-wrapper {
    position: relative;
    width: 100%;
}
.pi-img-wrapper > a:first-child {
    display: block;
    width: 100%;
}
.pi-img-wrapper img.img-fluid {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
/* Bootstrap's container max-width caps the skin's 96% / 1850px widths. */
@media (min-width: 769px) and (max-width: 1919px) {
    .container {
        width: 96% !important;
        max-width: none !important;
        padding: 0;
    }
}
@media (min-width: 1920px) {
    .container {
        width: 1850px !important;
        max-width: none !important;
    }
}
/* Metronic play overlay — keep icon centered over the thumb. */
.pi-img-wrapper .mplay {
    pointer-events: none;
}
.pi-img-wrapper .mplay img {
    width: auto;
    max-width: 72px;
    height: auto;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.container.padx > .row.margin-bottom-40 > .col-md-12.padx > h2 {
    margin: 10px 0 16px;
}
.container.padx > .row.margin-bottom-40 > .col-md-12.padx > h2 .fa {
    margin-right: 6px;
}
/* float/margin for View All already set with live colors above */

.sg-strip .swiper-slide {
    height: auto;
}
.sg-strip .product-item h3 {
    font-size: 16px;
}

/* form-inline removed in BS5. Footer form stacks; sticky bar stays one row. */
.pre-footer-subscribe-box .form-inline {
    display: block;
    text-align: left;
}
.pre-footer-subscribe-box label {
    display: block;
    margin: 0 0 2px;
    font-weight: normal;
}
.pre-footer-subscribe-box .input-group {
    display: block;
    width: 100%;
    max-width: 220px;
}
.pre-footer-subscribe-box .form-control {
    width: 100%;
}
.pre-footer-subscribe-box .btn-primary,
.stickyf .btn-primary {
    background: #454243;
}
.pre-footer-subscribe-box .btn-primary:hover,
.pre-footer-subscribe-box .btn-primary:focus,
.stickyf .btn-primary:hover,
.stickyf .btn-primary:focus {
    background: #B30104;
}
#web_sub_sticky {
    display: inline-block;
    vertical-align: middle;
}
.stickyf .form-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}
.stickyf .emtext {
    display: inline-block;
    color: #fff;
    margin-right: 12px;
    line-height: 50px;
}
.stickyf input[type="text"],
.stickyf input[type="email"] {
    height: 34px;
    padding: 4px 8px;
}

.sg-login {
    max-width: 420px;
    margin: 40px auto 80px;
    padding: 24px;
    background: #fff;
    border: 1px solid #eee;
}
.sg-login h3 {
    margin-bottom: 16px;
}
.sg-login .form-control {
    margin-bottom: 10px;
}
.sg-login .btn-login {
    width: 100%;
    background: #e94d1c;
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 10px;
}

.elx_az_links { margin: 10px 0 10px 20px; }
.A-Z_links span { padding: 0 1px; }
.A-Z_links .letter {
    display: inline-block;
    padding: 2px 6px;
    color: #3c3c3c;
}
.A-Z_links a:hover .letter,
.A-Z_links .letter_current {
    background: #e94d1c;
    color: #fff;
}
.sort_options { margin: 10px 0 10px 20px; }
.sg-models-more { width: 100%; margin-bottom: 30px; }
#ratebox { margin-top: 30px; }
.sg-stars { color: #c5c5c5; font-size: 18px; letter-spacing: 2px; }
.sg-stars .fa-star { color: #e94d1c; }
.sg-stars .fa-star-o { color: #c5c5c5; }
.rating_text { margin-top: 8px; }
.product-page .bansp img { width: 100%; height: auto; }
.sg-trailer-player {
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
}
.sg-trailer-player #video-x { width: 100%; }
.sg-scene-facts {
    max-width: 1300px;
    margin: 4px auto 28px;
}
.sg-scene-facts .description {
    margin: 0 0 14px;
    color: #3c3c3c;
    font-size: 15px;
    line-height: 1.55;
}
.sg-scene-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    color: #666;
}
.sg-scene-meta i {
    margin-right: 6px;
    color: #e94d1c;
}
.sg-scene-meta a {
    color: #3c3c3c;
    text-decoration: none;
}
.sg-scene-meta a:hover { color: #e94d1c; }
.sg-scene-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}
.sg-scene-tags a,
.sg-scene-tags span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ddd;
    color: #3c3c3c;
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
}
.sg-scene-tags a:hover {
    border-color: #e94d1c;
    color: #e94d1c;
}
.sg-models-more .btn {
    text-align: center;
    margin: 20px auto;
    float: none;
    font: 26px 'Open Sans', sans-serif;
    padding-left: 10px;
}

/* Tour pagination uses Metronic <li><a> markup (not BS5 page-item/page-link). */
.main .pagination,
.pagination.justify-content-center {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin: 20px 0 30px;
    gap: 0;
}
.pagination > li {
    display: inline-block;
}
.pagination > li > a {
    display: block;
    padding: 0.375rem 0.75rem;
    color: #3c3c3c;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
}
.pagination > li.active > a,
.pagination > li.active > a:hover,
.pagination > li.active > a:focus {
    background: #e94d1c;
    border-color: #e94d1c;
    color: #fff;
}

/*
 * BS5 grid gutters — denser Metronic product packing.
 * Content grids use col-12 / col-sm-6 / col-lg-3 (1 / 2 / 4).
 *
 * CRITICAL: do not leave .product-list.row at width:auto. Nested percentage
 * columns (col-lg-3) inside an indefinite flex width shrink-wrap the entire
 * listing to ~70px (visible as collapsed “sliver” cards on /tease, /photos).
 */
.product-list.row,
.product-page .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    width: 100%;
    max-width: 100%;
}

/* Listing shells under .main must fill the container (same as homepage rows). */
.main .container > .row,
.main .row.margin-bottom-40 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.main .container > .row > [class*="col-"],
.main .row.margin-bottom-40 > .sidebar,
.main .row.margin-bottom-40 > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.main .product-page {
    width: 100%;
}
.main .product-page > h1 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}
.main .product-page .row > .item {
    margin-bottom: 1rem;
}
.main .product-page .product-item {
    width: 100%;
}
.main .product-page .product-item .pi-img-wrapper {
    min-height: 120px;
    background: #f3f0ec;
}
.main .product-page .product-item h3,
.main .product-page .product-item h3 a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.25;
}
.main .row.margin-bottom-40 .product-page {
    max-width: 100%;
}

/* Card columns: keep title/meta readable; image box holds aspect ratio. */
.product-list > .item {
    min-width: 0;
}
.product-list > .item .product-item {
    width: 100%;
}
.product-list > .item .product-item h3,
.product-list > .item .product-item h3 a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-list > .item .product-item .pi-added {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* SG-owned category empty/fallback preview (never another Studio's assets). */
.sg-cat-fallback,
.sg-cat-fallback-wrap img.sg-cat-fallback {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f3f0ec;
    border: 1px solid #e0d8d0;
}

/* Legacy utility aliases still present in Metronic SG CSS / markup. */
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Search box in header: BS5 input-group without input-group-btn wrapper. */
.header-navigation .menu-search .input-group > .btn {
    z-index: 2;
}

/* Join CTA unavailable — keep nav placement without a dead href. */
.header-navigation .sg-join-disabled {
    display: inline-block;
    padding: 16px 10px 13px;
    color: #999;
    cursor: default;
    text-decoration: none;
}

/* PHP Tour helpers */
.sg-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    color: #999;
    font-size: 2rem;
    font-weight: 700;
}
.sg-pagination {
    margin: 24px 0 40px;
}
.item.padx > .product-item {
    width: 100%;
}
.sg-strip .item.padx {
    width: 100%;
    padding: 0;
}

/* Powered by ZMS — unobtrusive footer attribution (Tour + future Members). */
.powered-by-zms {
    color: inherit;
    font-size: 0.85em;
    margin: 0.5rem 0 0;
    opacity: 0.85;
}
.powered-by-zms a {
    color: inherit;
    text-decoration: underline;
}
.footer .powered-by-zms {
    display: inline-block;
}

.zms-legal-page {
    max-width: 960px;
    margin: 0 auto 2.5rem;
}
.zms-legal-page__banner {
    background: #111;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.9rem 1.25rem;
    text-align: center;
}
.zms-legal-page__panel {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.zms-legal-page .custom-page-body {
    color: #333;
    line-height: 1.65;
    padding: 2rem 2.25rem 2.5rem;
}
.zms-custom-page-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.zms-custom-page-gallery-item {
    max-width: 240px;
}
.zms-custom-page-gallery-item img,
.zms-custom-page-gallery-item video {
    max-width: 100%;
    height: auto;
}

/* Card titles: one line, clip to the item (inline <a> nowrap otherwise overflows). */
.product-item {
    min-width: 0;
}
.product-item h3,
.product-item h3 a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
