/* post.css - Updated with avatar adjustments */

.hashtag,
.mention,
.link {
    color: #1DA1F2;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.hashtag:hover,
.mention:hover,
.link:hover {
    text-decoration: underline;
}

/* Post loading spinner */
#post-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 100%;
    margin: 20px 0;
}

#post-loading-spinner .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FE2C55;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide posts until loading complete */
.posts-loading .post-container {
    display: none;
}

.posts-loading #post-loading-spinner {
    display: flex;
}

.post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 680px; /* EXPANDED: Increased from 600px to 680px */
    padding: 12px 16px 8px;
    position: relative;
    margin: 0 auto;
    border-bottom: 1px solid #e4e6eb;
}

@media (prefers-color-scheme: dark) {
    .post {
        background-color: #000;
        box-shadow: 0 1px 3px rgba(0,0,0,0.5);
        border-bottom: 1px solid #333;
    }
}

/* THREE-DOT BUTTON */
.more-btn {
    position: absolute;
    margin-top: -10px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.more-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1d9bf0;
}

@media (prefers-color-scheme: dark) {
    .more-btn:hover {
        background-color: #333;
    }
}

.more-btn .icon {
    font-size: 14px !important;
}

/* Header adjusted for avatar size and layout */
.post-header {
    display: flex;
    margin-bottom: 0;
    position: relative;
    padding-right: 40px;
    min-height: 40px; /* Reduced to match smaller avatar */
}

.header-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Avatar made SMALLER and moved MORE LEFT */
.avatar {
    width: 40px; /* SMALLER: Reduced from 46px to 40px */
    height: 40px; /* SMALLER: Reduced from 46px to 40px */
    border-radius: 50%;
    margin-right: 6px; /* MOVED MORE LEFT: Reduced from 8px to 6px */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    background-color: transparent;
}

.avatar:hover {
    opacity: 0.8;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    width: 100%;
    height: 100%;
}

/* Verification badge adjusted for smaller avatar - RED CHANGED TO YELLOW/GOLD */
.post-verified-badge {
    width: 16px; /* Reduced from 19px */
    height: 16px; /* Reduced from 19px */
    margin-right: 0;
    margin-left: 2px;
    flex-shrink: 0;
}

.post-verified-badge.blue {
    color: #1DA1F2; /* Blue remains unchanged */
}

.post-verified-badge.red {
    color: #FFD700; /* CHANGED: Red changed to yellow/gold */
}

.username-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    flex-wrap: nowrap;
    gap: 4px;
}

.username {
    font-weight: 600;
    font-size: 15px;
    margin-right: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.username:hover {
    opacity: 0.8;
}

.username-link {
    color: inherit;
    text-decoration: none;
}

.time {
    color: #999;
    font-size: 14px;
    margin-left: 4px;
}

.location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.location-icon {
    font-size: 14px;
    margin-right: 2px;
}

/* FIXED: Content wrapper - RESTORED proper spacing between text and username */
.post-content {
    margin-left: 46px; /* ADJUSTED: Avatar width (40px) + margin-right (6px) = 46px */
    margin-top: -38px; /* RESTORED: Proper space between username and text (was -24px) */
    margin-bottom: 6px;
    margin-right: 8px; /* REDUCED: Less gap on the right side (was 16px) */
    min-height: 0;
    padding-left: 0;
    width: calc(100% - 46px - 8px); /* FIXED: Text goes to end with less right gap */
}

.content-text-preview {
    font-size: 15px;
    line-height: 1.35;
    display: block;
    width: 100%;
    white-space: pre-line;
}
.content-collapsed {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.content-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-color));
    pointer-events: none;
}

.see-more-btn {
    background: none;
    border: none;
    color: #1DA1F2;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    font-size: 14px;
}

.see-more-btn:hover {
    text-decoration: underline;
}

.tag {
    color: #FE2C55;
}

/* Post Media: Adjusted for smaller avatar and reduced right margin */
.post-image {
    width: auto;
    margin-left: 46px; /* ADJUSTED for smaller avatar */
    margin-right: 8px; /* REDUCED: Less gap on the right side (was 16px) */
    border-radius: 16px;
    margin-bottom: 8px;
    overflow: hidden;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 600px;
    height: auto;
    min-height: 200px;
    margin-top: -60px; /* RESTORED: Proper spacing (was 4px) */
    width: calc(100% - 46px - 8px); /* FIXED: Adjusted width with less right gap */
}

@media (prefers-color-scheme: dark) {
    .post-image {
        background-color: #1a1a1a;
    }
}

.post-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 16px;
}

/* ===== ACTION BUTTONS ===== */
.actions {
    display: flex;
    padding-top: 1px;
    margin-top: 4px;
    margin-left: 46px; /* ADJUSTED for smaller avatar */
    padding-right: 8px; /* REDUCED: Less gap on the right side (was 16px) */
    justify-content: space-between;
    width: calc(100% - 46px - 8px); /* FIXED: Adjusted width with less right gap */
    gap: 8px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.action-left,
.action-right {
    display: flex;
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.action-left { justify-content: flex-start; }
.action-right { justify-content: flex-end; }

/* Action Buttons - BACKGROUND REMOVED */
.action-btn,
.post-action {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none; /* REMOVED: Background removed */
    border: none;
    color: #666;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
    min-width: 32px;
    border-radius: 14px;
    /* REMOVED: background-color and box-shadow */
    height: 28px;
    width: auto;
}

.action-btn:hover,
.post-action:hover {
    color: #1d9bf0;
    background-color: rgba(0, 0, 0, 0.05); /* Lighter hover background */
}

.like-btn.active {
    color: #FF0000 !important;
}

.like-btn.active .icon,
.like-btn.active .count,
.like-btn.active .fa-heart {
    color: #FF0000 !important;
}

.action-btn.save-btn.active {
    color: #1d9bf0;
}

.action-btn .icon,
.post-action svg {
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
    color: #666;
}

.action-btn .count,
.post-action .count {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* DARK MODE: Action buttons - BACKGROUND REMOVED */
@media (prefers-color-scheme: dark) {
    .action-btn,
    .post-action {
        background-color: transparent; /* CHANGED: Transparent background */
        box-shadow: none; /* REMOVED: Box shadow */
        color: #aaa;
    }
    
    .action-btn:hover,
    .post-action:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Lighter hover for dark mode */
        color: #1d9bf0;
    }
    
    .action-btn .icon,
    .post-action svg {
        color: #fff !important;
    }
    
    .action-btn .count,
    .post-action .count {
        color: #aaa;
    }
    
    .like-btn.active .icon,
    .like-btn.active .count,
    .like-btn.active .fa-heart {
        color: #FF0000 !important;
    }
    
    .like-btn.active {
        background-color: rgba(255, 0, 0, 0.1) !important;
    }
}

.like-btn {
    transition: all 0.2s ease;
    position: relative;
}

.like-btn.active .icon {
    animation: likeAnimation 0.45s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.like-btn.pulse {
    animation: pulseAnimation 0.6s ease;
}

@keyframes pulseAnimation {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.post-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.video-preview {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-preview video {
    width: 100%;
    border-radius: 16px;
}


/* Instagram-style swipe indicators for multiple images */
.media-grid {
    position: relative;
}

/* Instagram-style top-right counter (1/4, 2/4, etc) */




/* REMOVED: .media-grid-arrow styles as requested */

/* Hide dots for single image */
.media-grid:has(.grid-media-container:only-child) .media-grid-dots {
    display: none;
}

/* Swipe left/right arrows (appear on hover) */
.media-grid-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    user-select: none;
}

.media-grid:hover .media-grid-arrow {
    opacity: 0.8;
}

.media-grid-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.media-grid-arrow.left {
    left: 10px;
}

.media-grid-arrow.right {
    right: 10px;
}

/* Hide arrows when at edges */
.media-grid.at-start .media-grid-arrow.left,
.media-grid.at-end .media-grid-arrow.right {
    opacity: 0;
    pointer-events: none;
}


.media-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
}

.media-indicator.active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.1);
}

.indicator-number {
    color: #000;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    display: block;
}

.media-indicator:not(.active) .indicator-number {
    color: #fff;
}

.media-indicator.active .indicator-number {
    color: #000;
}

/* Poll container: Adjusted for smaller avatar and reduced right margin */
.poll-container {
    width: auto;
    margin-left: 46px; /* ADJUSTED for smaller avatar */
    margin-right: 8px; /* REDUCED: Less gap on the right side (was 16px) */
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    margin-top: 8px; /* RESTORED: Proper spacing (was 4px) */
    width: calc(100% - 46px - 8px); /* FIXED: Adjusted width with less right gap */
}

@media (prefers-color-scheme: dark) {
    .poll-container {
        border-color: #333;
        background-color: #1a1a1a;
    }
}

.poll-option {
    position: relative;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e4e6eb;
}

@media (prefers-color-scheme: dark) {
    .poll-option {
        background-color: #000;
        border-color: #333;
    }
}

.poll-bar {
    position: absolute;
    height: 100%;
    background-color: rgba(254, 44, 85, 0.1);
    transition: width 0.3s ease;
}

.poll-details {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    z-index: 1;
}

.poll-text {
    font-size: 14px;
}

.poll-percent {
    font-size: 14px;
    font-weight: 500;
    color: #FE2C55;
}

.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.poll-votes {
    font-size: 12px;
    color: #666;
}

.poll-vote-btn {
    background-color: #FE2C55;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.poll-vote-btn:hover {
    background-color: #e41e4d;
}

.action-btn .count:empty,
.post-action .count:empty {
    display: none;
}

/* Repost Header: Adjusted for smaller avatar */
.repost-header {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
    margin-left: 46px; /* ADJUSTED for smaller avatar */
    margin-top: 0;
}

.repost-header svg {
    margin-right: 4px;
}

/* Action button icon colors */
.action-btn.share-btn i {
    color: #666 !important;
    transform: translateX(-4px);
}

/* DARK MODE: White icons */
@media (prefers-color-scheme: dark) {
    .action-btn.share-btn i {
        color: #fff !important;
    }
}

.post-action svg,
.action-btn svg,
.action-btn .icon {
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
    color: #666;
    transition: color 0.2s, opacity 0.2s;
}

/* DARK MODE: White icons */
@media (prefers-color-scheme: dark) {
    .post-action svg,
    .action-btn svg,
    .action-btn .icon {
        color: #fff !important;
    }
}

.post-action svg + .count,
.action-btn svg + .count,
.action-btn .icon + .count {
    font-size: 13px;
    font-weight: 400;
}

/* Media Viewer Styles */
.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.media-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.media-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.2s;
}

.media-viewer-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.media-viewer-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.media-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-slide.active {
    opacity: 1;
}

.media-slide img,
.media-slide video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.media-viewer-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.media-viewer-indicators .media-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.media-viewer-indicators .media-indicator.active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.1);
}

.media-viewer-indicators .indicator-number {
    color: #000;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.media-viewer-indicators .media-indicator:not(.active) .indicator-number {
    color: #fff;
}

.media-viewer-indicators .media-indicator.active .indicator-number {
    color: #000;
}

.grid-media,
.post-image img {
    background-color: #f0f2f5;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    .grid-media,
    .post-image img {
        background-color: #1a1a1a;
    }
}

.media-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none;
}

.zoomable-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease;
    cursor: grab;
}

.zoomable-media:active {
    cursor: grabbing;
}

@keyframes mediaLoading {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

.grid-media.loading,
.post-image img.loading {
    animation: mediaLoading 1.5s ease-in-out infinite;
}

/* Style for the post header */
.post-header {
  position: relative;
}

/* Style for the "More" button */
.more-btn {
  top: 6px;
  right: 12px;
}

/* ===== SIMPLIFIED COMMENT INPUT STYLES ===== */
.profile-input-container {
    margin-top: 8px;
    margin-left: 46px;
    margin-right: 8px;
    padding: 8px 0;
    width: calc(100% - 46px - 8px);
}

.profile-icon-input {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.profile-input-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    cursor: pointer;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 20px;
}

.comment-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 10px 12px 10px 12px;
    color: inherit;
    outline: none;
    width: 100%;
    border-radius: 20px;
    min-height: 20px;
    resize: none;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.4;
}

.comment-input::placeholder {
    color: #999;
}

.send-comment-btn {
    background: transparent;
    border: none;
    color: #1877F2;
    padding: 4px 8px;
    margin-right: 4px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.send-comment-btn:hover {
    opacity: 1;
    background: rgba(24, 119, 242, 0.1);
}

.send-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-comment-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== FOLLOW BUTTON STYLES ===== */
.follow-btn-post {
    background: transparent;
    border: none;
    color: #1877F2;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s ease;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    outline: none;
    text-decoration: none;
}

.follow-btn-post:hover {
    color: #1666d9;
    text-decoration: underline;
}

.follow-btn-post.following {
    color: #1877F2;
    background: transparent;
}

.follow-btn-post.following:hover {
    color: #1666d9;
}

.follow-btn-post:focus {
    outline: none;
    box-shadow: none;
}

/* Dark mode for follow button */
@media (prefers-color-scheme: dark) {
    .follow-btn-post {
        color: #1877F2;
    }
    
    .follow-btn-post:hover {
        color: #3b8bff;
    }
    
    .follow-btn-post.following {
        color: #1877F2;
        background: transparent;
    }
    
    .follow-btn-post.following:hover {
        color: #3b8bff;
    }
}

.profile-input-container {
    position: relative;
    z-index: 5;
}

/* Template content styling */
.template-content {
    margin-left: 46px; /* ADJUSTED for smaller avatar */
    margin-right: 8px; /* REDUCED: Less gap on the right side (was 16px) */
    margin-top: -16px; /* RESTORED: Proper space between username and text (was -24px) */
    margin-bottom: 6px;
    width: calc(100% - 46px - 8px); /* FIXED: Adjusted width with less right gap */
}

.template-text {
    font-size: 15px;
    line-height: 1.35;
    display: block;
    width: 100%;
    white-space: pre-line;
}

.repost-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #536471;
    margin-bottom: 8px;
    padding: 0 16px;
}

.repost-header svg {
    margin-right: 4px;
}

.reposter-link {
    color: #0f1419;
    font-weight: 600;
    margin-right: 4px;
    text-decoration: none;
}

.reposter-link:hover {
    text-decoration: underline;
}

.repost-time {
    margin-left: 4px;
    color: #536471;
}

/* Active states for repost and save buttons */
.action-btn.repost-btn.active svg {
    fill: #00ba7c;
}

.action-btn.save-btn.active i {
    color: #1d9bf0;
}

  /* Media Grid: Adjusted for smaller avatar and reduced right margin - KEEP ORIGINAL */
.media-grid {
    width: auto;
    margin-left: 46px;
    margin-right: 8px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 16px;
    margin-bottom: 8px;
    gap: 2px;
    margin-top: 8px;
    position: relative;
    max-height: 600px;
    height: 400px;
    width: calc(100% - 46px - 8px);
}

/* Instagram-style counter - FIXED: Position relative to .media-grid itself */
.media-grid-counter {
    position: absolute;
    top: 80px;
    right: 30px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 10;
    pointer-events: none;
}

/* Instagram-style dots - FIXED: Position relative to .media-grid itself */
.media-grid-dots {
    position: absolute;
    bottom: 122px;
    margin-right: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.media-grid-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.media-grid-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* REMOVE the .media-grid-wrapper completely - it's changing your layout */  
