/*
Theme Name: TPG Garage
Theme URI: https://www.theporngarage.com/
Author: TPG
Description: Luxury video catalog theme for The Porn Garage.
Version: 0.2.0
Text Domain: tpg-garage
*/

:root {
    --bg: #070708;
    --bg-soft: #0d0d10;
    --surface: #111115;
    --surface-2: #18181e;
    --line: rgba(255,255,255,.085);

    --text: #f8f8f9;
    --muted: #96969f;

    --gold: #ff9d19;
    --gold-2: #ff6a00;

    --max: 1420px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    overflow-x: hidden;

    background:
        radial-gradient(circle at 78% 4%, rgba(255,122,0,.08), transparent 30%),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.tpg-container {
    width: min(calc(100% - 44px), var(--max));
    margin-inline: auto;
}

/* HEADER */

.tpg-header {
    position: sticky;
    top: 0;
    z-index: 999;

    border-bottom: 1px solid var(--line);

    background: rgba(7,7,8,.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.admin-bar .tpg-header {
    top: 32px;
}

.tpg-header-inner {
    min-height: 78px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 38px;
}

.tpg-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 20px;
    font-weight: 950;
    letter-spacing: -.7px;
}

.tpg-logo strong {
    color: var(--gold);
}

.tpg-nav {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 30px;

    font-size: 13px;
    font-weight: 750;
}

.tpg-nav a {
    color: #d2d2d7;
    transition: color .18s ease;
}

.tpg-nav a:hover {
    color: var(--gold);
}

.tpg-header-search input {
    width: 210px;

    padding: 10px 14px;

    border: 1px solid var(--line);
    border-radius: 999px;

    outline: 0;

    background: rgba(255,255,255,.04);
    color: #fff;

    font-size: 12px;
}

.tpg-header-search input:focus {
    border-color: rgba(255,157,25,.45);
}

/* HERO */

.tpg-luxury-hero {
    position: relative;
    overflow: hidden;

    min-height: 690px;

    border-bottom: 1px solid var(--line);

    background:
        linear-gradient(90deg, rgba(7,7,8,.98), rgba(7,7,8,.70)),
        radial-gradient(circle at 76% 40%, rgba(255,111,0,.16), transparent 34%);
}

.tpg-hero-grid {
    position: relative;
    z-index: 3;

    min-height: 690px;

    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;

    gap: 40px;
}

.tpg-hero-glow {
    position: absolute;

    width: 540px;
    height: 540px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}

.tpg-glow-one {
    right: 4%;
    top: 4%;

    background: rgba(255,117,0,.13);
}

.tpg-glow-two {
    right: 32%;
    bottom: -30%;

    background: rgba(255,191,91,.06);
}

.tpg-kicker,
.tpg-section-kicker {
    color: var(--gold);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;
}

.tpg-hero-copy {
    position: relative;
    z-index: 5;

    max-width: 690px;
}

.tpg-hero-copy h1 {
    max-width: 760px;

    margin: 16px 0 22px;

    font-size: clamp(44px, 5.7vw, 82px);
    line-height: .99;
    letter-spacing: -3.7px;
}

.tpg-hero-copy h1 span {
    display: block;

    background:
        linear-gradient(90deg, #fff0d8, var(--gold), #ff6d00);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.tpg-hero-lead {
    max-width: 610px;

    margin: 0;

    color: #aaaab3;

    font-size: 17px;
}

.tpg-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.tpg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 850;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.tpg-btn:hover {
    transform: translateY(-2px);
}

.tpg-btn-primary {
    background:
        linear-gradient(135deg, var(--gold), var(--gold-2));

    color: #090909;

    box-shadow:
        0 12px 40px rgba(255,121,0,.20);
}

.tpg-btn-ghost {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
}

.tpg-btn-ghost:hover {
    border-color: rgba(255,157,25,.45);
}

.tpg-hero-points {
    display: flex;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 26px;

    color: #777780;

    font-size: 11px;
    font-weight: 700;
}

/* DIAMOND ROTATOR */

.tpg-diamond-stage {
    position: relative;

    height: 560px;

    perspective: 1000px;
}

.tpg-stage-ring {
    position: absolute;
    left: 50%;
    top: 52%;

    width: 470px;
    height: 470px;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255,157,25,.11);
    border-radius: 50%;

    box-shadow:
        inset 0 0 100px rgba(255,128,0,.035),
        0 0 100px rgba(255,128,0,.035);
}

.tpg-diamond-card {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 138px;
    height: 210px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;

    opacity: 0;

    box-shadow:
        0 30px 80px rgba(0,0,0,.62);

    transition:
        transform 1s cubic-bezier(.22,.8,.22,1),
        opacity .7s ease,
        filter .7s ease;

    will-change: transform, opacity;
}

.tpg-diamond-card[data-pos="0"] {
    z-index: 1;

    opacity: .16;

    filter: blur(2px);

    transform:
        translate(-50%, -50%)
        translate(-260px, 120px)
        rotate(45deg)
        scale(.64);
}

.tpg-diamond-card[data-pos="1"] {
    z-index: 2;

    opacity: .52;

    transform:
        translate(-50%, -50%)
        translate(-165px, -55px)
        rotate(45deg)
        scale(.82);
}

.tpg-diamond-card[data-pos="2"] {
    z-index: 6;

    opacity: 1;

    transform:
        translate(-50%, -50%)
        translate(0, -95px)
        rotate(45deg)
        scale(1.08);

    border-color: rgba(255,163,45,.35);

    box-shadow:
        0 40px 110px rgba(0,0,0,.78),
        0 0 50px rgba(255,133,0,.12);
}

.tpg-diamond-card[data-pos="3"] {
    z-index: 3;

    opacity: .67;

    transform:
        translate(-50%, -50%)
        translate(165px, -5px)
        rotate(45deg)
        scale(.88);
}

.tpg-diamond-card[data-pos="4"] {
    z-index: 1;

    opacity: .22;

    filter: blur(1px);

    transform:
        translate(-50%, -50%)
        translate(265px, 145px)
        rotate(45deg)
        scale(.67);
}

.tpg-diamond-card[data-pos="5"],
.tpg-diamond-card[data-pos="6"],
.tpg-diamond-card[data-pos="7"],
.tpg-diamond-card[data-pos="8"],
.tpg-diamond-card[data-pos="9"] {
    z-index: 0;

    opacity: 0;

    transform:
        translate(-50%, -50%)
        translate(0, 230px)
        rotate(45deg)
        scale(.52);
}

.tpg-diamond-inner {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 155%;
    height: 125%;

    transform:
        translate(-50%, -50%)
        rotate(-45deg);

    display: flex;
    align-items: flex-end;

    padding: 34px;

    overflow: hidden;

    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 24%),
        linear-gradient(145deg, #45301c, #111118 58%, #030304);
}

.tpg-diamond-inner span {
    position: relative;
    z-index: 4;

    color: rgba(255,255,255,.72);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.6px;
}

.tpg-demo-shine {
    position: absolute;

    width: 170px;
    height: 270px;

    right: -20px;
    top: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            180deg,
            rgba(255,217,161,.25),
            rgba(255,116,0,.12),
            transparent
        );

    filter: blur(18px);

    transform: rotate(15deg);
}

.tpg-tone-2,
.tpg-tone-7 {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.20), transparent 25%),
        linear-gradient(145deg, #3a1c27, #111118 60%, #050506);
}

.tpg-tone-3,
.tpg-tone-8 {
    background:
        radial-gradient(circle at 60% 20%, rgba(255,255,255,.18), transparent 25%),
        linear-gradient(145deg, #242742, #111118 60%, #040405);
}

.tpg-tone-4,
.tpg-tone-9 {
    background:
        radial-gradient(circle at 40% 10%, rgba(255,255,255,.17), transparent 24%),
        linear-gradient(145deg, #443019, #14100e 60%, #040404);
}

.tpg-tone-5,
.tpg-tone-10 {
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 26%),
        linear-gradient(145deg, #23352f, #111514 60%, #040404);
}

/* AD SYSTEM */

.tpg-ad-slot {
    margin: 30px auto;

    overflow: hidden;

    border-radius: 8px;
}

.tpg-ad-slot-active {
    text-align: center;
}

.tpg-ad-slot-active img {
    margin-inline: auto;
}

.tpg-ad-placeholder {
    min-height: 92px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px dashed rgba(255,157,25,.30);

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,157,25,.025),
            rgba(255,157,25,.025) 8px,
            transparent 8px,
            transparent 16px
        );

    color: #7d7d84;
}

.tpg-ad-placeholder strong {
    color: var(--gold);

    font-size: 10px;
    letter-spacing: 1.5px;
}

.tpg-ad-placeholder span {
    margin-top: 3px;

    font-size: 11px;
}

.tpg-ad-placeholder small {
    margin-top: 3px;

    color: #55555b;

    font-size: 9px;
}

/* SECTIONS */

.tpg-section,
.tpg-discovery-section,
.tpg-seo-section,
.tpg-faq-section {
    padding: 72px 0;
}

.tpg-section {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.012),
            transparent
        );
}

.tpg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}

.tpg-section-head h2,
.tpg-seo-section h2 {
    margin: 6px 0 0;

    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.6px;
}

.tpg-section-note {
    color: #696970;

    font-size: 11px;
}

/* VIDEO CARDS */

.tpg-video-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 30px 18px;
}

.tpg-video-card {
    min-width: 0;
}

.tpg-card-thumb {
    position: relative;

    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;

    background: var(--surface);
}

.tpg-card-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.tpg-video-card:hover .tpg-card-thumb img {
    transform: scale(1.045);

    filter: brightness(.82);
}

.tpg-premium-placeholder {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 72% 22%, rgba(255,151,32,.14), transparent 28%),
        linear-gradient(135deg, #18181d, #101013);
}

.tpg-placeholder-light {
    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    background: rgba(255,126,0,.06);

    filter: blur(50px);
}

.tpg-play-mark {
    position: relative;
    z-index: 2;

    color: rgba(255,157,25,.78);

    font-size: 26px;
}

.tpg-card-play {
    position: absolute;
    left: 50%;
    top: 50%;

    z-index: 5;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    transform:
        translate(-50%, -50%)
        scale(.82);

    border-radius: 50%;

    background: rgba(255,139,0,.92);

    color: #080808;

    font-size: 14px;

    opacity: 0;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.tpg-video-card:hover .tpg-card-play {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}

.tpg-runtime {
    position: absolute;
    right: 8px;
    bottom: 8px;

    z-index: 6;

    padding: 4px 7px;

    border-radius: 4px;

    background: rgba(0,0,0,.82);

    font-size: 10px;
    font-weight: 800;
}

.tpg-card-body {
    padding: 11px 2px 0;
}

.tpg-card-body h3 {
    margin: 0;

    font-size: 14px;
    line-height: 1.35;
}

.tpg-card-body h3 a:hover {
    color: var(--gold);
}

.tpg-card-meta {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    margin-top: 7px;

    color: #6f6f77;

    font-size: 10px;
    font-weight: 650;
}

/* TAXONOMY */

.tpg-discovery-section {
    border-top: 1px solid var(--line);
}

.tpg-tax-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}

.tpg-tax-card {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 18px;

    border: 1px solid var(--line);
    border-radius: 8px;

    background:
        radial-gradient(circle at 80% 10%, rgba(255,143,0,.12), transparent 35%),
        var(--surface);

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.tpg-tax-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255,157,25,.28);

    background:
        radial-gradient(circle at 80% 10%, rgba(255,143,0,.18), transparent 40%),
        #151519;
}

.tpg-tax-card span {
    font-size: 15px;
    font-weight: 850;
}

.tpg-tax-card small {
    margin-top: 3px;

    color: #77777f;

    font-size: 10px;
}

.tpg-performer-grid {
    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    gap: 14px;
}

.tpg-performer-card {
    min-width: 0;

    padding: 20px 12px;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: var(--surface);

    text-align: center;

    transition:
        transform .18s ease,
        border-color .18s ease;
}

.tpg-performer-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255,157,25,.25);
}

.tpg-performer-avatar {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    margin: 0 auto 12px;

    border-radius: 50%;

    background:
        linear-gradient(145deg, #26262c, #141417);

    color: var(--gold);

    font-size: 20px;
    font-weight: 900;
}

.tpg-performer-name {
    display: block;

    overflow: hidden;

    font-size: 12px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpg-performer-card small {
    display: block;

    margin-top: 4px;

    color: #707078;

    font-size: 9px;
}

.tpg-admin-preview,
.tpg-empty {
    padding: 28px;

    border: 1px dashed rgba(255,255,255,.11);
    border-radius: 8px;

    color: #65656d;

    font-size: 12px;

    text-align: center;
}

/* SEO */

.tpg-seo-section {
    border-top: 1px solid var(--line);

    background:
        radial-gradient(circle at 10% 50%, rgba(255,132,0,.06), transparent 30%);
}

.tpg-seo-grid {
    display: grid;

    grid-template-columns: .85fr 1.15fr;

    gap: 80px;
}

.tpg-seo-copy {
    color: #95959e;

    font-size: 14px;
}

.tpg-seo-copy p {
    margin-top: 0;
}

/* FAQ */

.tpg-faq-section {
    border-top: 1px solid var(--line);
}

.tpg-faq-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.tpg-faq-grid details {
    padding: 18px;

    border: 1px solid var(--line);
    border-radius: 8px;

    background: var(--surface);
}

.tpg-faq-grid summary {
    cursor: pointer;

    font-size: 12px;
    font-weight: 800;
}

.tpg-faq-grid p {
    margin-bottom: 0;

    color: #85858e;

    font-size: 11px;
}

/* FOOTER */

.tpg-footer {
    padding: 50px 0 22px;

    border-top: 1px solid var(--line);

    background: #050506;
}

.tpg-footer-grid {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 70px;
}

.tpg-footer-logo {
    font-size: 17px;
    font-weight: 950;
}

.tpg-footer-logo strong {
    color: var(--gold);
}

.tpg-footer p {
    max-width: 520px;

    margin-bottom: 0;

    color: #686870;

    font-size: 11px;
}

.tpg-footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 22px;

    color: #9a9aa1;

    font-size: 11px;
}

.tpg-footer-links a:hover {
    color: var(--gold);
}

.tpg-footer-bottom {
    display: flex;
    justify-content: space-between;

    margin-top: 34px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.05);

    color: #505057;

    font-size: 9px;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .tpg-header-inner {
        grid-template-columns: auto 1fr;
    }

    .tpg-header-search {
        display: none;
    }

    .tpg-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tpg-video-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .tpg-tax-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .tpg-performer-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }
}

@media (max-width: 820px) {
    .admin-bar .tpg-header {
        top: 46px;
    }

    .tpg-container {
        width: min(calc(100% - 28px), var(--max));
    }

    .tpg-header-inner {
        min-height: 66px;

        display: flex;
        justify-content: space-between;
    }

    .tpg-nav {
        gap: 15px;

        font-size: 10px;
    }

    .tpg-nav a:nth-child(n+4) {
        display: none;
    }

    .tpg-luxury-hero,
    .tpg-hero-grid {
        min-height: auto;
    }

    .tpg-hero-grid {
        grid-template-columns: 1fr;

        padding-top: 74px;
        padding-bottom: 40px;
    }

    .tpg-hero-copy h1 {
        font-size: clamp(44px, 13vw, 66px);

        letter-spacing: -2.8px;
    }

    .tpg-diamond-stage {
        height: 430px;
    }

    .tpg-diamond-card {
        width: 105px;
        height: 160px;
    }

    .tpg-diamond-card[data-pos="0"] {
        transform:
            translate(-50%, -50%)
            translate(-180px, 95px)
            rotate(45deg)
            scale(.62);
    }

    .tpg-diamond-card[data-pos="1"] {
        transform:
            translate(-50%, -50%)
            translate(-105px, -25px)
            rotate(45deg)
            scale(.78);
    }

    .tpg-diamond-card[data-pos="2"] {
        transform:
            translate(-50%, -50%)
            translate(0, -60px)
            rotate(45deg)
            scale(1);
    }

    .tpg-diamond-card[data-pos="3"] {
        transform:
            translate(-50%, -50%)
            translate(105px, 0)
            rotate(45deg)
            scale(.82);
    }

    .tpg-diamond-card[data-pos="4"] {
        transform:
            translate(-50%, -50%)
            translate(180px, 100px)
            rotate(45deg)
            scale(.64);
    }

    .tpg-stage-ring {
        width: 330px;
        height: 330px;
    }

    .tpg-video-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 22px 10px;
    }

    .tpg-tax-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .tpg-performer-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .tpg-seo-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .tpg-faq-grid {
        grid-template-columns: 1fr;
    }

    .tpg-footer-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }
}

@media (max-width: 480px) {
    .tpg-logo {
        font-size: 16px;
    }

    .tpg-nav a:nth-child(n+3) {
        display: none;
    }

    .tpg-hero-copy h1 {
        font-size: 45px;
    }

    .tpg-hero-lead {
        font-size: 14px;
    }

    .tpg-hero-points {
        gap: 10px;

        font-size: 9px;
    }

    .tpg-diamond-stage {
        height: 360px;

        transform: scale(.88);
    }

    .tpg-section,
    .tpg-discovery-section,
    .tpg-seo-section,
    .tpg-faq-section {
        padding: 52px 0;
    }

    .tpg-video-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .tpg-card-body h3 {
        font-size: 12px;
    }

    .tpg-card-meta {
        font-size: 8px;
    }

    .tpg-section-note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* TPG MANAGED ADS */
.tpg-managed-ad-host {
    margin-top: 28px;
    margin-bottom: 28px;
}

.tpg-managed-ad {
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.tpg-managed-ad a,
.tpg-managed-ad-picture {
    display: block;
}

.tpg-managed-ad img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 140px;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .tpg-managed-ad-host {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .tpg-managed-ad img {
        max-height: 120px;
    }
}

/* TPG HOME TOP AD - fixed commercial banner ratio */
.tpg-managed-ad-host {
    max-width: 970px;
    margin: 28px auto;
}

.tpg-managed-ad-home_top {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
}

.tpg-managed-ad-home_top .tpg-ad-picture {
    display: flex;
    width: 100%;
    aspect-ratio: 970 / 90;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tpg-managed-ad-home_top .tpg-ad-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 970px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

@media (max-width: 767px) {
    .tpg-managed-ad-host {
        max-width: 320px;
        margin: 18px auto;
    }

    .tpg-managed-ad-home_top {
        max-width: 320px;
    }

    .tpg-managed-ad-home_top .tpg-ad-picture {
        aspect-ratio: 320 / 100;
    }

    .tpg-managed-ad-home_top .tpg-ad-image {
        max-width: 320px !important;
        max-height: 100px !important;
    }
}


/* TPG HOME MID AD */
.tpg-managed-ad-host-mid {
    max-width: 970px;
    margin: 32px auto;
}

.tpg-managed-ad-home_mid {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
}

.tpg-managed-ad-home_mid .tpg-ad-picture {
    display: flex;
    width: 100%;
    aspect-ratio: 970 / 250;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tpg-managed-ad-home_mid .tpg-ad-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 970px !important;
    max-height: 250px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

@media (max-width: 767px) {
    .tpg-managed-ad-host-mid {
        max-width: 300px;
        margin: 22px auto;
    }

    .tpg-managed-ad-home_mid {
        max-width: 300px;
    }

    .tpg-managed-ad-home_mid .tpg-ad-picture {
        aspect-ratio: 300 / 250;
    }

    .tpg-managed-ad-home_mid .tpg-ad-image {
        max-width: 300px !important;
        max-height: 250px !important;
    }
}


/* TPG HOME BOTTOM AD */
.tpg-managed-ad-host-bottom {
    max-width: 970px;
    margin: 30px auto;
}

.tpg-managed-ad-home_bottom {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
}

.tpg-managed-ad-home_bottom .tpg-ad-picture {
    display: flex;
    width: 100%;
    aspect-ratio: 970 / 90;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tpg-managed-ad-home_bottom .tpg-ad-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 970px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

@media (max-width: 767px) {
    .tpg-managed-ad-host-bottom {
        max-width: 320px;
        margin: 20px auto;
    }

    .tpg-managed-ad-home_bottom {
        max-width: 320px;
    }

    .tpg-managed-ad-home_bottom .tpg-ad-picture {
        aspect-ratio: 320 / 100;
    }

    .tpg-managed-ad-home_bottom .tpg-ad-image {
        max-width: 320px !important;
        max-height: 100px !important;
    }
}
