/*==================================
  GENERAL
==================================*/
.fullWidthContainer {
  max-width: 1920px;
  margin: 0 auto;
}

.pt24 {
  padding-top: 24px !important;
}

.c-subheading-3 {
  /* Snow Bird override */
  font-weight: 600;
}

/*==================================
  XGP Hero
==================================*/

/* Font size changes */
@media screen and (max-width: 539px) {
  .xgp-hero.main .hero-heading.c-heading-1a {
    font-size: 32px;
    line-height: 1.2em;
  }
}

@media screen and (max-width: 344px) {
  .xgp-hero.main .hero-heading.c-heading-1a {
    font-size: 28px;
    line-height: 1.2em;
  }
}

@media screen and (min-width: 768px) and (max-width: 920px) {
  .xgp-hero.main .hero-heading.c-heading-1a {
    line-height: 1em;
    font-size: 40px;
  }
}

@media screen and (min-width: 1084px) and (max-width: 1199px) {
  .xgp-hero.main .hero-heading.c-heading-1a {
    line-height: 1em;
    font-size: 40px;
  }

  .xgp-hero.main .c-subheading-2 {
    line-height: 24px;
    font-size: 20px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .xgp-hero.main .hero-heading.c-heading-1a {
    line-height: 1em;
    font-size: 36px;
  }

  .xgp-hero.main .c-subheading-2 {
    line-height: 24px;
    font-size: 20px;
  }

}

@media screen and (min-width: 1605px) {
  .xgp-hero.main .hero-heading.c-heading-1a {
    font-size: 62px;
    line-height: 60px;
  }
}

/* Hero content adjustments */
.xgp-hero.main .m-hero-item.f-x-left.f-y-center>div>div,
.xgp-hero.main .m-hero-item.f-x-right.f-y-center>div>div {
  width: 100%;
  max-width: 100%;
  padding-bottom: 24px;
}

@media screen and (min-width: 0) {
  .xgp-hero.main .m-hero-item.f-x-left.f-y-center>div>div,
  .xgp-hero.main .m-hero-item.f-x-right.f-y-center>div>div {
    top: calc(55%);
    margin: 0 auto;
    text-align: center;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%) translateY(-50%);
  }
}

@media screen and (min-width: 768px) {
  .xgp-hero.main .m-hero-item.f-x-left.f-y-center>div>div,
  .xgp-hero.main .m-hero-item.f-x-right.f-y-center>div>div {
    transform: translateX(-50%);
  }
}

@media screen and (min-width: 1084px) {
  .xgp-hero.main .m-hero-item.f-x-left.f-y-center>div>div,
  .xgp-hero.main .m-hero-item.f-x-right.f-y-center>div>div {
    width: 540px;
    max-width: 540px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
  }
  
  .xgp-hero.main .m-hero-item.f-x-right.f-y-center>div>div {
    left: auto;
    right: 0;
  }

  .xgp-hero.main .m-hero-item.f-x-left.f-y-center>div>div,
  .xgp-hero.main .m-hero-item.f-x-right.f-y-center>div>div {
    max-width: 540px;
  }
}

/* Replace padding hack with aspect-ratio CSS property */
@media screen and (min-width: 0px) {
  .xgp-hero.main .m-hero-item {
    aspect-ratio: 500/910;
  }
}

@media screen and (min-width: 500px) {
  .xgp-hero.main .m-hero-item {
    aspect-ratio: 765/1175;
  }
}

@media screen and (min-width: 768px) {
  .xgp-hero.main .m-hero-item {
    aspect-ratio: 1083/1222;
  }
}

@media screen and (min-width: 1084px) {
  .xgp-hero.main .m-hero-item {
    aspect-ratio: 1920/900;
  }
}

@media screen and (max-width: 400px) {
  .xgp-hero p.c-caption-1 {
    font-size: 12px;
    line-height: 16px;
  }
}

/*==================================
  Intro 3-up
==================================*/

.xgp-intro-3up .m-content-placement-item.f-align-center {
  text-align: center;
}

.xgp-intro-3up .m-content-placement-item.f-align-center .c-heading-3 {
  font-weight: 700 !important;
  margin-top: 24px;
}

.xgp-intro-3up .m-content-placement-item.f-align-center .c-subheading-3 {
  margin-top: 24px;
}

@media screen and (min-width: 768px) and (max-width: 1399px) {
  .xgp-intro-3up .m-content-placement-item.f-align-center .c-heading-3 {
    line-height: 28px;
    font-size: 24px;
    margin-top: 18px;
  }

  .xgp-intro-3up .m-content-placement-item.f-align-center .c-subheading-3 {
    line-height: 24px;
    font-size: 18px;
    margin-top: 18px;
  }
}

.xgp-intro-3up .m-content-placement-item>picture {
  padding-bottom: 0;
  aspect-ratio: 25/7;
}

/*==================================
  Discover - Card Grid and Modal
==================================*/

.wideFeatured {
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.wideFeatured .card-grid .m-content-placement-item.f-size-large {
  width: 100%;
  aspect-ratio: 693 / 800;
  position: relative;
  margin: 0;
}

.wideFeatured .card-grid .m-content-placement-item.f-size-large img.c-image {
  width: 100%;
  object-fit: cover;
}

.wideFeatured .card-grid .m-content-placement-item .slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  z-index: 100;
  padding: 32px 27px 30px 30px;
  white-space: normal;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 32px, rgba(0, 0, 0, 0.75) 72px, rgba(0, 0, 0, 1) 100%);
}

.wideFeatured .card-grid .m-content-placement-item .slide-content h3 {
  font-weight: 700 !important;
  position: relative;
  display: block;              /* override previous display:flex */
  width: 100%;
  padding-right: calc(1em + 24px); /* icon width + 24px min gap */
}

@media screen and (min-width: 768px) and (max-width: 1399px) {
  .wideFeatured .card-grid .m-content-placement-item .slide-content h3 {
    line-height: 28px;
    font-size: 24px;
  }
}

.wideFeatured .card-grid .m-content-placement-item .slide-content h3 img.openBtn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;    /* match the heading’s font size; adjust as needed */
  height: auto;
}

@media screen and (max-width: 767px) {
  .wideFeatured .card-grid .m-content-placement-item .slide-content {
    padding: 32px 16px;
  }
}

.wideFeatured .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 25px;
}

@media (max-width: 767px) {
  .wideFeatured .card-grid {
    grid-template-columns: 1fr;
  }
}

.wideFeatured .card {
  margin: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.custom-modal-overlay.active {
  display: flex;
}

/* Prevent background scroll when modal is open */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

.custom-modal {
  background: #181818;
  width: 100%;
  max-width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 32px 24px 24px 24px;
  animation: fadeInModal 0.2s;
}

.custom-modal.theme-black {
  background: #000;
  border: 1px solid #fff;
}

.custom-modal.theme-black a {
  color: #fff;
}

.custom-modal .c-carousel {
  overflow: hidden;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}

@media (max-width: 700px) {
  .custom-modal {
    padding: 12px 2vw;
  }
}

.custom-modal.theme-black>[role="presentation"],
.c-dialog.theme-black>[role="presentation"] {
  background: rgba(0, 0, 0, 0.75);
}

.custom-modal.f-flow.theme-black,
.c-dialog.f-flow.theme-black [role="dialog"] {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  width: 90%;
  max-width: 1600px;
}

.custom-modal-close,
.custom-modal.f-flow.theme-black [role="dialog"]>.c-glyph.glyph-cancel,
.c-dialog.f-flow.theme-black [role="dialog"]>.c-glyph.glyph-cancel {
  top: 15px;
  right: 15px;
  color: #fff;
  border: 2px solid #fff;
  padding: 0;
}

.custom-modal-close:before,
.custom-modal.f-flow.theme-black [role="dialog"]>.c-glyph.glyph-cancel:before,
.c-dialog.f-flow.theme-black [role="dialog"]>.c-glyph.glyph-cancel:before {
  margin: 10px 8px 6px;
}

.custom-modal button.c-flipper:focus {
  border: .1875rem dotted currentColor;
}


/*================================
  Dialog - Product Placement Carousel 
  ================================*/

div[role="dialog"] .gamesSection {
  max-width: 100%;
}

.gamesSection .c-carousel .m-product-placement-item.f-size-large picture {
  height: 408px;
  overflow: hidden;
}

.gamesSection .rotator-heading {
  text-align: center;
}

.gamesSection .featured-games {
  padding-bottom: 12px;
  position: relative;
}

.gamesSection .featured-games .gamesCarousel ul.c-group.f-active {
  padding-left: 2px; /* VFI */
}

@media screen and (min-width: 1084px) {

  .gamesSection .featured-games .x-type-center[data-grid="container"] h3,
  .gamesSection .featured-games .x-type-center[data-grid="container"] p {
    padding-left: 20%;
    padding-right: 20%;
  }
}

@media (max-width: 1084px) {
  .gamesSection[data-grid="container"] {
    padding-left: 5%;
    padding-right: 5%;
  }

  .gamesSection .rotator-heading {
    justify-content: center;
  }
}

/* Use theme-light flipper styles */
.theme-dark .gamesSection .featured-games .gamesCarousel .c-flipper {
  background: #fff;
  color: #404040;
  opacity: 0.8;
}

.theme-dark .gamesSection .featured-games .gamesCarousel .c-flipper:hover,
.theme-dark .gamesSection .featured-games .gamesCarousel .c-flipper:focus {
  background: #fff;
  color: #404040;
  opacity: 1;
}

.theme-dark .gamesSection .featured-games .gamesCarousel .c-flipper:focus {
  border: 1px solid #dbdbdb;
}

.gamesSection .c-carousel .m-product-placement-item {
  margin: 12px 24px 12px 0px;
}

.gamesSection .c-carousel .m-product-placement-item.f-size-large.gameDiv {
  transition: 250ms;
  position: relative;
  max-width: 272px;
}

.gamesSection .c-carousel .m-product-placement-item a [class^="c-heading"] {
  min-height: 1em;
}

.gamesSection .c-carousel .m-product-placement-item.gameDiv>a.gameDivLink:before {
  border: none;
}

.gamesSection .containerIMG .c-image {
  width: 100%;
  max-width: 100%;
}

.gamesSection .gameDiv a:focus {
  outline: 2px dashed #fff;
}

.gamesSection .gameDiv a:hover h4,
.gamesSection .gameDiv a:focus h4 {
  text-decoration: underline !important;
}

.gamesCarousel {
  position: relative;
}

.gamesSection .spinnerHold {
  position: absolute;
  margin: 3px auto;
  left: 48vw;
}

@media (max-width:767px) {
  .SB-hero-banner .c-heading-1a {
    padding: 6px 0 2px;
  }

  .gamesSection .c-carousel .m-product-placement-item {
    margin: 0px 24px 12px 0px;
  }

  .gamesSection .c-carousel .m-product-placement-item a [class^="c-heading"] {
    min-height: 4.5em;
  }

  .gamesSection .specialFeatured .c-carousel .m-product-placement-item a [class^="c-heading"] {
    min-height: 1em;
  }

  .gamesSection .spinnerHold {
    position: absolute;
    margin: 48px auto;
    left: calc(50vw - 41px);
  }

  button.c-flipper {
    top: 40% !important;
  }

  .featured-games .rotator-heading h2,
  .featured-games .rotator-heading p {
    text-align: center;
  }

  .featured-games.specialFeatured .m-product-placement-item.f-size-large div.slide-content {
    padding: 32px 12px 0px 16px;
  }

  .gameDivsWrapper:not(.mobileZoomed) div.qlButton.popupShow:not(.eaw10),
  .gameDivsWrapper:not(.mobileZoomed) .qlButton {
    display: none !important;
    opacity: 0;
    pointer-events: none;
  }
}

.specialBanners p {
  max-width: 790px;
  margin: 0 auto;
}

.specialFeatured .m-product-placement-item.f-size-large {
  width: 520px;
}

.gamesSection .specialFeatured .c-carousel .m-product-placement-item.f-size-large picture {
  height: 780px;
  width: 520px;
}

.specialFeatured img.c-image {
  width: 520px;
  max-width: 520px;
  height: 780px;
}

.featured-games.specialFeatured .m-product-placement-item.f-size-large div.slide-content .c-badge.f-small {
  color: #505050;
  background: #e6e6e6;
  height: 15px;
  font-size: 12px;
  margin-bottom: 12px;
}

.featured-games.specialFeatured .m-product-placement-item>a {
  margin: 0;
}

/*==================================
  Devices - Banner and Image
==================================*/
.fullWidthContainer img {
  margin: 0 auto;
}

/*==================================
  PC App - Banner
==================================*/
.tune-in .m-banner .banner-content {
  max-width: 750px;
  margin: 0 auto;
}

.tune-in .m-banner .banner-content .c-caption-1 {
  color: #000;
  font-size: 13px;
}

.tune-in .m-banner .banner-content a.c-call-to-action {
  margin-top: 24px;
}

/*==================================
  Sneaky Slider
==================================*/
#Stealth-Carousel .stealth-carousel .stealth-sub-carousel .stealth-sub-carousel-panel {
  height: 106%;
}

@media screen and (max-width: 768px) {
  #Stealth-Carousel .stealth-carousel .stealth-sub-carousel .stealth-sub-carousel-panel {
    height: 116%;
  }
}

#Stealth-Carousel .stealth-carousel .stealth-sub-carousel .stealth-sub-carousel-panel .c-badge.f-highlight {
  text-transform: uppercase;
  /* Adjustment for long strings */
  text-wrap: auto;
  height: auto;
}

/*==================================
  Closing 3-Up
==================================*/
.xgp-closing-3up [data-grid="container"] {
  max-width: 1400px;
}

.xgp-closing-3up .m-content-placement {
  text-align: center;
}

.xgp-closing-3up .m-content-placement img {
  max-width: 27%;
}