.elementor-43282 .elementor-element.elementor-element-b9dd2d0{--display:flex;}.elementor-43282 .elementor-element.elementor-element-058affb.elementor-element{--align-self:center;}/* Start custom CSS for html, class: .elementor-element-058affb *//* Container for the adoptable list */
.asm3-adoptable-list { 
    padding: 25px;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #e9f2ff !important;
    border: 1px solid #004065;
    text-align: center !important;
}

/* Hide tagline */
.asm3-adoptable-tagline { 
    display: none !important;
}

/* Animal name styling */
.asm3-adoptable-name { 
    font-weight: bold;              
    font-size: 1.7em !important;    
    text-align: center !important;  
    padding-top: 5px;
    color: #f4ae40;               
    transition: color 0.3s ease;  
}

.asm3-adoptable-name:hover {
    color: #0099cc;               
}

/* Thumbnail styling */
.asm3-adoptable-thumbnail { 
    position: relative;
    margin-top: 25px;
    border: 2px solid #0099cc !important;
    text-align: center !important;
    padding: 3px !important;
    max-width: 300px !important;
    overflow: hidden !important;   /* clip the banner edges */
    transition: transform 0.3s ease;
    display: inline-block;       
    vertical-align: top;         
}

/* Make images fill the thumbnail size */
.asm3-adoptable-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hover effect: dim */
.asm3-adoptable-thumbnail:hover {
    opacity: 0.4;
    cursor: pointer;
}

/* Hide default filters */
.asm3-filters { 
    display: none !important;
}

/* Custom iframe overlay */
.asm3-iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Iframe inside overlay */
.asm3-iframe-overlay iframe {
    width: 80%;
    height: 90%;
    max-height: 95vh;
    border: 3px solid black;
    border-radius: 2px;
    background: #fff;
    overflow-y: auto;
}

/* Close button */
.asm3-iframe-close {
    position: absolute;
    top: 25px;      /* space from top */
    right: 35px;    /* space from right */
    font-size: 2em;
    font-weight: bold;
    color: #00384e;             /* teal text */
    background-color: #f4ae40;  /* golden yellow background */
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.asm3-iframe-close:hover {
    background-color: #0099cc; /* cyan background */
    color: #fff;               /* white text */
    transform: scale(1.1);
}

/* popup iframe wrapper */
.asm3-iframe-framewrap {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 90vh;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);

    /* center iframe inside */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iframe inside wrapper */
.asm3-iframe-framewrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================= */
/* RIBBONS: RESERVED + ADOPTED + ADOPTABLE */
/* ============================= */

.asm3-adoptable-reserved,
.asm3-adoptable-adopted,
.asm3-adoptable-adoptable {
    position: relative;
    display: inline-block;
    overflow: visible;
    font-family: Arial, sans-serif;
    font-size: 8pt;
    font-weight: bold;
}

/* Banner span common styling */
.asm3-adoptable-reserved span,
.asm3-adoptable-adopted span,
.asm3-adoptable-adoptable span {
    position: absolute;
    top: 45px;            /* vertical position from top of thumbnail */
    right: -25px;         /* horizontal adjustment so points stay inside */
    transform: rotate(45deg);
    display: block;
    width: 120px;          /* adjust width to fit within thumbnail */
    padding: 3px 0;
    text-align: center;
    color: #fff;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(0,0,0,0.2),
                inset 0 5px 20px rgba(255,255,255,0.2);
    pointer-events: none;
}

/* Adoption interest ribbon */
.asm3-adoptable-reserved span {
    background: #ff0000; 
}
.asm3-adoptable-reserved span::before {
    content: "Adoption interest";
}

/* Adopted ribbon */
.asm3-adoptable-adopted span {
    background: #28a745; 
}
.asm3-adoptable-adopted span::before {
    content: "ADOPTED";
}

/* Adoptable banner */
.asm3-adoptable-adoptable span {
    background: #0099cc; /* can be made transparent if desired */
}
.asm3-adoptable-adoptable span::before {
    content: "ADOPTABLE";
}/* End custom CSS */