/* =========================================================
   SPECTRA BETTA — GALLERY.CSS
   Halaman Gallery + halaman per-kategori galeri.
   ========================================================= */

/* ---------------------------------------------------------
   GALLERY HERO
   --------------------------------------------------------- */
.sb-gallery-hero {
	position: relative;
	overflow: hidden;
	padding-top: 40px;
}

.sb-gallery-hero__glow-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(ellipse 55% 70% at 80% 30%, rgba(255, 45, 45, 0.16), transparent 60%);
	pointer-events: none;
}

.sb-gallery-hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 260px;
	padding-bottom: 24px;
}

.sb-gallery-hero__content {
	max-width: 520px;
}

.sb-gallery-hero__desc {
	max-width: 440px;
	color: #d0d0d0;
	font-size: 15px;
	line-height: 1.6;
}

.sb-gallery-hero__visual {
	position: relative;
	flex-shrink: 0;
	width: 34vw;
	max-width: 420px;
}

.sb-gallery-hero__visual .sb-hero__fish {
	width: 100%;
	height: auto;
	animation: sbFloat 6s ease-in-out infinite;
}

.sb-gallery__pills {
	padding: 4px 0 28px;
}

/* ---------------------------------------------------------
   GRID KOLEKSI
   --------------------------------------------------------- */
.sb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 36px;
}

.sb-gallery-card {
	display: block;
	background-color: var(--sb-card);
	border: 1px solid var(--sb-border);
	border-radius: var(--sb-radius-lg);
	overflow: hidden;
	transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.sb-gallery-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.sb-gallery-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background-color: var(--sb-bg-softer);
	overflow: hidden;
}

.sb-gallery-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.sb-gallery-card:hover .sb-gallery-card__media img {
	transform: scale(1.04);
}

.sb-gallery-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--sb-muted);
	font-size: 12px;
	text-align: center;
	padding: 12px;
}

.sb-gallery-card__icon {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.6);
	color: var(--sb-white);
}

.sb-gallery-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 16px;
}

.sb-gallery-card__body strong {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--sb-white);
}

.sb-gallery-card__body span {
	font-size: 12px;
	color: var(--sb-muted);
}

/* ---------------------------------------------------------
   STATS GALERI
   --------------------------------------------------------- */
.sb-gallery-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background-color: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--sb-border);
	border-radius: var(--sb-radius-lg);
	margin-bottom: 24px;
}

.sb-gallery-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 22px 16px;
}

.sb-gallery-stats__item:not(:first-child) {
	border-left: 1px solid var(--sb-border);
}

.sb-gallery-stats__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 45, 45, 0.1);
	color: var(--sb-red);
}

.sb-gallery-stats__value {
	font-size: 20px;
	font-weight: 800;
	color: var(--sb-yellow);
}

.sb-gallery-stats__label {
	font-size: 11.5px;
	color: var(--sb-muted);
}

.sb-gallery-cta {
	margin-top: 0;
}

/* ---------------------------------------------------------
   HALAMAN SATU KATEGORI (taxonomy-gallery_category.php)
   --------------------------------------------------------- */
.sb-gallery-category__head {
	padding: 32px 0 20px;
}

.sb-gallery-category__breadcrumb {
	font-size: 12px;
	color: var(--sb-muted);
	margin-bottom: 12px;
}

.sb-gallery-category__breadcrumb a {
	color: var(--sb-text-secondary);
}

.sb-gallery-category__breadcrumb a:hover {
	color: var(--sb-yellow);
}

.sb-gallery-category__title {
	margin-bottom: 12px;
}

.sb-gallery-photos {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.sb-gallery-photos__item {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: var(--sb-radius-md);
	overflow: hidden;
	border: 1px solid var(--sb-border);
	background-color: var(--sb-bg-softer);
}

.sb-gallery-photos__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.sb-gallery-photos__item:hover img {
	transform: scale(1.05);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.sb-gallery-grid,
	.sb-gallery-photos {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.sb-gallery-hero {
		padding-top: 24px;
	}

	.sb-gallery-hero__container {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
	}

	.sb-gallery-hero__visual {
		width: 60%;
		max-width: 260px;
		align-self: center;
		margin-top: 8px;
	}

	.sb-gallery-grid,
	.sb-gallery-photos {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.sb-gallery-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.sb-gallery-stats__item:nth-child(2n+1) {
		border-left: none;
	}

	.sb-gallery-stats__item:nth-child(n+3) {
		border-top: 1px solid var(--sb-border);
	}
}
