/* Container Layout */
.postmema-layout1-container {
    flex-wrap: wrap;
    display: flex !important;
    margin-top: 20px;
    gap: 20px;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Post Box */
.postmema-post1-box {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 calc(25% - 20px);       /* 4 columns by default */
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    border: 2px solid #0073aa;
    background: #fff;
    justify-content: space-between;
    padding: 15px;
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    
}


.mejs-container,
.mejs-container video,
.wp-video,
.wp-video-shortcode,
.mejs-video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    margin: 0px !important;
}

.postmema1-video {
    margin-top: 0px !important;
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
    margin: 0px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* postmema-style.css */

.postmema-post1-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  

.mejs-overlay-button {
    display: none !important;
}

/* Title */
.postmema-post1-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 1px;
}

/*Excerpt */
.postmema-post1-box p {
    font-size: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: #333;
    margin-top: 15px;
    margin-bottom: 15px;
}

/*  Button */
.postmema-post1-box a.btn {
    display: inline-block;
    margin-top: auto; 
    background: #0073aa;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.postmema-post1-box a.btn:hover {
    background-color: #005f8e;
}

/* Responsive Breakpoints */

/*  3 columns on tablets */
@media (max-width: 1024px) {
    .postmema-post1-box {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

/*  2 columns on mobile landscape */
@media (max-width: 768px) {
    .postmema-post1-box {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* 1 column on mobile portrait */
@media (max-width: 480px) {
    .postmema-post1-box {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .postmema-post1-box {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }
  









