/*-----------------------------------------------------------------------------------

	Theme Name: IFRC WASH
	Description: Custom WordPress Theme
	Author: Hrenko Kft.
	Author URI: https://hrenko.hu/
	Version: 1.0
    Text Domain: wash

-----------------------------------------------------------------------------------------*/

/* =WordPress Core
-------------------------------------------------------------- */
.aligncenter,
div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignright {
    float: right;
    margin-right: 0 0 1rem 1rem;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.wp-caption {
    max-width: 100% !important;
    margin-bottom: 1.5rem;
    background: #fff;
    border-radius: .375rem;
}

.wp-caption p.wp-caption-text {
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: .875rem;
    font-style: italic;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.sticky,
.bypostauthor,
.screen-reader-text {
    outline: none;
}

.gallery {
    margin-bottom: .5rem !important;
}

.gallery-item img {
    border: 0 !important;
    border-radius: .375rem;
}

/* =WordPress admin bar fix
/* ----------------------------------------------- */

html[lang] {
    margin-top: 0 !important;
}

body.admin-bar {
    margin-top: 32px !important;
}

body.admin-bar .header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 46px !important;
    }
}