.hds-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
	overflow: hidden;
}

.hds-lightbox[hidden] {
	display: none !important;
}

.hds-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.82);
	cursor: pointer;
}

.hds-lightbox__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(96vw, 1200px);
	max-height: 92vh;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
}

.hds-lightbox__figure {
	margin: 0;
	flex: 1;
	min-width: 0;
	max-width: 100%;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.hds-lightbox__img,
.hds-lightbox__video {
	display: block;
	max-width: 100%;
	max-height: calc(92vh - 2.5rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	background: #000;
}

.hds-lightbox__img[hidden],
.hds-lightbox__video[hidden] {
	display: none !important;
}

.hds-lightbox__cap {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: #e2e8f0;
	text-align: center;
	max-width: 100%;
	padding: 0 0.25rem;
	word-break: break-word;
}

.hds-lightbox__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.hds-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.hds-lightbox__nav {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.hds-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.hds-lightbox__nav[hidden] {
	display: none;
}

body.hds-lightbox-open {
	overflow: hidden;
}

/* Mobil: oklar yan sütun yerine üstte; görsel tam ekran genişliğinde kalır */
@media (max-width: 768px) {
	.hds-lightbox {
		padding: 0;
	}

	.hds-lightbox__panel {
		max-width: 100%;
		max-height: 100%;
		height: 100%;
		gap: 0;
		padding:
			max(0.5rem, env(safe-area-inset-top, 0px))
			max(0.5rem, env(safe-area-inset-right, 0px))
			max(0.5rem, env(safe-area-inset-bottom, 0px))
			max(0.5rem, env(safe-area-inset-left, 0px));
	}

	.hds-lightbox__figure {
		max-height: 100%;
		padding: 0 2.75rem;
		box-sizing: border-box;
	}

	.hds-lightbox__img,
	.hds-lightbox__video {
		max-height: calc(100dvh - 4.5rem);
		max-height: calc(100vh - 4.5rem);
		border-radius: 6px;
	}

	.hds-lightbox__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 3;
	}

	.hds-lightbox__nav--prev {
		left: max(0.35rem, env(safe-area-inset-left, 0px));
	}

	.hds-lightbox__nav--next {
		right: max(0.35rem, env(safe-area-inset-right, 0px));
	}

	.hds-lightbox__close {
		position: fixed;
		top: max(0.5rem, env(safe-area-inset-top, 0px));
		right: max(0.5rem, env(safe-area-inset-right, 0px));
	}
}

.hds-attachment--video {
	cursor: pointer;
}

.hds-attachment {
	cursor: zoom-in;
	border: none;
	padding: 0;
	font: inherit;
	background: transparent;
}

.hds-attachment:focus-visible {
	outline: 2px solid var(--hds-purple-500, #7c3aed);
	outline-offset: 2px;
}

.hds-guest-attachment {
	cursor: zoom-in;
	border: none;
	padding: 0;
	background: transparent;
}

.hds-attach-icon {
	display: inline-block;
	width: 0.95rem;
	height: 0.95rem;
	margin-left: 0.4rem;
	vertical-align: -0.15em;
	flex-shrink: 0;
	opacity: 0.65;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b21b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
}

.hds-col-talep__title {
	display: inline;
}

.hds-guest-attach-icon {
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	margin-left: 0.35rem;
	vertical-align: -0.1em;
	opacity: 0.55;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
}
