.acf-gallery-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 145px;
  padding: 0 30px;
}

.acf-gallery {
  padding: 0 !important;
  position: relative;
  left: 0;
  top: 0;
  margin-left: -6px;
  margin-right: -6px;
  padding-bottom: 1px !important;
  margin-bottom: 1px !important;
  width: auto !important;
  white-space: nowrap;
  overflow-x: scroll;	
}

/** If less than 4 images **/

.no-arrows.acf-gallery-outer-wrap .acf-gallery-controls {
	display: none;
}

.acf-gallery-outer-wrap.no-arrows .acf-gallery-wrap {
    padding-left: 0;
    padding-right: 0;
}

/** Images **/

.acf-gallery li {
  float: left;
  list-style: none;
  text-align: center;
  cursor: pointer;
  padding: 0 6px;
}

.acf-gallery li img {
  display: block;
  max-height: 700px;
}

.acf-gallery-controls {
  width: 100%
}

.acf-gallery-modal .acf-gallery-prev {
  float: left;
}

.acf-gallery-modal .acf-gallery-next {
  float: right;
}
.acf-gallery li {
	width: 33.3333%;
	margin-bottom: 0 !important;
	display: inline-block;
	float: none;
	vertical-align: top;
}

.acf-gallery li span {
	-moz-background-size: cover;
	     background-size: cover;
	width: 100%;
	display: block;
	height: 140px;
	background-position: 50% 50%;
	-webkit-box-shadow: inset 0 0 0 1px #D5DBDC;
	   -moz-box-shadow: inset 0 0 0 1px #D5DBDC;
	        box-shadow: inset 0 0 0 1px #D5DBDC;
	background-color: #fff;
}

.acf-gallery-outer-wrap.two-images ul.acf-gallery {
    display: table;
    width: 70% !important;
    margin: 0 auto;
}

.acf-gallery-outer-wrap.two-images ul.acf-gallery li {
    display: table-cell;
}

.acf-gallery-outer-wrap.one-image ul.acf-gallery {
    display: table;
    width: 35% !important;
    margin: 0 auto;
}

.acf-gallery-outer-wrap.one-image ul.acf-gallery li {
    display: table-cell;
}

/* Image Modal */

.acf-gallery-modal.closed {
	opacity: 0;
	pointer-events: none;
	left: -1500vw;
	-webkit-transition: opacity 0.3s ease, left 0s linear 4s;
	-moz-transition: opacity 0.3s ease, left 0s linear 4s;
	transition: opacity 0.3s ease, left 0s linear 4s;
}

.acf-gallery-modal.closed .img-modal {
	opacity: 0;
}

.acf-gallery-modal .img-modal {
	opacity: 1;
	-webkit-transition: all 0.3s ease 0.25s;
	-moz-transition: all 0.3s ease 0.25s;
	transition: all 0.3s ease 0.25s;
}



.acf-gallery-modal {
	background-color: rgba(0,0,0,0.85);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 99999999;
	height: 100vh;
	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: flex;
	padding-top: 70px;
	-webkit-box-align: center;
	-webkit-align-items: center;
	   -moz-box-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	   -moz-box-pack: center;
	        justify-content: center;
	-webkit-transition: opacity 0.3s ease;
	-moz-transition: opacity 0.3s ease;
	transition: opacity 0.3s ease;
}

.acf-gallery-modal .img-modal {
	text-align: center;
    width: 100%;
    max-width: 75%;
	pointer-events: none;
}

.img-modal img {
	pointer-events: all;
}

/*
.img-modal img[src*="png"] {
    background: #fff;
}
*/

.acf-gallery-modal.closed .img-modal img {
	pointer-events: none;
}

.acf-gallery-modal .close-modal {
	padding: 0;
	opacity: 1;
	cursor: pointer;
	pointer-events: unset;
	border: none;
}

.acf-gallery-modal .img-bg-close {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    cursor: -webkit-zoom-out;	
	cursor: -moz-zoom-out;	
	cursor: zoom-out;
}

/** GLOBAL ARROW STYLES **/


a.acf-gallery-prev:before,
a.acf-gallery-next:before {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	   -moz-transform: translate(-50%, -50%);
	        transform: translate(-50%, -50%);
	vertical-align: middle;
	font-family: "ETmodules";
	display: inline-block;
	color: #4e5a66;
}

a.acf-gallery-prev:before {
    content: "4";	
}

a.acf-gallery-next:before {
    content: "5";
}

/** GLOBAL ARROW STYLES **/

.acf-gallery-outer-wrap a.acf-gallery-prev,
.acf-gallery-outer-wrap a.acf-gallery-next {
	position: absolute;
	top: 50%;
	font-size: 30px;
}

.acf-gallery-outer-wrap a.acf-gallery-prev {
	left: 6px;
}


.acf-gallery-outer-wrap a.acf-gallery-next {
	right: 6px;
}

.acf-gallery-outer-wrap a.acf-gallery-prev:before,
.acf-gallery-outer-wrap a.acf-gallery-next:before {
	position: absolute;
	top: 0;
	left: 0;
}

/** MODAL ARROWS **/
.acf-gallery-modal .acf-gallery-prev,
.acf-gallery-modal .acf-gallery-next {
    background: #fff !important;
    -webkit-border-radius: 200px !important;
       -moz-border-radius: 200px !important;
            border-radius: 200px !important;
    opacity: 1 !important;
    height: 50px !important;
    width: 50px !important;
    -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.14);
       -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.14);
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.14);
    display: block !important;
    position: fixed !important;
    border: 1px solid #dddddd;
	cursor: pointer;
}

.acf-gallery-modal .acf-gallery-prev:before,
.acf-gallery-modal .acf-gallery-next:before {
    color: #4e5a66 !important;
    font-size: 45px !important;
}

.acf-gallery-modal .acf-gallery-prev {
    left: 10px !important;
}

.acf-gallery-modal .acf-gallery-next {
    right: 10px !important;
}