/* ===========================
   MEDIA FEATURES SECTION (Editorial Style)
   =========================== */
.media {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.media-header {
    text-align: center;
    margin-bottom: 64px;
}

.media-header .section-divider {
    margin: 20px auto 0;
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 16px;
    margin: 0 auto;
    max-width: 750px;
}

@media (min-width: 768px) {
    .media-grid {
        gap: 32px 24px;
    }
    
    .media-name {
        font-size: 0.9rem !important;
    }

    .media-desc {
        font-size: 0.7rem !important;
    }
}

@media (min-width: 1024px) {
    .media-grid {
        gap: 40px 32px;
    }
}

.media-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    text-decoration: none;
    color: inherit;
    width: 100px; /* Reduced fixed size for mobile */
}

@media (min-width: 768px) {
    .media-item {
        width: 120px; /* Reduced fixed size for desktop */
    }
}

/* Image Wrapper with fixed aspect ratio */
.media-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 16px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .media-img-wrap {
    background: transparent;
}

.media-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.eenadu-logo {
    width: 85% !important;
    height: 85% !important;
}

/* Hover Effects (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
    .media-item:hover .media-img-wrap img {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Fallback Text for Missing Images (Wildlife India) */
.media-img-wrap.text-fallback {
    background: rgba(30, 38, 35, 0.8);
}

[data-theme="light"] .media-img-wrap.text-fallback {
    background: rgba(200, 200, 200, 0.4);
}

.media-fallback-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    padding: 16px;
}

.media-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    flex-grow: 1;
}

.media-desc {
    font-size: 0.65rem;
    color: var(--text-subtle);
    line-height: 1.3;
    margin: 0;
    opacity: 0.9;
}
