/*
Theme Name: Photo Blog

Adding support for languages written in a Right To Left (RTL) direction is easy -
it's just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.

https://codex.wordpress.org/Right-to-Left_Language_Support

*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
body {
	direction: rtl;
	unicode-bidi: embed;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
blockquote {
	border-left-width: 0;
	border-right-width: 4px;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
li > ul,
li > ol {
	margin-left: 0;
	margin-right: 1.5em;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
/* Search Form */
.search-form {
	margin-bottom: 1.5em;
	position: relative;
}

.search-form .search-field {
	padding-left: 41px;
	padding-right: 0.3125em;
}

.search-form .search-submit {
	left: 0;
	right: auto;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Main Navigation
--------------------------------------------------------------*/
.main-navigation {
	margin-left: 0;
	margin-right: calc(-3em / 2);
}

.main-navigation .menu-item-has-children > a {
	margin-left: 3.5em;
	margin-right: 0;
}

.main-navigation ul ul {
	padding-left: 0;
	padding-right: 1.5em;
}

/* Menu Toggle */
.toggled-on.menu-toggle:before {
	left: auto;
	right: 0;
}

.menu-toggle .icon {
	margin-left: 0.25em;
	margin-right: 0;
}

/* Dropdown Toggle */
.dropdown-toggle {
	left: 0;
	right: auto;
}

/*--------------------------------------------------------------
## Pagination
--------------------------------------------------------------*/
/* Comments & Posts Pagination */
.comments-pagination .page-numbers,
.pagination .page-numbers {
	margin: 0 -1px -1px 0;
}

/* Post Navigation */
.post-navigation .nav-next {
	text-align: left;
}

.post-navigation .nav-previous + .nav-next {
	margin-left: 0;
}

.post-navigation .nav-previous:before,
.post-navigation .nav-next:before {
	left: auto;
	right: 0;
}

.post-navigation .nav-previous:before {
	left: -1px;
	right: auto;
}

/* Icon */
.nav-links .icon {
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	transform: rotate(180deg);
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text:focus {
	left: auto;
	right: 5px;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
/* Lists */
.widget_categories .children,
.widget_nav_menu .sub-menu,
.widget_pages .children {
	padding-left: 0;
	padding-right: 1.5em;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts & Pages
--------------------------------------------------------------*/
/* Entry */
.archive .hentry:last-of-type:before,
.archive .hentry:last-of-type:after,
.blog .hentry:last-of-type:before,
.blog .hentry:last-of-type:after,
.search-results .hentry:last-of-type:before,
.search-results .hentry:last-of-type:after {
	left: auto;
	right: 100%;
}

.archive .hentry:last-of-type:after,
.blog .hentry:last-of-type:after,
.search-results .hentry:last-of-type:after {
	left: auto;
	right: 200%;
}

/* Entry Author, Entry Content & Entry Footer */
.entry-author .author-bio,
.entry-author .author-heading {
	padding-left: 0;
	padding-right: 72px;
	padding-right: calc(48px + 1.5rem);
}

.author-avatar-hide .author-bio,
.author-avatar-hide .author-heading {
	padding-right: 0;
}

/*--------------------------------------------------------------
## Post Formats
--------------------------------------------------------------*/
/* Link */
.format-link .entry-title .icon {
	margin-left: 0;
	margin-right: 0.25em;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-author .avatar {
	float: right;
	margin-left: 1.5em;
	margin-right: 0;
}

.comment-list .reply .icon {
	margin-left: 0;
	margin-right: 0.25em;
}

.comment #respond .comment-form {
	padding-right: 0;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-left: 0;
	margin-right: calc(-1.5em / 2);
}

/*--------------------------------------------------------------
## Iframes
--------------------------------------------------------------*/
/* Playlists */
.site .wp-playlist-item-length {
	left: 0;
	right: auto;
}

/*--------------------------------------------------------------
# Jetpack
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Infinite Scroll
--------------------------------------------------------------*/
/* Handle */
#infinite-handle span {
	border: 0;
}

#infinite-handle span:before {
	display: none;
}

/* Loader */
.site-main .infinite-loader {
	margin: 0;
}

.site-main .infinite-loader .spinner {
	left: auto !important;
	right: 50% !important;
}

/*--------------------------------------------------------------
## Social Navigation
--------------------------------------------------------------*/
.site-footer .jetpack-social-navigation:before {
	left: 0;
	right: auto;
}

.site-footer .jetpack-social-navigation li {
	margin: 0 -1px -1px 0;
}

.site-footer .jetpack-social-navigation .page_item_has_children > a,
.site-footer .jetpack-social-navigation .menu-item-has-children > a {
	padding-left: 0;
}

/*--------------------------------------------------------------
## Widgets
--------------------------------------------------------------*/
/* RSS Links */
.widget_rss_links p a:last-of-type {
	margin-left: 0;
	margin-right: 0.5em;
}

/*--------------------------------------------------------------
# Eventbrite
--------------------------------------------------------------*/
.eventbrite-event .entry-header span {
	padding-left: 0.75em;
	padding-right: 0;
}

.eventbrite-event .entry-header span:last-of-type {
	padding-left: 0;
}

/*--------------------------------------------------------------
# Extra CSS
--------------------------------------------------------------*/
.dropcap {
	float: right;
	margin-left: 0.0833333em;
	margin-right: 0;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## x >= 568px
--------------------------------------------------------------*/
@media screen and (min-width: 568px) {
	/* Content */
	.archive .hentry,
	.blog .hentry,
	.search-results .hentry {
		float: right;
	}

	.archive .hentry:nth-of-type(2n+3),
	.blog .hentry:nth-of-type(2n+3),
	.search-results .hentry:nth-of-type(2n+3) {
		clear: right;
	}
}

/*--------------------------------------------------------------
## x >= 768px
--------------------------------------------------------------*/
@media screen and (min-width: 768px) {
	/* Layout */
	.site-header {
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-justify-content: flex-start;
		-ms-justify-content: flex-start;
		justify-content: flex-start;
		position: fixed;
	}

	.site-branding {
		margin-left: auto;
		margin-right: 0;
		padding-left: 1.5em;
		padding-right: 0;
	}

	.custom-logo-link {
		float: right;
	}

	.site-title {
		padding-left: 0.375rem;
		padding-right: 0;
	}

	.site-info {
		margin-left: 0;
		margin-right: auto;
	}

	/* Navigation */
	.main-navigation {
		margin: 0;
	}

	.main-navigation > div {
		margin-left: 0;
		margin-right: -0.75em;
	}

	.main-navigation .menu > li:last-child {
		margin-left: 0;
		margin-right: 0.75em;
	}

	.main-navigation a .icon {
		margin-left: 0;
		margin-right: 0.25em;
	}

	.main-navigation .menu-item-has-children > a {
		margin-left: 0;
		margin-right: 0;
	}

	.main-navigation ul ul {
		left: auto;
		padding-right: 0;
		right: -999em;
	}

	.menu-direction-left .main-navigation ul ul {
		left: -999em;
		right: auto;
	}

	.main-navigation ul ul ul a {
		padding-left: 0.75em;
		padding-right: 1.5em;
	}

	.main-navigation ul ul ul ul a {
		padding-left: 0.75em;
		padding-right: 2.25em;
	}

	.main-navigation ul ul ul ul ul a {
		padding-left: 0.75em;
		padding-right: 3em;
	}

	.main-navigation ul ul li {
		margin: 0;
		padding-bottom: 0;
		width: 100%;
	}

	.main-navigation ul li:hover > ul,
	.main-navigation ul li.focus > ul {
		left: auto;
		margin-left: 0;
		margin-right: -0.75em;
		right: auto;
	}

	.menu-direction-left .main-navigation ul li:hover > ul,
	.menu-direction-left .main-navigation ul li.focus > ul {
		left: 0;
		margin-left: -0.75em;
		margin-right: 0;
		right: auto;
	}

	.main-navigation ul ul li:hover > ul,
	.main-navigation ul ul li.focus > ul {
		left: 0;
		margin-right: 0;
		right: 0;
	}

	.menu-direction-left .main-navigation ul ul li:hover > ul,
	.menu-direction-left .main-navigation ul ul li.focus > ul {
		left: 0;
		margin-left: 0;
		right: 0;
	}

	.post-navigation .nav-next {
		margin-left: 0;
		margin-right: 50%;
	}

	.post-navigation .nav-previous + .nav-next {
		margin-right: 0;
	}

	/* Media */
	.gallery {
		margin-left: 0;
		margin-right: -72px;
	}

	/* Jetpack */
	.jetpack-recipe img.fullbleed,
	.jetpack-recipe div.fullbleed,
	.jetpack-recipe figure.fullbleed {
		margin-left: 0;
		margin-right: -102px;
		margin-right: calc(-72px - 1.5em);
	}

	.hentry div#jp-relatedposts div.jp-relatedposts-items {
		margin-left: 0;
		margin-right: -0.75em;
	}

	.hentry div#jp-relatedposts div.jp-relatedposts-items.jp-relatedposts-items-minimal {
		margin-right: 0;
	}

	.hentry div#jp-relatedposts div.jp-relatedposts-items .jp-relatedposts-post {
		padding: 0 0.75em;
		width: 33.333333%;
	}

	.site-footer .jetpack-social-navigation {
		margin-left: 0;
		margin-right: -1px;
	}
}

/*--------------------------------------------------------------
## x >= 792px
--------------------------------------------------------------*/
@media screen and (min-width: 792px) {
	/* Media */
	.gallery {
		margin-left: 0;
		margin-right: -84px;
	}
}

/*--------------------------------------------------------------
## x >= 1024px
--------------------------------------------------------------*/
@media screen and (min-width: 1024px) {
	/* Layout */
	.widget-column-1 {
		padding-left: 3em;
		padding-right: 0;
	}

	.widget-column-2 {
		padding-left: 1.5em;
		padding-right: 1.5em;
	}

	.widget-column-3 {
		padding-left: 0;
		padding-right: 3em;
	}

	/* Content */
	.archive .hentry:nth-of-type(2n+3),
	.blog .hentry:nth-of-type(2n+3),
	.search-results .hentry:nth-of-type(2n+3) {
		clear: none;
	}

	.archive .hentry:nth-of-type(3n+4),
	.blog .hentry:nth-of-type(3n+4),
	.search-results .hentry:nth-of-type(3n+4) {
		clear: right;
	}
}