@media(min-width:270px) and (max-width:319px){
	
	.hd_dt {
		display:none;
	}
	.hd_mb {
		display:block;
	}
	.main_cnt .main_wrap .content_box {
		padding: 10px 7px;
	}
	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 48.4%;
		margin: 2px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap .user_box {
		flex-direction: column;
		   align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info {
	    display: flex;
		flex-direction: column;
		align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info h1 {
		margin: 0;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align:center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons .mbtn {
		margin-right: 5px;
		margin-bottom: 5px;
	}
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		flex-direction: column;
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width:100%;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width:100%;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 49%;
		margin: .5px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:320px) and (max-width:359px){
	
	.hd_dt {
		display:none;
	}
	.hd_mb {
		display:block;
	}
	.main_cnt .main_wrap .content_box {
		padding: 10px 7px;
	}
	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 48.6%;
		margin: 2px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap .user_box {
		flex-direction: column;
		   align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info {
	    display: flex;
		flex-direction: column;
		align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info h1 {
		margin: 0;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align:center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons .mbtn {
		margin-right: 5px;
		margin-bottom: 5px;
	}
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		flex-direction: column;
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width:100%;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width:100%;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 49%;
		margin: .5px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:360px) and (max-width:479px){
	
	.hd_dt {
		display:none;
	}
	.hd_mb {
		display:block;
	}
	.main_cnt .main_wrap .content_box {
		padding: 10px 7px;
	}
	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 48.8%;
		margin: 2px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap .user_box {
		flex-direction: column;
		   align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info {
	    display: flex;
		flex-direction: column;
		align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info h1 {
		margin: 0;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align:center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons .mbtn {
		margin-right: 5px;
		margin-bottom: 5px;
	}
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		flex-direction: column;
		align-items: center;
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width: 100%;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width: 100%;
		max-width: 350px;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs {
		justify-content: space-around;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 49%;
		margin: .5px;
		max-width:200px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:480px) and (max-width:500px){
	
	.hd_dt {
		display:none;
	}
	.hd_mb {
		display:block;
	}
	.main_cnt .main_wrap .content_box {
		padding: 10px 7px;
	}
	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 48.6%;
		margin: 2px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap .user_box {
		flex-direction: column;
		   align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info {
	    display: flex;
		flex-direction: column;
		align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info h1 {
		margin: 0;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align:center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons .mbtn {
		margin-right: 5px;
		margin-bottom: 5px;
	}
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		flex-direction: column;
		align-items: center;
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width: 100%;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width: 100%;
		max-width: 350px;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs {
		justify-content: space-around;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 49%;
		margin: .5px;
		max-width:200px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:501px) and (max-width:767px){
	
	.hd_dt {
		display:none;
	}
	.hd_mb {
		display:block;
	}
	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 32%;
		margin: 1.5px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap .user_box {
		flex-direction: column;
		   align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info {
	    display: flex;
		flex-direction: column;
		align-items: center;
	}
	.main_cnt .main_wrap .user_box .user_info h1 {
		margin: 0;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align:center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons .mbtn {
		margin-right: 5px;
		margin-bottom: 5px;
	}
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		flex-direction: column;
		align-items: center;
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width: 100%;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width: 100%;
		max-width: 350px;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs {
		justify-content: space-around;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 32%;
		margin: 1.5px;
		max-width:200px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:640px) and (max-width:767px){
	
	.main_cnt .main_wrap .user_box {
		flex-direction: row;
	}
	.main_cnt .main_wrap .user_box .user_info {
		flex-direction: column;
		align-items: flex-start;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		flex-wrap: nowrap;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align: left;
	}
	
}
@media(min-width:645px) and (max-width:767px){
	.hd_top .hd_top .search {
		width: 650px;
	}
	.hd_top .hd_top .hd_nav {
		position: relative;
		width: 80%;
	}
}
@media(min-width:768px) and (max-width:1200px){
	.hd_top .hd_top .search {
		width: 650px;
	}
	.hd_top .hd_top .hd_nav {
		position: relative;
		width: 80%;
	}
}
@media(min-width:645px) and (max-width:1200px){
	
	.hd_dt {
		display:block;
	}
	.hd_mb {
		display:none;
	}
	.hd_top .hd_top .hd_nav .drop_dt {
		display:block;
	}
	.hd_top .hd_top .hd_nav .hd_left {
		position: absolute;
		left: -7px;
		top:50px;
		display: flex;
		flex-direction: column;
		box-shadow: 0 0 30px rgba(0,0,0,.5);
		background-color: #383838;
		z-index: 1;
		border-radius: 5px;
		display:none;
	}
	.hd_top .hd_top .hd_nav .hd_left:before {
	    position: absolute;
		content: "";
		pointer-events: none;
		bottom: 100%;
		left: 15px;
		border: 10px solid transparent;
		border-bottom-color: #383838;
		height: 0;
		width: 0;
	}
	.hd_top .hd_top .search {
		margin-right:5px;
	}
	.hd_top .hd_top .hd_nav .hd_left a {
		line-height: 30px;
		height: 30px;
	}
	.hd_top .hd_top .hd_nav .hd_right {
		position:absolute;
		right:0;
	}
	
}
@media(min-width:768px) and (max-width:772px){
	

	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 32%;
		margin: 1.5px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap .user_box {
		flex-direction: row;
	}
	.main_cnt .main_wrap .user_box .user_info {
		flex-direction: column;
		align-items: flex-start;
	}
	.main_cnt .main_wrap .user_box .user_info .buttons {
		flex-wrap: nowrap;
	}
	.main_cnt .main_wrap .user_box .user_info ul {
		text-align: left;
	}
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width: 48%;
		padding: 10px;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width: 100%;
		max-width: 350px;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs {
		justify-content: space-around;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 32%;
		margin: 1.5px;
		max-width:200px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:773px) and (max-width:979px){
	
	.main_cnt .main_wrap .content_box .galleries_box .gallery_item, .main_cnt .main_wrap .content_box .galleries_box .fav_gallery, .main_cnt .main_wrap .tags_box .tags_thumbs .thumb {
		width: 24%;
		margin: 3px;
		margin-bottom: 1em;
	}
	.pagination {
		flex-wrap: wrap;
		margin: 15px 0;
	}
	.pagination .disabled {
		display:none;
	}
	.main_cnt .main_wrap .az_nav .az_btm .az_tags {
		flex-wrap: wrap;
	}
	.main_cnt .main_wrap h1.tag_heading {
		flex-wrap: wrap;
	}
	
	.main_cnt .settings_form .form_block {
		margin: 0 20px 20px 20px;
		width:auto;
	}
	.main_cnt .main_wrap {
		max-width:100%;
	}
	.main_cnt .main_wrap .gallery_top {
		margin: 10px auto;
	}
	.main_cnt .main_wrap .gallery_top .cover, .main_cnt .main_wrap .gallery_top .info {
		width: 48%;
		padding: 10px;
	}
	.main_cnt .main_wrap .gallery_top .cover img {
		width: 100%;
		max-width: 350px;
	}
	.main_cnt .main_wrap .gallery_top .info .g_buttons button, .main_cnt .main_wrap .gallery_top .info .g_buttons a {
		margin-bottom:5px;
	}
	.main_cnt .main_wrap .outer_thumbs {
		padding: 10px 5px 5px;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs {
		justify-content: space-around;
	}
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 24%;
		margin: 2px;
		max-width:200px;
	}
	.main_cnt .main_wrap .related {
		padding: 10px 10px 10px;
	}
	
}
@media(min-width:980px) and (max-width:1200px){
	
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs {
		justify-content: center;
	}	
	.main_cnt .main_wrap .outer_thumbs .gallery_thumbs .gt_th {
		width: 19%;
		margin: 3px;
	}
	
}
@media(min-width:1201px) and (max-width:1350px){
	.hd_top .hd_top .search {
		width: 38%;
	}
}