/* Grid Layout */
.css-case-study-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.css-columns-2 { grid-template-columns: repeat(2, 1fr); }
.css-columns-3 { grid-template-columns: repeat(3, 1fr); }
.css-columns-4 { grid-template-columns: repeat(4, 1fr); }

.css-case-study-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.css-case-study-item:hover {
    transform: translateY(-5px);
}

.css-case-study-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.css-case-study-item h3 {
    margin: 15px 10px;
    font-size: 1.2em;
    color: #333;
}

/* Modal Styling */
.css-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.css-modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be responsive */
    max-width: 900px; /* Max width */
    border-radius: 10px;
    position: relative;
    max-height: 90vh; /* Limit height */
    overflow-y: auto; /* Make content scrollable */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.css-close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.css-close-button:hover,
.css-close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.css-modal-body h2 {
    color: #333;
    margin-top: 0;
    font-size: 2em;
}

.css-modal-body img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.css-modal-body h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.css-modal-body p {
    line-height: 1.6;
    color: #666;
}

.css-modal-loader {
    text-align: center;
    padding: 50px;
    font-size: 1.5em;
    color: #888;
}