/* General Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Roboto Mono', monospace; /* Apply globally */
    font-weight: 150;  /* Thin weight */
    background-color: #fff; /* Set background to #fff */
    color: #060606; /* Set default text color to white for contrast */
    line-height: 1.6; /* Improve readability */
}

/* General Link Styling */
a {
    color: #ff4500; /* Default link color (green) */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition on hover */
}

a:hover {
    color: #ff6347; /* Hover link color (tomato red) */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Content Grid Setup */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjusted for smaller grid items */
    gap: 30px; /* Increased gap between items for better spacing */
    padding: 40px; /* Added padding around the grid container */
    max-width: 1200px;
    margin: 40px auto; /* Adjusted margin to add space above and below the grid */
}

/* Grid Item Styling */
.grid-item {
    background-color: #222; /* Dark background for grid items */
    padding: 25px; /* Increased padding for better content spacing */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Slightly darker and larger shadow for better contrast */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition on hover */
}

.grid-item:hover {
    transform: scale(1.03); /* Slight zoom effect on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
}

/* Instagram Embed Responsiveness */
cargo-embed {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Caption Styling */
.grid-item p {
    color: #ddd;  /* Light gray for text in grid items */
    font-size: 16px;
    margin-top: 20px; /* Adjusted margin to give more space between the text and image */
}

/* Mobile-First Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;  /* Single column on smaller screens */
        padding: 20px; /* Adjusted padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .content-grid {
        padding: 15px;  /* Reduced padding on very small screens */
    }

    .grid-item p {
        font-size: 14px;  /* Slightly smaller text on mobile for better readability */
    }
}
