.game-details {
    display: flex; /* Make elements並ぶ (narabu) -並ぶ- align in a row */
    flex-wrap: wrap; /* Allow elements to wrap to the next line if needed */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
  }
  
  .game-details > * { /* Target all direct child elements */
    margin-right: 24px; /* Add margin-right to all elements except the last */
  }
  
  .game-details > *:last-child { /* Target the last child element */
    margin-right: 0; /* Remove margin-right for the last element */
  }

 .game-details p {
    font-weight: 400 !important;
    font-size: 13px !important;
    line-height: 21px;
    color: #808285;
    margin-bottom: 10px;
}
.game-details-meta {
    color: #000049;
}

.game-content-title {
    font-weight: 600;
    font-size: 25px;
}

.game-description {
    font-size: 14px;
    font-weight: 400;
    color: #2C2F34;
    margin-bottom: 39px;
}

/* Media section container */
.media-section {
  display: flex; /* Allow for row layout on desktop */
  flex-wrap: wrap; /* Enable wrapping on smaller screens */
  gap: 22px; /* Spacing between .game-logo and .game-mascot */ 
}

/* Individual logo and mascot containers */
.game-logo, 
.game-mascot {
  flex: 0 0 calc(50% - 11px); /* Ensure equal width on desktop (minus half the gap) */
  border: 1px solid rgba(0, 0, 0, 0.1); /* Black border with 10% opacity */
  border-radius: 10px; 
  padding: 20px;
}

/* Titles within logo and mascot blocks */
.game-logo-title, 
.game-mascot-title {
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  text-align: left;
  margin-bottom: 8px !important;
}

/* Images within logo and mascot blocks */
.game-logo img,
.game-mascot img {
  max-width: 100%; /* Responsive width */
  height: 160px;
  display: block;     /* Make images block-level elements */
  margin-left: auto;  /* Center horizontally */
  margin-right: auto; /* Center horizontally */
}

/* Media Queries for smaller screens (adjust breakpoint as needed) */
@media (max-width: 768px) { 
  .game-logo, 
  .game-mascot {
    flex: 0 0 100%; /* Force full width on mobile */
  }
}

/* Archive page styles */

/* Grid Setup */
.jocuri-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) { 
  .jocuri-grid {
    justify-content: center;
  }
}

.jocuri-grid-item {
  flex: 0 0 calc(25% - 15px); /* 4 items per row */
  border: 1px solid #0000001A; /* Your border color */
  border-radius: 10px;
  padding: 20px;
}

/* Center Logo */
.jocuri-item-inner {
  display: flex; /* Make inner container flexbox */
  align-items: center; /* Align logo vertically */
  justify-content: center; /* Center logo horizontally */
  flex-wrap: wrap;
}

.jocuri-logo {
  margin-bottom: 22px;
  width: auto;
  height: 150px;
  max-width: none;
}

.jocuri-name-wrapper {
  display: flex; /* Make elements inline */
  align-items: center; /* Align vertically */
  width: 100%;  /* Full width */
  background-color: #EEEEF8;
  border-radius: 5px;
  padding: 7px 16px;
}

/* .jocuri-name-container {
  background-color: #EEEEF8;
  border-radius: 5px;
  padding: 7px 16px;
} */

/* .jocuri-name {
  text-decoration: none;
  color: #333;
  flex: 1;
} */

.jocuri-name {
  flex: 1; /* Allow text to grow */
}

.jocuri-name .arrow {
  margin-left: auto; /* Push arrow to the right */
}

@media (min-width: 769px) and (max-width: 1024px) { /* Adjust breakpoints as needed */
  .jocuri-grid-item {
    flex: 0 0 calc(33.33% - 15px);  /* 3 items per row with spacing */
  }
}

/* Mobile: 2 per row */
@media (max-width: 768px) { 
  .jocuri-grid-item {
    flex: 0 0 calc(50% - 10px); 
  }
}

/* Small Mobile: 1 per row */
@media (max-width: 495px) { 
  .jocuri-grid-item {
    flex: 0 0 calc(100% - 10px); 
  }
}

.jo-archive-title {
  margin-bottom: 48px;
}

.jocuri-link { 
  display: flex; /* Allow for proper width distribution */
  align-items: center; /* Vertically align content */
  width: 100%;     /* Occupy full width */
  background-color: #EEEEF8;
  border-radius: 5px;
  text-decoration: none; /* Remove link underline if needed */
  color: #333; /* Example link color */
}

.jocuri-link:hover { 
  cursor: pointer; /* Change the mouse cursor on hover */
 }


 /* Breadcrums margin top nulled */
 .no-bread-margin #breadcrumb {
  margin-top: 0;
 }

 /* Single post meta */
 /* Default Styling (No Featured Image) */
.joc-single-meta {
  /* Your default styles when there's no featured image */
}

/* Styling with Featured Image */
.joc-single-meta .featured-image-wrapper {
  position: relative; /* Allows positioning of child elements */
}
.joc-single-meta .featured-image-wrapper img {
  width: 100%; /* Make image fill container width */
  height: auto; /* Maintain aspect ratio */
}
.joc-single-meta .joc-single-meta-content-wrapper {
  position: absolute;
  bottom: 20px;   /* Adjust as needed */
  left: 20px;    /* Adjust as needed */
  padding: 10px 20px;  /* Adjust as needed */
}

.featured-image-wrapper img {
  border-start-start-radius: 20px;
  border-start-end-radius: 20px;
}

@media (max-width: 768px) {
  .featured-image-wrapper img {
    border-radius: 0;
  }
}

.joc-single-title {
  margin-bottom: 8px;
}

.joc-single-meta .featured-image-wrapper #breadcrumb,
.joc-single-meta .featured-image-wrapper .joc-single-title {
    color: white; /* Set text color to white when featured image is present */
}

.joc-single-meta .featured-image-wrapper #breadcrumb a:not(:hover) {
  color: white;
}

.joc-single-meta .featured-image-wrapper .game-details {
  color: #AFA9A6;
}

.joc-single-meta .featured-image-wrapper .game-details-meta {
  color: white;
}

.jocuri-gallery-container {
  margin-top: 39px;
  overflow: hidden;
}

.jocuri-gallery-container .gallery-caption { 
  display: none; 
}

.jocuri-gallery-container .gallery .gallery-item {
  width: 100%;
  max-width: 100%;
}
.jocuri-gallery-container .gallery .gallery-item img {
  width: 100%; /* Make image fill column width */
  height: auto; /* Maintain aspect ratio */
}

/* Gallery styles for desktop and larger screens */
.jocuri-gallery-container .gallery { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; /* Adjust gap as needed */
  margin-bottom: 0;
}

.jocuri-gallery-container .gallery-item a {
  display: grid;
}

/* Gallery styles for mobile (adjust the breakpoint as needed) */
@media (max-width: 768px) {
  .jocuri-gallery-container .gallery {
      grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }
}


/* Olympic sliders style */
.jocuri-olimpice-slider .jocuri-grid {
  flex-wrap: nowrap;
  gap: 0;
}

.jocuri-olimpice-slider .jocuri-grid-item {
  flex: 1 0 auto;
  min-width: 150px;
}

.jocuri-olimpice-slider .swiper-slide img {
  width: auto;
  height: 150px;
}

.jocuri-olimpice-slider .swiper-wrapper {
  justify-content: flex-start;
}