
html, body {
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* FINAL WORKING VERSION */
.portfolio-title {
    font-size: 25px !important;  /* change this for tablet */
    padding: 4px 6px !important;
    top: 10px !important;
    right: 10px !important;
    line-height: 1.1 !important;
    transform: scale(0.85);
    transform-origin: top right;
}


/* left strip fixed width */
.left-strip {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    background-size: 100% 70px !important;
    overflow: hidden !important;
}

/* case wrapper: left column fixed, right uses remaining space */
.case-wrapper {
    grid-template-columns: 70px 1fr !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* floating player shrinks */
.player-floating {
    width: 70px !important;
    bottom: 24px !important;
}

/* content column sizing and internal padding */
.case-content {
    /* force content width to remaining viewport after left-strip */
    width: calc(100vw - 70px) !important;
    max-width: calc(100vw - 70px) !important;
    padding: 18px 18px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* make sure generic images inside content don't overflow */
.case-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* typography scale on mobile */
h1, h2 {
    font-size: 50px !important;
    line-height: 0.2 !important;
}
p,li {
    font-size: 16px !important;
    line-height: 1.1 !important;
}

/* remove vertical divider lines (if any pseudo elements) */
.foundation::after {
    display: none !important;
}

.line_gap{
    line-height: 1 !important;
}



/* spacing utilities */




.naming img { padding: 1px !important;
margin: 0px !important;}
.big_idea { padding: 50px !important; }
.icons_padding {
    margin: 0 auto !important;
    display: block !important;
    width: 60px !important;
    padding: 0 !important;               /* remove all offsets */
}

.icons_padding img {
    width: 150px !important;   /* reduce image width */
    height: auto !important;  /* keep proportions */
    display: block !important;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 0 auto !important; /* center horizontally */
}


.foundation{
    margin-left: 15px !important;
    display: block !important;
    width: 100% !important;
    justify-content: center !important;  /* center horizontally */
    align-items: center !important;      /* center vertically */
    padding: 0 !important;               /* remove all offsets */
    text-align: left !important;
    gap: 30px;

}



/* ---------- PLAYER ICONS: strong overrides ---------- */
/* default mobile size for icons (pixel value is safest) */
img.table_icons,
.table_icons {
    height: 50px !important;     /* pick whatever pixel size you want */
    width: auto !important;
    max-height: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* override ANY inline width="" attribute on the <img> */
img.table_icons[height] {
    height: 28px !important;
    width: auto !important;
}

/* also override inline style attributes if used */
img.table_icons[style] {
    height: 48px !important;
    width: auto !important;
}

/* generic .player icons (if not using .table_icons class) fallback */
.player img {
    width: 60px !important;
    height: auto !important;
}

/* next icons (bottom right) */
.next-icons img {
    width: 80px !important;
    transition: transform 0.25s ease !important;
}
.next-icons img:hover { transform: scale(1.15); }
.next-icons img:active { transform: scale(1.22); }

/* ---------- grid & columns safety ---------- */
/* Prevent bootstrap columns from exceeding viewport */
.row [class*="col-"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* ensure the left strip never causes horizontal scroll */
html, body, .case-wrapper, .case-content {
    -webkit-overflow-scrolling: touch;
}


/* small-screen friendly players-row (if you have custom grid elsewhere) */
.players-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: auto !important;
    gap: 12px !important;
    width: 100% !important;
    justify-items: center !important;
    align-items: center !important;
}

/* if you want the third item to be first column second row by default on top quadrants */
.players-row .player:nth-child(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

.row > .col-md-4.row_margin_right {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.row > .col-md-6.row_margin_right {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.challenge{
    width: 400px !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 50px !important;
}


