/* 
Theme: KP Media House Theme
Text Domain: KP Media House
Version: 1.0.0
Description: A custom WordPress theme for KP Media House.
Tags: full-page, agency
Author: Frosso Papanastasiou
Author URI: #

*/

/* STYLES, RESET, HEADER/NAVIGATION AND FOOTER */
/*-- -------------------------- -->
<---        Core Styles         -->
<--- -------------------------- -*/
/* Root and Helpers */
@media only screen and (min-width: 0rem) {
  :root {
    --dPink: #FBB9DC;
    --dGreen: #008E84;
    --dDark: #1f1f1f;
    --dBeige: #FFF6F6;
    --dPurple: #9F72E2;
    --dOrange: #F2725D;
    --dYellow: #FFEBB4;
    --primary: #1f1f1f;
    --primaryLight: #1f1f1f;
    --secondary: #FBB9DC;
    --secondaryLight: #FEDC99;
    --pink: #FFE4ED;
    --pinkDark: #DBA3B5;
    --headerColor: #1f1f1f;
    --bodyTextColor: #1f1f1f;
    --bodyTextColorWhite: #fafbfc;
    /* 13px - 16px */
    --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
    /* 31px - 49px */
    --titleFontSize: clamp(3.5rem, 6vw, 5.5rem);
    --headerFontSize: clamp(2.4375rem, 5.55vw, 3.75rem);
    --bodyFontSize: clamp(1rem, 1.5vw, 1.2rem);
    --buttonBorder: 0px;
    /* 60px - 100px top and bottom */
    --sectionPadding: clamp(3.75rem, 5.2vw, 6.25rem) 1rem;
    --insidePagePadding: clamp(1.75rem, 2.2vw, 2.25rem) 1rem;
    /* 24px - 36px */
    --divGap: clamp(1.5rem, 2.5vw, 2.25rem);
    background-color: white;
  }
  .cs-title {
    position: relative;
    margin: 0;
    max-width: 82.5rem;
    font-size: 2.625rem;
    line-height: 1em;
    font-weight: 400;
    color: var(--dDark);
    text-align: inherit;
    font-family: "Baskerville";
    font-style: italic;
    text-transform: none;
  }
  .cs-text, p {
    margin: 0;
    max-width: 40.625rem;
    width: 100%;
    font-size: var(--bodyFontSize);
    color: var(--dDark);
    text-align: inherit;
    line-height: 1.4em;
    font-weight: 300;
    letter-spacing: -0.02em;
  }
  .cs-hide-on-mobile {
    display: none;
  }
  
  .cs-button {
    text-align: center;
    font-size: 0.85rem;
    /* 46px - 56px */
    /* line-height: clamp(2.875rem, 8vw, 3.5rem); */
    text-decoration: none;
    font-weight: 500;
    min-width: 10.875rem;
    margin: auto;
    color: white;
    padding: 0.8rem 2.5rem;
    /* prevents padding and border from affecting height and width */
    box-sizing: border-box;
    border: 0.1rem solid white;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 1;
    transition: color 0.3s;
    text-transform: uppercase;
  }                          
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  .cs-hide-on-mobile {
    display: block;
  }
  .cs-hide-on-desktop {
    display: none;
  }
}
/* Fonts and general styles */
@media only screen and (min-width: 0rem) {
  body,
  html {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    font-family: "Public Sans", Arial, sans-serif;
    font-size: 100%;
    color: var(--bodyTextColor);
  }
  *,
  *:before,
  *:after {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
  }
  body {
    transition: background-color 0.3s;
  }
  .container {
    position: relative;
    margin: auto;
    width: 92%;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    color: var(--headerColor);
  }
  p,
  li,
  a {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5em;
  }
  a {
    text-decoration: none;
  }
  p,
  li {
    color: var(--primary);
  }
  a:hover,
  button:hover {
    cursor: pointer;
  }
  .skip {
    z-index: -1111111;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
  }
  @font-face {
    font-style: normal;
    font-family: "Public Sans";
    font-weight: 400;
    font-display: swap;
    src: url(./assets/fonts/PublicSans-Regular.ttf) format("truetype");
  }
  @font-face {
    font-style: normal;
    font-family: "Public Sans";
    font-weight: 300;
    font-display: swap;
    src: url(./assets/fonts/PublicSans-Light.ttf) format("truetype");
  }
  @font-face {
    font-style: normal;
    font-family: "Baskerville";
    font-weight: 400;
    font-display: swap;
    src: url(./assets/fonts/custom-font.otf) format("opentype");
  }
  @font-face {
    font-style: italic;
    font-family: "Baskerville";
    font-weight: 400;
    font-display: swap;
    src: 
        url(./assets/fonts/custom-italic.ttf) format("truetype"),
        url(./assets/fonts/Baskerville-Italic.woff) format("woff");
  }
  @font-face {
    font-style: italic;
    font-family: "Baskerville";
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/Baskerville Bold Italic.otf') format("opentype");
  }
}

/* Reset Margins */
@media only screen and (min-width: 1024px) {
  body,
  html {
    margin: 0;
    padding: 0;
  }
}
/* Scale full website with the viewport width */
@media only screen and (min-width: 3000px) {
  body,
  html {
    font-size: 0.55vw;
  }
}
/*-- -------------------------- -->
<---     Mobile Navigation      -->
<--- -------------------------- -*/
/* Mobile - 1023px */
@media only screen and (min-width: 0rem) {
  body.cs-open {
    overflow: hidden;
  }
  #cs-navigation .cs-search {
    order: 3;
    /* search bar last on the right */
    display: none;
    align-items: center;
    gap: 0.5rem;
  }
  #cs-navigation .cs-search input {
    padding: 0.4rem 0.6rem;
    font-size: 0.6rem;
    text-align: center;
    border: none;
    border-bottom: 1px solid var(--dDark);
    transition: border-color 0.3s;
    text-transform: lowercase;
  }
  #cs-navigation .cs-search input:focus {
    outline: none;
  }
  #cs-navigation .cs-search button {
    background: white;
    border: none;
    color: #fff;
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
  }
  #cs-navigation {
    z-index: 20;
    background-color: white;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    /* prevents padding from affecting height and width */
    width: 100%;
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    /* remove the font family so the Stitch inherits the fonts from your global stylesheet */
    font-family: "Public Sans", "Arial", sans-serif;
  }
  #cs-navigation .cs-container {
    display: flex;
    justify-content: flex-end;
    padding: 0.875rem 1.5rem;
    align-items: center;
    width: 100%;
  }
  #cs-navigation .cs-logo {
    margin: 0 auto;
    height: 100%;
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 2.5rem;
    width: 15.625rem;
    max-width: 15.625rem;
    text-align: center;
    text-decoration: none;
    text-wrap: nowrap;
  }
  #cs-navigation .cs-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 0.25rem;
    margin: 0 0 0 auto;
    background-color: transparent;
    height: clamp(2.75rem, 6vw, 3rem);
    /* 44px - 48px */
    width: clamp(2.75rem, 6vw, 3rem);
    position: absolute;
    right: 1.5rem;
    top: 1rem;
  }
  #cs-navigation .cs-active .cs-line1 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(225deg);
  }
  #cs-navigation .cs-active .cs-line2 {
    top: 50%;
    transform: translate(-50%, -50%) translateY(0) rotate(-225deg);
    transform-origin: center;
  }
  #cs-navigation .cs-active .cs-line3 {
    bottom: 100%;
    opacity: 0;
  }
  #cs-navigation .cs-box {
    position: relative;
    /* 14px - 16px */
    height: clamp(0.875rem, 1.5vw, 1rem);
    /* 24px - 28px */
    width: clamp(12.5rem, 12vw, 12.75rem);
  }
  #cs-navigation .cs-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0px;
    background-color: #1a1a1a;
    height: 1.5px;
    width: 100%;
  }
  #cs-navigation .cs-line1 {
    top: 0;
    transition: transform 0.5s, top 0.3s, left 0.3s;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-direction: normal;
    animation-fill-mode: forwards;
    transform-origin: center;
  }
  #cs-navigation .cs-line2 {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    transition: top 0.3s, left 0.3s, transform 0.5s;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-direction: normal;
    animation-fill-mode: forwards;
  }
  #cs-navigation .cs-line3 {
    bottom: 0;
    transition: bottom 0.3s, opacity 0.3s;
  }
  #cs-navigation .cs-ul-wrapper {
    z-index: -1;
    position: absolute;
    padding-top: 1rem;
    top: 0%;
    left: 0%;
    right: 0%;
    opacity: 0;
    visibility: hidden;
    background-color: #fff;
    height: 100vh;
    overflow: hidden;
    transition: transform 0.3s;
    transform: scaleY(0);
    transform-origin: top;
  }
  #cs-navigation .cs-ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    /* height: 50%; */
    min-width: 40%;
    width: auto;
    overflow: scroll;
    /* 28px - 40px */
    padding-top: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    gap: 1.25rem;
  }
  #cs-navigation .cs-li {
    opacity: 0;
    /* transition from these values */
    transform: translateX(calc(-40 / 16 * 1rem));
    margin-right: 0;
    width: 100%;
    list-style: none;
    transition: transform 0.6s, opacity 0.9s;
    text-align: center;
  }
  #cs-navigation  a {
    position: relative;
    display: inline-block;
    margin: 0;
    text-decoration: none;
    /* 16px - 24px */
    font-size: 2.5rem;
    line-height: 1.2em;
    color: var(--dDark);
    font-family: "Baskerville" !important;
    font-style: italic;
    text-transform: none;
  }
  #cs-navigation .cs-button-solid {
    display: none;
  }
  #cs-navigation:before {
    z-index: -1;
    position: absolute;
    top: 100%;
    right: 0;
    /* var(--dDark) blurred overlay */
    content: "";
    opacity: 0;
    display: block;
    background: rgba(0, 0, 0, 0.6);
    height: 100vh;
    width: 0%;
  }
  #cs-navigation.cs-active .cs-ul-wrapper {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
    transition-delay: 0s;
  }
  #cs-navigation.cs-active .cs-li {
    opacity: 1;
    transform: translateX(0);
  }
  #cs-navigation.cs-active:before {
    opacity: 0;
    width: 100%;
  }
}
/*-- -------------------------- -->
<---     Navigation Dropdown    -->
<--- -------------------------- -*/
/* Mobile - 1023px */
@media only screen and (min-width: 0rem) {
  #cs-navigation .cs-dropdown {
    position: relative;
    color: var(--bodyTextColorWhite);
  }
  #cs-navigation .cs-dropdown  a {
    position: relative;
    transition: opacity 0.3s;
    font-family: "Public Sans";
  }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    margin: 0.75rem 0 0 0;
    height: auto;
    padding: 1.5rem;
  }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-link {
    opacity: 1;
  }
  #cs-navigation .cs-dropdown-button {
    border: none;
    background-color: transparent;
    font-family: inherit;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    cursor: pointer;
    appearance: none;
  }
  #cs-navigation .cs-drop-icon {
    position: absolute;
    top: 50%;
    right: calc(-20 / 16 * 1rem);
    transform: translateY(-50%);
    height: auto;
    width: 0.9375rem;
  }
  #cs-navigation .cs-drop-ul {
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    margin: 0;
    background-color: var(--primary);
    height: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 1.5rem 0 calc(24 / 16 * 1rem);
    gap: 0.75rem;
    transform-origin: top;
  }
  #cs-navigation .cs-drop-li {
    list-style: none;
    text-align: inherit;
  }
  #cs-navigation  a.cs-drop-link {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-family: "Public Sans";
    color: #fff;
  }
}
/*-- -------------------------- -->
<---     Desktop Navigation     -->
<--- -------------------------- -*/
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #cs-navigation .cs-container {
    display: flex;
    justify-content: space-between;
    /* align everything to the left */
    align-items: center;
    position: relative;
    width: 100%;
  }
   #cs-navigation .cs-search {
    display: block;
  }
  #cs-navigation .cs-toggle {
    order: 0;
    /* ensure toggle is first */
    margin: 0;
    /* reset any mobile margin */
    position: relative;
    right: unset;
    top: unset;
  }
  #cs-navigation .cs-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 1;
    /* logo comes after toggle */
    margin: 0;
  }
  #cs-navigation .cs-ul {
    order: 2;
    justify-content: flex-start;
    /* menu items after toggle + logo */
    padding: 6.25rem 1rem;
  }
  #cs-navigation .cs-ul-wrapper {
    width: 100% !important;
  }
  #cs-navigation .cs-ul {
    align-items: flex-start;
  }
  #cs-navigation .cs-li {
    text-align: center;
  }
  #cs-navigation  a {
    font-size: 3.25rem;
  }
}
/*-- -------------------------- -->
<---           Footer           -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0rem) {
  #footer {
    z-index: -1;
    padding: 5.25rem 0rem calc(60 / 16 * 1rem);
    font-size: min(4vw, 1.2em);
  }

  #footer .cs-title {
    color: var(--dDark);
    font-size: 1rem;
    letter-spacing: -0.055em;
    text-wrap: nowrap;
  }
  #footer .left-section {
    display: none;
    margin: auto;
    margin-bottom: 3.125rem;
    text-align: center;
  }
  #footer .left-section p {
    margin: auto;
    width: 100%;
    font-size: 1.5rem;
  }
  #footer .cs-title {
    font-family: "Baskerville";
  }
  #footer .right-section {
    margin: auto;
    max-width: 25.4375rem;
    width: 96%;
  }
  #footer .right-section .lists {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: auto;
    max-width: 19.1875rem;
    width: 96%;
  }
  #footer .right-section .lists ul {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }
  #footer .right-section .lists ul li {
    opacity: 0.9;
    margin-bottom: 0rem;
    list-style: none;
    font-weight: 300;
    color: var(--dDark);
  }
  #footer .right-section .lists ul li a {
    text-decoration: none;
    line-height: 1.16666667em;
    color: var(--dDark);
    transition: color 0.3s;
  }
  #footer .right-section .lists ul li a:hover {
    color: var(--primary);
  }
  #footer .right-section .lists ul:nth-of-type(3) {
    margin-top: 1%;
  }
  #footer .right-section .lists ul:nth-of-type(3) li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
  }
  #footer .right-section .lists ul:nth-of-type(3) li:last-of-type {
    margin-bottom: 0;
  }
  #footer .right-section .buttons {
    display: flex;
    justify-content: center;
  }
  #footer .right-section .cs-button-solid {
    margin: 0;
    height: 3.125rem;
    width: 13.0625rem;
    padding-top: 0.1875rem;
  }
  #footer .credit {
    margin: auto;
    margin-top: 1.25rem;
    width: 79.5rem;
    line-height: 2.25rem;
    text-align: right;
  }
  #footer .credit a {
    color: var(--dDark);
    font-size: 0.6875rem;
    font-weight: 300;
    text-transform: uppercase !important;
  }
  #footer .credit a:hover {
    text-decoration: underline;
  }
  #footer .credit .copyright {
    display: block;
    font-size: 1rem;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64rem) {
  #footer {
    z-index: 1;
  }
  #footer .container {
    z-index: 10;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: auto;
    max-width: 82.5rem;
    width: 96%;
    padding: 0;
  }
  #footer .left-section {
    display: block;
    margin: 0;
    width: 44.3125rem;
    text-align: left;
  }
  #footer .left-section p {
    margin-left: 0;
    text-align: left;
  }
  #footer .right-section {
    margin: 0;
    max-width: none;
    width: 38.0625rem;
  }
  #footer .right-section .lists {
    margin: 0;
    max-width: 48.0625rem;
    width: 96%;
  }
  #footer .right-section .lists ul li a {
    position: relative;
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--dDark);
  }
  #footer .right-section .lists ul li a:before {
    position: absolute;
    bottom: calc(-3 / 16 * 1rem);
    left: 0;
    content: "";
    opacity: 1;
    display: block;
    background: var(--dDark);
    height: 1px;
    width: 0%;
    transition: width 0.3s;
  }
  #footer .right-section .lists ul li a:hover:before {
    width: 100%;
  }
  #footer .right-section .buttons {
    justify-content: flex-start;
  }
  #footer .credit .copyright {
    display: inline-block;
  }
}

/* PAGE-SPECIFIC STYLES FOR THE DIGITAL PAGE */
/*-- -------------------------- -->
<---       Digital Roster       -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #kp-roster {
    padding: var(--sectionPadding);
    /* removing the side paddings to allow the cards to fit the whole page width */
    padding-right: 0;
    padding-left: 0;
    position: relative;
  }
  #kp-roster .cs-container {
    width: 100%;
    max-width: 156.25rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #kp-roster .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    max-width: 80rem;
    box-sizing: border-box;
    /* 16px - 40px */
    padding: 0 clamp(1rem, 3.8vw, 2.5rem);
    display: flex;
    flex-direction: row;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
    gap: 1rem;
  }
  #kp-roster .cs-text {
    max-width: 39.5rem;
  }
  #kp-roster .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  #kp-roster .cs-item {
    text-align: left;
    list-style: none;
    width: 100%;
    /* 220px - 480px */
    height: clamp(13.75rem, 32vw, 30rem);
    margin: 0;
    /* prevents padding and border from affecting height and width */
    box-sizing: border-box;
    padding: 0;
    background-color: #000;
    box-shadow: 0px 12px 80px 0px rgba(26, 26, 26, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    grid-column: span 12;
    position: relative;
    z-index: 1;
  }
  #kp-roster .cs-item:hover .cs-picture::after {
    opacity: 0.6;
  }
  #kp-roster .cs-item:hover .cs-picture img {
    transform: scale(1.2);
  }
  #kp-roster .cs-item:hover .talent-info {
    opacity: 1;
    /* 16px - 32px */
    top: clamp(1rem, 2.3vw, 2rem);
  }
  #kp-roster .cs-item:hover .cs-h3 {
    opacity: 1;
    /* 16px - 32px */
    bottom: clamp(1rem, 2.3vw, 2rem);
  }
  #kp-roster .cs-link {
    text-decoration: none;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* 16px - 32px */
    padding: clamp(1rem, 2.3vw, 2rem);
    /* we use flexbox here to grow the link to fit the whole item, making it clickable everywhere, no matter the size */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
  }
  #kp-roster .cs-link::after {
    /* hover overlay */
    content: "";
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    /* as we can't animate background gradients, we animate the change of opacity from 0 to 1 */
    transition: opacity 0.3s;
  }
  #kp-roster .talent-info {
    /* 49px - 84px */
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 500;
    /* sets the fill of the number to be transparent */
    color: var(--bodyTextColorWhite);
    opacity: 0;
    position: absolute;
    top: 0;
    /* 16px - 32px */
    right: clamp(1rem, 2.3vw, 2rem);
    transition: opacity 0.3s, top 0.3s;
    /* provides a 1px white stroke to the text, outlining it */
  }
  #kp-roster .talent-info .cs-text {
    font-size: 0.75rem;
    text-align: right;
    width: 100%;
    color: var(--bodyTextColorWhite);
  }
  #kp-roster .cs-h3 {
    font-family: "Public Sans", sans-serif;
    /* 20px - 31px */
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2em;
    white-space: nowrap;
    /* width, overflow, text-overflow and white-space all provide the ellipsis when the h3 content is too long */
    width: 80%;
    margin: 0;
    color: var(--bodyTextColorWhite);
    overflow: hidden;
    transition: opacity 0.3s, bottom 0.3s;
  }
  #kp-roster .cs-picture {
    width: 100%;
    height: 100%;
    /* prevents the mouse from interacting with it */
    pointer-events: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
  }
  #kp-roster .cs-picture:before {
    /* gradient overlay */
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0) 0%, #000 100%);
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
  }
  #kp-roster .cs-picture:after {
    /* background color overlay on hover */
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--dDark);
    opacity: 0;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: opacity 0.3s;
  }
  #kp-roster .cs-picture img {
    width: 100%;
    height: 100%;
    /* Makes img tag act as a background image */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.7s;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #kp-roster {
    padding-bottom: 0;
  }
  #kp-roster .cs-content {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  #kp-roster .cs-item {
    grid-column: span 4;
  }
  #kp-roster .cs-item:nth-of-type(4),
  #kp-roster .cs-item:nth-of-type(5) {
    grid-column: span 6;
  }
  #kp-roster .cs-text {
    width: 60%;
  }
  #kp-roster .cs-title {
    margin: 0;
  }
}
/* Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
  #kp-roster .cs-card-group {
    grid-template-columns: repeat(5, 1fr);
  }
  #kp-roster .cs-item {
    grid-column: span 1;
  }
  #kp-roster .cs-item:nth-of-type(4),
  #kp-roster .cs-item:nth-of-type(5) {
    grid-column: span 1;
  }
}

/* PAGE-SPECIFIC STYLES FOR THE Archive PAGE */

/*-- -------------------------- -->
<---          Archive           -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #kp-roster-all {
    padding: 0;
    position: relative;
  }
  #kp-roster-all .cs-container {
    position: relative;
    width: 100%;
    max-width: 156.25rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(1rem, 3vw, 2rem);
  }
  #kp-roster-all .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    max-width: 80rem;
    box-sizing: border-box;
    /* 16px - 40px */
    padding: 0 clamp(1rem, 3.8vw, 2.5rem);
    display: flex;
    flex-direction: row;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  #kp-roster-all .cs-content .cs-flex-group {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      .cs-back {
        position: absolute; 
        left: 1.2%;
        top: 1.2%;
        font-size: 0.95rem;
        font-weight: 400;
        text-transform: uppercase;
      }
  }

  #kp-roster-all .cs-content .cs-flex-group .cs-category-filters {
      display: flex;
      opacity: 0.7;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: center;
      a {
          text-decoration: none;
          color: var(--bodyTextColor);
          font-size: 0.85rem;
          text-transform: uppercase;
          font-family: "Public Sans", Arial, sans-serif;
      }
  }

  #kp-roster-all .cs-content#no-results {
    /* 16px - 40px */
    padding: clamp(3rem, 10.8vw, 20.5rem) clamp(1rem, 3.8vw, 2.5rem);
 
  }
  #kp-roster-all .cs-text {
    max-width: 39.5rem;
  }
  #kp-roster-all .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  #kp-roster-all .cs-item {
    text-align: left;
    list-style: none;
    width: 100%;
    /* 220px - 480px */
    height: clamp(20.75rem, 32vw, 30rem);
    margin: 0;
    /* prevents padding and border from affecting height and width */
    box-sizing: border-box;
    padding: 0;
    background-color: #000;
    box-shadow: 0px 12px 80px 0px rgba(26, 26, 26, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    grid-column: span 6;
    position: relative;
    z-index: 1;
  }
  #kp-roster-all .cs-item:hover .cs-picture::after {
    opacity: 0.6;
  }
  #kp-roster-all .cs-item:hover .cs-picture img {
    transform: scale(1.2);
  }
  #kp-roster-all .cs-item:hover .talent-info {
    opacity: 1;
    /* 16px - 32px */
    top: clamp(1rem, 2.3vw, 2rem);
  }
  #kp-roster-all .cs-item:hover .cs-h3 {
    opacity: 1;
    /* 16px - 32px */
    bottom: clamp(1rem, 2.3vw, 2rem);
  }
  #kp-roster-all .cs-link {
    text-decoration: none;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* 16px - 32px */
    padding: clamp(1rem, 2.3vw, 2rem);
    /* we use flexbox here to grow the link to fit the whole item, making it clickable everywhere, no matter the size */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
  }
  #kp-roster-all .cs-link::after {
    /* hover overlay */
    content: "";
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    /* as we can't animate background gradients, we animate the change of opacity from 0 to 1 */
    transition: opacity 0.3s;
  }
  #kp-roster-all .talent-info {
    /* 49px - 84px */
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    font-weight: 500;
    /* sets the fill of the number to be transparent */
    color: var(--bodyTextColorWhite);
    opacity: 0;
    position: absolute;
    top: 0;
    /* 16px - 32px */
    right: clamp(1rem, 2.3vw, 2rem);
    transition: opacity 0.3s, top 0.3s;
    /* provides a 1px white stroke to the text, outlining it */
  }
  #kp-roster-all .talent-info .cs-text {
    font-size: 0.75rem;
    text-align: right;
    width: 100%;
    color: var(--bodyTextColorWhite);
  }
  #kp-roster-all .cs-h3 {
    font-family: "Public Sans", sans-serif;
    /* 20px - 31px */
    font-size: clamp(0.78rem, 1vw, 1rem);
    font-weight: 500;
    line-height: 1.2em;
    white-space: nowrap;
    /* width, overflow, text-overflow and white-space all provide the ellipsis when the h3 content is too long */
    width: 100%;
    margin: 0;
    color: var(--bodyTextColorWhite);
    overflow: hidden;
    transition: opacity 0.3s, bottom 0.3s;
  }
  #kp-roster-all .cs-picture {
    width: 100%;
    height: 100%;
    /* prevents the mouse from interacting with it */
    pointer-events: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
  }
  #kp-roster-all .cs-picture:before {
    /* gradient overlay */
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(102, 102, 102, 0) 0%, #000 100%);
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
  }
  #kp-roster-all .cs-picture:after {
    /* background color overlay on hover */
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--dDark);
    opacity: 0;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: opacity 0.3s;
  }
  #kp-roster-all .cs-picture img {
    width: 100%;
    height: 100%;
    /* Makes img tag act as a background image */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.7s;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #kp-roster-all {
    padding-bottom: 0;
  }
  #kp-roster-all .cs-content {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  #kp-roster-all .cs-item {
    grid-column: span 4;
  }
  #kp-roster-all .cs-item:nth-of-type(4),
  #kp-roster-all .cs-item:nth-of-type(5) {
    grid-column: span 6;
  }
  #kp-roster-all .cs-text {
    width: 60%;
  }
  #kp-roster-all .cs-title {
    margin: 0;
  }
}
/* Desktop - 1300px */
@media only screen and (min-width: 81.25rem) {
  #kp-roster-all .cs-card-group {
    grid-template-columns: repeat(5, 1fr);
  }
  #kp-roster-all .cs-card-group#search-results {
    grid-template-columns: repeat(3, 1fr);
    padding-left: 5rem;
    padding-right: 5rem;
  }
  #kp-roster-all .cs-item {
    grid-column: span 1;
  }
  #kp-roster-all .cs-item:nth-of-type(4),
  #kp-roster-all .cs-item:nth-of-type(5) {
    grid-column: span 1;
  }

}


