.portfolio-page .rb_gallery-inner {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 20px;
	max-width: 100%
}

.magnific-img {
	position: relative;
	width: 100%;
	padding-top: 85%;
	overflow: hidden;
	height: 100%
}

.magnific-img img {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	transition: .5s
}

.mfp-arrow {
	opacity: .65;
	transition: opacity .2s ease-in, opacity 2s ease-out
}

.mfp-arrow:focus,
.mfp-arrow:hover {
	opacity: 1
}

.taxonomy-navigation {
	display: flex;
	padding: 0 60px;
	margin-top: 50px;
	margin-bottom: 40px
}

.taxonomy-navigation:has(.prev_btn):has(.next_btn) {
	justify-content: space-between
}

.taxonomy-navigation:has(.prev_btn):not(:has(.next_btn)) {
	justify-content: flex-start
}

.taxonomy-navigation:has(.next_btn):not(:has(.prev_btn)) {
	justify-content: flex-end
}

.taxonomy-navigation a {
	font-weight: 300;
	font-style: normal;
	font-size: 14px;
	letter-spacing: .3em;
	line-height: 1.9em;
	text-transform: uppercase;
	color: #222;
	padding: 0 15px;
	max-width: 50%;
	flex: 0 0 50%
}

.taxonomy-navigation a span {
	display: block;
	padding: 4px 0 8px;
		font-weight: 500;
}

.taxonomy-navigation a.next_btn {
	text-align: right
}

.taxonomy-navigation a.prev_btn:last-child span {
	text-align: left
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 999;
	display: block;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 20px;
	border: 3px solid #fff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	text-align: center;
	padding-left: 4px;
	line-height: 35px;
	display: flex;
	align-items: center;
	justify-content: center
}
.rb_prt-row {
    display: grid;
    margin-bottom: 50px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rb_prot-det{
	border: 1px solid #ddd;
		margin-bottom:30px;
}

.rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det h3, .rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det span {
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 300;
    line-height: 26px;
    display: grid;
    border-bottom: 1px solid #ddd;
    padding: 5px 10px;
    grid-template-columns: repeat(2, 1fr);
}
.rb_portfolio-gallery .rb_prot-det h2 label, .rb_portfolio-gallery .rb_prot-det h3 label, .rb_portfolio-gallery .rb_prot-det span label {
    font-weight: 500;
}
.rb_portfolio-gallery .rb_prot-det span {
    line-height: 26px;
    border: none;
}
.rb_prot-content {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;

}

.rb_prot-content p:last-child {
    margin-bottom: 0;
}
.rb_prot-det, .rb_prot-content {
    width: 100%;
}

.rb_prt-img img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: .5s;
}

.rb_prt-img {
    position: relative;
    width: 100%;
    padding-top: 72%;
    overflow: hidden;
    height: 100%;
}
.rb_prot-content label {
    font-weight: 500;
}


.rb_gallery-row {
display: grid;
margin-bottom: 50px;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.rb_gallery-wrap  .rb_grp-inner:nth-child(odd) .rb_gallery-row .rb_gallery-col:last-child {
border: 80px solid #fff; 
}

.rb_gallery-wrap  .rb_grp-inner:nth-child(even) .rb_gallery-row .rb_gallery-col:first-child {
border: 80px solid #fff; 
}

.rb_gallery-full {margin-bottom: 40px;}

/*  .rb_gallery-inner {
display: none;
} */
.rb_remove {
    display: none;
}

.rb_remove {
    display: block;
}

/* .postid-390 .rb_portfolio-gallery.img-gallery-magnific .container {
    display: none;
} */
 .rb_prot-det h3:nth-of-type(1) {
    display: none;
}
 .rb_remove.rb_portfolio-gallery.img-gallery-magnific .container {
    display: block;
}
.rb_gallery-full .magnific-img {
    padding-top: 65%;
}
/*  .rb_portfolio-gallery .rb_prot-det h2,  .rb_portfolio-gallery .rb_prot-det h3,  .rb_portfolio-gallery .rb_prot-det h2,  .rb_portfolio-gallery .rb_prot-det span,   .rb_prot-det {
    border: none;
} */

 .rb_breadcrumb hr {
    display: none;
}
/* .rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det h3, .rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det span {
    padding: 10px 0;
}
 .rb_prot-det:first-child h2 {
    padding-top: 0;
} */

@media (min-width:768px) {
	.portfolio-page .rb_gallery-inner {
		grid-template-columns: repeat(3, 1fr)
	}
}


@media all and (max-width:1024px) {
	.rb_prt-row {
    	grid-template-columns: repeat(1, 1fr);
		gap: 30px;
	}
	.rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det h3, .rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det span {
    	font-size: 14px;
	}
	
		.rb_gallery-wrap .rb_grp-inner:nth-child(odd) .rb_gallery-row .rb_gallery-col:last-child {
    border: 20px solid #fff;
}
	
	.rb_gallery-wrap .rb_grp-inner:nth-child(even) .rb_gallery-row .rb_gallery-col:first-child {
    border: 20px solid #fff;
}
}

@media all and (max-width:767px) {
	.taxonomy-navigation {
		padding: 0 30px;
		margin-top: 40px;
		margin-bottom: 40px
	}
	.rb_prot-det, .rb_prt-row {
    margin-bottom: 10px;
}
		.taxonomy-navigation a {
    font-size: 12px;
    line-height: 1.2em;
		padding: 7px;
}
	    .rb_breadcrumb .rb_breadcrumb-inner {
        padding: 0;
    }
	.rb_portfolio-gallery .rb_prot-det h2 label, .rb_portfolio-gallery .rb_prot-det h3 label, .rb_portfolio-gallery .rb_prot-det span label, .rb_prot-content p, .rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det h3, .rb_portfolio-gallery .rb_prot-det h2, .rb_portfolio-gallery .rb_prot-det span {
    line-height: 1.4;
		        font-size: 12px;
}
}

@media all and (max-width:479px) {

	.taxonomy-navigation {
		padding: 0 0 30px 0;
		margin:0 15px;
	}
	.rb_gallery-full,.rb_gallery-row {
    margin-bottom: 20px;
}
			.rb_gallery-wrap .rb_grp-inner:nth-child(odd) .rb_gallery-row .rb_gallery-col:last-child {
    border: 0px solid #fff;
}
	
	.rb_gallery-wrap .rb_grp-inner:nth-child(even) .rb_gallery-row .rb_gallery-col:first-child {
    border: 0px solid #fff;
}
}