/* ==========================================================================
   KEC MEDIA & NEWS GALLERY PLUGIN STYLES (ALBUM LIGHTBOX + SLIDER)
   ========================================================================== */

.media-gallery-section-container {
  width: 100%;
  position: relative;
}

/* Tab Filter Buttons */
.media-gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.media-tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.media-tab-btn:hover {
  background: #FAF6F0;
  border-color: #E87428;
  color: #E87428;
  transform: translateY(-2px);
}

.media-tab-btn.active {
  background: #1B3C72;
  border-color: #1B3C72;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(27, 60, 114, 0.25);
}

/* 3-Column Responsive Grid Layout */
.media-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.media-gallery-item {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(15, 35, 66, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.media-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(27, 60, 114, 0.15);
  border-color: rgba(232, 116, 40, 0.4);
}

/* Image Thumbnail Container Frame */
.media-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F1F5F9;
}

.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.media-gallery-item:hover .media-thumb-img {
  transform: scale(1.06);
}

/* Top-Left Category Outlet Badge */
.media-outlet-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(27, 60, 114, 0.9);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover Zoom/Play Overlay */
.media-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 60, 114, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3;
  cursor: pointer;
}

.media-gallery-item:hover .media-zoom-overlay {
  opacity: 1;
  visibility: visible;
}

.zoom-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E87428;
  color: #FFFFFF;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 116, 40, 0.4);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.media-gallery-item:hover .zoom-circle-btn {
  transform: scale(1);
}

/* Card Bottom Content */
.media-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.media-date-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #E87428;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-card-headline {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
  margin: 0;
  cursor: pointer;
}

.media-card-headline a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.25s ease;
}

.media-card-headline a:hover {
  color: #E87428;
}

/* ==========================================================================
   ALBUM LIGHTBOX MODAL & SLIDER CSS
   ========================================================================== */

.kec-album-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kec-album-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
}

.kec-album-modal-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 92vw;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.kec-album-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.25s ease;
}

.kec-album-close-btn:hover {
  background: #E87428;
}

.kec-album-modal-display-box {
  width: 100%;
  height: 520px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.kec-album-modal-display-box img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  user-select: none;
}

.kec-album-modal-display-box iframe {
  width: 100%;
  height: 520px;
  border: none;
}

.kec-album-nav-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kec-album-nav-btn:hover {
  background: #E87428;
  transform: translateY(-50%) scale(1.1);
}

.kec-album-prev-btn { left: 15px; }
.kec-album-next-btn { right: 15px; }

.kec-album-modal-footer {
  padding: 1.25rem 2rem;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
}

.kec-album-modal-footer h3 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1B3C72;
  margin-bottom: 0.4rem;
}

.kec-album-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748B;
}

.kec-album-counter-pill {
  background: #1B3C72;
  color: #FFFFFF;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .media-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .media-home-grid { grid-template-columns: 1fr; }
  .kec-album-modal-display-box { height: 350px; }
  .kec-album-nav-btn { width: 42px; height: 42px; font-size: 1.1rem; }
  .kec-album-prev-btn { left: 8px; }
  .kec-album-next-btn { right: 8px; }
}
