/*
 Theme Name: Twenty Twenty Child
 Theme URI: https://wordpress.org/themes/twentytwenty/
 Description: Twenty Twenty Child Theme
 Text Domain: twentytwenty
 Version: 1.2
 Requires at least: 4.7
 Requires PHP: 5.2.4
 Author: the WordPress team
 Author URI: https://wordpress.org/
Template: twentytwenty
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */


/* Template: Custom Home Page ------------------ */

body.page-template-custom-home-page .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide),
body.page-template-custom-home-page [class*="__inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 120rem;
}

body.page-template-custom-home-page .entry-content .alignleft,
body.page-template-custom-home-page .entry-content .alignright {
    position: static;
}

body.page-template-custom-home-page .entry-content .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignwide [class*="__inner-container"] > .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignleft {

    /*rtl:ignore*/
    margin-left: 0;
    position: static;
}

body.page-template-custom-home-page .entry-content > .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignleft {

    /*rtl:ignore*/
    margin-left: 2rem;
    position: static;
}

body.page-template-custom-home-page .entry-content .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignwide [class*="__inner-container"] > .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignwide [class*="__inner-container"] > p .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignwide [class*="__inner-container"] > .wp-block-image .alignright {

    /*rtl:ignore*/
    margin-right: 0;
    position: static;
}

body.page-template-custom-home-page .entry-content > .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > p .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignfull:not(.has-background) [class*="__inner-container"] > .wp-block-image .alignright {

    /*rtl:ignore*/
    margin-right: 2rem;
    position: static;
}

body.page-template-custom-home-page .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    width: calc(100% - 8rem);
}

body.page-template-custom-home-page .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) {
    padding-left: 4rem;
    padding-right: 4rem;
}

body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignleft,
body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft {

    /*rtl:ignore*/
    margin-left: 4rem;
}

body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > p .alignright,
body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright {

    /*rtl:ignore*/
    margin-right: 4rem;
}

.page-template-custom-home-page .wp-block-image .alignleft {

    /*rtl:ignore*/
    margin-right: 2rem;
}

.page-template-custom-home-page .wp-block-image .alignright {

    /*rtl:ignore*/
    margin-left: 2rem;
}

@media ( min-width: 1240px ) {


    /* Blocks -------------------------------- */

    body.page-template-custom-home-page .entry-content > .alignleft {

        /*rtl:ignore*/
        margin-left: calc(( 100vw - 120rem ) / 2);
    }

    body.page-template-custom-home-page .entry-content > .alignright {

        /*rtl:ignore*/
        margin-right: calc(( 100vw - 120rem ) / 2);
    }

}
@media ( min-width: 1280px ){
    body.page-template-custom-home-page .alignfull:not(.has-background) > .wp-block-group__inner-container > p:not(.has-background-color) {
        padding-left: 0;
        padding-right: 0;
    }

    body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignleft {

        /*rtl:ignore*/
        margin-left: 0;
    }

    body.page-template-custom-home-page [class*="wp-block"].alignfull [class*="__inner-container"] > .wp-block-image .alignright {

        /*rtl:ignore*/
        margin-right: 0;
    }
}
body.page-template-custom-home-page .featured-media .featured-media-inner{
    width: 100%;
    max-width: 100%;
}
body.page-template-custom-home-page .featured-media .featured-media-inner img{
    width: 100%;
}

/** For rent **/
.uagb-post__image{
    position: relative;
}
.uagb-post__image img.available-img,
.tag-available img.available-img{
    position: absolute;
    top: 0;
    right: 0;
    max-width: 100px;
}
figure.featured-media .featured-media-inner{
    position: relative;
}
figure.featured-media .featured-media-inner .attachment-post-thumbnail{
    width: 100%;
}
