dialog > .pos-relative {
	opacity: 1!important;
}

dialog .img-wrapper {
	border-radius: 8px;
	overflow: hidden;
	margin: 10px 0;
}
dialog .btn svg {
	fill: currentColor;
    transform: translateY(3px);
}
dialog .actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.prev-next {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* prevent blocking the image below */
}

.prev-next button {
    pointer-events: auto; /* restore interaction */
    height: 100%;
	width: 50%;
	float: left;
	padding: 50px;
    border: none;
    background: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}
.prev-next button:hover {
	opacity: 1;
}

/* Left (prev) gradient overlay */
.prev-next .btn-prev {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), transparent);
    text-align: left;
}

/* Right (next) gradient overlay */
.prev-next .btn-next {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.85), transparent);
    text-align: right;
}

/* White fill for icons */
.prev-next svg {
    fill: white;
    margin: 0 0.5rem;
	transform: scale(2);
}

/* Accessible focus styling */
.prev-next button:focus {
    outline: 2px solid white;
    outline-offset: -4px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

/* Animating dialogs:
	https://developer.chrome.com/blog/introducing-popover-api#interactive_entry_and_exit
	https://www.oidaisdes.org/native-dialog-and-popover.en/
	https://stackoverflow.com/questions/77042256/css-transition-animation-not-working-for-popover-attribute
*/
dialog {
  &:popover-open {
    /*   0. BEFORE-OPEN STATE   */
    /*  initial state for what we're animating *in* from, 
        in this case: goes from lower (y + 20px) to center  */
    @starting-style {
      transform: translateY(20px);
      opacity: 0;
    }

    /*   1. OPEN STATE   */
    /*  state when popover is open, BOTH:
        what we're transitioning *in* to 
        and transitioning *out* from */
    transform: translateY(0);
    opacity: 1;
  }

  /*   2. AFTER-OPEN-IS-CLOSED STATE   */
  /*  initial state for what we're animating *out* to , 
      in this case: goes from center to (y - 50px) higher */
  transform: translateY(-50px);
  opacity: 0;

  /*  enumarate transitioning properties, including display */
  transition: transform 0.5s, opacity 0.5s, display 0.5s;
  transition-behavior: allow-discrete;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}
.btn-xs {
	padding: 0.075rem 0.35rem;
}
.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-primary:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

.btn-primary:active {
    background-color: #0a58ca;
    border-color: #0a53be;
}



.loader:before {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}
.loader:before {
    content: "";
    display: block;
    font-size: 5px;
    position: absolute;
    border-top: 1.1em solid rgba(0, 0, 0, 0.1);
    border-right: 1.1em solid rgba(0, 0, 0, 0.1);
    border-bottom: 1.1em solid rgba(0, 0, 0, 0.1);
    border-left: 1.1em solid #677788;
    transform: translateZ(0);
    animation: load8 1.1s infinite linear;

    top: 50%;
    left: 50%;
    margin: -5em 0 0 -5em;
}

@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}