/* Animal */

.animal-col {
    text-align: center;
    overflow: hidden; 
    transition: all .3s;
} 
 
.animal-col .et_pb_animal-image { 
    height: 260px;
    overflow: hidden;
    position: relative; 
    border-radius: 10px;
}

.animal-col .et_pb_animal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.animal-col .et_pb_animal-image:hover .et_overlay {
    z-index: 3;
    opacity: 1;
}

.animal-col .img-wrapper .overlay {
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: rgba(0, 0, 0, .7);
    transition: all .3s;
}

.animal-col .img-wrapper:hover .overlay {
    z-index: 3;
    opacity: 1;
}

.animal-col .img-wrapper img {
    max-width: none;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.animal-col  h2.et_pb_module_header {
    font-size: 23px;
    font-weight: 600;
    padding-bottom: 12px;
}

.animal-col a.more-link {
    color: #222;
    font-size: 15px; 
    font-weight: 500;  
    border: 2px solid;
    display: inline-block;
}
 
/* 
 * Animal Archive 
 */

.archive .animal-col {
    margin-bottom: 30px;
    display: inline-block;
    vertical-align: top;
    font-size: 14px;
}

/* Animals grid */

@media (min-width: 800px) and (max-width: 1200px)  {
    .animal-col .et_pb_animal-image { 
        height: 200px;
    }
}

@media (min-width: 800px) {
    .archive .animal-col {
        width: 31.33%;
        margin-right: 3% !important;
    }
    .archive .animal-col:nth-child(3n) {
        margin-right: 0 !important;
        clear: none;
    }
}

@media (min-width: 450px) and (max-width: 800px)  {
    .archive .animal-col {
        width: 48.5%;
        margin-right: 3% !important;
    }
    .archive .animal-col:nth-child(2n) {
        margin-right: 0 !important;
        clear: none;
    }
}

@media (max-width: 600px)  {
    .animal-col .et_pb_animal-image { 
        height: 200px;
    }
}

/* Archive top section */

.interior-header {
    padding: 35px 0;
    background-image: url(/wp-content/uploads/2018/03/header-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center; 
}

.interior-header h1 {
    margin-bottom: 10px;
} 

form#animal_searchform  { 
    margin: 0 auto;  
    width: 100%;
    max-width: 400px;
    display: block;  
    position: relative;
    overflow: hidden; 
}

form#animal_searchform input[type=text] {
    padding:  0 125px 0 25px !important;
    font-size: 15px;
    line-height: 45px;
    height: 45px;
    border-radius: 30px;
    width: 100%; 
    border: 1px solid #E3E3E3;
    display: block;
}

form#animal_searchform input[type=submit] {
    width: 110px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    box-shadow: none; 
    color: #fff;
    border-radius: 30px;
    position: absolute;
    top: 0;
    right: 0;
    height: 45px;
    padding: 0;
    text-align: center;
    line-height: 45px;
}

/* 
 * Single animal page 
 */

.animal_single .hero { 
    position: relative;
}

.animal-content-section {
    background-color: #fff; 
}

.animal-content-section h3 {
    padding-bottom: 18px;  
    font-weight: 500;
    line-height: 1.1;
}

.animal_single .animal-content-section:first-child {
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
}

.animal_single .animal-content-section:last-child {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* Header section */

#animal-header {
    display: flex;
    align-items: center;
    padding-top: 35px;
    padding-bottom: 25px;
}

#animal-header h1.entry-title {
    font-weight: 600;
    font-size: 35px;
    line-height: 1.2;
    padding-bottom: 5px;
}

#animal-header .subtitle {
    padding-bottom: 0;
}

#animal-header .subtitle span {
    display: inline-block;
    vertical-align: middle;
    font-size: 17px;
}

#animal-header span.sep {
    width: 5px;
    height: 5px;
    margin: 0 10px;
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
    font-size:0;
}

#animal-header .thumb {
    border-radius: 50%; 
    height: 95px;
    width: 95px;
    object-fit: cover;
    margin-right: 20px;
    float: left;
}

/* Details section */

#animal-details {
    display: flex;
    flex-wrap: wrap;
    background-color: #f4f4f4;
    padding-top: 15px;
    padding-bottom: 15px;
}

#animal-details .detail  {
    padding: 10px 20px;
}

/* About section */

#animal-description {
    padding-top: 35px;
    padding-bottom: 35px;
}

/* Gallery / Slick slider */

#animal-gallery {
    padding-top: 25px;
    padding-bottom: 25px;
}

.animal-slider {
    margin-top: 5px;
}

.animal-slider .slick-track {
    display: flex !important;
}

.animal-slider .slick-track .slick-slide {
    display: flex !important;
    height: auto;
    align-items: center;
    margin: 0 8px;
    overflow: hidden;
    position: relative; 
}

.animal-slider .slick-track .slick-slide a {
    width: 100%;
    height: 100%;
}

.animal-slider .slick-track .slick-slide:hover .et_overlay {
    z-index: 3;
    opacity: 1;
}

.animal-slider .slick-track .slick-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 10px;
}

/*Hide slider when slick is not initialized */
.animal-slider {
       opacity: 0;
       visibility: hidden;
       transition: opacity 1s ease;
       -webkit-transition: opacity 1s ease;
   }

.animal-slider.slick-initialized {
     visibility: visible;
     opacity: 1;
 }

/* DETAILED SECTION */

#animal-detailed {
    padding-top: 30px; 
}

#animal-detailed .col  {
    margin-bottom: 30px;
}

#animal-detailed .col li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 16px;
}

#animal-detailed .col li:before {
    content: '\24';
    font-family: 'ETmodules';
    font-size: 16px;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -8px;
}

/* MAP SECTION */

#animal-map {
    padding-top: 15px;
    padding-bottom: 30px;
}

#animal-map .rwmb-map-canvas {
    border-radius: 10px;
    overflow: hidden;
}

/* Contact */

#animal-contact {
    padding: 25px 30px 40px;
    border-radius: 5px; 
    color: #fff;
    margin-bottom: 40px;
    position: relative; 
}

#animal-contact:before {
    content: '';
    width: 150px;
    height: 150px;
    position: absolute;
    right: -10px;
    bottom: -10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-image: url(/wp-content/themes/Divi%20Animals%20Child%20Theme/images/paw_icon.png);
    opacity: 0.1;
}

#animal-contact a {
    color: inherit;
}

#animal-contact h2 { 
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    display: block;
    margin-bottom: 0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}

#animal-contact .contact {
    font-size: 14px; 
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

#animal-contact .contact span {
    display: block; 
    font-size: 19px; 
    font-weight: 600;
}

#animal-contact .contact:last-child {
    margin-bottom: 0;
} 

#animal-contact .contact a {
	color: inherit;
}

/* Sidebar */

@media (min-width: 980px) {
    .single-animal .et_pb_column_1_4 #sidebar {
        float: none;
        padding: 0;
        width: 100% !important;
    }
}

/* Other posts section  */

.divinonprofit-rand-posts-slider .animal-col .et_pb_animal-image {
    height: 200px;
}

/* Mobile ready */

@media (min-width: 550px) {
    .animal_single .hero-image {
        height: 250px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center; 
    }
    .animal_single .hero-image img {
        display: none; 
    }
    .animal_single section.content .et_pb_column_3_4 {
        margin-top: -219px;
    }
    .animal_single .breadcrumbs { 
        color: #fff;
    }
    .animal-content-section { 
        padding-right: 40px; 
        padding-left: 40px;
    }
}

@media (max-width: 550px) {
    .animal_single .hero-image  {
        line-height: 0;
    }
    #animal-header .thumb {
        display: none;
    }
    #animal-header {
        padding-top: 10px;
    }
}

@media (min-width: 700px) {
    #animal-detailed {
        display: flex;
        justify-content: space-between;
    }
    #animal-detailed .col {
        width: 47%;
    }
}