.photon-window .photon-window-contents {
    width: 100%;
    max-width: calc(100% - 0.2rem);
    height: 100%;
    max-height: calc(100% - 0.2rem);
    margin: 0;
    overflow: scroll;
    border: none;
}

/* .photon-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
} */

.photon-window-content {
    width: 100%;
    height: 100%;
    max-height: calc(100% - 3rem);
	overflow: scroll;
}

body.hitboxes .photon-window-content {
    border: 1px solid red;
}

#photon-allWindows {
    z-index: 10;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    position: absolute;
}

.photon-window:not(.active, .hidden, .fullscreen) {
	opacity: 0.7;
	scale: 0.975;
	filter: contrast(0.9);
}

.photon-window.hidden {
    filter: brightness(1.5);
    transform: rotate3d(1, 0, 0, -20deg) scale(0.9);
    transition:
        opacity 0.25s,
        transform 0.175s,
        filter 0.2s,
        scale 0.2s;
    transition-timing-function: cubic-bezier(.28,0,.19,1);
    transition-delay: 0.05s, 0.05s, 0.05s, 0.05s;
    /* transform-origin: 50% 0%; */
}

.photon-window {
    min-width: 250px;
    min-height: 250px;
    width: 45vw;
    height: 50vh;
    position: absolute;
    top: 3vmin;
    left: 3vmin;
    transition:
        opacity 0.25s,
        transform 0.175s,
        filter 0.2s,
        scale 0.2s,
		all 0.25s;
    transition-timing-function: cubic-bezier(.28,0,.19,1);
    transition-delay: 0.05s, 0.05s, 0.05s, 0.05s;
    border-radius: var(--radius-lg);
    border: 1.2px solid #333;

	&.maximized {
		top: 0!important;
		left: 0!important;
		width: 100%!important;
		height: calc(101% - 50px)!important;
		/* transition: all 0.25s; */
		border-radius: 0;
	}
}

.photon-window-title {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 1.2px solid #333;
    user-select: none;
    display: flex;
    flex-direction: row;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    align-items: center;
    justify-content: space-between;
    cursor: move;
    height: 1.5rem;

	placeholder,
	img {
		max-width: 1.3rem;
		height: 1.3rem;
	}
}

.photon-window-actions {
	display: flex;
	/* gap: 0.5rem; */
}

.photon-window-action {
    padding-inline: 0.4rem;
}

.photon-window-titleText {
    /* flex: 1; */
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;    
	text-wrap-mode: nowrap;
    text-overflow: ellipsis;
	margin-left: 3rem;
}

.resizers .resizer.top-left {
    left: -5px;
    top: -5px;
    cursor: nwse-resize; /*resizer cursor*/
}
.resizers .resizer.top-right {
    right: -5px;
    top: -5px;
    cursor: nesw-resize;
}
.resizers .resizer.bottom-left {
    left: -5px;
    bottom: -5px;
    cursor: nesw-resize;
}
.resizers .resizer.bottom-right {
    right: -5px;
    bottom: -5px;
    cursor: nwse-resize;
}

.resizers .resizer.top-edge {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.resizers .resizer.bottom-edge {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.resizers .resizer.left-edge {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.resizers .resizer.right-edge {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.resizers {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.resizer {
    pointer-events: initial;
    position: absolute;
    z-index: 100;
}

.resizer.corner {
    width: 20px;
    height: 20px;
}

body.hitboxes .resizer {
    border: 1px solid chartreuse;
}

body.hitboxes .resizer.corner {
    border: 1px solid rebeccapurple;
}

.resizer.vedge {
    width: calc(100% - 20px);
    height: 10px;
}

.resizer.hedge {
    width: 10px;
    height: calc(100% - 20px);
}

.photon-window-action,
.photon-window-action:hover {
    cursor: pointer;
    background: none;
    color: var(--color-fg);
    border-radius: var(--radius-circle);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photon-window-action:hover {
    background: color-mix(in srgb, var(--color-accent) 25%, transparent);
	color: var(--color-accent);
}


.photon-close-btn:hover {
	background: color-mix(in srgb, var(--color-error) 25%, transparent);
	color: var(--color-error);
}

.photon-max-btn:hover {
	background: color-mix(in srgb, var(--color-success) 25%, transparent);
	color: var(--color-success);
}