/*
 Theme Name:       OMAD / Diversity Child Theme
 Author:           Swatch Junkie Digital
 Author URI:       https://github.com/uweb
 Description:      A child theme for OMAD & Diversity sites based on the UW WordPress Theme
 Template:         uw_wp_theme
 Version:          1.0
 License:          GNU General Public License v2 or later
 License URI:      http://www.gnu.org/licenses/gpl-2.0.html
 Tags:             two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:      uw_omad
*/

.site-omad .entry-content .carousel.slide {
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}
.site-omad .entry-content .carousel.slide .carousel-control-prev {
    left: 1.5rem;
}
.site-omad .entry-content .carousel.slide .carousel-control-next {
	right: 1.5rem;
}
@media screen and (min-width: 48em){
    .site-omad .entry-content .carousel.slide { 
        padding-left: 0;
        padding-right: 0;
    }
	.site-omad .entry-content .carousel.slide .carousel-control-prev {
		left: 0;
	}
	.site-omad .entry-content .carousel.slide .carousel-control-next {
		right: 0;
	}
}

@media(max-width: 767px){
 .uw-wordmark-latest img.uw-logo {
    width: 190px !important;
 }
}
.uw-wordmark-latest img.uw-logo {
    width: 400px;
}

.entry-content .grid.row {
    justify-content: space-between;
    gap: 29px;
}
.entry-content .col-sm {
    flex-basis: unset;
    padding-inline: 0px;
    width: 48% !important;
        margin-inline:0px !important;
        margin-bottom:0px !important;
}
.card .card-image-top img {
    min-height: 100%;
    height: 300px;
    object-fit: cover;
}
.card .card-content p {
    line-height: 25px;
}
.card .udub-slant-divider {
    height: 10%;
}
.card p.author-date {
    display: none;
}
.grid .col-sm:last-child {
    max-width: 48%;
}
@media screen and (max-width:1280px){
    .entry-content .col-sm {
    width: 45% !important;
}
    .entry-content .grid.row {
     gap: 20px;
}
}
@media screen and (max-width:600px){
    .entry-content .col-sm {
    width: 100% !important;
}
    .grid .col-sm:last-child {
    max-width: 100%;
}
}


/* Swatch Junkie custom blogroll shortcode */

/* Container for the blogroll */
.uw-custom-blogroll {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

/* Card container - Two columns with equal height */
.uw-custom-blogroll .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

/* Card hover effect */
.uw-custom-blogroll .card:hover {
    transform: translateY(-5px);
}

/* Responsive design - Single column on smaller screens */
@media (max-width: 768px) {
    .uw-custom-blogroll .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/* Card body for equal height content */
.uw-custom-blogroll .card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

/* Card image with centered 4:3 aspect ratio */
.uw-custom-blogroll .card-image-inset {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.uw-custom-blogroll .card-image-inset img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    
/* Ensures image covers the container without distortion */
    object-position: center; 

    /* Centers the image within the frame */
    border-radius: 5px;
}

/* Additional styling for titles, text, and buttons */
.uw-custom-blogroll .card-title {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.uw-custom-blogroll .card-title a {
    color: #333;
    text-decoration: none;
}

.uw-custom-blogroll .card-title a:hover {
    text-decoration: underline;
}

.uw-custom-blogroll p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0;
}

/* Meta information styling (author/date) */
.uw-custom-blogroll .post-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Button styling */
.uw-custom-blogroll .button {
    margin-top: 15px;
}

/*Hide category archive title and description*/
.page-header, .archive-description {
    display: none;
}