.photogallery {
	font-size: 0;
}
	.photogallery a {
		border-bottom: 0 !important;
	}

	.photogallery .big {
		display: block;
		text-align: center;
		width: 100%;
		position: relative;
		padding-bottom: 66.8%;
		height: 0;
	}
		.photogallery .big .cell {
			position: absolute;
			left: 0;
			top: 0;
			right: 0;
			bottom: 0;
			vertical-align: middle;
		}
		.photogallery .big .cell:before {
			content: "";
			display: inline-block;
			height: 100%;
			vertical-align: middle;
			margin-right: -0.25em;
		}
		.photogallery .big a {
			display: none;
		}
			.photogallery .big a img {
        width: 100%;
				max-height: 100%;
				max-width: 100%;
				padding: 0 !important;
        margin: 0;
			}

	.photogallery .thumb {
		text-align: justify;
		/* margin-left: -14px; */
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
    margin-top: 10px;
	}
  .photogallery .thumb img {
    border-radius: 4px;
    width: 100%;
  }
		.photogallery .thumb li {
			display: inline-block;
			/* margin-left: 14px; */
			margin-right: 14px;
			 width: 74px;
      /*width: 25%;*/
		}
		.photogallery.left .thumb li {
			display: inline-block;
			/* margin-left: 14px; */
			margin-right: 0;
      width: 25%;
		}
		.photogallery.right .thumb li {
			display: inline-block;
			/* margin-left: 14px; */
			margin-right: 0;
      width: 25%;
		}
			.photogallery .thumb li a {
				position: relative;
				/*display: inline-block;*/
				/* margin-top: 14px; */
			}
			/* .photogallery .thumb li.active a:before {
				content: "";
				background: url("images/bg.png");
				width: 74px;
				height: 6px;
				position: absolute;
				bottom: -6px;
			} */
      .photogallery .thumb li.active img {
        outline: 2px solid;
      }

.photogallery.left,
.photogallery.right {
	width: 338px;
}

.photogallery.left,
.photogallery.right {
	float: left;
	margin: 0 40px 20px 0;
}
.photogallery.right {
	float: right;
	margin: 0 0 20px 40px;
}

.photogallery.all_width {
	margin: 20px 0;
}

@media (max-width: 768px) {
  .photogallery.left,
  .photogallery.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
