:root {
    
    --color-white:                     #FFFFFF; /*#000000*/
    --color-white-rgb:                   255, 255, 255;

    --color-black:                     #000000; /*#FFFFFF*/
    --color-black-rgb:                  0, 0, 0;

      
    /* Transition Method */
    --transition-base: all 0.5s ease-in-out;
    --transition-bezier: all .25s cubic-bezier(.645, .045, .355, 1); 
} 
a.mxp-image-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--color-black-rgb), 0.5);
    color: var(--color-white);
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    z-index: 70;
    transition: var(--transition-base);
}
a:hover.mxp-image-popup {
    top: 12px;
    right: 12px;
    background: rgba(var(--color-white-rgb), 0.5);
    color: var(--color-black);
    zoom: 1.1
}
/* Default Theme */
.mxphotogallery.default .gallery-item {
    position: relative;
    padding: 5px;
    transition: box-shadow 0.3s ease;
}
.mxphotogallery.default .img-fluid{
    object-fit: cover; object-position: center;
}

.mxphotogallery.default .gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mxphotogallery.default .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Simple Theme */
.mxphotogallery.simple .gallery-item {
    position: relative;
    padding: 0px;
    transition: transform 0.3s ease;
}

.mxphotogallery.simple .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
    z-index: 300
}
.mxphotogallery.simple a.mxp-image-popup {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;  
    background: none;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mxphotogallery.simple a.mxp-image-popup i {
    padding: 2px 10px;
    background: rgba(var(--color-black-rgb), 0.5);
    color: var(--color-white);
}
.mxphotogallery.simple .gallery-item:hover a:hover.mxp-image-popup i {
    background: rgba(var(--color-white-rgb), 0.6);
    color: var(--color-black);
    zoom: 1.6
}
.mxphotogallery.simple .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Elegant Theme */
.mxphotogallery.elegant .gallery-item {
    position: relative;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.mxphotogallery.elegant .gallery-item:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.mxphotogallery.elegant .gallery-item img {
    transition: transform 0.8s ease;
}
.mxphotogallery.elegant .gallery-item:hover img{
    transform: scale(1.2);
    z-index: 300
}
.mxphotogallery.elegant .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.mxphotogallery .mxgallery-title {
  text-transform: capitalize;
}
/* Zoom Theme */
.mxphotogallery.zoom .gallery-item {
    position: relative;
    padding: 2px;
    transition: transform 0.3s ease;
}
.mxphotogallery.zoom .gallery-item img {
    transition: transform 0.3s ease;
}

.mxphotogallery.zoom .gallery-item:hover{
    transform: scale(1.15);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    z-index: 300
}
.mxphotogallery.zoom .gallery-item:hover img{
    transform: scale(1.2);
    z-index: 300
}

.mxphotogallery.zoom .row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.mxphotogallery.zoom .gallery-item:hover a.mxp-image-popup {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mxphotogallery.zoom .gallery-item:hover a:hover.mxp-image-popup {
    top: 0px;
    right: 0px;
    background: rgba(var(--color-black-rgb), 0.2);
    color: var(--color-white);
    zoom: 1.1
}