body.modal-open {
    overflow: hidden; /* Prevent scrolling on the body */
    padding-right: var(
      --scrollbar-width,
      0px
    ); /* Prevent content from shifting */
  }
  
  /* Calculate scrollbar width */
  body {
    --scrollbar-width: calc(
      (100vw - var(--content-width, 100vw))
    ); /* Define the variable */
  }
  
  body:not(.modal-open) {
    --content-width: 100vw; /* Calculate content width when modal is closed */
  }
  

.gallery-fullscreen-wrapper {
    position: relative;
}

.gallery-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.gallery-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.gallery-fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.gallery-fullscreen-modal.active {
    display: flex;
}

html[data-theme="dark"] {
    .gallery-fullscreen-content {
        background: #121212;
        color: white;
    }
    .gallery-fullscreen-close {
        background: #cccccc;
        color: white;
    }
    .gallery-fullscreen-btn {
        background: rgba(0, 0, 0, 0.6);
        color: white;
    }
}

.gallery-fullscreen-content {
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 4px;
    overflow: auto;
}

.gallery-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    border: none;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-fullscreen-close.round-button span {
 font-size: 20px;
 line-height: 1;
}