.dr1065gallery,
.dr1065gallery *,
.dr1065gallery *::before,
.dr1065gallery *::after {
	box-sizing: border-box;
}

.dr1065gallery {
	--dr1065gallery-navy: #081625;
	--dr1065gallery-navy-light: #10283B;
	--dr1065gallery-panel: #112B3D;
	--dr1065gallery-teal: #20B7B0;
	--dr1065gallery-teal-light: #8DE2DB;
	--dr1065gallery-gold: #D7B777;
	--dr1065gallery-white: #F3F5F7;
	--dr1065gallery-muted: #B8C7D6;
	--dr1065gallery-border: rgba(184, 199, 214, 0.15);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	padding: clamp(64px, 8vw, 105px) 20px;

	background:
		radial-gradient(
			ellipse at 8% 8%,
			rgba(32, 183, 176, 0.12),
			transparent 35%
		),
		radial-gradient(
			ellipse at 92% 80%,
			rgba(215, 183, 119, 0.09),
			transparent 34%
		),
		linear-gradient(
			150deg,
			#07131F 0%,
			#0A1C2C 48%,
			#081522 100%
		);

	color: var(--dr1065gallery-white);
	font-family: 'Plus Jakarta Sans', sans-serif;
}

/* AMBIENT LIGHT */

.dr1065gallery::before,
.dr1065gallery::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	opacity: 0.22;
	animation: dr1065galleryGlow 12s ease-in-out infinite;
}

.dr1065gallery::before {
	top: -125px;
	left: -100px;
	background: var(--dr1065gallery-teal);
}

.dr1065gallery::after {
	right: -120px;
	bottom: -110px;
	background: var(--dr1065gallery-gold);
	animation-delay: 5s;
}

/* =========================================================
   HEADER
========================================================= */

.dr1065gallery .dr1065gallery-header {
	position: relative;
	width: 100%;
	max-width: 850px;
	margin: 0 auto 44px;
	text-align: center;
}

.dr1065gallery .dr1065gallery-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 100%;
	margin-bottom: 20px;
	padding: 10px 16px;

	border: 1px solid rgba(32, 183, 176, 0.28);
	border-radius: 50px;
	background: rgba(32, 183, 176, 0.07);

	color: var(--dr1065gallery-teal-light);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.7;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.dr1065gallery .dr1065gallery-badge::before {
	content: "";
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dr1065gallery-teal);
	box-shadow: 0 0 12px rgba(32, 183, 176, 0.55);
}

.dr1065gallery .dr1065gallery-header h2 {
	margin: 0;
	color: var(--dr1065gallery-white);

	font-size: clamp(30px, 4.8vw, 54px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -1.5px;
}

.dr1065gallery .dr1065gallery-header h2 span {
	display: inline-block;

	background: linear-gradient(
		100deg,
		#F0E2C2 0%,
		#D7B777 48%,
		#8DE2DB 100%
	);

	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.dr1065gallery .dr1065gallery-subtitle {
	max-width: 680px;
	margin: 17px auto 0;

	color: var(--dr1065gallery-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.9;
}

/* =========================================================
   MEDIA TOGGLE
   Preserves existing radio names and values
========================================================= */

.dr1065gallery .dr1065gallery-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;

	max-width: 100%;
	margin-top: 28px;
	padding: 7px;

	border: 1px solid rgba(184, 199, 214, 0.14);
	border-radius: 18px;
	background: rgba(5, 17, 28, 0.72);

	box-shadow:
		0 12px 35px rgba(0, 0, 0, 0.17),
		inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dr1065gallery .dr1065gallery-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 12px;
}

.dr1065gallery .dr1065gallery-tab input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

.dr1065gallery .dr1065gallery-tab span {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 11px 19px;
	border: 1px solid transparent;
	border-radius: 11px;

	color: var(--dr1065gallery-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;

	transition:
		color 0.25s ease,
		background 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.dr1065gallery .dr1065gallery-tab input:checked + span {
	border-color: rgba(32, 183, 176, 0.25);
	background: linear-gradient(
		135deg,
		rgba(32, 183, 176, 0.19),
		rgba(215, 183, 119, 0.09)
	);

	color: var(--dr1065gallery-white);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dr1065gallery .dr1065gallery-tab input:focus-visible + span {
	outline: 2px solid var(--dr1065gallery-gold);
	outline-offset: 3px;
}

@media (hover: hover) {
	.dr1065gallery .dr1065gallery-tab:hover span {
		color: var(--dr1065gallery-teal-light);
	}
}

/* =========================================================
   GALLERY GRID
   Keeps existing grid class and responsive behavior
========================================================= */

.dr1065gallery .dr1065gallery-grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(min(100%, 240px), 1fr)
	);
	gap: 22px;

	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	align-items: stretch;
}

/* =========================================================
   GALLERY CARD
   Preserves .show reveal functionality
========================================================= */

.dr1065gallery .dr1065gallery-card {
	position: relative;
	min-width: 0;
	overflow: hidden;

	border: 1px solid rgba(184, 199, 214, 0.14);
	border-radius: 19px;

	background: linear-gradient(
		145deg,
		rgba(20, 46, 63, 0.82),
		rgba(8, 22, 37, 0.94)
	);

	box-shadow:
		0 15px 38px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.045);

	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	opacity: 0;
	transform: translateY(20px);

	transition:
		opacity 0.55s ease,
		transform 0.35s ease,
		border-color 0.35s ease,
		box-shadow 0.35s ease;
}

/* Existing JavaScript reveal class */

.dr1065gallery .dr1065gallery-card.show {
	opacity: 1;
	transform: translateY(0);
}

@media (hover: hover) {
	.dr1065gallery .dr1065gallery-card.show:hover {
		transform: translateY(-5px);

		border-color: rgba(215, 183, 119, 0.32);

		box-shadow:
			0 24px 50px rgba(0, 0, 0, 0.3),
			0 0 25px rgba(32, 183, 176, 0.055),
			inset 0 1px 0 rgba(255, 255, 255, 0.055);
	}
}

/* =========================================================
   MEDIA CONTAINER
   Preserves .media-box and prevents overflow
========================================================= */

.dr1065gallery .media-box {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	min-width: 0;
	padding: 13px;

	overflow: hidden;
}

/* IMAGES, VIDEOS AND EMBEDS */

.dr1065gallery .dr1065gallery-card img,
.dr1065gallery .dr1065gallery-card video,
.dr1065gallery .dr1065gallery-card iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: 300px;
	height: auto;

	border: 0;
	border-radius: 12px;

	object-fit: contain;
	background: rgba(0, 0, 0, 0.12);
}

/* Maintain a usable frame for video embeds */

.dr1065gallery .dr1065gallery-card iframe {
	aspect-ratio: 16 / 9;
	height: auto;
}

/* =========================================================
   SOCIAL MEDIA CARD
   Existing class names retained
========================================================= */

.dr1065gallery .dr1065-social-card {
	display: flex;
	align-items: flex-start;
	gap: 13px;

	width: 100%;
	min-width: 0;
	padding: 18px;

	border: 1px solid rgba(184, 199, 214, 0.14);
	border-radius: 16px;

	background: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.045),
		rgba(255, 255, 255, 0.015)
	);

	color: var(--dr1065gallery-white);
	text-decoration: none;

	transition:
		transform 0.3s ease,
		border-color 0.3s ease,
		background 0.3s ease,
		box-shadow 0.3s ease;
}

.dr1065gallery .dr1065-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;

	width: 42px;
	height: 42px;

	border: 1px solid rgba(32, 183, 176, 0.2);
	border-radius: 13px;

	background: rgba(32, 183, 176, 0.09);
	color: var(--dr1065gallery-teal-light);

	font-size: 20px;
}

.dr1065gallery .dr1065-social-content {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.dr1065gallery .dr1065-social-content h3 {
	margin: 0;
	color: var(--dr1065gallery-white);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
}

.dr1065gallery .dr1065-social-content h4 {
	margin: 4px 0 0;
	color: var(--dr1065gallery-gold);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}

.dr1065gallery .dr1065-social-content p {
	margin: 8px 0 0;
	color: var(--dr1065gallery-muted);
	font-size: 12px;
	line-height: 1.8;
}

.dr1065gallery .dr1065-view-btn {
	display: inline-block;
	margin-top: 11px;

	color: var(--dr1065gallery-teal-light);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
}

@media (hover: hover) {
	.dr1065gallery .dr1065-social-card:hover {
		transform: translateY(-3px);

		border-color: rgba(32, 183, 176, 0.32);

		background: linear-gradient(
			145deg,
			rgba(32, 183, 176, 0.09),
			rgba(215, 183, 119, 0.035)
		);

		box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
	}

	.dr1065gallery .dr1065-social-card:hover .dr1065-view-btn {
		color: var(--dr1065gallery-gold);
	}
}

.dr1065gallery .dr1065-social-card:focus-visible {
	outline: 2px solid var(--dr1065gallery-gold);
	outline-offset: 4px;
}

/* =========================================================
   CAPTION
========================================================= */

.dr1065gallery .dr1065gallery-caption {
	padding: 13px 15px 17px;

	color: var(--dr1065gallery-muted);
	text-align: center;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

/* =========================================================
   LOADING MESSAGE
========================================================= */

.dr1065gallery .dr1065gallery-loading {
	padding: 34px 18px;

	color: var(--dr1065gallery-muted);
	text-align: center;
	font-size: 13px;
	line-height: 1.8;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {
	.dr1065gallery {
		padding: 68px 16px;
	}

	.dr1065gallery .dr1065gallery-header {
		margin-bottom: 32px;
	}

	.dr1065gallery .dr1065gallery-header h2 {
		font-size: clamp(29px, 6vw, 42px);
	}

	.dr1065gallery .dr1065gallery-subtitle {
		font-size: 13px;
	}

	.dr1065gallery .dr1065gallery-toggle {
		max-width: 100%;
		gap: 4px;
	}

	.dr1065gallery .dr1065gallery-tab span {
		padding: 10px 14px;
	}

	.dr1065gallery .dr1065gallery-grid {
		grid-template-columns: repeat(
			auto-fit,
			minmax(min(100%, 220px), 1fr)
		);
		gap: 16px;
	}

	.dr1065gallery .dr1065gallery-card img,
	.dr1065gallery .dr1065gallery-card video,
	.dr1065gallery .dr1065gallery-card iframe {
		max-height: 240px;
	}
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {
	.dr1065gallery {
		padding: 54px 12px;
	}

	.dr1065gallery .dr1065gallery-header {
		margin-bottom: 27px;
	}

	.dr1065gallery .dr1065gallery-badge {
		padding: 9px 11px;
		margin-bottom: 17px;
		font-size: 9px;
		letter-spacing: 0.9px;
	}

	.dr1065gallery .dr1065gallery-header h2 {
		font-size: clamp(27px, 8vw, 35px);
		letter-spacing: -0.8px;
		line-height: 1.25;
	}

	.dr1065gallery .dr1065gallery-subtitle {
		margin-top: 13px;
		font-size: 12px;
		line-height: 1.85;
	}

	.dr1065gallery .dr1065gallery-toggle {
		display: flex;
		width: 100%;
		gap: 3px;
		margin-top: 22px;
		padding: 5px;
		border-radius: 14px;
	}

	.dr1065gallery .dr1065gallery-tab {
		flex: 1 1 0;
		min-width: 0;
	}

	.dr1065gallery .dr1065gallery-tab span {
		width: 100%;
		min-height: 40px;
		padding: 9px 5px;
		font-size: 11px;
		text-align: center;
	}

	.dr1065gallery .dr1065gallery-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.dr1065gallery .dr1065gallery-card {
		border-radius: 16px;
	}

	.dr1065gallery .media-box {
		padding: 10px;
	}

	.dr1065gallery .dr1065gallery-card img,
	.dr1065gallery .dr1065gallery-card video,
	.dr1065gallery .dr1065gallery-card iframe {
		max-height: 260px;
		border-radius: 10px;
	}

	.dr1065gallery .dr1065-social-card {
		padding: 14px;
		gap: 11px;
	}

	.dr1065gallery .dr1065gallery-caption {
		padding: 11px 12px 14px;
	}
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
	.dr1065gallery::before,
	.dr1065gallery::after {
		animation: none !important;
	}

	.dr1065gallery .dr1065gallery-card,
	.dr1065gallery .dr1065-social-card,
	.dr1065gallery .dr1065gallery-tab span {
		animation: none !important;
		transition: none !important;
	}

	.dr1065gallery .dr1065gallery-card {
		transform: none;
	}

	.dr1065gallery .dr1065gallery-card.show {
		transform: none;
	}
}

@keyframes dr1065galleryGlow {
	0%, 100% {
		transform: scale(1);
		opacity: 0.18;
	}
	50% {
		transform: scale(1.08);
		opacity: 0.3;
	}
}