.ah-tabs {
	margin: 6px 0 6px 0;
}

.ah-tabs__nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin-bottom: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ah-tabs__nav::-webkit-scrollbar {
	display: none;
}

.ah-tabs__btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.ah-tabs__btn {
	background: rgba(0,0,0,0.06);
	border: none;
	border-radius: 0;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	opacity: 0.85;
	transition: background 0.15s ease, color 0.15s ease;
}

.ah-tabs__btn:hover {
	opacity: 1;
}

.ah-tabs__btn.is-active {
	background: var(--ah-tabs-accent, #111111);
	color: #fff;
	opacity: 1;
}

.ah-tabs__panel {
	display: none;
}

.ah-tabs__panel.is-active {
	display: block;
}

.ah-tabs__empty {
	opacity: 0.6;
	font-style: italic;
}

/* Latest Posts tab uses .ah-posts-list classes (shared with posts-list.css) */

/* Grid tabs (Gallery / BTS / Selfies) */
.ah-tabs__grid {
	display: grid;
	grid-template-columns: repeat(var(--ah-tabs-cols, 3), 1fr);
	gap: 6px;
}

.ah-tabs__cell-media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	cursor: pointer;
	display: block;
	text-decoration: none;
	color: inherit;
}

.ah-tabs__cell-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ah-tabs__cell-media--embed {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	font-size: 30px;
	text-decoration: none;
	aspect-ratio: 1 / 1;
}

.ah-tabs__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 28px;
	color: #fff;
	text-shadow: 0 0 6px rgba(0,0,0,0.7);
	pointer-events: none;
}

.ah-tabs__heart-svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	vertical-align: middle;
}

.ah-tabs__like-btn.is-liked {
	color: #e0245e;
}

.ah-tabs__like-btn.is-liked .ah-tabs__heart-svg {
	fill: currentColor;
	stroke: currentColor;
}

.ah-tabs__heart {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 60px;
	height: 60px;
	color: #fff;
	filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
	pointer-events: none;
	opacity: 0;
}

.ah-tabs__heart .ah-tabs__heart-svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	stroke: currentColor;
}

.ah-tabs__heart.is-animating {
	animation: ah-tabs-heart-pop 0.7s ease;
}

@keyframes ah-tabs-heart-pop {
	0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
	30%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
	60%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.ah-tabs__social {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 2px;
	font-size: 12px;
}

.ah-tabs__like-btn,
.ah-tabs__comment-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 4px;
	opacity: 0.75;
}

.ah-tabs__like-btn.is-liked {
	color: #e0245e;
	opacity: 1;
}

.ah-tabs__comments-panel {
	padding: 6px 2px;
	font-size: 12px;
	border-top: 1px solid rgba(0,0,0,0.08);
	margin-top: 4px;
}

.ah-tabs__comments-list {
	max-height: 120px;
	overflow-y: auto;
	margin-bottom: 6px;
}

.ah-tabs__comment {
	margin-bottom: 4px;
	line-height: 1.3;
}

.ah-tabs__comment--none {
	opacity: 0.6;
	font-style: italic;
}

.ah-tabs__comment-form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ah-tabs__comment-name,
.ah-tabs__comment-text {
	font-size: 12px;
	padding: 4px 6px;
	width: 100%;
	box-sizing: border-box;
}

.ah-tabs__comment-text {
	resize: vertical;
	min-height: 40px;
}

.ah-tabs__comment-submit {
	align-self: flex-end;
	font-size: 12px;
	padding: 4px 10px;
	cursor: pointer;
}

.ah-tabs__comment-status {
	font-size: 11px;
	opacity: 0.8;
}

@media (max-width: 640px) {
	.ah-tabs__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Lightbox */
.ah-tabs__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.ah-tabs__lightbox:not([hidden]) {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ah-tabs__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.85);
}

.ah-tabs__lightbox-inner {
	position: relative;
	background: #fff;
	color: #111;
	max-width: 92vw;
	max-height: 92vh;
	width: 480px;
	overflow-y: auto;
	padding: 16px;
	box-sizing: border-box;
}

.ah-tabs__lightbox-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #111;
	z-index: 2;
}

.ah-tabs__lightbox-fullscreen {
	position: absolute;
	top: 6px;
	right: 44px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1;
	padding: 6px 8px;
	cursor: pointer;
	z-index: 2;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-inner {
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	padding: 0;
	overflow: hidden;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-media {
	width: 100%;
	height: 100%;
	min-height: 0;
	background: #000;
	margin-bottom: 0;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-media img,
.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-media video {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-social,
.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-comments {
	display: none;
}

.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-close,
.ah-tabs__lightbox.is-pseudo-fullscreen .ah-tabs__lightbox-fullscreen {
	background: rgba(0,0,0,0.55);
	color: #fff;
}

.ah-tabs__lightbox-media {
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f4f4;
	margin-bottom: 10px;
}

.ah-tabs__lightbox-media img,
.ah-tabs__lightbox-media video {
	max-width: 100%;
	max-height: 70vh;
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
}

.ah-tabs__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(0,0,0,0.15);
	border-top-color: #111;
	border-radius: 50%;
	animation: ah-tabs-spin 0.8s linear infinite;
}

@keyframes ah-tabs-spin {
	to { transform: rotate(360deg); }
}

.ah-tabs__lightbox-social {
	margin-bottom: 10px;
}

.ah-tabs__lightbox-social .ah-tabs__like-btn {
	font-size: 15px;
}

.ah-tabs__lightbox-comments .ah-tabs__comments-list {
	max-height: 180px;
}
