/*
 Theme Name:   GeneratePress Child
 Description:  Elite AI Concept Theme
 Template:     generatepress
 Version:      1.0.0
*/
/* Force 4-column grid with better spacing */
.home .grid-container {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

/* Adjust post item width and spacing */
.home .post {
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .home .grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .home .grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .home .grid-container {
        grid-template-columns: 1fr !important;
    }
}
/* Force 4-column grid layout */
.home .main-content .grid-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}
/* Social Sharing Buttons */
.custom-social-sharing {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.custom-social-sharing span {
    margin-right: 10px;
    font-weight: bold;
}
.custom-social-sharing a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s;
    line-height: 0; /* Fix SVG alignment */
}
.custom-social-sharing a:hover {
    transform: scale(1.1);
}
/* Reserve space for ads/embeds */
.ad-container, .youtube-embed, .dynamic-banner {
  width: 100%;
  aspect-ratio: 16/9; /* Adjust ratio as needed */
  background: #f5f5f5;
}

/* Force font loading behavior */
body {
  font-display: swap;
}

/* Fix layout shifts for images without dimensions */
img:not([width]), img:not([height]) {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
}
