.xx_mediaSection {
  padding: 4rem 8%;
 
}

.xx_mediaHeader {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #222;
  text-align: center;
}

.xx_tabNav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.xx_tabBtn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  background: #eee;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.xx_tabBtn.active {
  background: #ff5f6d;;
  color: #fff;
}

.xx_tabContentWrapper {
  position: relative;
}

.xx_tabContent {
  display: none;
  animation: fadeIn 0.6s ease forwards;
  justify-self: center;
  text-align: center;
  align-items: center;
}

.xx_tabContent.active {
  display: grid;
  gap: 1.5rem;
}

.xx_pressItem {
  justify-self: center;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.xx_pressTitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: black;
  padding-top: 30px;
}

.xx_pressDate {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.6rem;
}

.xx_pressDesc {
  color: #555;
  margin-bottom: 1rem;
}

.xx_pressLink {
  font-size: 0.9rem;
  color: #d62b70;
  text-decoration: none;
  font-weight: 500;
}
.xx_pressLink :hover{
    color: #d62b70;
}

.xx_eventCard {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


.xx_eventTitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1rem;
  color: black;
}
.xx_eventTitle, xx_pressItem{
    color: black;
}
.xx_eventDesc {
  margin: 0 1rem 1rem;
  color: #555;
}

.xx_eventLink {
  margin: 0 1rem 1.2rem;
  font-size: 0.9rem;
  color: #d62b70;
  text-decoration: none;
}

.xx_galleryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.xx_galleryItem {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Mobile (≤768px) */
@media (max-width: 768px) {
    .xx_tabBtn{
        font-size: 10px;
    }
    .xx_eventImg {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  object-position: center; 
  justify-self: center;
}
.xx_eventImgs {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  object-position: top; 
}

}
.xx_galleryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row for desktop */
  gap: 15px; /* space between images */
}

.xx_galleryItem {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.xx_galleryItem:hover {
  transform: scale(1.05); /* optional hover zoom effect */
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .xx_galleryGrid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }

  .xx_galleryItem {
    height: 200px; /* slightly smaller for mobile */
  }
}
.xx_eventImg {
  display: block;             /* makes margin auto work */
  margin: 40px auto;          /* center horizontally with spacing */
  width: 80%;                 /* perfect desktop size */
  max-width: 900px;           /* prevents it from getting too large */
  height: auto;               /* maintain aspect ratio */
  object-fit: cover;          /* covers the area nicely */
  object-position: center bottom; /* focus on important part */
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.xx_eventImg:hover {
  transform: scale(1.03); /* subtle zoom on hover */
}
