/*
 * Default and four-column layout rules adapted from Display Custom Post 2.2.1
 * by Vikas Vatsa, https://vikasvatsa.com/
 * Source: display-custom-post/css/display-custom-post.css and css/dcp-layout.css.
 * Scoped to this replacement; unused layouts and metadata rules are omitted.
 * Upstream PHP plugin header declares MIT; upstream readme instead says GPLv2.
 * MIT attribution and permission notice retained below on the header's basis.
 *
 * Copyright (c) Vikas Vatsa
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

.corporate-content .custom-post-block {
    width: 50%;
    display: inline-block;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.corporate-content .innerwrapper {
    padding: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    width: 100%;
}
.corporate-content .custom-post-block .innerwrapper h2 {
    margin: 10px 0;
    font-size: 17px;
    line-height: 23px;
}
.corporate-content .custom-post-block h2 a {
    color: #405e77;
    text-decoration: none;
    transition: all 0.3s ease-in;
}
.corporate-content .custom-post-block h2 a:hover,
.corporate-content .custom-post-block h2 a:active { opacity: 0.8; color: #405e77; }
.corporate-content .custom-post-block h2 a:hover { color: #222; }
.corporate-content .custom-post-block .innerwrapper p { margin-bottom: 15px; }
.corporate-content .custom-post-block a.read-more.button {
    color: #fff;
    text-decoration: none;
    background-color: #405e77;
    padding: 8px 11px;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease-in;
}
.corporate-content .custom-post-block a.read-more.button:hover { opacity: 0.8; }
.corporate-content .custom-post-thumb img { width: 100%; }
.corporate-content .custom-post-nav-links a {
    background-color: #405e77;
    color: #fff;
    padding: 7px 12px;
    text-decoration: none;
}
.corporate-content .custom-post-nav-links a:hover,
.corporate-content .custom-post-nav-links a:visited,
.corporate-content .custom-post-nav-links a:active,
.corporate-content .custom-post-nav-links span.page-numbers.current {
    opacity: 0.8;
    background-color: #405e77;
    color: #fff !important;
    padding: 7px 12px;
}
.corporate-content .custom-post-nav-links { margin-top: 10px; padding-left: 10px; }

.corporate-content .dcp-grid img { max-width: 100%; margin: auto; }
.corporate-content .dcp-grid a { text-decoration: none; }
.corporate-content .dcp-container { max-width: 1200px; margin: 30px auto; }
.corporate-content .dcp-grid { display: grid; grid-column-gap: 30px; grid-row-gap: 30px; }
.corporate-content .dcp-post-wrapper {
    position: relative;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    overflow: hidden;
    background-color: #fff;
}
.corporate-content .dcp-post-thumb a { display: grid; overflow: hidden; }
.corporate-content .dcp-post-content { display: grid; grid-gap: 15px; padding: 20px; }
.corporate-content .dcp-post-title h3 { margin: 0; }
.corporate-content .dcp-post-title h3 a { font-size: 1em; line-height: 1.2; font-weight: 600; color: #000; }
.corporate-content .dcp-post-title h3 a:hover { color: coral; }
.corporate-content .dcp-post-desc { font-size: 16px; line-height: 1.3; }
.corporate-content .dcp-post-desc p { margin: 0; }
.corporate-content .dcp-read-more a {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    background-color: #000;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    border: 2px solid #000;
}
.corporate-content .dcp-read-more a:hover { background-color: #fff; color: #000; }
.corporate-content .dcp-column-grid .dcp-post-thumb a { height: 260px; }
.corporate-content .dcp-column-grid .dcp-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media screen and (max-width: 768px) {
    .corporate-content .dcp-column-grid { grid-template-columns: repeat(1, 1fr) !important; }
}
@media screen and (max-width: 767px) {
    .corporate-content .custom-post-block { width: 100%; padding: 0; }
    .corporate-content .custom-post-nav-links { padding-left: 0; }
}