.wper-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wper-lightbox-container {
    position: relative;
    width: 100%;
    height: 90%;
    text-align: center;
}

.wper-lightbox-full-screen {
    position: absolute;
  top: -32px;
  right: 60px;
  background: none;
  border: none;
  color: #bababa;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.wper-lightbox-full-screen:hover {
    color: #fff;
  text-shadow: 1px 1px 5px #fff;
  top: -33px;
}
/* Full screen button styles */
/*.wper-lightbox-full-screen {*/
/*    position: relative;*/
/*}*/

/* Full screen icon adjustment */
/*.wper-lightbox-full-screen::before {*/
/*    content: '\26F6';*/
/*    font-size: 18px;*/
/*}*/

/* Style for when in full screen mode */
/*.wper-lightbox-overlay.full-screen .wper-lightbox-full-screen::before {*/
/*    content: '\26F5';*/
/*}*/

.wper-lightbox-close {
    position: absolute;
    top: -40px;
    right: 10px;
    background: none;
    border: none;
    color: #bababa;
    font-size: 50px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.wper-lightbox-close:hover {
    transform: rotate(90deg);
    text-shadow: 1px 1px 5px #fff;
    top: -41px;
  color: #fff;
}

.wper-lightbox-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.wper-lightbox-prev, .wper-lightbox-next {
    border: none;
  font-size: 80px;
  padding: 10px 15px;
  cursor: pointer;
  background: unset;
  color: rgba(255, 255, 255, 0.5);
}

.wper-lightbox-prev:hover, .wper-lightbox-next:hover {
    color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 3px #fff;
  box-shadow: 0 0 3px #ddd;
  border-radius: 4px 0 0 4px;
  background: rgba(255, 255, 255, 0.05);
}

.wper-lightbox-prev span, .wper-lightbox-next span {
    position: relative;
    top: -10px;
}

.wper-lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
}

#wper-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.wper-lightbox-caption {
   color: white;
  font-size: 16px;
  line-height: 30px;
  position: relative;
  top: -30px;
  text-align: left;
  left: 30px;
}

.wper-lightbox-caption > div {
   font-size: 18px;
}

.wper-lightbox-caption span {
   color: #999;
  padding-right: 15px;
  font-size: 14px;
}

.wper-lightbox-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    z-index: 20;
  position: relative;
}

.wper-lightbox-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wper-lightbox-controls button.wper-lightbox-reset,
.wper-lightbox-controls button.wper-lightbox-rotate {
    font-size: 25px;
  line-height: 1;
}

.wper-lightbox-controls button.wper-lightbox-original {
    font-size: 12px;
}

.wper-lightbox-controls button.wper-lightbox-flip-horizontal span:first-child{
    color: #9d9d9d;
      border-right: 1px solid ;
      margin: 0 2px 0 -2px;
      padding: 0 2px;
}

.wper-lightbox-controls button.wper-lightbox-flip-vertical span:first-child{
    margin: -18px 0 0 0;
    color: #9d9d9d;
  border-bottom: 1px solid;
}

.wper-lightbox-controls button.wper-lightbox-flip-vertical span:last-child{
    margin: 18px 0 0 -16px;
}

.wper-lightbox-controls button.wper-lightbox-download span {
    border-bottom: 2px solid;
  margin-top: -5px;
}

.wper-lightbox-controls button:hover {
    box-shadow: 0 0 5px #808080,-0.5px -0.5px 0 #fff;
}

.wper-lightbox-controls button:hover span {
    text-shadow: 1px 1px 3px #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wper-lightbox-controls {
        flex-wrap: wrap;
    }
    .wper-lightbox-caption {
        padding: 0 10px;
    }
}