/* from themes/basic/media/media_photo_content.html */
:where(.tpl-media-media_photo_content) * {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
:where(body:has(.tpl-media-media_photo_content)) .gallery {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 15px;
	}
:where(body:has(.tpl-media-media_photo_content)) .lightbox.open {
		opacity: 1;
		visibility: visible;
	}
:where(body:has(.tpl-media-media_photo_content)) .lightbox-close {
		position: absolute;
		top: -10px;
		right: -10px;
		background: #fff;
		color: #000;
		border: none;
		border-radius: 50%;
		width: 32px;
		height: 32px;
		cursor: pointer;
		font-size: 18px;
		line-height: 32px;
		text-align: center;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
	}
:where(body:has(.tpl-media-media_photo_content)) .lightbox-arrow {
		background: rgba(0, 0, 0, 0.6);
		color: #fff;
		border: none;
		width: 40px;
		height: 60px;
		cursor: pointer;
		font-size: 26px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 4px;
		transition: background 0.2s ease;
		user-select: none;
	}
:where(body:has(.tpl-media-media_photo_content)) .lightbox-arrow:hover {
		background: rgba(255, 255, 255, 0.15);
	}
